Welcome! Log In Create A New Profile

Advanced

Hello, pbs with Uboot/Nand... :(

Posted by troupier 
Hello, pbs with Uboot/Nand... :(
March 01, 2013 04:23AM
First of all, thanks to all contributors for helping people !!

Then.. sorry for my scholar english (and maybe incorrect) I'm french ;)

ok let's talks about my problem(s) :

I've two GFH. One is fine, running Arch.. The second one is running.. almost..

I've installed a jeff's u-boot through the script.

I can boot from USB on the Rescue System. (thanks !)

But when I want to upgrade the Uboot :

nandwrite /dev/mtd1 uImage-mtd1.img
Writing data to block 0 at offset 0x0
Bad block at 0, 1 block(s) from 0 will be skipped
Writing data to block 1 at offset 0x20000
Bad block at 20000, 1 block(s) from 20000 will be skipped
Writing data to block 2 at offset 0x40000
Bad block at 40000, 1 block(s) from 40000 will be skipped
Writing data to block 3 at offset 0x60000
Bad block at 60000, 1 block(s) from 60000 will be skipped
Writing data to block 4 at offset 0x80000
Bad block at 80000, 1 block(s) from 80000 will be skipped
Writing data to block 5 at offset 0xa0000
Bad block at a0000, 1 block(s) from a0000 will be skipped
Writing data to block 6 at offset 0xc0000
Bad block at c0000, 1 block(s) from c0000 will be skipped
Writing data to block 7 at offset 0xe0000
Bad block at e0000, 1 block(s) from e0000 will be skipped
Writing data to block 8 at offset 0x100000
Bad block at 100000, 1 block(s) from 100000 will be skipped
Writing data to block 9 at offset 0x120000
Bad block at 120000, 1 block(s) from 120000 will be skipped
Writing data to block 10 at offset 0x140000
Bad block at 140000, 1 block(s) from 140000 will be skipped
Writing data to block 11 at offset 0x160000
Bad block at 160000, 1 block(s) from 160000 will be skipped
Writing data to block 12 at offset 0x180000
Bad block at 180000, 1 block(s) from 180000 will be skipped
Writing data to block 13 at offset 0x1a0000
Bad block at 1a0000, 1 block(s) from 1a0000 will be skipped
Writing data to block 14 at offset 0x1c0000
Bad block at 1c0000, 1 block(s) from 1c0000 will be skipped
Writing data to block 15 at offset 0x1e0000
Bad block at 1e0000, 1 block(s) from 1e0000 will be skipped
Writing data to block 16 at offset 0x200000
Bad block at 200000, 1 block(s) from 200000 will be skipped
Writing data to block 17 at offset 0x220000
Bad block at 220000, 1 block(s) from 220000 will be skipped
Writing data to block 18 at offset 0x240000
Bad block at 240000, 1 block(s) from 240000 will be skipped
Writing data to block 19 at offset 0x260000
Bad block at 260000, 1 block(s) from 260000 will be skipped
Writing data to block 20 at offset 0x280000
Bad block at 280000, 1 block(s) from 280000 will be skipped
Writing data to block 21 at offset 0x2a0000
Bad block at 2a0000, 1 block(s) from 2a0000 will be skipped
Writing data to block 22 at offset 0x2c0000
Bad block at 2c0000, 1 block(s) from 2c0000 will be skipped
Writing data to block 23 at offset 0x2e0000
Bad block at 2e0000, 1 block(s) from 2e0000 will be skipped
Writing data to block 24 at offset 0x300000
Bad block at 300000, 1 block(s) from 300000 will be skipped
Writing data to block 25 at offset 0x320000
Bad block at 320000, 1 block(s) from 320000 will be skipped
Writing data to block 26 at offset 0x340000
Bad block at 340000, 1 block(s) from 340000 will be skipped
Writing data to block 27 at offset 0x360000
Bad block at 360000, 1 block(s) from 360000 will be skipped
Writing data to block 28 at offset 0x380000
Bad block at 380000, 1 block(s) from 380000 will be skipped
Writing data to block 29 at offset 0x3a0000
Bad block at 3a0000, 1 block(s) from 3a0000 will be skipped
Writing data to block 30 at offset 0x3c0000
Bad block at 3c0000, 1 block(s) from 3c0000 will be skipped
Writing data to block 31 at offset 0x3e0000
Bad block at 3e0000, 1 block(s) from 3e0000 will be skipped
Writing data to block 32 at offset 0x400000
ioctl(MEMGETBADBLOCK): Invalid argument
Data was only partially written due to error
: Invalid argument

nandtest /dev/mtd0
ECC corrections: 0
ECC failures   : 0
Bad blocks     : 8
BBT blocks     : 0
Bad block at 0x00000000
Bad block at 0x00020000
Bad block at 0x00040000
Bad block at 0x00060000
Bad block at 0x00080000
Bad block at 0x000a0000
Bad block at 0x000c0000
Bad block at 0x000e0000

Finished pass 1 successfully

try everything i've found to clean this and had a proper uboot..

the GFH boots on archlinux, rescue system, get a DHCP address, be accessed through ssh but i can't see anything on netconsole..

Serial adapter is on the way..

Any ideas ?



Edited 1 time(s). Last edit at 03/01/2013 04:24AM by troupier.
Re: Hello, pbs with Uboot/Nand... :(
March 01, 2013 08:32PM
To trouble shoot netconsole problem, boot into the Rescue system, and run

fw_printenv

Pls post the output here.
Re: Hello, pbs with Uboot/Nand... :(
March 02, 2013 06:33AM
Without surprise :'( :


fw_printenv :

Too few good blocks within range

Trying to upgrade/install Uboot :

Erase Total 4 Units
Performing Flash Erase of length 131072 at offset 0x380000
MTD Erase failure: Input/output error
Writing data to block 28 at offset 0x380000
Bad block at 380000, 1 block(s) from 380000 will be skipped
Writing data to block 29 at offset 0x3a0000
Bad block at 3a0000, 1 block(s) from 3a0000 will be skipped
Writing data to block 30 at offset 0x3c0000
Bad block at 3c0000, 1 block(s) from 3c0000 will be skipped
Writing data to block 31 at offset 0x3e0000
Bad block at 3e0000, 1 block(s) from 3e0000 will be skipped
Writing data to block 32 at offset 0x400000
ioctl(MEMGETBADBLOCK): Invalid argument
Data was only partially written due to error
: Invalid argument
UBIT:bl: u-boot checksum did not match.


Using Jeff's script :

cd /tmp
wget http://projects.doozan.com/uboot/install_uboot_mtd0.sh
chmod +x install_uboot_mtd0.sh
./install_uboot_mtd0.sh --no-uboot-check



100%[======================================>] 524,288      304KB/s   in 1.7s

2013-03-02 14:22:04 (304 KB/s) - â/tmp/uboot.mtd0.kwbâ saved [524288/524288]

Erase Total 4 Units
Performing Flash Erase of length 131072 at offset 0x0
MTD Erase failure: Input/output error
Writing data to block 0 at offset 0x0
Bad block at 0, 1 block(s) from 0 will be skipped
Writing data to block 1 at offset 0x20000
Bad block at 20000, 1 block(s) from 20000 will be skipped
Writing data to block 2 at offset 0x40000
Bad block at 40000, 1 block(s) from 40000 will be skipped
Writing data to block 3 at offset 0x60000
Bad block at 60000, 1 block(s) from 60000 will be skipped
Writing data to block 4 at offset 0x80000
Bad block at 80000, 1 block(s) from 80000 will be skipped
Writing data to block 5 at offset 0xa0000
Bad block at a0000, 1 block(s) from a0000 will be skipped
Writing data to block 6 at offset 0xc0000
Bad block at c0000, 1 block(s) from c0000 will be skipped
Writing data to block 7 at offset 0xe0000
Bad block at e0000, 1 block(s) from e0000 will be skipped
Writing data to block 8 at offset 0x100000
ioctl(MEMGETBADBLOCK): Invalid argument
Data was only partially written due to error
: Invalid argument
Block size 131072, page size 2048, OOB size 64
Dumping data starting at 0x00000000 and ending at 0x00080000...
## Verifying new uBoot...
--2013-03-02 14:22:05--  http://download.doozan.com/uboot/files/uboot/uboot.mtd0.goflexhome.davygravy-2012-04-19.kwb.md5
Resolving download.doozan.com (download.doozan.com)... 50.116.34.13
Connecting to download.doozan.com (download.doozan.com)|50.116.34.13|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: â/tmp/uboot.mtd0.kwb.md5â

    [ <=>                                   ] 32          --.-K/s   in 0s

2013-03-02 14:22:05 (332 KB/s) - â/tmp/uboot.mtd0.kwb.md5â saved [32]

##
##
## VERIFICATION FAILED!
##
## uBoot was not properly installed to mtd0.
##
##
## YOUR DEVICE MAY BE IN AN UNUSABLE STATE.
## DO NOT REBOOT OR POWER OFF YOUR DEVICE
##
##
## Make a backup of /tmp/uboot-mtd0-dump someplace safe and
## then re-run this installer.

Netconsole parameters (on LMDE VM..) :

sudo ifconfig eth0:0 10.10.10.5 
sudo ifconfig eth0:1 10.10.10.4
sudo ifconfig eth0:2 10.10.10.2

nc -l -u 6666 &
nc -u 10.10.10.6 6666

no messages.. :(



Edited 3 time(s). Last edit at 03/02/2013 07:26AM by troupier.
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: