README 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346
  1. U-Boot for MOUSSE/MPC8240 (KAHLUA)
  2. ----------------------------------
  3. James Dougherty (jfd@broadcom.com), 09/10/01
  4. The Broadcom/Vooha Mousse board is a 3U Compact PCI system board
  5. which uses the MPC8240, a 64MB SDRAM SIMM, and has onboard
  6. DEC 21143, NS16550 UART, an SGS M48T59Y TOD, and 4MB FLASH.
  7. See also: http://www.vooha.com/
  8. * NVRAM setenv/printenv/savenv supported.
  9. * Date Command
  10. * Serial Console support
  11. * Network support
  12. * FLASH of kernel images is supported.
  13. * FLASH of U-Boot to onboard and PLCC boot region.
  14. * Kernel command line options from NVRAM is supported.
  15. * IP PNP options supported.
  16. U-Boot Loading...
  17. U-Boot 1.0.5 (Sep 10 2001 - 00:22:25)
  18. CPU: MPC8240 Revision 1.1 at 198 MHz: 16 kB I-Cache 16 kB D-Cache
  19. Board: MOUSSE MPC8240/KAHLUA - CHRP (MAP B)
  20. Built: Sep 10 2001 at 01:01:50
  21. MPLD: Revision 127
  22. Local Bus: 33 MHz
  23. RTC: M48T589 TOD/NVRAM (8176) bytes
  24. Current date/time: 9/10/2001 0:18:52
  25. DRAM: 64 MB
  26. FLASH: 1.960 MB
  27. PCI: scanning bus0 ...
  28. bus dev fn venID devID class rev MBAR0 MBAR1 IPIN ILINE
  29. 00 00 00 1057 0003 060000 11 00000008 00000000 01 00
  30. 00 0d 00 1011 0019 020000 41 80000001 80000000 01 01
  31. 00 0e 00 105a 4d38 018000 01 a0000001 a0001001 01 03
  32. In: serial
  33. Out: serial
  34. Err: serial
  35. Hit any key to stop autoboot: 0
  36. =>
  37. I. Root FileSystem/IP Configuration
  38. bootcmd=tftp 100000 vmlinux.img;bootm
  39. bootdelay=3
  40. baudrate=9600
  41. ipaddr=<IP ADDRESS>
  42. netmask=<NETMASK>
  43. hostname=<NAME>
  44. serverip=<NFS SERVER IP ADDRESS>
  45. ethaddr=00:00:10:20:30:44
  46. nfsroot=<NFS SERVER IP ADDRESS>:/boot/root-fs
  47. gateway=<IP ADDRESS>
  48. root=/dev/nfs
  49. stdin=serial
  50. stdout=serial
  51. stderr=serial
  52. NVRAM environment variables.
  53. use the command:
  54. setenv <attribute> <value>
  55. type "saveenv" to write to NVRAM.
  56. II. To boot from a hard drive:
  57. setenv root /dev/hda1
  58. III. IP options which configure the network:
  59. ipaddr=<IP ADDRESS OF MACHINE>
  60. netmask=<NETMASK>
  61. hostname=mousse
  62. ethaddr=00:00:10:20:30:44
  63. gateway=<IP ADDRESS OF GATEWAY/ROUTER>
  64. IV. IP Options which configure NFS Root/Boot Support
  65. root=/dev/nfs
  66. serverip=<NFS SERVER IP ADDRESS>
  67. nfsroot=<NFS SERVER IP ADDRESS>:/boot/root-fs
  68. V. U-Boot Image Support
  69. The U-Boot boot loader assumes that after you build
  70. your kernel (vmlinux), you will create a U-Boot image
  71. using the following commands or script:
  72. #!/bin/csh
  73. /bin/touch vmlinux.img
  74. /bin/rm vmlinux.img
  75. set path=($TOOLBASE/bin $path)
  76. set path=($U_BOOT/tools $path)
  77. powerpc-linux-objcopy -S -O binary vmlinux vmlinux.bin
  78. gzip -vf vmlinux.bin
  79. mkimage -A ppc -O linux -T kernel -C gzip -a 0 -e 0 -n vmlinux.bin.gz -d vmlinux.bin.gz vmlinux.img
  80. ls -l vmlinux.img
  81. VI. ONBOARD FLASH Support
  82. FLASH support is provided for the onboard FLASH chip Bootrom area.
  83. U-Boot is loaded into either the ROM boot region of the FLASH chip,
  84. after first being boot-strapped from a pre-progammed AMD29F040 PLCC
  85. bootrom. The PLCC needs to be programmed with a ROM burner using
  86. AMD 29F040 ROM parts and the u-boot.bin or u-boot.hex (S-Record)
  87. images.
  88. The PLCC overlays this same region of flash as the onboard FLASH,
  89. the jumper J100 is a chip-select for which flash chip you want to
  90. progam. When jumper J100 is connected to pins 2-3, you boot from
  91. PLCC FLASH.
  92. To bringup a system, simply flash a flash an AMD29F040 PLCC
  93. bootrom, and put this in the PLCC socket. Move jumper J100 to
  94. pins 2-3 and boot from the PLCC.
  95. Now, while the system is running, move Jumper J100 to
  96. pins 1-2 and follow the procedure below to FLASH a bootrom
  97. (u-boot.bin) image into the onboard bootrom region (AMD29LV160DB):
  98. tftp 100000 u-boot.bin
  99. protect off FFF00000 FFF7FFFF
  100. erase FFF00000 FFF7FFFF
  101. cp.b 100000 FFF00000 \${filesize}\
  102. Here is an example:
  103. =>tftp 100000 u-boot.bin
  104. eth_halt
  105. eth0: DC21143 Ethernet adapter(bus=0, device=13, func=0)
  106. DEC Ethernet iobase=0x80000000
  107. ARP broadcast 1
  108. Filename 'u-boot.bin'.
  109. Load address: 0x100000
  110. Loading: #########################
  111. done
  112. Bytes transferred = 123220 (1e154 hex)
  113. eth_halt
  114. =>protect off FFF00000 FFF7FFFF
  115. Un-Protected 8 sectors
  116. =>erase FFF00000 FFF7FFFF
  117. Erase Flash from 0xfff00000 to 0xfff7ffff
  118. Erase FLASH[PLCC_BOOT] -8 sectors:........ done
  119. Erased 8 sectors
  120. =>cp.b 100000 FFF00000 1e154
  121. Copy to Flash... FLASH[PLCC_BOOT]:..done
  122. =>
  123. B. FLASH RAMDISK REGION
  124. FLASH support is provided for an Onboard 512K RAMDISK region.
  125. TThe following commands will FLASH a bootrom (u-boot.bin) image
  126. into the onboard FLASH region (AMD29LV160DB 2MB FLASH):
  127. tftp 100000 u-boot.bin
  128. protect off FFF80000 FFFFFFFF
  129. erase FFF80000 FFFFFFFF
  130. cp.b 100000 FFF80000 \${filesize}\
  131. C. FLASH KERNEL REGION (960KB)
  132. FLASH support is provided for the 960KB onboard FLASH1 segment.
  133. This allows flashing of kernel images which U-Boot can load
  134. and run (standalone) from the onboard FLASH chip. It also assumes
  135. The following commands will FLASH a kernel image to 0xffe10000
  136. tftp 100000 vmlinux.img
  137. protect off FFE10000 FFEFFFFF
  138. erase FFE10000 FFEFFFFF
  139. cp.b 100000 FFE10000 \${filesize}\
  140. reset
  141. Here is an example:
  142. =>tftp 100000 vmlinux.img
  143. eth_halt
  144. eth0: DC21143 Ethernet adapter(bus=0, device=13, func=0)
  145. DEC Ethernet iobase=0x80000000
  146. ARP broadcast 1
  147. TFTP from server 209.128.93.133; our IP address is 209.128.93.138
  148. Filename 'vmlinux.img'.
  149. Load address: 0x100000
  150. Loading: #####################################################################################################################################################
  151. done
  152. Bytes transferred = 760231 (b99a7 hex)
  153. eth_halt
  154. =>protect off FFE10000 FFEFFFFF
  155. Un-Protected 15 sectors
  156. =>erase FFE10000 FFEFFFFF
  157. Erase Flash from 0xffe10000 to 0xffefffff
  158. Erase FLASH[F0_SA3(KERNEL)] -15 sectors:............... done
  159. Erased 15 sectors
  160. =>cp.b 100000 FFE10000 b99a7
  161. Copy to Flash... FLASH[F0_SA3(KERNEL)]:............done
  162. =>
  163. When finished, use the command:
  164. bootm ffe10000
  165. to start the kernel.
  166. Finally, to make this the default boot command, use
  167. the following commands:
  168. setenv bootcmd bootm ffe10000
  169. savenv
  170. to make it automatically boot the kernel from FLASH.
  171. To go back to development mode (NFS boot)
  172. setenv bootcmd tftp 100000 vmlinux.img\;bootm
  173. savenv
  174. =>tftp 100000 vmlinux.img
  175. eth0: DC21143 Ethernet adapter(bus=0, device=13, func=0)
  176. DEC Ethernet iobase=0x80000000
  177. ARP broadcast 1
  178. Filename 'vmlinux.img'.
  179. Load address: 0x100000
  180. Loading: ####################################################################################################################################################
  181. done
  182. Bytes transferred = 752717 (b7c4d hex)
  183. eth_halt
  184. =>protect off FFE10000 FFEFFFFF
  185. Un-Protected 15 sectors
  186. =>erase FFE10000 FFEFFFFF
  187. Erase Flash from 0xffe10000 to 0xffefffff
  188. Erase FLASH[F0_SA3(KERNEL)] -15 sectors:............... done
  189. Erased 15 sectors
  190. =>cp.b 100000 FFE10000 b7c4d
  191. Copy to Flash... FLASH[F0_SA3(KERNEL)]:............done
  192. =>bootm ffe10000
  193. ## Booting image at ffe10000 ...
  194. Image Name: vmlinux.bin.gz
  195. Image Type: PowerPC Linux Kernel Image (gzip compressed)
  196. Data Size: 752653 Bytes = 735 kB = 0 MB
  197. Load Address: 00000000
  198. Entry Point: 00000000
  199. Verifying Checksum ... OK
  200. Uncompressing Kernel Image ... OK
  201. Total memory = 64MB; using 0kB for hash table (at 00000000)
  202. Linux version 2.4.2_hhl20 (jfd@atlantis) (gcc version 2.95.2 19991024 (release)) #597 Wed Sep 5 23:23:23 PDT 2001
  203. cpu0: MPC8240/KAHLUA : MOUSSE Platform : 64MB RAM: MPLD Rev. 7f
  204. Sandpoint port (C) 2000, 2001 MontaVista Software, Inc. (source@mvista.com)
  205. IP PNP: 802.3 Ethernet Address=<0:0:10:20:30:44>
  206. NOTICE: mounting root file system via NFS
  207. On node 0 totalpages: 16384
  208. zone(0): 16384 pages.
  209. zone(1): 0 pages.
  210. zone(2): 0 pages.
  211. time_init: decrementer frequency = 16.665914 MHz
  212. time_init: MPC8240 PCI Bus frequency = 33.331828 MHz
  213. Calibrating delay loop... 133.12 BogoMIPS
  214. Memory: 62436k available (1336k kernel code, 500k data, 88k init, 0k highmem)
  215. Dentry-cache hash table entries: 8192 (order: 4, 65536 bytes)
  216. Buffer-cache hash table entries: 4096 (order: 2, 16384 bytes)
  217. Page-cache hash table entries: 16384 (order: 4, 65536 bytes)
  218. Inode-cache hash table entries: 4096 (order: 3, 32768 bytes)
  219. POSIX conformance testing by UNIFIX
  220. PCI: Probing PCI hardware
  221. Linux NET4.0 for Linux 2.4
  222. Based upon Swansea University Computer Society NET3.039
  223. Initializing RT netlink socket
  224. Starting kswapd v1.8
  225. pty: 256 Unix98 ptys configured
  226. block: queued sectors max/low 41394kB/13798kB, 128 slots per queue
  227. Uniform Multi-Platform E-IDE driver Revision: 6.31
  228. ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
  229. PDC20262: IDE controller on PCI bus 00 dev 70
  230. PDC20262: chipset revision 1
  231. PDC20262: not 100% native mode: will probe irqs later
  232. PDC20262: ROM enabled at 0x000d0000
  233. PDC20262: (U)DMA Burst Bit DISABLED Primary PCI Mode Secondary PCI Mode.
  234. PDC20262: FORCING BURST BIT 0x00 -> 0x01 ACTIVE
  235. PDC20262: irq=3 dev->irq=3
  236. ide0: BM-DMA at 0xbfff00-0xbfff07, BIOS settings: hda:DMA, hdb:DMA
  237. ide1: BM-DMA at 0xbfff08-0xbfff0f, BIOS settings: hdc:pio, hdd:pio
  238. hda: WDC WD300AB-00BVA0, ATA DISK drive
  239. hdc: SONY CD-RW CRX160E, ATAPI CD/DVD-ROM drive
  240. ide0 at 0xbfff78-0xbfff7f,0xbfff76 on irq 3
  241. ide1 at 0xbfff68-0xbfff6f,0xbfff66 on irq 3
  242. hda: 58633344 sectors (30020 MB) w/2048KiB Cache, CHS=58168/16/63, UDMA(66)
  243. hdc: ATAPI 32X CD-ROM CD-R/RW drive, 4096kB Cache
  244. Uniform CD-ROM driver Revision: 3.12
  245. Partition check:
  246. /dev/ide/host0/bus0/target0/lun0: p1 p2
  247. hd: unable to get major 3 for hard disk
  248. udf: registering filesystem
  249. loop: loaded (max 8 devices)
  250. Serial driver version 5.02 (2000-08-09) with MANY_PORTS SHARE_IRQ SERIAL_PCI enabled
  251. ttyS00 at 0xffe08080 (irq = 4) is a ST16650
  252. Linux Tulip driver version 0.9.13a (January 20, 2001)
  253. eth0: Digital DS21143 Tulip rev 65 at 0xbfff80, EEPROM not present, 00:00:10:20:30:44, IRQ 1.
  254. eth0: MII transceiver #0 config 3000 status 7829 advertising 01e1.
  255. NET4: Linux TCP/IP 1.0 for NET4.0
  256. IP Protocols: ICMP, UDP, TCP
  257. IP: routing cache hash table of 512 buckets, 4Kbytes
  258. TCP: Hash tables configured (established 4096 bind 4096)
  259. NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
  260. devfs: v0.102 (20000622) Richard Gooch (rgooch@atnf.csiro.au)
  261. devfs: boot_options: 0x0
  262. VFS: Mounted root (nfs filesystem).
  263. Mounted devfs on /dev
  264. Freeing unused kernel memory: 88k init 4k openfirmware
  265. eth0: Setting full-duplex based on MII#0 link partner capability of 45e1.
  266. INIT: version 2.78 booting
  267. INIT: Entering runlevel: 2
  268. Welcome to Linux/PPC
  269. MPC8240/MOUSSE
  270. mousse login: root
  271. Password:
  272. PAM_unix[13]: (login) session opened for user root by LOGIN(uid=0)
  273. Last login: Thu Sep 6 00:16:51 2001 on console
  274. Welcome to Linux/PPC
  275. MPC8240/MOUSSE
  276. mousse#