Results 1 to 2 of 2
Hi,
Previously I have been using a flash memory device on my board which had 256k sector size, and I could boot it although I had problems with JFFS2 not ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 09-07-2012 #1Just Joined!
- Join Date
- Aug 2012
- Posts
- 39
CRC errors when trying to boot a flash image
Hi,
Previously I have been using a flash memory device on my board which had 256k sector size, and I could boot it although I had problems with JFFS2 not liking the flash chip (please see my other thread)
I am now using a smaller device but when I try and boot my build of the kernel I get the following display:
Booting image at 00060000 ...
## Copy image from flash 00060000 to ram 00200000 ...
Image Name: Linux-2.6.24.4
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1759236 Bytes = 1.7 MB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... Bad Data CRC
My script for building the kernel image is:
And the above script is called with:Code:SRC=$2/arch/arm/boot/uImage if [ -f $SRC ]; then printf "Kernel source in: %s\n" $SRC else printf "Error: No kernel source in : %s\n" $SRC exit 0 fi mkimage -T kernel -C none -a 0x8000 -e 0x8000 -d $SRC scp_uimage echo "Destination: scp_zimage"
Can someone please tell me what I need to do to make sure that my kernel image is built so that that it will work with the smaller sector size and not fail the CRC.Code:create_flash_image kernel linux-2.6.24/
Kind regards
Andrew
- 09-12-2012 #2Just Joined!
- Join Date
- Aug 2012
- Posts
- 39
Hi, I fixed the problem. The kernel image was too large for the amount of flash allocated.
On a device with 256k sectors, u-boot and linux allocated 8 * 256k sectors, ie approx 2MB
On a devive with 64k sectors 26*64k sectors were allocated ie approx 1.7Mb which was slightly too small for the kernel to fit in.
AndrewLast edited by AJEllisuk; 09-12-2012 at 10:17 AM.



