README.mpc8313erdb 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. Freescale MPC8313ERDB Board
  2. -----------------------------------------
  3. 1. Board Switches and Jumpers
  4. S3 is used to set CONFIG_SYS_RESET_SOURCE.
  5. To boot the image at 0xFE000000 in NOR flash, use these DIP
  6. switch settings for S3 S4:
  7. +------+ +------+
  8. | | | **** |
  9. | **** | | |
  10. +------+ ON +------+ ON
  11. 4321 4321
  12. (where the '*' indicates the position of the tab of the switch.)
  13. To boot the image at the beginning of NAND flash, use these
  14. DIP switch settings for S3 S4:
  15. +------+ +------+
  16. | * | | *** |
  17. | *** | | * |
  18. +------+ ON +------+ ON
  19. 4321 4321
  20. (where the '*' indicates the position of the tab of the switch.)
  21. When booting from NAND, use u-boot-nand.bin, not u-boot.bin.
  22. 2. Memory Map
  23. The memory map looks like this:
  24. 0x0000_0000 0x07ff_ffff DDR 128M
  25. 0x8000_0000 0x8fff_ffff PCI MEM 256M
  26. 0x9000_0000 0x9fff_ffff PCI_MMIO 256M
  27. 0xe000_0000 0xe00f_ffff IMMR 1M
  28. 0xe200_0000 0xe20f_ffff PCI IO 16M
  29. 0xe280_0000 0xe280_7fff NAND FLASH (CS1) 32K
  30. 0xf000_0000 0xf001_ffff VSC7385 (CS2) 128K
  31. 0xfa00_0000 0xfa00_7fff Board Status/ 32K
  32. LED Control (CS3)
  33. 0xfe00_0000 0xfe7f_ffff NOR FLASH (CS0) 8M
  34. When booting from NAND, NAND flash is CS0 and NOR flash
  35. is CS1.
  36. 3. Definitions
  37. 3.1 Explanation of NEW definitions in:
  38. include/configs/MPC8313ERDB.h
  39. CONFIG_MPC83xx MPC83xx family
  40. CONFIG_MPC831x MPC831x specific
  41. CONFIG_MPC8313ERDB MPC8313ERDB board specific
  42. 4. Compilation
  43. Assuming you're using BASH (or similar) as your shell:
  44. export CROSS_COMPILE=your-cross-compiler-prefix-
  45. make distclean
  46. make MPC8313ERDB_XXX_config
  47. (where XXX is:
  48. 33 - 33 MHz oscillator, boot from NOR flash
  49. 66 - 66 MHz oscillator, boot from NOR flash
  50. NAND_33 - 33 MHz oscillator, boot from NAND flash
  51. NAND_66 - 66 MHz oscillator, boot from NAND flash)
  52. make
  53. 5. Downloading and Flashing Images
  54. 5.1 Reflash U-boot Image using U-boot
  55. NOR flash:
  56. =>run tftpflash
  57. You may want to try
  58. =>tftpboot $loadaddr $uboot
  59. first, to make sure that the TFTP load will succeed before it
  60. goes ahead and wipes out your current firmware. And of course,
  61. have an alternate means of programming the flash available
  62. if the new u-boot doesn't boot.
  63. NAND flash:
  64. =>tftpboot $loadaddr <filename>
  65. =>nand erase 0 0x80000
  66. =>nand write $loadaddr 0 0x80000
  67. ...where 0x80000 is the filesize rounded up to
  68. the next 0x20000 increment.
  69. 5.2 Downloading and Booting Linux Kernel
  70. Ensure that all networking-related environment variables are set
  71. properly (including ipaddr, serverip, gatewayip (if needed),
  72. netmask, ethaddr, eth1addr, rootpath (if using NFS root),
  73. fdtfile, and bootfile).
  74. Then, do one of the following, depending on whether you
  75. want an NFS root or a ramdisk root:
  76. =>run nfsboot
  77. or
  78. =>run ramboot
  79. 6 Notes
  80. The console baudrate for MPC8313ERDB is 115200bps.