📄 readme.inca-ip.svn-base
字号:
Flash programming on the INCA-IP board is complicated because of theEBU swapping unit. A BDI2000 can be used for flash programming onlyif the EBU swapping unit is enabled; otherwise it will not detect theflash memory. But the EBU swapping unit is disadbled after reset, soif you program some code to flash with the swapping unit on, it willnot be runnable with the swapping unit off.The consequence is that you have to write a pre-swapped image toflash using the BDI2000. A simple host-side tool "inca-swap-bytes" isprovided in the "tools/" directory. Use it as follows: bash$ ./inca-swap-bytes <u-boot.bin >u-boot.bin.swpNote that the current BDI config file _disables_ the EBU swappingunit for the flash bank 0. To enable it, (this is required for theBDI flash commands to work) uncomment the following line in theconfig file: ;WM32 0xb8000260 0x404161ff ; Swapping unit enabledand comment out WM32 0xb8000260 0x004161ff ; Swapping unit disabledAlternatively, you can use "mm 0xb8000260 <value>" commands toenable/disable the swapping unit manually.Just for reference, here is the complete sequence of actions we tookto install a U-Boot image into flash. 1. ./inca-swap-bytes <u-boot.bin >u-boot.bin.swp 2. From BDI: mm 0xb8000260 0x404161ff erase 0xb0000000 erase 0xb0010000 prog 0xb0000000 /tftpboot/INCA/u-boot.bin.swp bin mm 0xb8000260 0x004161ff go 0xb0000000Ethernet autonegotiation needs some time to complete. Instead ofdelaying the boot process in all cases, we just start theautonegotiation process when U-Boot comes up and that is all. Mostlikely, it will complete by the time the network transfer isattempted for the first time. In the worst case, if a transfer isattempted before the autonegotiation is complete, just a singlepacket would be lost resulting in a single timeout error, and thenthe transfer would proceed normally. So the time that we would havelost unconditionally waiting for the autonegotiation to complete, wehave to wait only if the file transfer is started immediately afterreset. We've verified that this works for all the clockconfigurations.(C) 2003 Wolfgang Denk
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -