UBOOT支持的命令: MX28 U-Boot > help ? - alias for 'help' autoscr - DEPRECATED - use "source" command instead base - print or set address offset bdinfo - print Board Info structure boot - boot default, i.e., run 'bootcmd' bootd - boot default, i.e., run 'bootcmd' bootm - boot application image from memory bootp - boot image via network using BOOTP/TFTP protocol chpart - change active partition cmp - memory compare coninfo - print console devices and information cp - memory copy crc32 - checksum calculation dhcp - boot image via network using DHCP/TFTP protocol echo - echo args to console fatinfo - print information about filesystem fatload - load binary file from a dos filesystem fatls - list files in a directory (default /) go - start application at address 'addr' help - print online help iminfo - print header information for application image imxtract- extract a part of a multi-image itest - return true/false on integer compare loadb - load binary file over serial line (kermit mode) loads - load S-Record file over serial line loady - load binary file over serial line (ymodem mode) loop - infinite loop on address range md - memory display mii - MII utility commands mm - memory modify (auto-incrementing address) mmc - MMC sub system mmcinfo - mmcinfo -- display MMC info mtdparts- define flash/nand partitions mtest - simple RAM read/write test mw - memory write (fill) mxs_mmc - MXS specific MMC sub system nand - NAND sub-system nboot - boot from NAND device nfs - boot image via network using NFS protocol nm - memory modify (constant address) ping - send ICMP ECHO_REQUEST to network host printenv- print environment variables rarpboot- boot image via network using RARP/TFTP protocol reset - Perform RESET of the CPU run - run commands in an environment variable saveenv - save environment variables to persistent storage setenv - set environment variables sleep - delay execution for some time source - run script from memory tftpboot- boot image via network using TFTP protocol ubi - ubi commands ubifsload- load file from an UBIFS filesystem ubifsls - list files in a directory ubifsmount- mount UBIFS volume version - print monitor version
2. 内核启动打印信息,也够多的。 MX28 U-Boot > nand read.jffs2 0x41600000 0x00200000 0x300000 NAND read: device 0 offset 0x200000, size 0x300000 3145728 bytes read: OK MX28 U-Boot > bootm 41600000 ## Booting kernel from Legacy Image at 41600000 ... Image Name: Linux-2.6.35.3-571-gcca29a0 Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 2518660 Bytes = 2.4 MB Load Address: 40008000 Entry Point: 40008000 Verifying Checksum ... OK Loading Kernel Image ... OK OK
Starting kernel ...
Uncompressing Linux... done, booting the kernel. Linux version 2.6.35.3-571-gcca29a0 (zhangzhanwei@zlgmcu) (gcc version 4.4.4 (4.4.4_09.06.2010) ) #1 PREEMPT Tue Oct 14 17:47:39 CST 2014 CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177 CPU: VIVT data cache, VIVT instruction cache Machine: Freescale MX28EVK board Memory policy: ECC disabled, Data cache writeback Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256
arm-none-linux-gnueabi-gcc (Freescale MAD -- Linaro 2011.07 -- Built at 2011/08/10 09:20) 4.6.2 20110630 (prerelease) root filesystem built on Tue, 05 Feb 2013 11:11:58 +0800 Freescale Semiconductor, Inc.
// 加载触摸屏驱动 EasyARM-iMX283 login: /dev/input/event0 may be touch screen open /dev/input/event1 No such device open /dev/input/event2 No such device open /dev/input/event3 No such device [QWS_MOUSE_PROTO=Tslib:/dev/input/event0] [QWS_KEYBOARD=] xres 480, yres 272, width -1, height -1, 16bpp set width -1, height -1 Boot process: boot process end! // 到这里,启动结束
arm-none-linux-gnueabi-gcc (Freescale MAD -- Linaro 2011.07 -- Built at 2011/08/10 09:20) 4.6.2 20110630 (prerelease) root filesystem built on Tue, 05 Feb 2013 11:11:58 +0800 Freescale Semiconductor, Inc.
// 输入用户名和密码登录系统,都是"root" EasyARM-iMX283 login:
EasyARM-iMX283 login: root Password: login[2145]: root login on 'ttyAM0'
// 启动busybox的shell BusyBox v1.20.2 () built-in shell (ash) Enter 'help' for a list of built-in commands.
root@EasyARM-iMX283 ~# root@EasyARM-iMX283 ~# ls Settings g_file_storage.ko qt_hellow usb_storage_up bcmdhd.ko hello qt_hellow_zh beep.ko i2c_ds2460_test start_qt beep_test lradc.ko up_wifi_module root@EasyARM-iMX283 ~# cd / root@EasyARM-iMX283 /# ls Settings etc media proc sys usr bin home mnt root system var dev lib opt sbin tmp root@EasyARM-iMX283 /#
3. 网卡配置: root@EasyARM-iMX283 ~# ifconfig lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) 输入命令:ifconfig eth0 192.168.1.17
root@EasyARM-iMX283 ~# ifconfig eth0 192.168.1.17 eth0: Freescale FEC PHY driver [Generic PHY] (mii_bus:phy_addr=0:05, irq=-1) root@EasyARM-iMX283 ~# ifcPHY: 0:05 - Link is Up - 100/Full ifconfig eth0 Link encap:Ethernet HWaddr 02:00:92:B3:C4:A8 inet addr:192.168.1.17 Bcast:192.168.1.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) Base address:0x8000
lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)