setenv bootargs 'root=/dev/nfs nfsroot=192.168.1.141:/root/rootfs/rootfs ip=192.168.1.10:192.168.1.141:192.168.1.1:255.255.255.0::eth0:off init=/linuxrc console=ttySAC2,115200'linux
setenv bootcmd 'movi read kernel 30008000; bootm 30008000'ide
setenv bootcmd 'tftp 0x30008000 zImage; bootm 0x30008000'spa
//bootcmd 對應的是boot命令server
setenv bootargs 'console=ttySAC2,115200 root=/dev/mmcblk0p2 rw init=/linuxrc rootfstype=ext3'ip
tslib移植問題內存
selected device is not a touchscreen I understandinput
export TSLIB_TSEVENTTYPE=INPUTcmd
export TSLIB_ROOT=/opt/tslibflash
export TSLIB_TSDEVICE=/dev/input/event2it
export QWS_MOUSE_PROTO=tslib:/dev/input/event2
export TSLIB_CONFFILE=$TSLIB_ROOT/etc/ts.conf
export TSLIB_CALIBFILE=$TSLIB_ROOT/etc/pointercal
export TSLIB_PLUGINDIR=$TSLIB_ROOT/lib/ts
export TSLIB_FBDEVICE=/dev/fb0
export TSLIB_CONSOLEDEVICE=none
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$TSLIB_ROOT/lib
九鼎新板210的tslib,配置電容屏的內容
echo set tslib environment...
export TSLIB_TSDEVICE=/dev/input/event2
export TSLIB_TSEVENTTYPE=INPUT
export TSLIB_CONFFILE=/etc/ts.conf
export TSLIB_CALIBFILE=/etc/pointercal
公建控制器 NUC972版
uboot 給kernel傳參 64MB內存 nandfalse
#define CONFIG_BOOTCOMMAND "nand read 0x7fc0 0x200000 0x500000 ;bootm 0x7fc0" // nandflash flash kernel boot kernel"
uboot給從nandfalse中的0X200000地址處讀取0X500000(5MB)大小的內容到內存的0X7fc0出運行。內核放在nandfalse的0X200000到0X1600000。
#define CONFIG_BOOTARGS "mem=64M console=ttyS0 115200 root=/dev/mtdblock2 rw rootfstype=yaffs2 rootflags=inband-tags mtdparts=nand0:0x200000@0x0(u-boot),0x1400000@0x200000(kernel),-(user)" //yaffs2 true
uboot給內核傳遞參數
mem=64M 告訴板載的內存是多大
console=ttyS0 115200 控制檯串口與波特率
root=/dev/mtdblock2 rw rootfstype=yaffs2 根文件系統在mtdblock2分區 可讀可寫 文件系統類型爲yaffs2
rootflags=inband-tags mtdparts=nand0:0x200000@0x0(u-boot),0x1400000@0x200000(kernel),-(user)" 設備爲nand0 分區信息:0-0X200000給uboot 0X200000-0X1600000給kernel
0X1600000以後的全部false可用空間給user。
#if 1 //why 2016/10/21 env
#define CONFIG_NETMASK 255.255.255.0
#define CONFIG_IPADDR 192.168.1.221
#define CONFIG_SERVERIP 192.168.1.189
#define CONFIG_GATEWAYIP 192.168.1.0
//#define CONFIG_BOOTCOMMAND "tftp 0x7fc0 970p_w_picpath.ub; bootm 0x7fc0" //tftp download kernel serverip 192.168.1.189
#define CONFIG_BOOTCOMMAND "nand read 0x7fc0 0x200000 0x500000 ;bootm 0x7fc0" // nandflash flash kernel boot kernel"
//#define CONFIG_BOOTARGS "root=/dev/ram0 console=ttyS0,115200n8 rdinit=/sbin/init mem=64M mtdparts=nand0:0x200000@0x0(u-boot),0x1400000@0x200000(kernel),-(user)"
//#define CONFIG_BOOTARGS "noinitrd root=/dev/mtdblock2 rootfstype=yaffs2 rootflags=inband-tags console=ttyS0,115200n8 rdinit=/sbin/init mem=64M mtdparts=nand0:0x200000@0x0(u-boot),0x1400000@0x200000(kernel),-(user)"
#define CONFIG_BOOTARGS "mem=64M console=ttyS0 115200 root=/dev/mtdblock2 rw rootfstype=yaffs2 rootflags=inband-tags mtdparts=nand0:0x200000@0x0(u-boot),0x1400000@0x200000(kernel),-(user)" //yaffs2 true
//#define CONFIG_BOOTARGS "root=/dev/nfs nfsroot=192.168.1.189:/root/rootfs ip=192.168.1.221:192.168.1.189:192.168.1.0:255.255.255.0::eth0:off console=ttyS0,115200 rdinit=/sbin/init mem=64M" //nfs
#endif
u-boot-spl.bin 燒錄地址 0X200 type:uboot
u-boot.bin 燒錄地址 0x100000 type:data
kernel 燒錄地址 0x200000
yaffs2 燒錄地址 0x1600000
rootfs-yaffs2 爲自動運行應用程序的鏡像
public-control-yaffs2 爲不自動運行應用程序的鏡像