This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

spiboot问题

Other Parts Discussed in Thread: AM3358

硬件:am3358

uboot:uboot2013.01.01-psp06.00.00.00(sdk6.0)

问题描述:1. 使用make CROSS_COMPILE=arm-linux-gnueabihf- ARCH=arm O=am335x_evm am335x_evm_spiboot
产生 MLO , MLO.byteswap and u-boot.img文件,复制到sd卡后,设置sysboot[4:0]=10111(mmc0 spi0 uart0 usb0)

插入sd卡,启动板子,使用命令

sf probe 0
sf erase 0 +e0000
mmc rescan
fatload mmc 0 0x82000000 MLO.byteswap
sf write 0x82000000 0 0x20000
fatload mmc 0 0x82000000 u-boot.img
sf write 0x82000000 0x80000 0x60000

断电,拔卡,此时板子可以从spi启动,表面前面的操作成功了,但出现以下2个问题:

1. 环境变量不能保存至spi,如当修改serverip地址时,使用如下命令

-Boot# setenv serverip 192.168.135.220
U-Boot# saveenv
Saving Environment to SPI Flash...
Erasing SPI flash...U-Boot#

以上擦出应该没有成功,断电再次重启后,使用printenv发现修改的serverip地址确实没有被保存。

 

2. 当使用sd卡启动的时候,我加载内核时,当内核运行起来后能正常连接ftp,可以从主机拷贝文件。

但是同一个程序,当从spi启动再加载内核时,网络物理连接正常,但就是不能正常连接ftp,不知道

啥原因?