u-boot-at91 ramdisk error

This forum is for users of Microchip MPUs and who are interested in using Linux OS.

Moderator: nferre

GauravPathak
Posts: 2
Joined: Wed May 20, 2015 2:10 pm

u-boot-at91 ramdisk error

Wed May 20, 2015 2:54 pm

Hello,
I have downloaded u-boot from https://github.com/linux4sam/u-boot-at9 ... 15.01-at91 by running command

Code: Select all

git clone https://github.com/linux4sam/u-boot-at91.git
.
I am trying to boot from RAM. I have kernel image uImage, a dtb.bin and initrd.cpio. I am using sam-ba utility for transferring these images to RAM, uImage at address 0x22000000, initrd.cpio at address 0x23000000 and dtb.bin at address 0x21000000. When I run

Code: Select all

iminfo 23000000
I get following error

Code: Select all

Checking Image at 23000000 ...
   Legacy image found
   Image Name:   rootfs
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    29173464 Bytes = 27.8 MiB
   Load Address: 23000000
   Entry Point:  23000000
   Verifying Checksum ...    Bad Data CRC
. But when I load a ramdisk of smaller size say 2.5MB or 3.5MB everything works ok. How can I make u-boot to verify checksum of ramdisk greater than 4MB so that I can boot my board successfully.
blue_z
Location: USA
Posts: 1547
Joined: Thu Apr 19, 2007 10:15 pm

Re: u-boot-at91 ramdisk error

Fri May 22, 2015 4:09 am

GauravPathak wrote:But when I load a ramdisk of smaller size say 2.5MB or 3.5MB everything works ok. How can I make u-boot to verify checksum of ramdisk greater than 4MB so that I can boot my board successfully.
Ramdisk is deprecated, and initramfs is preferred, so why are you using a ramdisk?

Instead of assuming that there's a length issue, try testing with a lower load address.

Regards
GauravPathak
Posts: 2
Joined: Wed May 20, 2015 2:10 pm

Re: u-boot-at91 ramdisk error

Tue May 26, 2015 6:10 am

Hi,
I tried a different load address as suggested by you and the board successfully booted. I tried the address 0x24E00000.
But how can I find out why the address 0x23000000 is not working for ramdisk, why U-boot is giving checksum error for this address and not for a higher address.

Return to “Linux”

Who is online

Users browsing this forum: No registered users and 2 guests