最近弄sam9x5,核心芯片型号是at91sam9x25,遇到很多问题,郁闷了好几天。所遇到的问题解决的,没解决的如下:
一:板子bootload和以前用的mini2440不太一样,此板bootload分为三级引导程序,分别是Romboot,bootstrap和u-boot。因为出厂时自带了bootload,开发是对其要求也不是很大,所以就用现成的,只移植内核和跟文件系统即可。按照说明使用tftp下载内核成功,但用nfs挂载文件系统时,执行到0x8..时就卡在那不动了,不知什么原因。此问题还没解决。
二:在进行测试时脑残的输入命令:nand erase.结果........发现重启后板子上就只打印romboot。原来是把所有东西都擦出了。效果和使用sam-ba 下在nand flash使能后执行erase all一回事。
三:板子上u-boot都没了,怎么办? 装呗! 于是 装好sam-ba2.11后按照如下步骤开始移植bootload.
1: bootstrap
- Choose the proper media tab (DataFlash, NandFlash, etc.) in the SAM-BA GUI interface
- Initialize the media choosing the Enable action in the Scripts rolling menu and pressExecute
- Choose Send boot file, press Execute
- Select the at91bootstrap binary file and press Open ; the media is written down
- Close SAM-BA, remove the USB cable
- Choose the proper media tab (DataFlash, NandFlash, etc.) in the SAM-BA GUI interface
- Initialize the media choosing the Enable action in the Scripts rolling menu and pressExecute
- Press on Send File Name Browse button
- Choose u-boot.bin binary file and press Open
- Enter the proper address on media in the Address text field. You can find a media map for each product inGettingStarted#Linux4SAM_DataFlash_demo_Memory and GettingStarted#Linux4SAM_NandFlash_demo_Memory
- Press Send File button
- On AT91SAM9260-EK or AT91SAM9XE-EK, If you have erased the booting media, do not forget to replaceAT91Bootstrap in it
- Close SAM-BA, remove the USB cable
好了,恢复到原来状态了,但注意的是所用的bootstrap和u-boot必须和板子匹配,不然将会导致sam-ba连接错误和usb不识别等各种问题。出现这问题是最好使用j-link擦出。