Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    CRC errors when trying to boot a flash image


    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-

    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:
    	if [ -f $SRC ]; then
       	 printf "Kernel source in: %s\n" $SRC 
       	 printf "Error: No kernel source in : %s\n" $SRC
    	 exit 0
    	mkimage -T kernel -C none -a 0x8000 -e 0x8000 -d $SRC scp_uimage
    	echo "Destination: scp_zimage"
    And the above script is called with:

    create_flash_image kernel linux-2.6.24/
    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.

    Kind regards


  2. #2
    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.

    Last edited by AJEllisuk; 09-12-2012 at 10:17 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts