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