Welcome! Log In Create A New Profile

Advanced

Netgear Stora MS2110 rootfs Bad Magic Number

Posted by Teddy 
Re: Netgear Stora MS2110 rootfs Bad Magic Number
June 15, 2020 02:22AM
Thanks Bodhi - I really appreciate your persistence. Unfortunately the link in Erik's March 2017 posting (stora.com) is no longer active. The nice Netgear people took the site down when they declared Stora EOL. So we're stuck again. I've PM'd Erik and Nick484 again to repeat my request for their help with the flashware file. In the meantime I'll keep searching and trying kwboot.

Regards, Paul
Re: Netgear Stora MS2110 rootfs Bad Magic Number
June 15, 2020 04:57AM
Paul,

See my last 2 posts above.

https://forum.doozan.com/read.php?2,102054,104604#msg-104604

(This is another appoach. We will try to run this mtd0 backup by chainloading it while uboot is running).

-bodhi
===========================
Forum Wiki
bodhi's corner



Edited 2 time(s). Last edit at 06/15/2020 05:51AM by bodhi.
Re: Netgear Stora MS2110 rootfs Bad Magic Number
June 15, 2020 08:30AM
Dear Bodhi

Sorry I missed the file attachment. Have now followed your instructions, but we are still being foiled by "bad partition". Here is the log:
Quote
Putty log
Bad Magic Number
Marvell>> usb reset
(Re)start USB...
USB: scanning bus for devices... 1 USB Device(s) found
scanning bus for storage devices... 0 Storage Device(s) found
Marvell>> ext2load usb 0:1 0x800000 /u-boot_mtd0
** Bad partition 1 **
Marvell>> go 0x800200
## Starting application at 0x00800200 ...
undefined instruction
pc : [<00800204>] lr : [<0062f700>]
sp : 005ff0d4 ip : 005fec64 fp : 005ff0f0
r10: 00000000 r9 : 00000000 r8 : 005fffcc
r7 : 005ff513 r6 : 00000002 r5 : 005ffd0c r4 : 00800200
r3 : 00000000 r2 : f1012000 r1 : 005ffd0c r0 : 00000001
Flags: nZCv IRQs off FIQs off Mode SVC_32
Resetting CPU ...


__ __ _ _
| \/ | __ _ _ ____ _____| | |
| |\/| |/ _` | '__\ \ / / _ \ | |
| | | | (_| | | \ V / __/ | |
|_| |_|\__,_|_| \_/ \___|_|_|
_ _ ____ _
| | | | | __ ) ___ ___ | |_
| | | |___| _ \ / _ \ / _ \| __|
| |_| |___| |_) | (_) | (_) | |_
\___/ |____/ \___/ \___/ \__|
** MARVELL BOARD: RD-88F6281A LE

U-Boot 1.1.4 (Sep 4 2009 - 09:36:11) Marvell version: 3.4.14

U-Boot code: 00600000 -> 0067FFF0 BSS: -> 006CEE60

Soc: 88F6281 A0 (DDR2)
CPU running @ 1000Mhz L2 running @ 333Mhz
SysClock = 333Mhz , TClock = 200Mhz

DRAM CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6
DRAM CS[0] base 0x00000000 size 64MB
DRAM CS[1] base 0x04000000 size 64MB
DRAM Total size 128MB 16bit width
Flash: 0 kB
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
NAND:256 MB
CRC in Flash: ffffffff, Calculated CRC: 619d86db
+++++++++++++++++++++++++++Checksum Error!++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++Checksum Error!++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++Checksum Error!++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++Checksum Error!++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++Checksum Error!++++++++++++++++++++++++++++++
## Error: environment overflow, "stdin" deleted
## Error: environment overflow, "stdout" deleted
## Error: environment overflow, "stderr" deleted

CPU : Marvell Feroceon (Rev 1)
## Error: environment overflow, "console" deleted
## Error: environment overflow, "mainlineLinux" deleted
## Error: environment overflow, "CASset" deleted
## Error: environment overflow, "enaMonExt" deleted
## Error: environment overflow, "enaCpuStream" deleted
## Error: environment overflow, "enaWrAllo" deleted
## Error: environment overflow, "pexMode" deleted
## Error: environment overflow, "disL2Cache" deleted
## Error: environment overflow, "setL2CacheWT" deleted
## Error: environment overflow, "disL2Prefetch" deleted
## Error: environment overflow, "enaICPref" deleted
## Error: environment overflow, "enaDCPref" deleted
## Error: environment overflow, "sata_dma_mode" deleted
## Error: environment overflow, "MALLOC_len" deleted
## Error: environment overflow, "ethprime" deleted
## Error: environment overflow, "netbsd_en" deleted
## Error: environment overflow, "vxworks_en" deleted
## Error: environment overflow, "bootargs_root" deleted
## Error: environment overflow, "bootargs_end" deleted
## Error: environment overflow, "image_name" deleted
## Error: environment overflow, "bootcmd" deleted
## Error: environment overflow, "standalone" deleted
## Error: environment overflow, "bootdelay" deleted
## Error: environment overflow, "disaMvPnp" deleted
## Error: environment overflow, "disaMvPnp" deleted
## Error: environment overflow, "ethaddr" deleted
## Error: environment overflow, "ethmtu" deleted
## Error: environment overflow, "eth1addr" deleted
## Error: environment overflow, "eth1mtu" deleted
## Error: environment overflow, "mvPhoneConfig" deleted
## Error: environment overflow, "mvNetConfig" deleted
## Error: environment overflow, "usb0Mode" deleted
## Error: environment overflow, "yuk_ethaddr" deleted
## Error: environment overflow, "nandEcc" deleted
## Error: environment overflow, "hddPowerCtrl" deleted
## Error: environment overflow, "netretry" deleted
## Error: environment overflow, "rcvrip" deleted
## Error: environment overflow, "loadaddr" deleted
## Error: environment overflow, "autoload" deleted
## Error: environment overflow, "enaAutoRecovery" deleted

Streaming disabled
Write allocate disabled

Module 0 is RGMII
Module 1 is TDM

USB 0: device mode
PEX 0: interface detected no Link.
Net: ## Error: environment overflow, "ethact" deleted
egiga0, egiga1## Error: environment overflow, "ethact" deleted

USB: scanning bus for devices... 2 USB Device(s) found
scanning bus for storage devices... 1 Storage Device(s) found
Trying to load image from USB flash drive using FAT FS
reading /flashware.img

** Unable to read "/flashware.img" from usb 0:1 **
Trying to load image from USB flash drive using ext2 FS partition 0
Failed to mount ext2 filesystem...
** Bad ext2 partition or disk - usb 0:0 **
Trying to load image from USB flash drive using ext2 FS partition 1

** Unable to read "/flashware.img" from usb 0:1 **
Couldn't load recovery image from USB flash drive, Trying network interface
Aquiring an IP address using DHCP...
## Error: environment overflow, "ethact" deleted
*** ERROR: `ethaddr' not set
## Error: environment overflow, "ethact" deleted
egiga1 no link
## Error: environment overflow, "ethact" deleted
## Error: environment overflow, "ethact" deleted
*** ERROR: `ethaddr' not set
## Error: environment overflow, "ethact" deleted
egiga1 no link
## Error: environment overflow, "ethact" deleted
## Error: environment overflow, "ethact" deleted
*** ERROR: `ethaddr' not set
## Error: environment overflow, "ethact" deleted
egiga1 no link
## Error: environment overflow, "ethact" deleted
Failed to retreive an IP address assuming default (<NULL>)!
Starting the Recovery process to retreive the file...
## Error: environment overflow, "ethact" deleted
*** ERROR: `ethaddr' not set
## Error: environment overflow, "ethact" deleted
egiga1 no link
## Error: environment overflow, "ethact" deleted
Failed
Power Button is pressed!
MPP Sel: 00000530, Data IN Enable: 00020058, Data In Polarity: 00000040, Data In: 00000011
Power Button is released!
MAC: 00:01:64:16:E5:EC, IP: 10.22.229.236
## Error: environment overflow, "ethaddr" deleted
## Error: environment overflow, "ipaddr" deleted
## Error: environment overflow, "serverip" deleted
## Error: environment overflow, "netmask" deleted
## Error: environment overflow, "image_name" deleted
## Error: environment overflow, "console" deleted
## Error: environment overflow, "bootargs_root" deleted
## Error: environment overflow, "rootpath" deleted
## Error: environment overflow, "ethact" deleted
*** ERROR: `serverip' not set
## Error: environment overflow, "bootargs" deleted
## Booting image at 00800000 ...
Bad Magic Number
Marvell>>

File /u-boot_mtd0 copied on 16GB SanDisk Cruzer Fit USB 2.0 Flash Drive which was formatted with "mkfs.ext3 -L "rootfs" /dev/sdb1" command, and verified.

Regards, Paul



Edited 2 time(s). Last edit at 06/15/2020 03:47PM by pdc78.
Re: Netgear Stora MS2110 rootfs Bad Magic Number
June 15, 2020 04:26PM
Paul,

Format the USB with FAT32. And put the file u-boot_mtd0 at the top folder as before. Don't attach the USB to the Stora just yet.

Power up, interrupt serial console, and attach the USB drive. And,

usb reset
usb part
fatload usb 0 0x800000 u-boot_mtd0
go 0x800200

And see if it starts OK. Then try

ver
printenv


And please post the entire serial console log (capture everything on your serial terminal screen from power up until the last line. The first lines in this log should be the u-boot banner)

Quote


U-Boot 1.1.4 (Sep 4 2009 - 09:36:11) Marvell version: 3.4.14

U-Boot code: 00600000 -> 0067FFF0 BSS: -> 006CEE60

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Netgear Stora MS2110 rootfs Bad Magic Number
June 15, 2020 04:58PM
Dear Bodhi

All executed per your instructions except for the last "printenv" because clearly the load did not work:
Quote
Putty log

__ __ _ _
| \/ | __ _ _ ____ _____| | |
| |\/| |/ _` | '__\ \ / / _ \ | |
| | | | (_| | | \ V / __/ | |
|_| |_|\__,_|_| \_/ \___|_|_|
_ _ ____ _
| | | | | __ ) ___ ___ | |_
| | | |___| _ \ / _ \ / _ \| __|
| |_| |___| |_) | (_) | (_) | |_
\___/ |____/ \___/ \___/ \__|
** MARVELL BOARD: RD-88F6281A LE

U-Boot 1.1.4 (Sep 4 2009 - 09:36:11) Marvell version: 3.4.14

U-Boot code: 00600000 -> 0067FFF0 BSS: -> 006CEE60

Soc: 88F6281 A0 (DDR2)
CPU running @ 1000Mhz L2 running @ 333Mhz
SysClock = 333Mhz , TClock = 200Mhz

DRAM CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6
DRAM CS[0] base 0x00000000 size 64MB
DRAM CS[1] base 0x04000000 size 64MB
DRAM Total size 128MB 16bit width
Flash: 0 kB
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
NAND:256 MB
CRC in Flash: ffffffff, Calculated CRC: 619d86db
+++++++++++++++++++++++++++Checksum Error!++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++Checksum Error!++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++Checksum Error!++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++Checksum Error!++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++Checksum Error!++++++++++++++++++++++++++++++
## Error: environment overflow, "stdin" deleted
## Error: environment overflow, "stdout" deleted
## Error: environment overflow, "stderr" deleted

CPU : Marvell Feroceon (Rev 1)
## Error: environment overflow, "console" deleted
## Error: environment overflow, "mainlineLinux" deleted
## Error: environment overflow, "CASset" deleted
## Error: environment overflow, "enaMonExt" deleted
## Error: environment overflow, "enaCpuStream" deleted
## Error: environment overflow, "enaWrAllo" deleted
## Error: environment overflow, "pexMode" deleted
## Error: environment overflow, "disL2Cache" deleted
## Error: environment overflow, "setL2CacheWT" deleted
## Error: environment overflow, "disL2Prefetch" deleted
## Error: environment overflow, "enaICPref" deleted
## Error: environment overflow, "enaDCPref" deleted
## Error: environment overflow, "sata_dma_mode" deleted
## Error: environment overflow, "MALLOC_len" deleted
## Error: environment overflow, "ethprime" deleted
## Error: environment overflow, "netbsd_en" deleted
## Error: environment overflow, "vxworks_en" deleted
## Error: environment overflow, "bootargs_root" deleted
## Error: environment overflow, "bootargs_end" deleted
## Error: environment overflow, "image_name" deleted
## Error: environment overflow, "bootcmd" deleted
## Error: environment overflow, "standalone" deleted
## Error: environment overflow, "bootdelay" deleted
## Error: environment overflow, "disaMvPnp" deleted
## Error: environment overflow, "disaMvPnp" deleted
## Error: environment overflow, "ethaddr" deleted
## Error: environment overflow, "ethmtu" deleted
## Error: environment overflow, "eth1addr" deleted
## Error: environment overflow, "eth1mtu" deleted
## Error: environment overflow, "mvPhoneConfig" deleted
## Error: environment overflow, "mvNetConfig" deleted
## Error: environment overflow, "usb0Mode" deleted
## Error: environment overflow, "yuk_ethaddr" deleted
## Error: environment overflow, "nandEcc" deleted
## Error: environment overflow, "hddPowerCtrl" deleted
## Error: environment overflow, "netretry" deleted
## Error: environment overflow, "rcvrip" deleted
## Error: environment overflow, "loadaddr" deleted
## Error: environment overflow, "autoload" deleted
## Error: environment overflow, "enaAutoRecovery" deleted

Streaming disabled
Write allocate disabled

Module 0 is RGMII
Module 1 is TDM

USB 0: device mode
PEX 0: interface detected no Link.
Net: ## Error: environment overflow, "ethact" deleted
egiga0, egiga1## Error: environment overflow, "ethact" deleted

USB: scanning bus for devices... 1 USB Device(s) found
scanning bus for storage devices... 0 Storage Device(s) found
Aquiring an IP address using DHCP...
## Error: environment overflow, "ethact" deleted
*** ERROR: `ethaddr' not set
## Error: environment overflow, "ethact" deleted
egiga1 no link
## Error: environment overflow, "ethact" deleted

Abort
## Error: environment overflow, "ethact" deleted
*** ERROR: `ethaddr' not set
## Error: environment overflow, "ethact" deleted
egiga1 no link
## Error: environment overflow, "ethact" deleted

Abort
## Error: environment overflow, "ethact" deleted
*** ERROR: `ethaddr' not set
## Error: environment overflow, "ethact" deleted
egiga1 no link
## Error: environment overflow, "ethact" deleted

Abort
Failed to retreive an IP address assuming default (<NULL>)!
Starting the Recovery process to retreive the file...
## Error: environment overflow, "ethact" deleted
*** ERROR: `ethaddr' not set
## Error: environment overflow, "ethact" deleted
egiga1 no link
## Error: environment overflow, "ethact" deleted
Failed
Power Button is pressed!
MPP Sel: 00000530, Data IN Enable: 00020058, Data In Polarity: 00000040, Data In: 00000011
Power Button is released!
MAC: 00:01:01:A2:25:54, IP: 10.162.37.84
## Error: environment overflow, "ethaddr" deleted
## Error: environment overflow, "ipaddr" deleted
## Error: environment overflow, "serverip" deleted
## Error: environment overflow, "netmask" deleted
## Error: environment overflow, "image_name" deleted
## Error: environment overflow, "console" deleted
## Error: environment overflow, "bootargs_root" deleted
## Error: environment overflow, "rootpath" deleted
## Error: environment overflow, "ethact" deleted
*** ERROR: `serverip' not set
## Error: environment overflow, "bootargs" deleted
## Booting image at 00800000 ...
Bad Magic Number
Marvell>> usb reset
(Re)start USB...
USB: scanning bus for devices... 1 USB Device(s) found
scanning bus for storage devices... 0 Storage Device(s) found
Marvell>> usb part
print_part of 0
## Unknown partition table

print_part of 1
## Unknown partition table

print_part of 2
## Unknown partition table

print_part of 3
## Unknown partition table

print_part of 4
## Unknown partition table
Marvell>> fatload usb 0 0x800000 u-boot_mtd0
** Can't read from device 0 **

** Unable to use usb 0:1 for fatload **
Marvell>> go 0x800200
## Starting application at 0x00800200 ...
undefined instruction
pc : [<00800204>] lr : [<0062f700>]
sp : 005ff0d4 ip : 005fec64 fp : 005ff0f0
r10: 00000000 r9 : 00000000 r8 : 005fffcc
r7 : 005ff513 r6 : 00000002 r5 : 005ffd0c r4 : 00800200
r3 : 00000000 r2 : f1012000 r1 : 005ffd0c r0 : 00000001
Flags: nZCv IRQs off FIQs off Mode SVC_32
Resetting CPU ...


__ __ _ _
| \/ | __ _ _ ____ _____| | |
| |\/| |/ _` | '__\ \ / / _ \ | |
| | | | (_| | | \ V / __/ | |
|_| |_|\__,_|_| \_/ \___|_|_|
_ _ ____ _
| | | | | __ ) ___ ___ | |_
| | | |___| _ \ / _ \ / _ \| __|
| |_| |___| |_) | (_) | (_) | |_
\___/ |____/ \___/ \___/ \__|
** MARVELL BOARD: RD-88F6281A LE

U-Boot 1.1.4 (Sep 4 2009 - 09:36:11) Marvell version: 3.4.14

U-Boot code: 00600000 -> 0067FFF0 BSS: -> 006CEE60

Soc: 88F6281 A0 (DDR2)
CPU running @ 1000Mhz L2 running @ 333Mhz
SysClock = 333Mhz , TClock = 200Mhz

DRAM CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6
DRAM CS[0] base 0x00000000 size 64MB
DRAM CS[1] base 0x04000000 size 64MB
DRAM Total size 128MB 16bit width
Flash: 0 kB
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
NAND:256 MB
CRC in Flash: ffffffff, Calculated CRC: 619d86db
+++++++++++++++++++++++++++Checksum Error!++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++Checksum Error!++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++Checksum Error!++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++Checksum Error!++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++Checksum Error!++++++++++++++++++++++++++++++
## Error: environment overflow, "stdin" deleted
## Error: environment overflow, "stdout" deleted
## Error: environment overflow, "stderr" deleted

CPU : Marvell Feroceon (Rev 1)
## Error: environment overflow, "console" deleted
## Error: environment overflow, "mainlineLinux" deleted
## Error: environment overflow, "CASset" deleted
## Error: environment overflow, "enaMonExt" deleted
## Error: environment overflow, "enaCpuStream" deleted
## Error: environment overflow, "enaWrAllo" deleted
## Error: environment overflow, "pexMode" deleted
## Error: environment overflow, "disL2Cache" deleted
## Error: environment overflow, "setL2CacheWT" deleted
## Error: environment overflow, "disL2Prefetch" deleted
## Error: environment overflow, "enaICPref" deleted
## Error: environment overflow, "enaDCPref" deleted
## Error: environment overflow, "sata_dma_mode" deleted
## Error: environment overflow, "MALLOC_len" deleted
## Error: environment overflow, "ethprime" deleted
## Error: environment overflow, "netbsd_en" deleted
## Error: environment overflow, "vxworks_en" deleted
## Error: environment overflow, "bootargs_root" deleted
## Error: environment overflow, "bootargs_end" deleted
## Error: environment overflow, "image_name" deleted
## Error: environment overflow, "bootcmd" deleted
## Error: environment overflow, "standalone" deleted
## Error: environment overflow, "bootdelay" deleted
## Error: environment overflow, "disaMvPnp" deleted
## Error: environment overflow, "disaMvPnp" deleted
## Error: environment overflow, "ethaddr" deleted
## Error: environment overflow, "ethmtu" deleted
## Error: environment overflow, "eth1addr" deleted
## Error: environment overflow, "eth1mtu" deleted
## Error: environment overflow, "mvPhoneConfig" deleted
## Error: environment overflow, "mvNetConfig" deleted
## Error: environment overflow, "usb0Mode" deleted
## Error: environment overflow, "yuk_ethaddr" deleted
## Error: environment overflow, "nandEcc" deleted
## Error: environment overflow, "hddPowerCtrl" deleted
## Error: environment overflow, "netretry" deleted
## Error: environment overflow, "rcvrip" deleted
## Error: environment overflow, "loadaddr" deleted
## Error: environment overflow, "autoload" deleted
## Error: environment overflow, "enaAutoRecovery" deleted

Streaming disabled
Write allocate disabled

Module 0 is RGMII
Module 1 is TDM

USB 0: device mode
PEX 0: interface detected no Link.
Net: ## Error: environment overflow, "ethact" deleted
egiga0, egiga1## Error: environment overflow, "ethact" deleted

USB: scanning bus for devices... 2 USB Device(s) found
scanning bus for storage devices... 1 Storage Device(s) found
Trying to load image from USB flash drive using FAT FS
reading /flashware.img

** Unable to read "/flashware.img" from usb 0:1 **
Trying to load image from USB flash drive using ext2 FS partition 0
Failed to mount ext2 filesystem...
** Bad ext2 partition or disk - usb 0:0 **
Trying to load image from USB flash drive using ext2 FS partition 1
Failed to mount ext2 filesystem...
** Bad ext2 partition or disk - usb 0:1 **
Couldn't load recovery image from USB flash drive, Trying network interface
Aquiring an IP address using DHCP...
## Error: environment overflow, "ethact" deleted
*** ERROR: `ethaddr' not set
## Error: environment overflow, "ethact" deleted
egiga1 no link
## Error: environment overflow, "ethact" deleted
## Error: environment overflow, "ethact" deleted
*** ERROR: `ethaddr' not set
## Error: environment overflow, "ethact" deleted
egiga1 no link
## Error: environment overflow, "ethact" deleted
## Error: environment overflow, "ethact" deleted
*** ERROR: `ethaddr' not set
## Error: environment overflow, "ethact" deleted
egiga1 no link
## Error: environment overflow, "ethact" deleted
Failed to retreive an IP address assuming default (<NULL>)!
Starting the Recovery process to retreive the file...
## Error: environment overflow, "ethact" deleted
*** ERROR: `ethaddr' not set
## Error: environment overflow, "ethact" deleted
egiga1 no link
## Error: environment overflow, "ethact" deleted
Failed
Power Button is pressed!
MPP Sel: 00000530, Data IN Enable: 00020058, Data In Polarity: 00000040, Data In: 00000011
Power Button is released!
MAC: 00:01:1F:4E:B4:36, IP: 10.78.180.54
## Error: environment overflow, "ethaddr" deleted
## Error: environment overflow, "ipaddr" deleted
## Error: environment overflow, "serverip" deleted
## Error: environment overflow, "netmask" deleted
## Error: environment overflow, "image_name" deleted
## Error: environment overflow, "console" deleted
## Error: environment overflow, "bootargs_root" deleted
## Error: environment overflow, "rootpath" deleted
## Error: environment overflow, "ethact" deleted
*** ERROR: `serverip' not set
## Error: environment overflow, "bootargs" deleted
## Booting image at 00800000 ...
Bad Magic Number
Marvell>> ver

