I have the same memory issues on one of my plugs.
I cant get the diagnostics to run when I set run_diag to yes though...
Marvell>> nand bad
Device 0 bad blocks:
Marvell>>
__ __ _ _
| \/ | __ _ _ ____ _____| | |
| |\/| |/ _` | '__\ \ / / _ \ | |
| | | | (_| | | \ V / __/ | |
|_| |_|\__,_|_| \_/ \___|_|_|
_ _ ____ _
| | | | | __ ) ___ ___ | |_
| | | |___| _ \ / _ \ / _ \| __|
| |_| |___| |_) | (_) | (_) | |_
\___/ |____/ \___/ \___/ \__|
** MARVELL BOARD: SHEEVA PLUG LE
U-Boot 1.1.4 (Apr 29 2009 - 13:10:05) Marvell version: 3.4.16
U-Boot code: 00600000 -> 0067FFF0 BSS: -> 006CF100
Soc: 88F6281 A0 (DDR2)
CPU running @ 1200Mhz L2 running @ 400Mhz
SysClock = 400Mhz , TClock = 200Mhz
DRAM CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6
DRAM CS[0] base 0x00000000 size 256MB
DRAM CS[1] base 0x10000000 size 256MB
DRAM Total size 512MB 16bit width
Flash: 0 kB
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
NAND:nand_bbt: ECC error while reading bad block table
512 MB
CPU : Marvell Feroceon (Rev 1)
Streaming disabled
Write allocate disabled
USB 0: host mode
PEX 0: interface detected no Link.
Net: egiga0 [PRIME], egiga1
Hit any key to stop autoboot: 0
Marvell>> nand bad
Device 0 bad blocks:
Marvell>>
I double checked my environment before resetting
Marvell>> printenv
baudrate=115200
loads_echo=0
rootpath=/mnt/ARM_FS/
netmask=255.255.255.0
CASset=min
MALLOC_len=1
ethprime=egiga0
bootargs_end=:::DB88FXX81:eth0:none
image_name=uImage
standalone=fsload 0x2000000 $(image_name);setenv bootargs $(console) root=/dev/m
tdblock0 rw ip=$(ipaddr):$(serverip)$(bootargs_end) $(mvPhoneConfig); bootm 0x20
00000;
ethaddr=00:50:43:e4:06:26
ethmtu=1500
mvPhoneConfig=mv_phone_config=dev0:fxs,dev1:fxs
mvNetConfig=mv_net_config=(00:11:88:0f:62:81,0:1:2:3),mtu=1500
usb0Mode=host
yuk_ethaddr=00:00:00:EE:51:81
nandEcc=1bit
netretry=no
rcvrip=169.254.100.100
loadaddr=0x02000000
autoload=no
ethact=egiga0
serverip=192.168.1.3
ipaddr=192.168.1.1
bootargs_console=console=ttyS0,115200
bootargs_root=root=/dev/sda1 waitforroot=10 rootfs=ext3
bootcmd_usb=ext2load usb 0:1 0x0800000 /uinitrd; ext2load usb 0:1 0x400000 /uIma
ge
bootcmd=usb start; setenv bootargs $(bootargs_console) $(bootargs_root); run boo
tcmd_usb ; bootm 0x400000 0x0800000 ; reset
run_diag=yes
stdin=serial
stdout=serial
stderr=serial
console=console=ttyS0,115200 mtdparts=nand_mtd:0x100000@0(uboot)ro,0x0@0x100000(
uImage),0x1ff00000@0x100000(rootfs)rw
mainlineLinux=no
enaMonExt=no
enaCpuStream=no
enaWrAllo=no
pexMode=RC
disL2Cache=no
setL2CacheWT=yes
disL2Prefetch=yes
enaICPref=yes
enaDCPref=yes
sata_dma_mode=yes
netbsd_en=no
vxworks_en=no
bootdelay=3
disaMvPnp=no
enaAutoRecovery=yes
Environment size: 1371/131068 bytes
Marvell>> reset
How do I get my plug to rescan memory for bad blocks?
When I boot from a SD card and try to mount /dev/mtdblock2, I get the scan and then:
[ 754.523860] Empty flash at 0x04a4fffc ends at 0x04a50000
[ 754.529199] CLEANMARKER node found at 0x04a50000 has totlen 0xc != normal 0x0
[ 754.537467] CLEANMARKER node found at 0x04a60000 has totlen 0xc != normal 0x0
[ 754.582444] Empty flash at 0x04a6fffc ends at 0x04a70000
[ 754.587788] CLEANMARKER node found at 0x04a70000 has totlen 0xc != normal 0x0
[ 754.596218] CLEANMARKER node found at 0x04a80000 has totlen 0xc != normal 0x0
[ 754.629328] CLEANMARKER node found at 0x04a90000 has totlen 0xc != normal 0x0
[ 754.639567] CLEANMARKER node found at 0x04aa0000 has totlen 0xc != normal 0x0
[ 757.404109] uncorrectable error :
[ 757.407361] uncorrectable error :
[ 757.410788] uncorrectable error :
[ 757.414229] uncorrectable error :
[ 757.417655]
mtd->read(0x400 bytes from 0x1fae0000) returned ECC error[ 757.462907] JFFS2 notice: (1125) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
root@sheeva:/#