README.mpc8544ds 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. Overview
  2. --------
  3. The MPC8544DS system is similar to the 85xx CDS systems such
  4. as the MPC8548CDS due to the similar E500 core. However, it
  5. is placed on the same board as the 8641 HPCN system.
  6. Flash Banks
  7. -----------
  8. Like the 85xx CDS systems, the 8544 DS board has two flash banks.
  9. They are both present on boot, but there locations can be swapped
  10. using the dip-switch SW10, bit 2.
  11. However, unlike the CDS systems, but similar to the 8641 HPCN
  12. board, a runtime reset through the FPGA can also affect a swap
  13. on the flash bank mappings for the next reset cycle.
  14. Irrespective of the switch SW10[2], booting is always from the
  15. boot bank at 0xfff8_0000.
  16. Memory Map
  17. ----------
  18. 0xff80_0000 - 0xffbf_ffff Alternate bank 4MB
  19. 0xffc0_0000 - 0xffff_ffff Boot bank 4MB
  20. 0xffb8_0000 Alternate image start 512KB
  21. 0xfff8_0000 Boot image start 512KB
  22. Flashing Images
  23. ---------------
  24. For example, to place a new image in the alternate flash bank
  25. and then reset with that new image temporarily, use this:
  26. tftp 1000000 u-boot.bin.8544ds
  27. erase ffb80000 ffbfffff
  28. cp.b 1000000 ffb80000 80000
  29. pixis_reset altbank
  30. To overwrite the image in the boot flash bank:
  31. tftp 1000000 u-boot.bin.8544ds
  32. protect off all
  33. erase fff80000 ffffffff
  34. cp.b 1000000 fff80000 80000
  35. Other example U-Boot image and flash manipulations examples
  36. can be found in the README.mpc85xxcds file as well.
  37. The pixis_reset command
  38. -----------------------
  39. A new command, "pixis_reset", is introduced to reset mpc8641hpcn board
  40. using the FPGA sequencer. When the board restarts, it has the option
  41. of using either the current or alternate flash bank as the boot
  42. image, with or without the watchdog timer enabled, and finally with
  43. or without frequency changes.
  44. Usage is;
  45. pixis_reset
  46. pixis_reset altbank
  47. pixis_reset altbank wd
  48. pixis_reset altbank cf <SYSCLK freq> <COREPLL ratio> <MPXPLL ratio>
  49. pixis_reset cf <SYSCLK freq> <COREPLL ratio> <MPXPLL ratio>
  50. Examples;
  51. /* reset to current bank, like "reset" command */
  52. pixis_reset
  53. /* reset board but use the to alternate flash bank */
  54. pixis_reset altbank
  55. /* reset board, use alternate flash bank with watchdog timer enabled*/
  56. pixis_reset altbank wd
  57. /* reset board to alternate bank with frequency changed.
  58. * 40 is SYSCLK, 2.5 is COREPLL ratio, 10 is MPXPLL ratio
  59. */
  60. pixis-reset altbank cf 40 2.5 10
  61. Valid clock choices are in the 8641 Reference Manuals.
  62. Using the Device Tree Source File
  63. ---------------------------------
  64. To create the DTB (Device Tree Binary) image file,
  65. use a command similar to this:
  66. dtc -b 0 -f -I dts -O dtb mpc8544ds.dts > mpc8544ds.dtb
  67. Likely, that .dts file will come from here;
  68. linux-2.6/arch/powerpc/boot/dts/mpc8544ds.dts
  69. After placing the DTB file in your TFTP disk area,
  70. you can download that dtb file using a command like:
  71. tftp 900000 mpc8544ds.dtb
  72. Burn it to flash if you want.
  73. Booting Linux
  74. -------------
  75. Place a linux uImage in the TFTP disk area too.
  76. tftp 1000000 uImage.8544
  77. tftp 900000 mpc8544ds.dtb
  78. bootm 1000000 - 900000
  79. Watch your ethact, netdev and bootargs U-Boot environment variables.
  80. You may want to do something like this too:
  81. setenv ethact eTSEC3
  82. setenv netdev eth1