I'm Still trying to get Linux running on a G20-EK board. [It
really shouldn't be so hard]. I had to set up a windows box
since the Linux version of SAM-BA is broken, but now I've got
UBoot running from nand-flash, and I'm on to the next step:
I'm trying to boot a pre-built kernel image from linux4sam.com,
and no matter what pre-built image I try, I get a crc error
when the kernel is uncompressing itself. UBoot seems happy
with the uimage checksum, so I'm pretty sure the file is
uncorrupted.
Here's what happens:
Code:
U-Boot 1.3.4 (Dec 12 2008 - 12:18:30)
DRAM: 64 MB
NAND: 256 MiB
In: serial
Out: serial
Err: serial
Net: macb0
macb0: Starting autonegotiation...
macb0: Autonegotiation complete
macb0: link up, 10Mbps half-duplex (lpa: 0x0021)
Hit any key to stop autoboot: 0
U-Boot> printenv
bootargs=console=ttyS0,115200 root=/dev/mtdblock5 mtdparts=at91_nand:128k(bootstrap)ro,256k(uboot)ro,128k(env1)ro,128k(env2)ro,2M(linux),-(root) rw rootfstype=jffs2
bootcmd=nand read 0x22000000 0xA0000 0x200000; bootm
bootdelay=3
baudrate=115200
ethact=macb0
ethaddr=10.0.0.99/8
ipaddr=10.0.0.99
serverip=10.0.0.1
stdin=serial
stdout=serial
stderr=serial
Environment size: 355/131067 bytes
U-Boot> tftp 22000000 G20/linux-2.6.27-at91-exp-at91sam9g20ek.bin
macb0: link up, 10Mbps half-duplex (lpa: 0x0021)
Using macb0 device
TFTP from server 10.0.0.1; our IP address is 10.0.0.99
Filename 'G20/linux-2.6.27-at91-exp-at91sam9g20ek.bin'.
Load address: 0x22000000
Loading: #################################################################
#################################################################
#################################################################
#################################################################
########################################
done
Bytes transferred = 1531808 (175fa0 hex)
U-Boot> bootm
## Booting kernel from Legacy Image at 22000000 ...
Image Name: linux-2.6
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1531744 Bytes = 1.5 MB
Load Address: 20008000
Entry Point: 20008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK
Starting kernel ...
Uncompressing Linux...................................................................................................
crc error
-- System halted
Everything I've Googled so far indicates that the above message
means that the zImage decompression code has found a problem
with the data its trying to uncompress. Everybody says this is
usually caused by a truncated or corrupted zImage file.
However, uboot has verified the uImage encapsulation is OK. I
think that means that the zImage file that was given to mkimage
(presumably by somebody at Atmel) was already broken.
Am I doing something wrong? I've put the pre-built jffs rootfs
into flash at 0x400000, but I don't think the kernel has even
gotten to the point where it's looking for the root filesystem.
I've tried about a half dozen different pre-built kernel images
downloaded from linux4sam.com, and they all do the same thing.