README 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. Freescale MPC8315ERDB 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. 0xe030_0000 0xe03f_ffff PCI IO 1M
  29. 0xe060_0000 0xe060_7fff NAND FLASH (CS1) 32K
  30. 0xfe00_0000 0xfe7f_ffff NOR FLASH (CS0) 8M
  31. When booting from NAND, NAND flash is CS0 and NOR flash
  32. is CS1.
  33. 3. Definitions
  34. 3.1 Explanation of NEW definitions in:
  35. include/configs/MPC8315ERDB.h
  36. CONFIG_MPC83xx MPC83xx family
  37. CONFIG_MPC831x MPC831x specific
  38. CONFIG_MPC8315 MPC8315 specific
  39. CONFIG_MPC8315ERDB MPC8315ERDB board specific
  40. 4. Compilation
  41. Assuming you're using BASH (or similar) as your shell:
  42. export CROSS_COMPILE=your-cross-compiler-prefix-
  43. make distclean
  44. make MPC8315ERDB_config (or MPC8315ERDB_NAND_config for u-boot-nand.bin)
  45. make all
  46. 5. Downloading and Flashing Images
  47. 5.1 Reflash U-Boot Image using U-Boot
  48. NOR flash:
  49. tftp 40000 u-boot.bin
  50. protect off all
  51. erase fe000000 fe1fffff
  52. cp.b 40000 fe000000 xxxx
  53. protect on all
  54. You have to supply the correct byte count with 'xxxx'
  55. from the TFTP result log.
  56. NAND flash:
  57. =>tftpboot $loadaddr <filename>
  58. =>nand erase 0 0x80000
  59. =>nand write $loadaddr 0 0x80000
  60. ...where 0x80000 is the filesize rounded up to
  61. the next 0x20000 increment.
  62. 5.2 Downloading and Booting Linux Kernel
  63. Ensure that all networking-related environment variables are set
  64. properly (including ipaddr, serverip, gatewayip (if needed),
  65. netmask, ethaddr, eth1addr, rootpath (if using NFS root),
  66. fdtfile, and bootfile).
  67. Then, do one of the following, depending on whether you
  68. want an NFS root or a ramdisk root:
  69. =>run nfsboot
  70. or
  71. =>run ramboot
  72. 6 Notes
  73. The console baudrate for MPC8315ERDB is 115200bps.