U-Boot 1.1.4 (Sep 4 2009 - 09:36:11) Marvell version: 3.4.14
Marvell>>

Please advise. Regards, Paul
Re: Netgear Stora MS2110 rootfs Bad Magic Number
June 15, 2020 05:23PM
Paul,

(Re)start USB... 
USB: scanning bus for devices... 1 USB Device(s) found 
scanning bus for storage devices... 0 Storage Device(s) found

The USB drive was not recognized by u-boot. How did you create it?

Also,
usb reset
usb part
fatload usb 0 0x800000 u-boot_mtd0
If the load did not work, don't execute "go"
go 0x800200

(go will cause a reset like you see above).

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Netgear Stora MS2110 rootfs Bad Magic Number
June 15, 2020 05:48PM
Bodhi - I formatted the Pendrive in Windows 10, then transferred the file from a shared folder to Pendrive. I'll try again with mkfs.fat under Linux and repeat the log:
Quote
Putty log

__ __ _ _
| \/ | __ _ _ ____ _____| | |
| |\/| |/ _` | '__\ \ / / _ \ | |
| | | | (_| | | \ V / __/ | |
|_| |_|\__,_|_| \_/ \___|_|_|
_ _ ____ _
| | | | | __ ) ___ ___ | |_
| | | |___| _ \ / _ \ / _ \| __|
| |_| |___| |_) | (_) | (_) | |_
\___/ |____/ \___/ \___/ \__|
** MARVELL BOARD: RD-88F6281A LE

U-Boot 1.1.4 (Sep 4 2009 - 09:36:11) Marvell version: 3.4.14

U-Boot code: 00600000 -> 0067FFF0 BSS: -> 006CEE60

Soc: 88F6281 A0 (DDR2)
CPU running @ 1000Mhz L2 running @ 333Mhz
SysClock = 333Mhz , TClock = 200Mhz

DRAM CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6
DRAM CS[0] base 0x00000000 size 64MB
DRAM CS[1] base 0x04000000 size 64MB
DRAM Total size 128MB 16bit width
Flash: 0 kB
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
NAND:256 MB
CRC in Flash: ffffffff, Calculated CRC: 619d86db
+++++++++++++++++++++++++++Checksum Error!++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++Checksum Error!++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++Checksum Error!++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++Checksum Error!++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++Checksum Error!++++++++++++++++++++++++++++++
## Error: environment overflow, "stdin" deleted
## Error: environment overflow, "stdout" deleted
## Error: environment overflow, "stderr" deleted

CPU : Marvell Feroceon (Rev 1)
## Error: environment overflow, "console" deleted
## Error: environment overflow, "mainlineLinux" deleted
## Error: environment overflow, "CASset" deleted
## Error: environment overflow, "enaMonExt" deleted
## Error: environment overflow, "enaCpuStream" deleted
## Error: environment overflow, "enaWrAllo" deleted
## Error: environment overflow, "pexMode" deleted
## Error: environment overflow, "disL2Cache" deleted
## Error: environment overflow, "setL2CacheWT" deleted
## Error: environment overflow, "disL2Prefetch" deleted
## Error: environment overflow, "enaICPref" deleted
## Error: environment overflow, "enaDCPref" deleted
## Error: environment overflow, "sata_dma_mode" deleted
## Error: environment overflow, "MALLOC_len" deleted
## Error: environment overflow, "ethprime" deleted
## Error: environment overflow, "netbsd_en" deleted
## Error: environment overflow, "vxworks_en" deleted
## Error: environment overflow, "bootargs_root" deleted
## Error: environment overflow, "bootargs_end" deleted
## Error: environment overflow, "image_name" deleted
## Error: environment overflow, "bootcmd" deleted
## Error: environment overflow, "standalone" deleted
## Error: environment overflow, "bootdelay" deleted
## Error: environment overflow, "disaMvPnp" deleted
## Error: environment overflow, "disaMvPnp" deleted
## Error: environment overflow, "ethaddr" deleted
## Error: environment overflow, "ethmtu" deleted
## Error: environment overflow, "eth1addr" deleted
## Error: environment overflow, "eth1mtu" deleted
## Error: environment overflow, "mvPhoneConfig" deleted
## Error: environment overflow, "mvNetConfig" deleted
## Error: environment overflow, "usb0Mode" deleted
## Error: environment overflow, "yuk_ethaddr" deleted
## Error: environment overflow, "nandEcc" deleted
## Error: environment overflow, "hddPowerCtrl" deleted
## Error: environment overflow, "netretry" deleted
## Error: environment overflow, "rcvrip" deleted
## Error: environment overflow, "loadaddr" deleted
## Error: environment overflow, "autoload" deleted
## Error: environment overflow, "enaAutoRecovery" deleted

Streaming disabled
Write allocate disabled

Module 0 is RGMII
Module 1 is TDM

USB 0: device mode
PEX 0: interface detected no Link.
Net: ## Error: environment overflow, "ethact" deleted
egiga0, egiga1## Error: environment overflow, "ethact" deleted

USB: scanning bus for devices... 1 USB Device(s) found
scanning bus for storage devices... 0 Storage Device(s) found
Aquiring an IP address using DHCP...
## Error: environment overflow, "ethact" deleted
*** ERROR: `ethaddr' not set
## Error: environment overflow, "ethact" deleted
egiga1 no link
## Error: environment overflow, "ethact" deleted
## Error: environment overflow, "ethact" deleted
*** ERROR: `ethaddr' not set
## Error: environment overflow, "ethact" deleted
egiga1 no link
## Error: environment overflow, "ethact" deleted
## Error: environment overflow, "ethact" deleted
*** ERROR: `ethaddr' not set
## Error: environment overflow, "ethact" deleted
egiga1 no link
## Error: environment overflow, "ethact" deleted
Failed to retreive an IP address assuming default (<NULL>)!
Starting the Recovery process to retreive the file...
## Error: environment overflow, "ethact" deleted
*** ERROR: `ethaddr' not set
## Error: environment overflow, "ethact" deleted
egiga1 no link
## Error: environment overflow, "ethact" deleted
Failed
Power Button is pressed!
MPP Sel: 00000530, Data IN Enable: 00020058, Data In Polarity: 00000040, Data In: 00000011
Power Button is released!
MAC: 00:01:01:EC:54:BB, IP: 10.236.84.187
## Error: environment overflow, "ethaddr" deleted
## Error: environment overflow, "ipaddr" deleted
## Error: environment overflow, "serverip" deleted
## Error: environment overflow, "netmask" deleted
## Error: environment overflow, "image_name" deleted
## Error: environment overflow, "console" deleted
## Error: environment overflow, "bootargs_root" deleted
## Error: environment overflow, "rootpath" deleted
## Error: environment overflow, "ethact" deleted
*** ERROR: `serverip' not set
## Error: environment overflow, "bootargs" deleted
## Booting image at 00800000 ...
Bad Magic Number
Marvell>> usb reset
(Re)start USB...
USB: scanning bus for devices... 1 USB Device(s) found
scanning bus for storage devices... 0 Storage Device(s) found
Marvell>> usb part
print_part of 0
## Unknown partition table

print_part of 1
## Unknown partition table

print_part of 2
## Unknown partition table

print_part of 3
## Unknown partition table

print_part of 4
## Unknown partition table
Marvell>> fatload usb 0 0x800000 u-boot_mtd0
** Can't read from device 0 **

** Unable to use usb 0:1 for fatload **
Marvell>>

Sorry no change. I need to go to bed. Will pick up in the morning. Thanks again. Paul
Re: Netgear Stora MS2110 rootfs Bad Magic Number
June 16, 2020 10:09AM
Hi Bodhi

Sorry I logged off last night (23:48 GMT+1). No further progress to report despite repeated kwboot attempts and retracing all old ground. It seems like
Quote

## Error: environment overflow, "bootargs" deleted
is the blocker. I have tried u-boot rcvr command which seems to try a special TFTP boot, but it is trying to pull 'uImage' from my Home Hub as the predefined TFTPserver address. The file is obviously not there.

Any more thoughts?

Regards

Paul
Re: Netgear Stora MS2110 rootfs Bad Magic Number
June 16, 2020 05:42PM
Paul,

OK. I can't recall if anybody was successful using the USB drive in this stock u-boot (too long ago). Perhaps USB never worked properly in stock u-boot.

Now we are going to use tftp to load the back up mtd0.

Previously you have seen your tftp working:

https://forum.doozan.com/read.php?2,102054,104494#msg-104494

Quote

TFTP from server 192.168.1.254; our IP address is 192.168.1.117

So looks like using tftp is OK for whatever current envs that are usable.

===========

Load and run the mtd0 backup using tftp

1. If your Linux box IP address is not 192.168.1.254, then change it to use a static IP 192.168.1.254.

2. Set up tftp server on your Linux box. Copy the file u-boot_mtd0 to the /tftproot folder on this box.

3. Power up the Stora, interrupt serial console and,

tftpboot 0x800000 u-boot_mtd0

If tftpboot load was successful,
go 0x800200

If go was successful,

ver
printenv

And please post the entire serial console log here.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Netgear Stora MS2110 rootfs Bad Magic Number
June 17, 2020 01:35PM
Dear Bodhi

No luck, I'm afraid. The corrupted environments seem to stop the effective load from tftpboot. I also tried 'rcvr' command which seemed to go a little further, but still the environments seem to prevent the load from completing successfully. Here is the serial console:
Quote
Serial Console

__ __ _ _
| \/ | __ _ _ ____ _____| | |
| |\/| |/ _` | '__\ \ / / _ \ | |
| | | | (_| | | \ V / __/ | |
|_| |_|\__,_|_| \_/ \___|_|_|
_ _ ____ _
| | | | | __ ) ___ ___ | |_
| | | |___| _ \ / _ \ / _ \| __|
| |_| |___| |_) | (_) | (_) | |_
\___/ |____/ \___/ \___/ \__|
** MARVELL BOARD: RD-88F6281A LE

U-Boot 1.1.4 (Sep 4 2009 - 09:36:11) Marvell version: 3.4.14

U-Boot code: 00600000 -> 0067FFF0 BSS: -> 006CEE60

Soc: 88F6281 A0 (DDR2)
CPU running @ 1000Mhz L2 running @ 333Mhz
SysClock = 333Mhz , TClock = 200Mhz

DRAM CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6
DRAM CS[0] base 0x00000000 size 64MB
DRAM CS[1] base 0x04000000 size 64MB
DRAM Total size 128MB 16bit width
Flash: 0 kB
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
NAND:256 MB
CRC in Flash: ffffffff, Calculated CRC: 619d86db
+++++++++++++++++++++++++++Checksum Error!++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++Checksum Error!++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++Checksum Error!++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++Checksum Error!++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++Checksum Error!++++++++++++++++++++++++++++++
## Error: environment overflow, "stdin" deleted
## Error: environment overflow, "stdout" deleted
## Error: environment overflow, "stderr" deleted

CPU : Marvell Feroceon (Rev 1)
## Error: environment overflow, "console" deleted
## Error: environment overflow, "mainlineLinux" deleted
## Error: environment overflow, "CASset" deleted
## Error: environment overflow, "enaMonExt" deleted
## Error: environment overflow, "enaCpuStream" deleted
## Error: environment overflow, "enaWrAllo" deleted
## Error: environment overflow, "pexMode" deleted
## Error: environment overflow, "disL2Cache" deleted
## Error: environment overflow, "setL2CacheWT" deleted
## Error: environment overflow, "disL2Prefetch" deleted
## Error: environment overflow, "enaICPref" deleted
## Error: environment overflow, "enaDCPref" deleted
## Error: environment overflow, "sata_dma_mode" deleted
## Error: environment overflow, "MALLOC_len" deleted
## Error: environment overflow, "ethprime" deleted
## Error: environment overflow, "netbsd_en" deleted
## Error: environment overflow, "vxworks_en" deleted
## Error: environment overflow, "bootargs_root" deleted
## Error: environment overflow, "bootargs_end" deleted
## Error: environment overflow, "image_name" deleted
## Error: environment overflow, "bootcmd" deleted
## Error: environment overflow, "standalone" deleted
## Error: environment overflow, "bootdelay" deleted
## Error: environment overflow, "disaMvPnp" deleted
## Error: environment overflow, "disaMvPnp" deleted
## Error: environment overflow, "ethaddr" deleted
## Error: environment overflow, "ethmtu" deleted
## Error: environment overflow, "eth1addr" deleted
## Error: environment overflow, "eth1mtu" deleted
## Error: environment overflow, "mvPhoneConfig" deleted
## Error: environment overflow, "mvNetConfig" deleted
## Error: environment overflow, "usb0Mode" deleted
## Error: environment overflow, "yuk_ethaddr" deleted
## Error: environment overflow, "nandEcc" deleted
## Error: environment overflow, "hddPowerCtrl" deleted
## Error: environment overflow, "netretry" deleted
## Error: environment overflow, "rcvrip" deleted
## Error: environment overflow, "loadaddr" deleted
## Error: environment overflow, "autoload" deleted
## Error: environment overflow, "enaAutoRecovery" deleted

Streaming disabled
Write allocate disabled

Module 0 is RGMII
Module 1 is TDM

USB 0: device mode
PEX 0: interface detected no Link.
Net: ## Error: environment overflow, "ethact" deleted
egiga0, egiga1## Error: environment overflow, "ethact" deleted

USB: scanning bus for devices... 1 USB Device(s) found
scanning bus for storage devices... 0 Storage Device(s) found
Aquiring an IP address using DHCP...
## Error: environment overflow, "ethact" deleted
*** ERROR: `ethaddr' not set
## Error: environment overflow, "ethact" deleted
egiga1 no link
## Error: environment overflow, "ethact" deleted
## Error: environment overflow, "ethact" deleted
*** ERROR: `ethaddr' not set
## Error: environment overflow, "ethact" deleted
egiga1 no link
## Error: environment overflow, "ethact" deleted
## Error: environment overflow, "ethact" deleted
*** ERROR: `ethaddr' not set
## Error: environment overflow, "ethact" deleted
egiga1 no link
## Error: environment overflow, "ethact" deleted
Failed to retreive an IP address assuming default (<NULL>)!
Starting the Recovery process to retreive the file...
## Error: environment overflow, "ethact" deleted
*** ERROR: `ethaddr' not set
## Error: environment overflow, "ethact" deleted
egiga1 no link
## Error: environment overflow, "ethact" deleted
Failed
Power Button is pressed!
MPP Sel: 00000530, Data IN Enable: 00020058, Data In Polarity: 00000040, Data In: 00000011
Power Button is released!
MAC: 00:01:01:E2:6C:4B, IP: 10.226.108.75
## Error: environment overflow, "ethaddr" deleted
## Error: environment overflow, "ipaddr" deleted
## Error: environment overflow, "serverip" deleted
## Error: environment overflow, "netmask" deleted
## Error: environment overflow, "image_name" deleted
## Error: environment overflow, "console" deleted
## Error: environment overflow, "bootargs_root" deleted
## Error: environment overflow, "rootpath" deleted
## Error: environment overflow, "ethact" deleted
*** ERROR: `serverip' not set
## Error: environment overflow, "bootargs" deleted
## Booting image at 00800000 ...
Bad Magic Number
Marvell>> tftpboot 0x800000 u-boot.mtd0
## Error: environment overflow, "ethact" deleted
*** ERROR: `serverip' not set
Marvell>> rcvr
USB: scanning bus for devices... 1 USB Device(s) found
scanning bus for storage devices... 0 Storage Device(s) found
Aquiring an IP address using DHCP...
## Error: environment overflow, "ethact" deleted
BOOTP broadcast 1
BOOTP broadcast 2
*** Unhandled DHCP Option in OFFER/ACK: 28
## Error: environment overflow, "bootfile" deleted
*** Unhandled DHCP Option in OFFER/ACK: 28
## Error: environment overflow, "bootfile" deleted
DHCP client bound to address 192.168.1.159
Using egiga0 device
TFTP from server 192.168.1.254; our IP address is 192.168.1.159
Filename 'u-boot.mtd0'.
Load address: 0x800000
Loading: T T T T T T T T T T
Retry count exceeded; starting again
## Error: environment overflow, "ethact" deleted
egiga1 no link
## Error: environment overflow, "ethact" deleted
BOOTP broadcast 1
*** Unhandled DHCP Option in OFFER/ACK: 28
## Error: environment overflow, "bootfile" deleted
*** Unhandled DHCP Option in OFFER/ACK: 28
## Error: environment overflow, "bootfile" deleted
DHCP client bound to address 192.168.1.159
Using egiga0 device
TFTP from server 192.168.1.254; our IP address is 192.168.1.159
Filename 'u-boot.mtd0'.
Load address: 0x800000
Loading: T
Abort
## Error: environment overflow, "ethact" deleted
BOOTP broadcast 1

Abort
## Error: environment overflow, "ethact" deleted
BOOTP broadcast 1

Abort
Failed to retreive an IP address assuming default (<NULL>)!
Starting the Recovery process to retreive the file...
## Error: environment overflow, "ethact" deleted
ERROR: Missing environment variable for "loadaddr"!
Failed
Marvell>>

Is there some way to selectively clear the environment variables?

Regards, Paul
Re: Netgear Stora MS2110 rootfs Bad Magic Number
June 17, 2020 05:21PM
Paul,

Marvell>> tftpboot 0x800000 u-boot.mtd0 
## Error: environment overflow, "ethact" deleted 
*** ERROR: `serverip' not set

Indeed, it is bad news.

1. Since kwboot does not work, we can not load the new u-boot. USB and tftp does not work.

2. We have not tried EXT2 file system with USB.

3. Try loading from HDD.

4. Last resort (risky): we can erase the NAND area where the envs reside, so that u-boot will fail to read it.


Below is how you would test 2 and 3.

======

So try 2 first before moving on to 3.

2. Format the USB drive with EXT2 or EXT3. And put the u-boot_mtd0 at the root folder like before.

usb reset
ext2load usb 0:1 0x800000 /u-boot_mtd0

If reset and load were successful, then
go 0x800200

======

3.. Format the HDD drive with EXT3. And put the u-boot_mtd0 at the root folder like before. Make sure this is only one HDD in the box.

ide reset
ext2load ide 0:1 0x800000 /u-boot_mtd0

If reset and load were successful, then
go 0x800200

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Netgear Stora MS2110 rootfs Bad Magic Number
June 17, 2020 05:51PM
Dear Bodhi

Step 2 tried with no further progress:
Quote
Console log
Marvell>> usb reset
(Re)start USB...
USB: scanning bus for devices... 1 USB Device(s) found
scanning bus for storage devices... 0 Storage Device(s) found
Marvell>> ext2load usb 0:1 0x800000 /u-boot_mtd0
** Bad partition 1 **
Marvell>>

Will now try Step 3, but will take a lot longer to rig up HDD for formatting etc. So will report back in a while. Regards

Paul
Re: Netgear Stora MS2110 rootfs Bad Magic Number
June 17, 2020 08:51PM
Dear Bodhi

Step 3 completed. Error on Ext2load: "## Error: environment overflow, "filesize" deleted"
Quote
Console log

__ __ _ _
| \/ | __ _ _ ____ _____| | |
| |\/| |/ _` | '__\ \ / / _ \ | |
| | | | (_| | | \ V / __/ | |
|_| |_|\__,_|_| \_/ \___|_|_|
_ _ ____ _
| | | | | __ ) ___ ___ | |_
| | | |___| _ \ / _ \ / _ \| __|
| |_| |___| |_) | (_) | (_) | |_
\___/ |____/ \___/ \___/ \__|
** MARVELL BOARD: RD-88F6281A LE

U-Boot 1.1.4 (Sep 4 2009 - 09:36:11) Marvell version: 3.4.14

U-Boot code: 00600000 -> 0067FFF0 BSS: -> 006CEE60

Soc: 88F6281 A0 (DDR2)
CPU running @ 1000Mhz L2 running @ 333Mhz
SysClock = 333Mhz , TClock = 200Mhz

DRAM CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6
DRAM CS[0] base 0x00000000 size 64MB
DRAM CS[1] base 0x04000000 size 64MB
DRAM Total size 128MB 16bit width
Flash: 0 kB
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
NAND:256 MB
CRC in Flash: ffffffff, Calculated CRC: 619d86db
+++++++++++++++++++++++++++Checksum Error!++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++Checksum Error!++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++Checksum Error!++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++Checksum Error!++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++Checksum Error!++++++++++++++++++++++++++++++
## Error: environment overflow, "stdin" deleted
## Error: environment overflow, "stdout" deleted
## Error: environment overflow, "stderr" deleted

CPU : Marvell Feroceon (Rev 1)
## Error: environment overflow, "console" deleted
## Error: environment overflow, "mainlineLinux" deleted
## Error: environment overflow, "CASset" deleted
## Error: environment overflow, "enaMonExt" deleted
## Error: environment overflow, "enaCpuStream" deleted
## Error: environment overflow, "enaWrAllo" deleted
## Error: environment overflow, "pexMode" deleted
## Error: environment overflow, "disL2Cache" deleted
## Error: environment overflow, "setL2CacheWT" deleted
## Error: environment overflow, "disL2Prefetch" deleted
## Error: environment overflow, "enaICPref" deleted
## Error: environment overflow, "enaDCPref" deleted
## Error: environment overflow, "sata_dma_mode" deleted
## Error: environment overflow, "MALLOC_len" deleted
## Error: environment overflow, "ethprime" deleted
## Error: environment overflow, "netbsd_en" deleted
## Error: environment overflow, "vxworks_en" deleted
## Error: environment overflow, "bootargs_root" deleted
## Error: environment overflow, "bootargs_end" deleted
## Error: environment overflow, "image_name" deleted
## Error: environment overflow, "bootcmd" deleted
## Error: environment overflow, "standalone" deleted
## Error: environment overflow, "bootdelay" deleted
## Error: environment overflow, "disaMvPnp" deleted
## Error: environment overflow, "disaMvPnp" deleted
## Error: environment overflow, "ethaddr" deleted
## Error: environment overflow, "ethmtu" deleted
## Error: environment overflow, "eth1addr" deleted
## Error: environment overflow, "eth1mtu" deleted
## Error: environment overflow, "mvPhoneConfig" deleted
## Error: environment overflow, "mvNetConfig" deleted
## Error: environment overflow, "usb0Mode" deleted
## Error: environment overflow, "yuk_ethaddr" deleted
## Error: environment overflow, "nandEcc" deleted
## Error: environment overflow, "hddPowerCtrl" deleted
## Error: environment overflow, "netretry" deleted
## Error: environment overflow, "rcvrip" deleted
## Error: environment overflow, "loadaddr" deleted
## Error: environment overflow, "autoload" deleted
## Error: environment overflow, "enaAutoRecovery" deleted

Streaming disabled
Write allocate disabled

Module 0 is RGMII
Module 1 is TDM

USB 0: device mode
PEX 0: interface detected no Link.
Net: ## Error: environment overflow, "ethact" deleted
egiga0, egiga1## Error: environment overflow, "ethact" deleted

USB: scanning bus for devices... 1 USB Device(s) found
scanning bus for storage devices... 0 Storage Device(s) found
Aquiring an IP address using DHCP...
## Error: environment overflow, "ethact" deleted
*** ERROR: `ethaddr' not set
## Error: environment overflow, "ethact" deleted
egiga1 no link
## Error: environment overflow, "ethact" deleted
## Error: environment overflow, "ethact" deleted
*** ERROR: `ethaddr' not set
## Error: environment overflow, "ethact" deleted
egiga1 no link
## Error: environment overflow, "ethact" deleted
## Error: environment overflow, "ethact" deleted
*** ERROR: `ethaddr' not set
## Error: environment overflow, "ethact" deleted
egiga1 no link
## Error: environment overflow, "ethact" deleted
Failed to retreive an IP address assuming default (<NULL>)!
Starting the Recovery process to retreive the file...
## Error: environment overflow, "ethact" deleted
*** ERROR: `ethaddr' not set
## Error: environment overflow, "ethact" deleted
egiga1 no link
## Error: environment overflow, "ethact" deleted
Failed
Power Button is pressed!
MPP Sel: 00000530, Data IN Enable: 00020058, Data In Polarity: 00000040, Data In: 00000011
Power Button is released!
MAC: 00:01:01:E0:D6:3D, IP: 10.224.214.61
## Error: environment overflow, "ethaddr" deleted
## Error: environment overflow, "ipaddr" deleted
## Error: environment overflow, "serverip" deleted
## Error: environment overflow, "netmask" deleted
## Error: environment overflow, "image_name" deleted
## Error: environment overflow, "console" deleted
## Error: environment overflow, "bootargs_root" deleted
## Error: environment overflow, "rootpath" deleted
## Error: environment overflow, "ethact" deleted
*** ERROR: `serverip' not set
## Error: environment overflow, "bootargs" deleted
## Booting image at 00800000 ...
Bad Magic Number
Marvell>> ide reset

Reset IDE:
Marvell Serial ATA Adapter
Integrated Sata device found
[0 0 0]: Enable DMA mode
Device 0 @ 0 0:
Model: WDC WD5000AADS-00S9B0 Firm: 01.00A01 Ser#: WD-WCAV92649993
Type: Hard Disk
Supports 48-bit addressing
Capacity: 476940.0 MB = 465.7 GB (976773168 x 512)

Marvell>> ext2load ide 0:1 0x800000 /u-boot_mtd0

1048576 bytes read
## Error: environment overflow, "filesize" deleted
Marvell>>

Regards, Paul
Re: Netgear Stora MS2110 rootfs Bad Magic Number
June 17, 2020 11:09PM
Paul,

So we are almost out of options. The next to last thing to try is:

Quote

4. Last resort (risky): we can erase the NAND area where the envs reside, so that u-boot will fail to read it.

But you need to make a decision here. This could brick your box for good. We will have to be careful to not overwrite u-boot image in NAND.

And then if it is bricked, you would have to figure out how to recover with JTAG. JTAG is quite time consuming, because I have not seen this box hardware, so not sure if JTAG is possible. And the recovery with JTAG could take a long time to finish (if it is possible) because of lack of information.

So think about it, and see if you want to wait for a few days/weeks until somebody upload the recovery flashware.img.

============


Once you give up on the flashware.img, then,

Look for a successful stock boot log, and if someone can log into stock OS to get some information.

What we are looking for is the location of u-boot envs in NAND. This location is within the 1st MB (mtd0).

If nobody has this information. then we will need to examine the mtd0 backup with hexedit to find it.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Netgear Stora MS2110 rootfs Bad Magic Number
June 20, 2020 09:33AM
Dear Bodhi

Stormy has delivered a flashware.img file from the old Stora Forum! Brilliant.

I guess I should try tftpboot this file on a cold restart?

Regards

Paul
Re: Netgear Stora MS2110 rootfs Bad Magic Number
June 20, 2020 10:02AM
Dear Bodhi

Command "tftpboot 0x800000 flashware.img" did not work as the environment corruption is preventing setting up TFTP parameters.

Command "rcvr" finds "flashware.img" via broadcast, but fails on load because of the overflowing environments. Cotarelo has committed to reporting the stock environment map, but will be a few days following some surgery. Here is the log:
Quote
Console log

Marvell>> tftpboot 0x800000 flashware.img
## Error: environment overflow, "ethact" deleted
*** ERROR: `serverip' not set
Marvell>> rcvr
USB: scanning bus for devices... 1 USB Device(s) found
scanning bus for storage devices... 0 Storage Device(s) found
Aquiring an IP address using DHCP...
## Error: environment overflow, "ethact" deleted
BOOTP broadcast 1
*** Unhandled DHCP Option in OFFER/ACK: 28
## Error: environment overflow, "bootfile" deleted
*** Unhandled DHCP Option in OFFER/ACK: 28
## Error: environment overflow, "bootfile" deleted
DHCP client bound to address 192.168.1.85
Using egiga0 device
TFTP from server 192.168.1.254; our IP address is 192.168.1.85
Filename 'flashware.img'.
Load address: 0x800000
Loading: T T T T T T T T T T
Retry count exceeded; starting again
## Error: environment overflow, "ethact" deleted
egiga1 no link
## Error: environment overflow, "ethact" deleted
BOOTP broadcast 1
*** Unhandled DHCP Option in OFFER/ACK: 28
## Error: environment overflow, "bootfile" deleted
*** Unhandled DHCP Option in OFFER/ACK: 28
## Error: environment overflow, "bootfile" deleted
DHCP client bound to address 192.168.1.85
Using egiga0 device
TFTP from server 192.168.1.254; our IP address is 192.168.1.85
Filename 'flashware.img'.
Load address: 0x800000
Loading: T T T T T T T T T T
Retry count exceeded; starting again
## Error: environment overflow, "ethact" deleted
egiga1 no link
## Error: environment overflow, "ethact" deleted

Abort
Failed
Marvell>>

Any ideas - wait? Regards

Paul
Re: Netgear Stora MS2110 rootfs Bad Magic Number
June 20, 2020 04:10PM
Hi Paul,

> Command "tftpboot 0x800000 flashware.img" did not
> work as the environment corruption is preventing
> setting up TFTP parameters.

No, don't use tftp.

Power down the Stora, plug in the USB drive with the flashware.img. Power up.

Watch serial console and see if it got loaded automatically. And please post serial console log here.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Netgear Stora MS2110 rootfs Bad Magic Number
June 21, 2020 01:39AM
Dear Bodhi

I've followed your instructions: Stormy's "flashware.img" loaded on Sandish Cruzer usb pendrive which is formatted .ext2
Quote
Serial Console Log

__ __ _ _
| \/ | __ _ _ ____ _____| | |
| |\/| |/ _` | '__\ \ / / _ \ | |
| | | | (_| | | \ V / __/ | |
|_| |_|\__,_|_| \_/ \___|_|_|
_ _ ____ _
| | | | | __ ) ___ ___ | |_
| | | |___| _ \ / _ \ / _ \| __|
| |_| |___| |_) | (_) | (_) | |_
\___/ |____/ \___/ \___/ \__|
** MARVELL BOARD: RD-88F6281A LE

U-Boot 1.1.4 (Sep 4 2009 - 09:36:11) Marvell version: 3.4.14

U-Boot code: 00600000 -> 0067FFF0 BSS: -> 006CEE60

Soc: 88F6281 A0 (DDR2)
CPU running @ 1000Mhz L2 running @ 333Mhz
SysClock = 333Mhz , TClock = 200Mhz

DRAM CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6
DRAM CS[0] base 0x00000000 size 64MB
DRAM CS[1] base 0x04000000 size 64MB
DRAM Total size 128MB 16bit width
Flash: 0 kB
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
NAND:256 MB
CRC in Flash: ffffffff, Calculated CRC: 619d86db
+++++++++++++++++++++++++++Checksum Error!++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++Checksum Error!++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++Checksum Error!++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++Checksum Error!++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++Checksum Error!++++++++++++++++++++++++++++++
## Error: environment overflow, "stdin" deleted
## Error: environment overflow, "stdout" deleted
## Error: environment overflow, "stderr" deleted

CPU : Marvell Feroceon (Rev 1)
## Error: environment overflow, "console" deleted
## Error: environment overflow, "mainlineLinux" deleted
## Error: environment overflow, "CASset" deleted
## Error: environment overflow, "enaMonExt" deleted
## Error: environment overflow, "enaCpuStream" deleted
## Error: environment overflow, "enaWrAllo" deleted
## Error: environment overflow, "pexMode" deleted
## Error: environment overflow, "disL2Cache" deleted
## Error: environment overflow, "setL2CacheWT" deleted
## Error: environment overflow, "disL2Prefetch" deleted
## Error: environment overflow, "enaICPref" deleted
## Error: environment overflow, "enaDCPref" deleted
## Error: environment overflow, "sata_dma_mode" deleted
## Error: environment overflow, "MALLOC_len" deleted
## Error: environment overflow, "ethprime" deleted
## Error: environment overflow, "netbsd_en" deleted
## Error: environment overflow, "vxworks_en" deleted
## Error: environment overflow, "bootargs_root" deleted
## Error: environment overflow, "bootargs_end" deleted
## Error: environment overflow, "image_name" deleted
## Error: environment overflow, "bootcmd" deleted
## Error: environment overflow, "standalone" deleted
## Error: environment overflow, "bootdelay" deleted
## Error: environment overflow, "disaMvPnp" deleted
## Error: environment overflow, "disaMvPnp" deleted
## Error: environment overflow, "ethaddr" deleted
## Error: environment overflow, "ethmtu" deleted
## Error: environment overflow, "eth1addr" deleted
## Error: environment overflow, "eth1mtu" deleted
## Error: environment overflow, "mvPhoneConfig" deleted
## Error: environment overflow, "mvNetConfig" deleted
## Error: environment overflow, "usb0Mode" deleted
## Error: environment overflow, "yuk_ethaddr" deleted
## Error: environment overflow, "nandEcc" deleted
## Error: environment overflow, "hddPowerCtrl" deleted
## Error: environment overflow, "netretry" deleted
## Error: environment overflow, "rcvrip" deleted
## Error: environment overflow, "loadaddr" deleted
## Error: environment overflow, "autoload" deleted
## Error: environment overflow, "enaAutoRecovery" deleted

