README.simpc8313 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. Sheldon Instruments SIMPC8313 Board
  2. -----------------------------------------
  3. 1. Board Switches and Jumpers
  4. S2 is used to set CFG_RESET_SOURCE.
  5. To boot the image in Large page NAND flash, use these DIP
  6. switch settings for S2:
  7. +----------+ ON
  8. | * * **** |
  9. | * * |
  10. +----------+
  11. 12345678
  12. To boot the image in Small page NAND flash, use these DIP
  13. switch settings for S2:
  14. +----------+ ON
  15. | *** **** |
  16. | * |
  17. +----------+
  18. 12345678
  19. (where the '*' indicates the position of the tab of the switch.)
  20. 2. Memory Map
  21. The memory map looks like this:
  22. 0x0000_0000 0x1fff_ffff DDR 512M
  23. 0x8000_0000 0x8fff_ffff PCI MEM 256M
  24. 0x9000_0000 0x9fff_ffff PCI_MMIO 256M
  25. 0xe000_0000 0xe00f_ffff IMMR 1M
  26. 0xe200_0000 0xe20f_ffff PCI IO 16M
  27. 0xe280_0000 0xe280_7fff NAND FLASH (CS0) 32K
  28. or
  29. 0xe280_0000 0xe281_ffff NAND FLASH (CS0) 128K
  30. 0xff00_0000 0xff00_7fff FPGA (CS1) 1M
  31. 3. Compilation
  32. Assuming you're using BASH (or similar) as your shell:
  33. export CROSS_COMPILE=your-cross-compiler-prefix-
  34. make distclean
  35. make SIMPC8313_LP_config
  36. (or make SIMPC8313_SP_config, depending on the page size
  37. of your NAND flash)
  38. make
  39. 4. Downloading and Flashing Images
  40. 4.1 Reflash U-boot Image using U-boot
  41. =>run update_uboot
  42. You may want to try
  43. =>tftp $loadaddr $uboot
  44. first, to make sure that the TFTP load will succeed before it
  45. goes ahead and wipes out your current firmware. And of course,
  46. if the new u-boot doesn't boot, you can plug the board into
  47. your PCI slot and with the supplied driver and sample app
  48. you can reburn a working u-boot.
  49. 4.2 Downloading and Booting Linux Kernel
  50. Ensure that all networking-related environment variables are set
  51. properly (including ipaddr, serverip, gatewayip (if needed),
  52. netmask, ethaddr, eth1addr, fdtfile, and bootfile).
  53. =>tftp $loadaddr uImage
  54. =>nand write $loadaddr kernel $filesize
  55. =>tftp $loadaddr $fdtfile
  56. =>nand write $loadaddr 7e0000 1800
  57. =>boot
  58. 5 Notes
  59. The console baudrate for SIMPC8313 is 115200bps.