关于sam9x5移植遇到的一些问题

最近弄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

SAM-BA_mainwin-bootstrap.png

  1.  Choose the proper media tab (DataFlash, NandFlash, etc.) in the SAM-BA GUI interface
  2. Initialize the media choosing the Enable action in the Scripts rolling menu and pressExecute
  3. Choose Send boot file, press Execute
  4. Select the at91bootstrap binary file and press Open ; the media is written down
  5. Close SAM-BA, remove the USB cable
2:u-boot

SAM-BA_mainwin-uboot.png

  1. Choose the proper media tab (DataFlash, NandFlash, etc.) in the SAM-BA GUI interface
  2. Initialize the media choosing the Enable action in the Scripts rolling menu and pressExecute
  3. Press on Send File Name Browse button
  4. Choose u-boot.bin binary file and press Open
  5. 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
  6. Press Send File button
  7. On AT91SAM9260-EK or AT91SAM9XE-EK, If you have erased the booting media, do not forget to replaceAT91Bootstrap in it
  8. Close SAM-BA, remove the USB cable
好了,恢复到原来状态了,但注意的是所用的bootstrap和u-boot必须和板子匹配,不然将会导致sam-ba连接错误和usb不识别等各种问题。出现这问题是最好使用j-link擦出。

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值