Streaming disabled
Write allocate disabled

Module 0 is RGMII
Module 1 is TDM

USB 0: device mode
PEX 0: interface detected no Link.
Net: ## Error: environment overflow, "ethact" deleted
egiga0, egiga1## Error: environment overflow, "ethact" deleted

USB: scanning bus for devices... 2 USB Device(s) found
scanning bus for storage devices... 1 Storage Device(s) found
Trying to load image from USB flash drive using FAT FS
reading /flashware.img

** Unable to read "/flashware.img" from usb 0:1 **
Trying to load image from USB flash drive using ext2 FS partition 0
Failed to mount ext2 filesystem...
** Bad ext2 partition or disk - usb 0:0 **
Trying to load image from USB flash drive using ext2 FS partition 1
....
.
...................
.........................
..........................T ..
** ext2fs_devread() read error - block

** Unable to read "/flashware.img" from usb 0:1 **
Couldn't load recovery image from USB flash drive, Trying network interface
Aquiring an IP address using DHCP...
## Error: environment overflow, "ethact" deleted
*** ERROR: `ethaddr' not set
## Error: environment overflow, "ethact" deleted
egiga1 no link
## Error: environment overflow, "ethact" deleted
## Error: environment overflow, "ethact" deleted
*** ERROR: `ethaddr' not set
## Error: environment overflow, "ethact" deleted
egiga1 no link
## Error: environment overflow, "ethact" deleted
## Error: environment overflow, "ethact" deleted
*** ERROR: `ethaddr' not set
## Error: environment overflow, "ethact" deleted
egiga1 no link
## Error: environment overflow, "ethact" deleted
Failed to retreive an IP address assuming default (<NULL>)!
Starting the Recovery process to retreive the file...
## Error: environment overflow, "ethact" deleted
*** ERROR: `ethaddr' not set
## Error: environment overflow, "ethact" deleted
egiga1 no link
## Error: environment overflow, "ethact" deleted
Failed
Power Button is pressed!
MPP Sel: 00000530, Data IN Enable: 00020058, Data In Polarity: 00000040, Data In: 00000010
Power Button is released!
MAC: 00:01:32:EA:C6:C0, IP: 10.234.198.192
## Error: environment overflow, "ethaddr" deleted
## Error: environment overflow, "ipaddr" deleted
## Error: environment overflow, "serverip" deleted
## Error: environment overflow, "netmask" deleted
## Error: environment overflow, "image_name" deleted
## Error: environment overflow, "console" deleted
## Error: environment overflow, "bootargs_root" deleted
## Error: environment overflow, "rootpath" deleted
## Error: environment overflow, "ethact" deleted
*** ERROR: `serverip' not set
## Error: environment overflow, "bootargs" deleted
## Booting image at 00800000 ...
Bad Magic Number
Marvell>>

No good. However Nick has produced the following report from your commands:
Quote
SDNick484
-bash-3.2$ dmesg
ed
Use the XOR engines (acceleration) for enhancing the following functions:
o RAID 5 Xor calculation
o kernel memcpy
o kenrel memzero
Number of XOR engines to use: 4
cesadev_init(c000eed0)
mvCesaInit: sessions=640, queue=64, pSram=f0000000
MV Buttons Driver Load
JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
io scheduler noop registered
io scheduler anticipatory registered (default)
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33) is a 16550A
serial8250.0: ttyS1 at MMIO 0xf1012100 (irq = 34) is a 16550A
loop: module loaded
Loading Marvell Ethernet Driver:
o Cached descriptors in DRAM
o DRAM SW cache-coherency
o Multi RX Queue support - 4 RX queues
o Multi TX Queue support - 2 TX Queues
o TCP segmentation offload enabled
o Receive checksum offload enabled
o Transmit checksum offload enabled
o Network Fast Processing (Routing) supported
o Network Fast Processing (NAT) supported
o Driver ERROR statistics enabled
o Driver INFO statistics enabled
o Proc tool API enabled
o Gateway support enabled
o Using Marvell Header Mode
o L2 IGMP support
o Rx descripors: q0=128 q1=128 q2=128 q3=128
o Tx descripors: q0=532 q1=532
o Loading network interface(s):
o eth0, ifindex = 1, GbE port = 0
o eth1, ifindex = 2, GbE port = 1

mvFpRuleDb (c7977000): 1024 entries, 4096 bytes
Intel(R) PRO/1000 Network Driver - version 7.3.20-k2-NAPI
Copyright (c) 1999-2006 Intel Corporation.
e100: Intel(R) PRO/100 Network Driver, 3.5.17-k4-NAPI
e100: Copyright(c) 1999-2006 Intel Corporation
Integrated Sata device found
scsi0 : Marvell SCSI to SATA adapter
scsi1 : Marvell SCSI to SATA adapter
scsi 0:0:0:0: Direct-Access Hitachi HDS721010CLA332 JP4O PQ: 0 ANSI: 5
scsi 1:0:0:0: Direct-Access Seagate ST2000DM001-1CH1 CC24 PQ: 0 ANSI: 5
sd 0:0:0:0: [sda] 1953525168 512-byte hardware sectors (1000205 MB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 23 00 10 00
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, supports DPO and FUA
sd 0:0:0:0: [sda] 1953525168 512-byte hardware sectors (1000205 MB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 23 00 10 00
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, supports DPO and FUA
sda: sda1
sd 0:0:0:0: [sda] Attached SCSI disk
sd 1:0:0:0: [sdb] 3907029168 512-byte hardware sectors (2000399 MB)
sd 1:0:0:0: [sdb] Write Protect is off
sd 1:0:0:0: [sdb] Mode Sense: 23 00 10 00
sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, supports DPO and FUA
sd 1:0:0:0: [sdb] 3907029168 512-byte hardware sectors (2000399 MB)
sd 1:0:0:0: [sdb] Write Protect is off
sd 1:0:0:0: [sdb] Mode Sense: 23 00 10 00
sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, supports DPO and FUA
sdb: sdb1 sdb2
sd 1:0:0:0: [sdb] Attached SCSI disk
sd 0:0:0:0: Attached scsi generic sg0 type 0
sd 1:0:0:0: Attached scsi generic sg1 type 0
NFTL driver: nftlcore.c $Revision: 1.98 $, nftlmount.c $Revision: 1.41 $
NAND device: Manufacturer ID: 0xec, Chip ID: 0xda (Samsung NAND 256MiB 3,3V 8-bit)
Scanning device for bad blocks
Bad eraseblock 512 at 0x04000000
Bad eraseblock 514 at 0x04040000
Bad eraseblock 515 at 0x04060000
Bad eraseblock 1773 at 0x0dda0000
Using static partition definition
Creating 3 MTD partitions on "nand_mtd":
0x00000000-0x00100000 : "u-boot"
0x00100000-0x00700000 : "uImage"
0x00700000-0x10000000 : "root"
UBI: attaching mtd2 to ubi0
UBI: physical eraseblock size: 131072 bytes (128 KiB)
UBI: logical eraseblock size: 126976 bytes
UBI: smallest flash I/O unit: 2048
UBI: sub-page size: 512
UBI: VID header offset: 2048 (aligned 2048)
UBI: data offset: 4096
UBI: attached mtd2 to ubi0
UBI: MTD device name: "root"
UBI: MTD device size: 249 MiB
UBI: number of good PEBs: 1988
UBI: number of bad PEBs: 4
UBI: max. allowed volumes: 128
UBI: wear-leveling threshold: 4096
UBI: number of internal volumes: 1
UBI: number of user volumes: 1
UBI: available PEBs: 0
UBI: total number of reserved PEBs: 1988
UBI: number of PEBs reserved for bad PEB handling: 38
UBI: max/mean erase counter: 19/5
UBI: background thread "ubi_bgt0d" started, PID 298
ehci_marvell ehci_marvell.70059: Marvell Orion EHCI
ehci_marvell ehci_marvell.70059: new USB bus registered, assigned bus number 1
ehci_marvell ehci_marvell.70059: irq 19, io base 0xf1050100
ehci_marvell ehci_marvell.70059: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
ohci_hcd: 2006 August 04 USB 1.1 'Open' Host Controller (OHCI) Driver
USB Universal Host Controller Interface driver v3.0
usbcore: registered new interface driver usblp
drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
mice: PS/2 mouse device common for all mice
i2c /dev entries driver
md: linear personality registered for level -1
md: raid0 personality registered for level 0
md: raid1 personality registered for level 1
raid6: int32x1 81 MB/s
raid6: int32x2 95 MB/s
raid6: int32x4 102 MB/s
raid6: int32x8 92 MB/s
raid6: using algorithm int32x4 (102 MB/s)
md: raid6 personality registered for level 6
md: raid5 personality registered for level 5
md: raid4 personality registered for level 4
raid5: measuring checksumming speed
arm4regs : 903.600 MB/sec
8regs : 629.200 MB/sec
32regs : 750.000 MB/sec
raid5: using function: arm4regs (903.600 MB/sec)
device-mapper: ioctl: 4.11.0-ioctl (2006-10-12) initialised: dm-devel@redhat.com
dm_crypt using the OCF package.
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
usbcore: registered new interface driver usbhid
drivers/hid/usbhid/hid-core.c: v2.6:USB HID core driver
Netfilter messages via NETLINK v0.30.
nf_conntrack version 0.5.0 (1024 buckets, 8192 max)
mvFpNatDb (c7f92000): 1024 entries, 4096 bytes
ip_tables: (C) 2000-2006 Netfilter Core Team
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
NFP (fdb) init 256 entries, 1024 bytes
Bridge firewalling registered
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
md: Autodetecting RAID arrays.
md: autorun ...
md: considering sda1 ...
md: adding sda1 ...
md: created md0
md: bind<sda1>
md: running: <sda1>
raid1: raid set md0 active with 1 out of 2 mirrors
md: ... autorun DONE.
Freeing init memory: 692K
UBIFS: recovery needed
UBIFS: recovery completed
UBIFS: mounted UBI device 0, volume 0, name "rootfs"
UBIFS: file system size: 239857664 bytes (234236 KiB, 228 MiB, 1889 LEBs)
UBIFS: journal size: 9023488 bytes (8812 KiB, 8 MiB, 72 LEBs)
UBIFS: media format: 4 (latest is 4)
UBIFS: default compressor: zlib
UBIFS: reserved for root: 0 bytes (0 KiB)
mvsdmmc: irq =28 start f1090000
mvsdmmc: irq_detect=92
eth0: link down
eth0: started
eth0: link up, full duplex, speed 100 Mbps
kjournald starting. Commit interval 5 seconds
EXT3-fs warning: checktime reached, running e2fsck is recommended
EXT3 FS on sdb1, internal journal
EXT3-fs: recovery complete.
EXT3-fs: mounted filesystem with ordered data mode.
kjournald starting. Commit interval 5 seconds
EXT3-fs warning: checktime reached, running e2fsck is recommended
EXT3 FS on sdb2, internal journal
EXT3-fs: recovery complete.
EXT3-fs: mounted filesystem with ordered data mode.
io scheduler cfq registered
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
svc: unknown version (4 for prog 100003, nfsd)
svc: unknown version (4 for prog 100003, nfsd)
svc: unknown version (4 for prog 100003, nfsd)
svc: unknown version (4 for prog 100003, nfsd)
svc: unknown version (4 for prog 100003, nfsd)
UBI error: ubi_io_read: error -74 while reading 2494 bytes from PEB 472:39400, read 2494 bytes
UBIFS error (pid 19306): try_read_node: cannot read node type 1 from LEB 467:35304, error -74
UBI error: ubi_io_read: error -74 while reading 2494 bytes from PEB 472:39400, read 2494 bytes
UBIFS error (pid 19306): ubifs_check_node: bad CRC: calculated 0x8c50dfbd, read 0xb4d97b97
UBIFS error (pid 19306): ubifs_check_node: bad node at LEB 467:35304
UBIFS error (pid 19306): ubifs_read_node: expected node type 1
UBIFS error (pid 19306): do_readpage: cannot read page 684 of inode 5838, error -117
UBI error: ubi_io_read: error -74 while reading 2320 bytes from PEB 472:41896, read 2320 bytes
UBIFS error (pid 19306): ubifs_read_node: bad node type (0 but expected 1)
UBIFS error (pid 19306): ubifs_read_node: bad node at LEB 467:37800
UBIFS error (pid 19306): do_readpage: cannot read page 685 of inode 5838, error -22
UBI error: ubi_io_read: error -74 while reading 2494 bytes from PEB 472:39400, read 2494 bytes
UBIFS error (pid 19306): try_read_node: cannot read node type 1 from LEB 467:35304, error -74
UBI error: ubi_io_read: error -74 while reading 2494 bytes from PEB 472:39400, read 2494 bytes
UBIFS error (pid 19306): ubifs_check_node: bad CRC: calculated 0x8c50dfbd, read 0xb4d97b97
UBIFS error (pid 19306): ubifs_check_node: bad node at LEB 467:35304
UBIFS error (pid 19306): ubifs_read_node: expected node type 1
UBIFS error (pid 19306): do_readpage: cannot read page 684 of inode 5838, error -117
UBI error: ubi_io_read: error -74 while reading 2494 bytes from PEB 472:39400, read 2494 bytes
UBIFS error (pid 19306): try_read_node: cannot read node type 1 from LEB 467:35304, error -74
UBI error: ubi_io_read: error -74 while reading 2494 bytes from PEB 472:39400, read 2494 bytes
UBIFS error (pid 19306): ubifs_check_node: bad CRC: calculated 0x8c50dfbd, read 0xb4d97b97
UBIFS error (pid 19306): ubifs_check_node: bad node at LEB 467:35304
UBIFS error (pid 19306): ubifs_read_node: expected node type 1
UBIFS error (pid 19306): do_readpage: cannot read page 684 of inode 5838, error -117
UBI error: ubi_io_read: error -74 while reading 2494 bytes from PEB 472:39400, read 2494 bytes
UBIFS error (pid 19306): try_read_node: cannot read node type 1 from LEB 467:35304, error -74
UBI error: ubi_io_read: error -74 while reading 2494 bytes from PEB 472:39400, read 2494 bytes
UBIFS error (pid 19306): ubifs_check_node: bad CRC: calculated 0x8c50dfbd, read 0xb4d97b97
UBIFS error (pid 19306): ubifs_check_node: bad node at LEB 467:35304
UBIFS error (pid 19306): ubifs_read_node: expected node type 1
UBIFS error (pid 19306): do_readpage: cannot read page 684 of inode 5838, error -117
UBI error: ubi_io_read: error -74 while reading 2494 bytes from PEB 472:39400, read 2494 bytes
UBIFS error (pid 19306): try_read_node: cannot read node type 1 from LEB 467:35304, error -74
UBI error: ubi_io_read: error -74 while reading 2494 bytes from PEB 472:39400, read 2494 bytes
UBIFS error (pid 19306): ubifs_check_node: bad CRC: calculated 0x8c50dfbd, read 0xb4d97b97
UBIFS error (pid 19306): ubifs_check_node: bad node at LEB 467:35304
UBIFS error (pid 19306): ubifs_read_node: expected node type 1
UBIFS error (pid 19306): do_readpage: cannot read page 684 of inode 5838, error -117
UBI error: ubi_io_read: error -74 while reading 2494 bytes from PEB 472:39400, read 2494 bytes
UBIFS error (pid 19306): try_read_node: cannot read node type 1 from LEB 467:35304, error -74
UBI error: ubi_io_read: error -74 while reading 2494 bytes from PEB 472:39400, read 2494 bytes
UBIFS error (pid 19306): ubifs_check_node: bad CRC: calculated 0x8c50dfbd, read 0xb4d97b97
UBIFS error (pid 19306): ubifs_check_node: bad node at LEB 467:35304
UBIFS error (pid 19306): ubifs_read_node: expected node type 1
UBIFS error (pid 19306): do_readpage: cannot read page 684 of inode 5838, error -117
UBI error: ubi_io_read: error -74 while reading 2494 bytes from PEB 472:39400, read 2494 bytes
UBIFS error (pid 19306): try_read_node: cannot read node type 1 from LEB 467:35304, error -74
UBI error: ubi_io_read: error -74 while reading 2494 bytes from PEB 472:39400, read 2494 bytes
UBIFS error (pid 19306): ubifs_check_node: bad CRC: calculated 0x8c50dfbd, read 0xb4d97b97
UBIFS error (pid 19306): ubifs_check_node: bad node at LEB 467:35304
UBIFS error (pid 19306): ubifs_read_node: expected node type 1
UBIFS error (pid 19306): do_readpage: cannot read page 684 of inode 5838, error -117
UBI error: ubi_io_read: error -74 while reading 2005 bytes from PEB 745:113240, read 2005 bytes
UBIFS error (pid 19306): try_read_node: cannot read node type 1 from LEB 740:109144, error -74
UBI error: ubi_io_read: error -74 while reading 2005 bytes from PEB 745:113240, read 2005 bytes
UBIFS error (pid 19306): ubifs_check_node: bad CRC: calculated 0xa8ac5fae, read 0xc40e8d62
UBIFS error (pid 19306): ubifs_check_node: bad node at LEB 740:109144
UBIFS error (pid 19306): ubifs_read_node: expected node type 1
UBIFS error (pid 19306): do_readpage: cannot read page 9 of inode 6441, error -117
UBI error: ubi_io_read: error -74 while reading 1662 bytes from PEB 745:115248, read 1662 bytes
UBIFS error (pid 19306): ubifs_read_node: bad node type (0 but expected 1)
UBIFS error (pid 19306): ubifs_read_node: bad node at LEB 740:111152
UBIFS error (pid 19306): do_readpage: cannot read page 10 of inode 6441, error -22
UBI error: ubi_io_read: error -74 while reading 2005 bytes from PEB 745:113240, read 2005 bytes
UBIFS error (pid 19306): try_read_node: cannot read node type 1 from LEB 740:109144, error -74
UBI error: ubi_io_read: error -74 while reading 2005 bytes from PEB 745:113240, read 2005 bytes
UBIFS error (pid 19306): ubifs_check_node: bad CRC: calculated 0xa8ac5fae, read 0xc40e8d62
UBIFS error (pid 19306): ubifs_check_node: bad node at LEB 740:109144
UBIFS error (pid 19306): ubifs_read_node: expected node type 1
UBIFS error (pid 19306): do_readpage: cannot read page 9 of inode 6441, error -117
UBI error: ubi_io_read: error -74 while reading 2005 bytes from PEB 745:113240, read 2005 bytes
UBIFS error (pid 19306): try_read_node: cannot read node type 1 from LEB 740:109144, error -74
UBI error: ubi_io_read: error -74 while reading 2005 bytes from PEB 745:113240, read 2005 bytes
UBIFS error (pid 19306): ubifs_check_node: bad CRC: calculated 0xa8ac5fae, read 0xc40e8d62
UBIFS error (pid 19306): ubifs_check_node: bad node at LEB 740:109144
UBIFS error (pid 19306): ubifs_read_node: expected node type 1
UBIFS error (pid 19306): do_readpage: cannot read page 9 of inode 6441, error -117
SGI XFS with ACLs, large block numbers, no debug enabled
XFS mounting filesystem md0
Starting XFS recovery on filesystem: md0 (logdev: internal)
Ending XFS recovery on filesystem: md0 (logdev: internal)
xfs_inotobp: xfs_imap() returned an error 22 on md0. Returning error.
xfs_iunlink_remove: xfs_inotobp() returned an error 22 on md0. Returning error.
xfs_inactive: xfs_ifree() returned an error = 22 on md0
xfs_force_shutdown(md0,0x1) called from line 1786 of file fs/xfs/xfs_vnodeops.c. Return address = 0xbf0afde8
Filesystem "md0": I/O Error Detected. Shutting down filesystem: md0
Please umount the filesystem, and rectify the problem(s)
XFS mounting filesystem md0
Starting XFS recovery on filesystem: md0 (logdev: internal)
Ending XFS recovery on filesystem: md0 (logdev: internal)
nfsd: last server has exited
nfsd: unexporting all filesystems
svc: unknown version (4 for prog 100003, nfsd)
svc: unknown version (4 for prog 100003, nfsd)
-bash-3.2$


-bash-3.2$ cat /proc/mtd
dev: size erasesize name
mtd0: 00100000 00020000 "u-boot"
mtd1: 00600000 00020000 "uImage"
mtd2: 0f900000 00020000 "root"
-bash-3.2$

-bash-3.2# cat /etc/fw_env.config
cat: /etc/fw_env.config: No such file or directory
-bash-3.2#
-bash-3.2# fw_printenv
-bash: fw_printenv: command not found
-bash-3.2#
Could this help?
Regards
Paul
Re: Netgear Stora MS2110 rootfs Bad Magic Number
June 21, 2020 06:11AM
Dear Paul,

Is this what you are looking for?

Bootlog found on OpenWrt forum archive

EDIT: Additional info here.

Lukasz



Edited 1 time(s). Last edit at 06/21/2020 07:31AM by lukasgl.
Re: Netgear Stora MS2110 rootfs Bad Magic Number
June 21, 2020 03:58PM
Lukasz,

Thanks!

Paul,

Let me take a look at the info and tell you and stormy what I think.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Netgear Stora MS2110 rootfs Bad Magic Number
June 21, 2020 04:01PM
First,

This problem is probably not a bad NAND. This looks like a bug in stock u-boot. And you got into this situation when you did resetenv.

CRC in Flash: ffffffff, Calculated CRC: 619d86db

and

Environment size: 131069/131068 bytes

-bodhi
===========================
Forum Wiki
bodhi's corner



Edited 3 time(s). Last edit at 06/21/2020 04:43PM by bodhi.
Re: Netgear Stora MS2110 rootfs Bad Magic Number
June 21, 2020 04:38PM
Paul,

I did not ask you to try this. At u-boot prompt, run this command to check NAND:
nand bad

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Netgear Stora MS2110 rootfs Bad Magic Number
June 21, 2020 04:51PM
Paul,

OK. I looked at the boot log at OpenWRT links from Lukasz's post.

There is no hint where the envs are located in NAND!

So I guess we need to look at the back up mtd0 file to figure out. Here is u-boot_mtd0 from Erik:

https://forum.doozan.com/read.php?3,33178,33184#msg-33184

==============

Lukasz,

Do you have your own mtd0 backup?

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Netgear Stora MS2110 rootfs Bad Magic Number
June 21, 2020 05:18PM
OK so I tink I have figured out the location of the stock envs in NAND.

Let's wait until Paul come back.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Netgear Stora MS2110 rootfs Bad Magic Number
June 21, 2020 10:49PM
Dear Bodhi (and Lucasz)

Thanks for your hard work.
Quote
Result from "nand bad" at Marvell>> prompt
Marvell>> nand bad

Device 0 bad blocks:
01940000
01960000
05c20000
09200000
09220000
09280000
09960000
Marvell>>
Regards
Paul
Re: Netgear Stora MS2110 rootfs Bad Magic Number
June 22, 2020 01:36AM
Paul,

> Marvell>> nand bad
>
> Device 0 bad blocks:
> 01940000
> 01960000
> 05c20000
> 09200000
> 09220000
> 09280000
> 09960000
> Marvell>>
> [/quote]

The bad blocks are OK. They are way beyond where u-boot is.

We can bite the bullet and erase NAND envs area and hope it will work. Let's do that tomorrow, if no other option is working.

=====

However, before we do that, see stormy post:

https://forum.doozan.com/read.php?3,104929,105074#msg-105074

Quote

But for example if I try to list the contents of the usb flash everything works fine:

Marvell>> ext2ls usb 0:1
<DIR> 4096 .
<DIR> 4096 ..
<DIR> 4096 lost+found
470736 u-boot.bin
Marvell>>

So can you do the same?

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Netgear Stora MS2110 rootfs Bad Magic Number
June 22, 2020 08:45AM
Bodhi

Listing the USB produces erratic results. Consistently 'usb part' hangs the terminal and I usually have to do a hard reset on the Stora, but most of the time other USB commands produce meaningful reports - but sometimes hang the terminal. Below is an example which seemed well behaved, but nonetheless the Stora will not boot the flashware image from hard reset, no will it ext2load flashware or mtd0 even after some gentle listing exercise
Quote
usb dir console

__ __ _ _
| \/ | __ _ _ ____ _____| | |
| |\/| |/ _` | '__\ \ / / _ \ | |
| | | | (_| | | \ V / __/ | |
|_| |_|\__,_|_| \_/ \___|_|_|
_ _ ____ _
| | | | | __ ) ___ ___ | |_
| | | |___| _ \ / _ \ / _ \| __|
| |_| |___| |_) | (_) | (_) | |_
\___/ |____/ \___/ \___/ \__|
** MARVELL BOARD: RD-88F6281A LE

