uboot启动参数 Link to heading
1setenv boot_mtd 'bootz'
2setenv ipaddr '192.168.20.126'
3setenv serverip '192.168.20.9'
4setenv netmask '255.255.255.0'
5setenv mynfsroot '/home/yocto/hedong/nfs/rootfs_hd'
6setenv loadtftpfdt 'tftp ${fdt_addr} ${fdt_file}'
7setenv loadtftpimage 'tftp ${loadaddr} ${image}'
8setenv nfsboot 'echo Booting from net using tftp and nfs...; run nfsbootargs;run loadtftpimage; run loadtftpfdt;${boot_mtd} ${loadaddr} - ${fdt_addr}'
9setenv nfsbootargs 'setenv bootargs root=/dev/nfs rw ip=${ipaddr}:${serverip}::${netmask}::eth0:off nfsroot=${serverip}:${nfsroot},nolock'
SD/MMC手动启动 Link to heading
1tftp ${fdt_addr} s32v234-evb.dtb
2tftp ${loadaddr} uImage
3bootm ${loadaddr} - ${fdt_addr}
4
5tftp ${fdt_addr} s32v234-evbbcm.dtb
6tftp ${loadaddr} Image
7booti ${loadaddr} - ${fdt_addr}
增加video显示参数:
1setenv user_video 'hdmi,fb0,1280x720-60,gray-8bpp'
2
3setenv nfsbootargs 'setenv bootargs console=ttyLF0,115200 root=/dev/nfs rw ip=${ipaddr}:${serverip}::${netmask}::eth0:off nfsroot=${serverip}:${nfsroot},nolock video=${user_video}'