README.INCA-IP 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. Flash programming on the INCA-IP board is complicated because of the
  2. EBU swapping unit. A BDI2000 can be used for flash programming only
  3. if the EBU swapping unit is enabled; otherwise it will not detect the
  4. flash memory. But the EBU swapping unit is disadbled after reset, so
  5. if you program some code to flash with the swapping unit on, it will
  6. not be runnable with the swapping unit off.
  7. The consequence is that you have to write a pre-swapped image to
  8. flash using the BDI2000. A simple host-side tool "inca-swap-bytes" is
  9. provided in the "tools/" directory. Use it as follows:
  10. bash$ ./inca-swap-bytes <u-boot.bin >u-boot.bin.swp
  11. Note that the current BDI config file _disables_ the EBU swapping
  12. unit for the flash bank 0. To enable it, (this is required for the
  13. BDI flash commands to work) uncomment the following line in the
  14. config file:
  15. ;WM32 0xb8000260 0x404161ff ; Swapping unit enabled
  16. and comment out
  17. WM32 0xb8000260 0x004161ff ; Swapping unit disabled
  18. Alternatively, you can use "mm 0xb8000260 <value>" commands to
  19. enable/disable the swapping unit manually.
  20. Just for reference, here is the complete sequence of actions we took
  21. to install a U-Boot image into flash.
  22. 1. ./inca-swap-bytes <u-boot.bin >u-boot.bin.swp
  23. 2. From BDI:
  24. mm 0xb8000260 0x404161ff
  25. erase 0xb0000000
  26. erase 0xb0010000
  27. prog 0xb0000000 /tftpboot/INCA/u-boot.bin.swp bin
  28. mm 0xb8000260 0x004161ff
  29. go 0xb0000000
  30. (C) 2003 Wolfgang Denk