u-boot & uImage on M5282LITE
Allon Stern <[email protected]>
| Newsgroups | gmane.comp.hardware.motorola.microcontrollers.coldfire |
|---|---|
| Message-ID | <[email protected]> |
I'm starting up development for a project based on the 5282 CPU, so
I'm starting with the M5282LITE board; I have u-boot built for it,
loading out of the on-chip flash so I can flop between u-boot and
dBUG with the EXT_BOOT jumper.
I'm building a stock 2.6.19_uc1 kernel.
What I'm trying to do is NFS mount a root filesystem so I can do
development easily, since our final board will have far more flash
than the LITE board. To this end, I'd like to pass arguments to the
kernel.
Okay, so I can boot uClinux by loading the linux.bin file and go'ing
to it, but then I get the default command line args. No good for NFS
booting unless I compile them in; I like u-boot.
So I tried
mkimage -A m68k -O linux -T kernel -d linux.bin.gz -a 0x10000 -e
0x10000 -C gzip image.bin
Then I "bootp" to get the file loaded, and "bootm" to start booting.
U-boot verifies the checksum, then uncompresses the kernel image. I
get the following error:
-> bootm
## Booting image at 00010000 ...
Image Name:
Image Type: M68K Linux Kernel Image (gzip compressed)
Data Size: 650983 Bytes = 635.7 kB
Load Address: 00010000
Entry Point: 00010000
Verifying Checksum ... OK
Uncompressing Kernel Image ... Error: inflate() returned -3
GUNZIP ERROR - must RESET board to recover
Okay, let's try it without compression. For kicks, we turn on
debugging in u-boot:
mkimage -A m68k -O linux -T kernel -d linux.bin -a 0x10000 -e 0x10000
-C none image.bin
-> bootm
## Booting image at 00010000 ...
Image Name:
Image Type: M68K Linux Kernel Image (uncompressed)
Data Size: 1323008 Bytes = 1.3 MB
Load Address: 00010000
Entry Point: 00010000
Verifying Checksum ... OK
XIP Kernel Image ... OK
## Current stack ends at 0x00F8EAF4 => set upper limit to 0x00F8E2F0
## cmdline at 0x00F8E1F0 ... 0x00F8E20E
memstart = 0x00000000
memsize = 0x01000000
flashstart = 0xFFE00000
flashsize = 0x00200000
flashoffset = 0x00000000
sramstart = 0x20000000
sramsize = 0x00010000
mbar = 0x40000000
busfreq = 64 MHz
ethaddr = 00:E0:0C:BC:E5:60
ip_addr = 10.18.12.1
baudrate = 19200 bps
No initrd
## Transferring control to Linux (at address 00010000) ...
*** Unexpected exception ***
Vector Number: 4 Format: 04 Fault Status: 0
PC: 00010006 SR: 00002704 SP: 00f8ea90
D0: 00000000 D1: 0000000a D2: 00000000 D3: 00f8e1b0
D4: 00f8e1f0 D5: 00f8e2f0 D6: 00f8eee0 D7: 00f9ef90
A0: 00010000 A1: 00fec884 A2: 00fff6c6 A3: 0001003c
A4: 00000000 A5: 00ff75e8 A6: 00f8eb28
*** Please Reset Board! ***
Dang.
What am I getting wrong here? Am I approaching this problem the wrong
way? This has got to be simple and I'm missing something basic......
-
allon