README 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301
  1. U-Boot for a Musenki M-3/M-1 board
  2. ---------------------------
  3. Musenki M-1 and M-3 have two banks of flash of 4MB or 8MB each.
  4. In board's notation, bank 0 is the one at the address of 0xFF800000
  5. and bank 1 is the one at the address of 0xFF000000.
  6. On power-up the processor jumps to the address of 0xFFF00100, the last
  7. megabyte of the bank 0 of flash.
  8. Thus, U-Boot is configured to reside in flash starting at the address of
  9. 0xFFF00000. The environment space is located in flash separately from
  10. U-Boot, at the address of 0xFF800000.
  11. There is a Davicom 9102A on-board, but I don't have it working yet.
  12. U-Boot test results
  13. --------------------
  14. x.x Operation on all available serial consoles
  15. x.x.x CONFIG_CONS_INDEX 1
  16. U-Boot 1.1.1 (Nov 20 2001 - 15:55:32)
  17. CPU: MPC8245 Revision 16.20 at 250 MHz: 16 kB I-Cache 16 kB D-Cache
  18. Board: MUSENKI Local Bus at 100 MHz
  19. DRAM: 32 MB
  20. FLASH: 4 MB
  21. In: serial
  22. Out: serial
  23. Err: serial
  24. Hit any key to stop autoboot: 0
  25. => help
  26. autoscr - run script from memory
  27. base - print or set address offset
  28. bdinfo - print Board Info structure
  29. bootm - boot application image from memory
  30. bootp - boot image via network using BootP/TFTP protocol
  31. bootd - boot default, i.e., run 'bootcmd'
  32. cmp - memory compare
  33. coninfo - print console devices and informations
  34. cp - memory copy
  35. crc32 - checksum calculation
  36. dcache - enable or disable data cache
  37. echo - echo args to console
  38. erase - erase FLASH memory
  39. flinfo - print FLASH memory information
  40. go - start application at address 'addr'
  41. help - print online help
  42. icache - enable or disable instruction cache
  43. iminfo - print header information for application image
  44. loadb - load binary file over serial line (kermit mode)
  45. loads - load S-Record file over serial line
  46. loop - infinite loop on address range
  47. md - memory display
  48. mm - memory modify (auto-incrementing)
  49. mtest - simple RAM test
  50. mw - memory write (fill)
  51. nm - memory modify (constant address)
  52. printenv- print environment variables
  53. protect - enable or disable FLASH write protection
  54. rarpboot- boot image via network using RARP/TFTP protocol
  55. reset - Perform RESET of the CPU
  56. run - run commands in an environment variable
  57. saveenv - save environment variables to persistent storage
  58. setenv - set environment variables
  59. tftpboot- boot image via network using TFTP protocol
  60. and env variables ipaddr and serverip
  61. version - print monitor version
  62. ? - alias for 'help'
  63. x.x.x CONFIG_CONS_INDEX 2
  64. **** NOT TESTED ****
  65. x.x Flash Driver Operation
  66. Boot 1.1.1 (Nov 20 2001 - 15:55:32)
  67. CPU: MPC8245 Revision 16.20 at 250 MHz: 16 kB I-Cache 16 kB D-Cache
  68. Board: MUSENKI Local Bus at 100 MHz
  69. DRAM: 32 MB
  70. FLASH: 4 MB
  71. *** Warning - bad CRC, using default environment
  72. In: serial
  73. Out: serial
  74. Err: serial
  75. Hit any key to stop autoboot: 0
  76. =>
  77. => md ff800000
  78. ff800000: 46989bf8 626f6f74 636d643d 626f6f74 F...bootcmd=boot
  79. ff800010: 6d204646 38323030 30300062 6f6f7464 m FF820000.bootd
  80. ff800020: 656c6179 3d350062 61756472 6174653d elay=5.baudrate=
  81. ff800030: 39363030 00636c6f 636b735f 696e5f6d 9600.clocks_in_m
  82. ff800040: 687a3d31 00737464 696e3d73 65726961 hz=1.stdin=seria
  83. ff800050: 6c007374 646f7574 3d736572 69616c00 l.stdout=serial.
  84. ff800060: 73746465 72723d73 65726961 6c006970 stderr=serial.ip
  85. ff800070: 61646472 3d313932 2e313638 2e302e34 addr=192.168.0.4
  86. ff800080: 32007365 72766572 69703d31 39322e31 2.serverip=192.1
  87. ff800090: 36382e30 2e380000 00000000 00000000 68.0.8..........
  88. ff8000a0: 00000000 00000000 00000000 00000000 ................
  89. ff8000b0: 00000000 00000000 00000000 00000000 ................
  90. ff8000c0: 00000000 00000000 00000000 00000000 ................
  91. ff8000d0: 00000000 00000000 00000000 00000000 ................
  92. ff8000e0: 00000000 00000000 00000000 00000000 ................
  93. ff8000f0: 00000000 00000000 00000000 00000000 ................
  94. => protect off ff800000 ff81ffff
  95. Un-Protected 1 sectors
  96. => erase ff800000 ff81ffff
  97. Erase Flash from 0xff800000 to 0xff81ffff
  98. done
  99. Erased 1 sectors
  100. => md ff800000
  101. ff800000: ffffffff ffffffff ffffffff ffffffff ................
  102. ff800010: ffffffff ffffffff ffffffff ffffffff ................
  103. ff800020: ffffffff ffffffff ffffffff ffffffff ................
  104. ff800030: ffffffff ffffffff ffffffff ffffffff ................
  105. ff800040: ffffffff ffffffff ffffffff ffffffff ................
  106. ff800050: ffffffff ffffffff ffffffff ffffffff ................
  107. ff800060: ffffffff ffffffff ffffffff ffffffff ................
  108. ff800070: ffffffff ffffffff ffffffff ffffffff ................
  109. ff800080: ffffffff ffffffff ffffffff ffffffff ................
  110. ff800090: ffffffff ffffffff ffffffff ffffffff ................
  111. ff8000a0: ffffffff ffffffff ffffffff ffffffff ................
  112. ff8000b0: ffffffff ffffffff ffffffff ffffffff ................
  113. ff8000c0: ffffffff ffffffff ffffffff ffffffff ................
  114. ff8000d0: ffffffff ffffffff ffffffff ffffffff ................
  115. ff8000e0: ffffffff ffffffff ffffffff ffffffff ................
  116. ff8000f0: ffffffff ffffffff ffffffff ffffffff ................
  117. x.x.x Information
  118. U-Boot 1.1.1 (Nov 20 2001 - 15:55:32)
  119. CPU: MPC8245 Revision 16.20 at 250 MHz: 16 kB I-Cache 16 kB D-Cache
  120. Board: MUSENKI Local Bus at 100 MHz
  121. DRAM: 32 MB
  122. FLASH: 4 MB
  123. *** Warning - bad CRC, using default environment
  124. In: serial
  125. Out: serial
  126. Err: serial
  127. Hit any key to stop autoboot: 0
  128. => flinfo
  129. Bank # 1: Intel 28F320J3A (32Mbit = 128K x 32)
  130. Size: 4 MB in 32 Sectors
  131. Sector Start Addresses:
  132. FF800000 (RO) FF820000 FF840000 FF860000 FF880000
  133. FF8A0000 FF8C0000 FF8E0000 FF900000 FF920000
  134. FF940000 FF960000 FF980000 FF9A0000 FF9C0000
  135. FF9E0000 FFA00000 FFA20000 FFA40000 FFA60000
  136. FFA80000 FFAA0000 FFAC0000 FFAE0000 FFB00000
  137. FFB20000 FFB40000 FFB60000 FFB80000 FFBA0000
  138. FFBC0000 FFBE0000
  139. Bank # 2: missing or unknown FLASH type
  140. =>
  141. x.x.x Flash Programming
  142. U-Boot 1.1.1 (Nov 20 2001 - 15:55:32)
  143. CPU: MPC8245 Revision 16.20 at 250 MHz: 16 kB I-Cache 16 kB D-Cache
  144. Board: MUSENKI Local Bus at 100 MHz
  145. DRAM: 32 MB
  146. FLASH: 4 MB
  147. In: serial
  148. Out: serial
  149. Err: serial
  150. Hit any key to stop autoboot: 0
  151. =>
  152. =>
  153. =>
  154. => protect off ff800000 ff81ffff
  155. Un-Protected 1 sectors
  156. => cp 0 ff800000 20
  157. Copy to Flash... done
  158. => md ff800000
  159. ff800000: 37ce33ec 33cc334c 33c031cc 33cc35cc 7.3.3.3L3.1.3.5.
  160. ff800010: 33ec13ce 30ccb3ec b3c833c4 31c836cc 3...0.....3.1.6.
  161. ff800020: 33cc3b9d 31ec33ee 13ecf3cc 338833ec 3.;.1.3.....3.3.
  162. ff800030: 234c33ec 32cc22cc 33883bdc 534433cc #L3.2.".3.;.SD3.
  163. ff800040: 33cc30c8 31cc32ec 338c33cc 330c33dc 3.0.1.2.3.3.3.3.
  164. ff800050: 33cc13dc 334c534c b1c433d8 128c13cc 3...3LSL..3.....
  165. ff800060: 37ec36cd 33dc33cc bbc9f7e8 bbcc77cc 7.6.3.3.......w.
  166. ff800070: 314c0adc 139c30ed 33cc334c 33c833ec 1L....0.3.3L3.3.
  167. ff800080: ffffffff ffffffff ffffffff ffffffff ................
  168. ff800090: ffffffff ffffffff ffffffff ffffffff ................
  169. ff8000a0: ffffffff ffffffff ffffffff ffffffff ................
  170. ff8000b0: ffffffff ffffffff ffffffff ffffffff ................
  171. ff8000c0: ffffffff ffffffff ffffffff ffffffff ................
  172. ff8000d0: ffffffff ffffffff ffffffff ffffffff ................
  173. ff8000e0: ffffffff ffffffff ffffffff ffffffff ................
  174. ff8000f0: ffffffff ffffffff ffffffff ffffffff ................
  175. x.x.x Storage of environment variables in flash
  176. U-Boot 1.1.1 (Nov 20 2001 - 15:55:32)
  177. CPU: MPC8245 Revision 16.20 at 250 MHz: 16 kB I-Cache 16 kB D-Cache
  178. Board: MUSENKI Local Bus at 100 MHz
  179. DRAM: 32 MB
  180. FLASH: 4 MB
  181. In: serial
  182. Out: serial
  183. Err: serial
  184. Hit any key to stop autoboot: 0
  185. => printenv
  186. bootcmd=bootm FF820000
  187. bootdelay=5
  188. baudrate=9600
  189. clocks_in_mhz=1
  190. stdin=serial
  191. stdout=serial
  192. stderr=serial
  193. Environment size: 106/16380 bytes
  194. => setenv myvar 1234
  195. => saveenv
  196. Un-Protected 1 sectors
  197. Erasing Flash...
  198. done
  199. Erased 1 sectors
  200. Saving Environment to Flash...
  201. Protected 1 sectors
  202. => reset
  203. U-Boot 1.1.1 (Nov 20 2001 - 15:55:32)
  204. CPU: MPC8245 Revision 16.20 at 250 MHz: 16 kB I-Cache 16 kB D-Cache
  205. Board: MUSENKI Local Bus at 100 MHz
  206. DRAM: 32 MB
  207. FLASH: 4 MB
  208. In: serial
  209. Out: serial
  210. Err: serial
  211. Hit any key to stop autoboot: 0
  212. => printenv
  213. bootcmd=bootm FF820000
  214. bootdelay=5
  215. baudrate=9600
  216. clocks_in_mhz=1
  217. myvar=1234
  218. stdin=serial
  219. stdout=serial
  220. stderr=serial
  221. Environment size: 117/16380 bytes
  222. x.x Image Download and run over serial port
  223. U-Boot 1.1.1 (Nov 20 2001 - 15:55:32)
  224. CPU: MPC8245 Revision 16.20 at 250 MHz: 16 kB I-Cache 16 kB D-Cache
  225. Board: MUSENKI Local Bus at 100 MHz
  226. DRAM: 32 MB
  227. FLASH: 4 MB
  228. In: serial
  229. Out: serial
  230. Err: serial
  231. Hit any key to stop autoboot: 0
  232. => loads
  233. ## Ready for S-Record download ...
  234. ## First Load Addr = 0x00040000
  235. ## Last Load Addr = 0x00050177
  236. ## Total Size = 0x00010178 = 65912 Bytes
  237. ## Start Addr = 0x00040004
  238. => go 40004
  239. ## Starting application at 0x00040004 ...
  240. Hello World
  241. argc = 1
  242. argv[0] = "40004"
  243. argv[1] = "<NULL>"
  244. Hit any key to exit ...
  245. ## Application terminated, rc = 0x0
  246. x.x Image download and run over ethernet interface
  247. untested (not working yet, actually)