Find the answer to your Linux question:
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.
  1. #1
    Just 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:
    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"
    And the above script is called with:

    Code:
    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

    Andrew

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

    Andrew
    Last edited by AJEllisuk; 09-12-2012 at 11: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
  •