本帖最后由 yeshang1990 于 2015-1-7 16:19 编辑
FSL_TICS_Rita 发表于 2015-1-7 09:50
你把你的u-boot中设置内核启动参数发给我看一下。
MX6Q SABRELITE U-Boot > printenv
bootdelay=3
baudrate=115200
ipaddr=192.168.1.103
serverip=_SERVER_IP_ADDR_
netmask=255.255.255.0
loadaddr=0x10800000
rd_loadaddr=0x11000000
netdev=eth0
ethprime=FEC0
ethaddr=00:01:02:03:04:05
uboot=u-boot.bin
kernel=uImage
bootargs_base=setenv bootargs console=ttymxc1,115200
bootargs_nfs=setenv bootargs ${bootargs} root=/dev/nfs ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp video=mxcfb0:de
v=ldb,LDB-XGA,if=RGB666
bootcmd_net=dhcp; run bootargs_base bootargs_nfs;bootm
bootargs_mmc=setenv bootargs ${bootargs} root=/dev/mmcblk0p1 rootwait rw video=mxcfb0:dev=ldb,LDB-XGA,if=RGB666 vide
o=mxcfb0:dev=hdmi,1920x1080M@60,if=RGB24
bootcmd_mmc=run bootargs_base bootargs_mmc;mmc dev 1;mmc read ${loadaddr} 0x800 0x2000;bootm
clearenv=sf probe 1 && sf erase 0xc0000 0x2000 && echo restored environment to factory default
upgradeu=for disk in 0 1 ; do mmc dev ${disk} ;for fs in fat ext2 ; do ${fs}load mmc ${disk}:1 10008000 /6q_upgrade
&& source 10008000 ; done ; done
bootfile=_BOOT_FILE_PATH_IN_TFTP_
nfsroot=_ROOTFS_PATH_IN_NFS_
ethact=FEC0
bootargs=console=ttymxc1,115200 init=/init rw video=mxcfb0 fbmem=10M vmalloc=400M fec_mac=00:04:9f:00:ea:d3
bootcmd_microsd=run bootargs;mmc dev 1;fatload mmc 1:1 ${loadaddr} qnx-ifs;go ${loadaddr}
bootcmd=run bootcmd_microsd
stdin=serial
stdout=serial
stderr=serial
Environment size: 1307/8188 bytes
另外,ip=dhcp在bootargs添加保存后reset发现没有。后来在bootcmd_microsd中添加成功。dhcp出现了错误
FEC: Link is Up 796d
BOOTP broadcast 1
BOOTP broadcast 2
BOOTP broadcast 3
BOOTP broadcast 4
...Retry count exceeded; starting again。循环死了。这是我网络不通的原因吗?怎么整?这是买的开发板,bsp也是QNX官网下的。这个问题和系统有关系吗? |