U-Boot 1.1.4 (Sep 4 2009 - 09:36:11) Marvell version: 3.4.14

U-Boot code: 00600000 -> 0067FFF0 BSS: -> 006CEE60

Soc: 88F6281 A0 (DDR2)
CPU running @ 1000Mhz L2 running @ 333Mhz
SysClock = 333Mhz , TClock = 200Mhz

DRAM CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6
DRAM CS[0] base 0x00000000 size 64MB
DRAM CS[1] base 0x04000000 size 64MB
DRAM Total size 128MB 16bit width
Flash: 0 kB
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
NAND:256 MB
CRC in Flash: ffffffff, Calculated CRC: 619d86db
+++++++++++++++++++++++++++Checksum Error!++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++Checksum Error!++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++Checksum Error!++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++Checksum Error!++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++Checksum Error!++++++++++++++++++++++++++++++
## Error: environment overflow, "stdin" deleted
## Error: environment overflow, "stdout" deleted
## Error: environment overflow, "stderr" deleted

CPU : Marvell Feroceon (Rev 1)
## Error: environment overflow, "console" deleted
## Error: environment overflow, "mainlineLinux" deleted
## Error: environment overflow, "CASset" deleted
## Error: environment overflow, "enaMonExt" deleted
## Error: environment overflow, "enaCpuStream" deleted
## Error: environment overflow, "enaWrAllo" deleted
## Error: environment overflow, "pexMode" deleted
## Error: environment overflow, "disL2Cache" deleted
## Error: environment overflow, "setL2CacheWT" deleted
## Error: environment overflow, "disL2Prefetch" deleted
## Error: environment overflow, "enaICPref" deleted
## Error: environment overflow, "enaDCPref" deleted
## Error: environment overflow, "sata_dma_mode" deleted
## Error: environment overflow, "MALLOC_len" deleted
## Error: environment overflow, "ethprime" deleted
## Error: environment overflow, "netbsd_en" deleted
## Error: environment overflow, "vxworks_en" deleted
## Error: environment overflow, "bootargs_root" deleted
## Error: environment overflow, "bootargs_end" deleted
## Error: environment overflow, "image_name" deleted
## Error: environment overflow, "bootcmd" deleted
## Error: environment overflow, "standalone" deleted
## Error: environment overflow, "bootdelay" deleted
## Error: environment overflow, "disaMvPnp" deleted
## Error: environment overflow, "disaMvPnp" deleted
## Error: environment overflow, "ethaddr" deleted
## Error: environment overflow, "ethmtu" deleted
## Error: environment overflow, "eth1addr" deleted
## Error: environment overflow, "eth1mtu" deleted
## Error: environment overflow, "mvPhoneConfig" deleted
## Error: environment overflow, "mvNetConfig" deleted
## Error: environment overflow, "usb0Mode" deleted
## Error: environment overflow, "yuk_ethaddr" deleted
## Error: environment overflow, "nandEcc" deleted
## Error: environment overflow, "hddPowerCtrl" deleted
## Error: environment overflow, "netretry" deleted
## Error: environment overflow, "rcvrip" deleted
## Error: environment overflow, "loadaddr" deleted
## Error: environment overflow, "autoload" deleted
## Error: environment overflow, "enaAutoRecovery" deleted

