Welcome! Log In Create A New Profile

Advanced

Dockstar: bad block: it is save to flash uboot?

Posted by lutz.willek 
Dockstar: bad block: it is save to flash uboot?
March 26, 2017 07:34PM
Hey there,

i want to flash one of my dockstar devices with newer u-boot, as described in http://forum.doozan.com/read.php?3,12381.

But demesg says it found a bad block, so i want ask if its save to flash u-boot? If not, what's the workaround?
(it's not important to preserve the original uboot or kernel)

Regards Lutz

Some snippets from the serial console: (boot log)
U-Boot 2010.06-00695-gbd23130-dirty (Aug 30 2010 - 23:04:56)
Marvell-Dockstar/Pogoplug by Jeff Doozan

SoC:   Kirkwood 88F6281_A0
DRAM:  128 MiB
NAND:  256 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
[...]
### JFFS2 loading 'uboot-original-mtd0.kwb' to 0x800000
Scanning JFFS2 FS: ......... done.
### JFFS2 load complete: 524288 bytes loaded to 0x800000
## Starting application at 0x00800200 ...


U-Boot 1.1.4 (Jul 16 2009 - 21:02:16) Cloud Engines (3.4.16)

U-Boot code: 00600000 -> 0067FFF0  BSS: -> 00690D60

Soc: 88F6281 A0 (DDR2)
[...]
Reading data from 0x3ff800 -- 100% complete.
 3145728 bytes read: OK
## Booting image at 00800000 ...
   Image Name:   Linux-2.6.22.18
   Created:      2009-08-31  23:31:05 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1976384 Bytes =  1.9 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK

Starting kernel ...
[...]
[    1.050000] Scanning device for bad blocks
[    1.140000] Bad eraseblock 1865 at 0x0e920000
[    1.150000] Using static partition definition

[    1.160000] Creating 4 MTD partitions on "nand_mtd":
[    1.160000] 0x00000000-0x00100000 : "u-boot"
[    1.170000] 0x00100000-0x00500000 : "uImage"
[    1.170000] 0x00500000-0x02500000 : "root"
[    1.180000] 0x02500000-0x10000000 : "data"
[...]
starting pid 333, tty '': '/bin/sh'
-sh-3.2# dmesg | egrep -i 'bad|flash'
[    0.240000] NFLASH_CS ....base fa000000, size   2MB
[    1.050000] Scanning device for bad blocks
[    1.140000] Bad eraseblock 1865 at 0x0e920000
[    7.870000] Empty flash at 0x00de8e44 ends at 0x00de9000
-sh-3.2# uname -a
Linux Pogoplug 2.6.22.18 #57 Mon Aug 31 16:31:01 PDT 2009 armv5tejl unknown
-sh-3.2# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00100000 00020000 "u-boot"
mtd1: 00400000 00020000 "uImage"
mtd2: 02000000 00020000 "root"
mtd3: 0db00000 00020000 "data"
-sh-3.2#
Re: Dockstar: bad block: it is save to flash uboot?
March 26, 2017 10:01PM
[    1.140000] Bad eraseblock 1865 at 0x0e920000


This is far away from mtd0, so it is safe to flash new u-boot.

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

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: