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