Streaming disabled
Write allocate disabled

Module 0 is RGMII
Module 1 is TDM

USB 0: device mode
PEX 0: interface detected no Link.
Net: ## Error: environment overflow, "ethact" deleted
egiga0, egiga1## Error: environment overflow, "ethact" deleted

USB: scanning bus for devices... 2 USB Device(s) found
scanning bus for storage devices... 1 Storage Device(s) found
Trying to load image from USB flash drive using FAT FS
reading /flashware.img

** Unable to read "/flashware.img" from usb 0:1 **
Trying to load image from USB flash drive using ext2 FS partition 0
Failed to mount ext2 filesystem...
** Bad ext2 partition or disk - usb 0:0 **
Trying to load image from USB flash drive using ext2 FS partition 1
....
.
...................
.........................
...................................................

1048576 bytes read
## Error: environment overflow, "filesize" deleted
Missing loadaddr environment variable assuming default (0x400000)!
Update bootcmd
## Error: environment overflow, "bootcmd" deleted
## Error: environment overflow, "console" deleted
Erasing Nand...Writing to Nand... done

bootcmd: setenv bootargs $(console) root=/dev/ram0 rootfstype=squashfs initrd=0x600000,0xffd00000 ramdisk_size=-3072 recovery=usb serverip=0.0.0.0; bootm 0x400000;
## Error: environment overflow, "bootcmd" deleted
Booting the image (@ 0x400000)...
Power Button is pressed!
MPP Sel: 00000530, Data IN Enable: 00020058, Data In Polarity: 00000040, Data In: 00000011
Power Button is released!
MAC: 00:01:49:E9:42:39, IP: 10.233.66.57
## Error: environment overflow, "ethaddr" deleted
## Error: environment overflow, "ipaddr" deleted
## Error: environment overflow, "serverip" deleted
## Error: environment overflow, "netmask" deleted
## Error: environment overflow, "image_name" deleted
## Error: environment overflow, "console" deleted
## Error: environment overflow, "bootargs_root" deleted
## Error: environment overflow, "rootpath" deleted
## Error: environment overflow, "ethact" deleted
*** ERROR: `serverip' not set
## Error: environment overflow, "bootargs" deleted
## Booting image at 00800000 ...
Bad Magic Number
Marvell>>
Marvell>>
Marvell>> usb tree

Device Tree:
1 Hub (480MBit/s, 0mA)
| Marvell EHCI
|
+-2 Mass Storage (480MBit/s, 200mA)
SanDisk' Cruzer Fit 4C530000090307203144

Marvell>> ext2ls usb 0:1
<DIR> 4096 .
<DIR> 4096 ..
<DIR> 16384 lost+found
1048576 flashware.img
Marvell>> ext2load usb 0:1 0x800000 /flashware.img
....
.
...................
.........................
............................
** ext2fs_devread() read error - block

** Unable to read "/flashware.img" from usb 0:1 **
Marvell>>

Perhaps the corrupt environments are still plaguing us. Ready when you are . . .
Regards, Paul
Re: Netgear Stora MS2110 rootfs Bad Magic Number
June 22, 2020 05:23PM
All,

Can anybody still log in to stock OS? If you can, at the shell prompt, do

blparams
See if the envs are listed correctly.

The above is just a confirmation, I am pretty sure I know where this NAND envs area is.

I'm going to write a few commands to wipe the envs in serial console (I'll come back about 6,7 hours from now).

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Netgear Stora MS2110 rootfs Bad Magic Number
June 23, 2020 12:19AM
Bodhi,

Quote

Can anybody still log in to stock OS?

I may try but need guide how to chenge U-Boot evs to boot from NAND.

Lukasz
Re: Netgear Stora MS2110 rootfs Bad Magic Number
June 23, 2020 01:58AM
Hi Paul and stormy,

Here is how you erase the NAND envs area.

Warning: this is the last resort in unbricking this box, after everything else has failed to unbrick your box. There is a risk in doing this, that could brick your box for good. And then the only way to recover it would be to connect JTAG. And JTAG on this box has not been tried before, to my knowledge.

With that said, you know the risk, let's proceed.

Power up, interrupt serial console and copy and paste this command to the u-boot prompt, and execute it,

nand erase 0x000A0000 0x20000

If there is error in output, stop, and post the entire serial console log so far here. I will take look.

After this, the whole 128K (1 block) at NAND envs location should be erased to 0's. Thus, the checksum will be invalid on the next boot.

Cross your finger and do a reset to start u-boot again.

reset

When it boots back, the CRC should show that it is bad. And that's what we want to see. Go ahead and

printenv

And post the entire serial console log here.

I will be online for the next few hours, don't turn off power or run any command, keep it running and I'll come back to recommend the next step.

-bodhi
===========================
Forum Wiki
bodhi's corner
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: