默认启动参数:
bootargs=root=/dev/mtdblock2 rootfstype=yaffs2 init=/linuxrc console=ttySAC0,115200
bootcmd=nand read 0xc0008000 0x200000 0x500000;bootm 0xc0008000
baudrate=115200
ethaddr=00:40:5c:26:0a:5b
netmask=255.255.255.0
bootdelay=5
ipaddr=192.168.48.100
serverip=192.168.48.103
gatewayip=192.168.48.1
stdin=serial //标准输入
stdout=serial //标准输出
stderr=serial //标准错误
nand flash分区:
Creating 4 MTD partitions on "NAND 4GiB 3,3V 8-bit":
0x000000000000-0x000000200000 : "Bootloader"
0x000000200000-0x000000700000 : "Kernel"
0x000000700000-0x00000cf00000 : "User"
0x00000cf00000-0x000100000000 : "File System"
export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/arm/4.3.2/bin
sudo vi /etc/environment
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/arm/4.3.2/bin
注意:
①"bootcmd=nand read 0xc0008000 0x200000 0x500000;bootm 0xc0008000"中相应地址是经过MMU映射过来的地址,不是具体的物理地址,
②OK6410的DDR地址范围:0x50000000-0x60000000共256M大小
『本文转载自网络,版权归原作者所有,如有侵权请联系删除』