partner-jet-setup.txt 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. LIST "partner-jet-setup.txt - 20090729 Magnus Damm"
  2. LIST "set up enough of the kfr2r09 hardware to boot the kernel"
  3. LIST "zImage (RAM boot)"
  4. LIST "This script can be used to boot the kernel from RAM via JTAG:"
  5. LIST "> < partner-jet-setup.txt"
  6. LIST "> RD zImage, 0xa8800000"
  7. LIST "> G=0xa8800000"
  8. LIST "romImage (Flash boot)"
  9. LIST "Use the following command to burn the zImage to flash via JTAG:"
  10. LIST "> RD romImage, 0"
  11. LIST "--------------------------------"
  12. LIST "disable watchdog"
  13. EW 0xa4520004, 0xa507
  14. LIST "invalidate instruction cache"
  15. ED 0xff00001c, 0x00000800
  16. LIST "invalidate TLBs"
  17. ED 0xff000010, 0x00000004
  18. LIST "select mode for cs5 + cs6"
  19. ED 0xff800020, 0xa5a50001
  20. ED 0xfec10000, 0x0000001b
  21. LIST "setup clocks"
  22. LIST "The PLL and FLL values are updated here for the optimal"
  23. LIST "RF frequency and improved reception sensitivity."
  24. ED 0xa4150004, 0x00000050
  25. ED 0xa4150000, 0x91053508
  26. WAIT 1
  27. ED 0xa4150050, 0x00000340
  28. ED 0xa4150024, 0x00005000
  29. LIST "setup pins"
  30. EB 0xa4050120, 0x00
  31. EB 0xa4050122, 0x00
  32. EB 0xa4050124, 0x00
  33. EB 0xa4050126, 0x00
  34. EB 0xa4050128, 0xA0
  35. EB 0xa405012A, 0x10
  36. EB 0xa405012C, 0x00
  37. EB 0xa405012E, 0x00
  38. EB 0xa4050130, 0x00
  39. EB 0xa4050132, 0x00
  40. EB 0xa4050134, 0x01
  41. EB 0xa4050136, 0x40
  42. EB 0xa4050138, 0x00
  43. EB 0xa405013A, 0x00
  44. EB 0xa405013C, 0x00
  45. EB 0xa405013E, 0x20
  46. EB 0xa4050160, 0x00
  47. EB 0xa4050162, 0x40
  48. EB 0xa4050164, 0x03
  49. EB 0xa4050166, 0x00
  50. EB 0xa4050168, 0x00
  51. EB 0xa405016A, 0x00
  52. EB 0xa405016C, 0x00
  53. EW 0xa405014E, 0x5660
  54. EW 0xa4050150, 0x0145
  55. EW 0xa4050152, 0x1550
  56. EW 0xa4050154, 0x0200
  57. EW 0xa4050156, 0x0040
  58. EW 0xa4050158, 0x0000
  59. EW 0xa405015a, 0x0000
  60. EW 0xa405015c, 0x0000
  61. EW 0xa405015e, 0x0000
  62. EW 0xa4050180, 0x0000
  63. EW 0xa4050182, 0x8002
  64. EW 0xa4050184, 0x0000
  65. EW 0xa405018a, 0x9991
  66. EW 0xa405018c, 0x8011
  67. EW 0xa405018e, 0x9550
  68. EW 0xa4050100, 0x0000
  69. EW 0xa4050102, 0x5540
  70. EW 0xa4050104, 0x0000
  71. EW 0xa4050106, 0x0000
  72. EW 0xa4050108, 0x4550
  73. EW 0xa405010a, 0x0130
  74. EW 0xa405010c, 0x0555
  75. EW 0xa405010e, 0x0000
  76. EW 0xa4050110, 0x0000
  77. EW 0xa4050112, 0xAAA8
  78. EW 0xa4050114, 0x8305
  79. EW 0xa4050116, 0x10F0
  80. EW 0xa4050118, 0x0F50
  81. EW 0xa405011a, 0x0000
  82. EW 0xa405011c, 0x0000
  83. EW 0xa405011e, 0x0555
  84. EW 0xa4050140, 0x0000
  85. EW 0xa4050142, 0x5141
  86. EW 0xa4050144, 0x5005
  87. EW 0xa4050146, 0xAAA9
  88. EW 0xa4050148, 0xFAA9
  89. EW 0xa405014a, 0x3000
  90. EW 0xa405014c, 0x0000
  91. LIST "setup sdram"
  92. ED 0xFD000108, 0x40000301
  93. ED 0xFD000020, 0x011B0002
  94. ED 0xFD000030, 0x03060E02
  95. ED 0xFD000034, 0x01020102
  96. ED 0xFD000038, 0x01090406
  97. ED 0xFD000008, 0x00000004
  98. ED 0xFD000040, 0x00000001
  99. ED 0xFD000040, 0x00000000
  100. ED 0xFD000018, 0x00000001
  101. WAIT 1
  102. ED 0xFD000014, 0x00000002
  103. ED 0xFD000060, 0x00000032
  104. ED 0xFD000060, 0x00020000
  105. ED 0xFD000014, 0x00000004
  106. ED 0xFD000014, 0x00000004
  107. ED 0xFD000010, 0x00000001
  108. ED 0xFD000044, 0x000004AF
  109. ED 0xFD000048, 0x20CF0037
  110. LIST "read 16 bytes from sdram"
  111. DD 0xa8000000, 0xa8000000, 1
  112. DD 0xa8000004, 0xa8000004, 1
  113. DD 0xa8000008, 0xa8000008, 1
  114. DD 0xa800000c, 0xa800000c, 1
  115. ED 0xFD000014, 0x00000002
  116. ED 0xFD000014, 0x00000004
  117. ED 0xFD000108, 0x40000300
  118. ED 0xFD000040, 0x00010000
  119. LIST "write to internal ram"
  120. ED 0xfd8007fc, 0
  121. LIST "setup cache"
  122. ED 0xff00001c, 0x0000090b