Welcome! Log In Create A New Profile

Advanced

ix4-200d scsi boot ext3 Bad Data CRC

Posted by nikolarobottesla 
ix4-200d scsi boot ext3 Bad Data CRC
June 30, 2018 09:11AM
First off USB boot works fine. I copied the ext3 rootfs partition from the USB drive to a sata disk. When I try to boot with the below setenv settings I get "Verifying Checksum ... Bad Data CRC" error when loading the kernel image "Linux-4.16.1-kirkwood-tld-1" Is there something I'm missing in the below setenv stuff? or should I try something else? I tried copying the partition twice. Thanks

This is the u-boot setenv stuff:
setenv hdd_make_boot_args 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=orion_nand:$(uboot_size)@$(uboot_start)(uboot),$(env_size)@$(env_start)(env),$(kernel_size)@$(kernel_start)(zImage),$(initrd_size)@$(initrd_start)(initrd),32m@0x0(flash) earlyprintk=serial' 
setenv load_initrd 'ext2load scsi 0:2 0x2100000 /boot/uInitrd' 
setenv load_uimage 'ext2load scsi 0:2 0x40000 /boot/uImage' 
setenv hdd_boot 'scsi start; run load_uimage; run load_initrd; bootm 0x40000 0x2100000' 
setenv bootcmd 'run hdd_make_boot_args ; run hdd_boot; reset' 
boot


The bootlog of trying to boot the above is attached
The bootlog of USB boot is also attached

-------
Please use code tags posting log.



Edited 3 time(s). Last edit at 06/30/2018 04:49PM by bodhi.
Attachments:
open | download - 20180630 bootlog, trying to boot from scsi (3.3 KB)
open | download - 20180630 bootlog, usb boot (26.2 KB)
Re: ix4-200d scsi boot ext3 Bad Data CRC
June 30, 2018 04:53PM
nikolarobottesla,

> When I try to boot with the below setenv
> settings I get "Verifying Checksum ... Bad Data
> CRC" error when loading the kernel image
> "Linux-4.16.1-kirkwood-tld-1" Is there something
> I'm missing in the below setenv stuff?

The envs look OK.

Usually this CRCR error indicates that your rootfs is corrupted. You could post the log showing how you copied the rootfs from USB to HDD (copy/paste your terminal session), and I will doublecheck it for your.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: ix4-200d scsi boot ext3 Bad Data CRC
July 02, 2018 12:35PM
I used GUI gparted on Ubuntu 18.04 to copy and paste the partition. I did the same copy paste from flash drive to flash drive and when pasted to a flash drive it boots without error. Could it be something with U-boot? It seems to load the images instantly from the sata hard drive vs the few seconds it takes from USB flash media. Next i will try a USB to sata adapter with the sata drive instead of the built in controller.
Re: ix4-200d scsi boot ext3 Bad Data CRC
July 02, 2018 05:29PM
nikolarobottesla,

> I used GUI gparted on Ubuntu 18.04 to copy and
> paste the partition. I did the same copy paste
> from flash drive to flash drive and when pasted to
> a flash drive it boots without error.

1. You need to be root while copying the rootfs. If you are not the root user, then the rootfs will not work. It really does not matter whether it boots.

2. Copying the partition like you did from USB to HDD is not the right way to clone the rootfs. See the Wiki thread for instruction:


Quote

Backup and Cloning rootfs

CrashPlan 4.3.0
Backup/Restore rootfs using tar command
Adjust udev rules after cloning rootfs
Stock Pogoplug rootfs
How to clone a rootfs from one Kirkwood box to another: Step 1 and Step 2
How to clone SATA rootfs to USB rootfs


> Could it be
> something with U-boot?

Not u-boot. The CRC checksum error indicated that the image is corrupted.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 1 time(s). Last edit at 07/02/2018 05:30PM by bodhi.
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: