LTT-MX8M-EVM100 开发板 linux 4.14.98使用手册
跳到导航
跳到搜索
阅读指导
蓝色字体为调试终端的信息,其中 “ # ” 或“ > ”开头的为用户输入的指令。
# cd ~/work > boot
SD卡测试
系统启动后将SD卡插入到Micro SD卡槽【J26】中,系统会自动将其挂载到/run/media目录下,在插入SD卡的同时,在系统终端会打印出SD卡相关信息:
[ 418.785224] mmc1: host does not support reading read-only switch, assuming write-enable [ 418.931992] mmc1: new ultra high speed SDR104 SDHC card at address 0007 [ 418.940000] mmcblk1: mmc1:0007 SD32G 29.0 GiB [ 418.947404] mmcblk1: p1 [ 419.146762] FAT-fs (mmcblk1p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
可通过df命令查看SD卡挂载位置:
df -h Filesystem Size Used Avail Use% Mounted on /dev/root 2.3G 1.9G 235M 89% / devtmpfs 237M 4.0K 237M 1% /dev tmpfs 494M 0 494M 0% /dev/shm tmpfs 494M 8.5M 485M 2% /run tmpfs 494M 0 494M 0% /sys/fs/cgroup tmpfs 494M 0 494M 0% /tmp tmpfs 494M 156K 493M 1% /var/volatile /dev/mmcblk0p1 64M 41M 24M 64% /run/media/mmcblk0p1 tmpfs 99M 0 99M 0% /run/user/0 /dev/mmcblk1p1 29G 2.3G 27G 8% /run/media/mmcblk1p1
可通过如下命令查看、读写当前SD卡的内容:
# ls /run/media/mmcblk2p1/ #查看SD卡的内容 # cd /run/media/mmcblk2p1/ #进入SD卡目录 # touch test #创建test文件 # rm test #删除test文件
USB HOST 测试
以U盘为例,将U盘插入USB HOST接口【J20、J21、J22、J23】其中任意一个,系统会默认将U盘挂载在/run/media目录下,并打印如下消息:
[ 766.582245] usb 1-1.4: new high-speed USB device number 7 using xhci-hcd [ 766.700039] usb-storage 1-1.4:1.0: USB Mass Storage device detected [ 766.711958] scsi host0: usb-storage 1-1.4:1.0 [ 767.744766] scsi 0:0:0:0: Direct-Access Generic Flash Disk 8.07 PQ: 0 ANSI: 4 [ 767.755868] sd 0:0:0:0: [sda] 15728640 512-byte logical blocks: (8.05 GB/7.50 GiB) [ 767.764424] sd 0:0:0:0: [sda] Write Protect is off [ 767.770329] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA [ 767.785294] sda: sda1 [ 767.791353] sd 0:0:0:0: [sda] Attached SCSI removable disk [ 768.254786] FAT-fs (sda1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
可通过df命令查看U盘挂载位置:
df -h Filesystem Size Used Avail Use% Mounted on /dev/root 2.3G 1.9G 235M 89% / devtmpfs 237M 4.0K 237M 1% /dev tmpfs 494M 0 494M 0% /dev/shm tmpfs 494M 8.5M 485M 2% /run tmpfs 494M 0 494M 0% /sys/fs/cgroup tmpfs 494M 0 494M 0% /tmp tmpfs 494M 168K 493M 1% /var/volatile /dev/mmcblk0p1 64M 41M 24M 64% /run/media/mmcblk0p1 tmpfs 99M 0 99M 0% /run/user/0 /dev/sda1 7.5G 1.7G 5.9G 22% /run/media/sda1
通过如下命令查看、读写U盘内容:
# ls /run/media/sda1/ #查看U盘的内容 # cd /run/media/sda1/ #进入U盘目录 # touch test #创建test文件 # rm test #删除test文件
以太网测试
使用网线将开发板的网口【P3】与PC机的网口连接,设置PC机的IP地址为192.168.1.115,子网掩码为:255.255.255.0
配置开发板的网络,如下:
# ifconfig eth0 192.168.1.200 netmask 255.255.255.0 #配置开发板IP地址与PC机在同一网段 # ping 192.168.1.115 #通过ping命令进行本地网络测试
如需连接外网,需根据路由器网关进行配置,如下:
# route add default gw 192.168.1.1 #设置默认路由网关 # ping www.baidu.com #通过ping命令进行互联网测试