EA3500 debrick support

Serial interface is installed. Booting from NAND or USB, I get this:

         __  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ V /  __/ | |
        |_|  |_|\__,_|_|    \_/ \___|_|_|
 _   _     ____              _
| | | |   | __ )  ___   ___ | |_
| | | |___|  _ \ / _ \ / _ \| __|
| |_| |___| |_) | (_) | (_) | |_
 \___/    |____/ \___/ \___/ \__|
 ** WNC BOARD: audi R2.2 LE **

U-Boot 1.1.4 (Jan  2 2012 - 19:59:08) Marvell version: 3.5.9

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

Soc: 88F6282 A1CPU running @ 800Mhz L2 running @ 400Mhz
SysClock = 400Mhz , TClock = 200Mhz

DRAM (DDR2) CAS Latency = 5 tRP = 6 tRAS = 18 tRCD=6
DRAM CS[0] base 0x00000000   size  64MB
DRAM Total size  64MB  16bit width
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
NAND:64 MB
Flash:  0 kB

CPU : Marvell Feroceon (Rev 1)
u_env Offset: 00080000
s_env Offset: 00084000

Streaming disabled
Write allocate disabled

Module 0 is RGMII

USB 0: host mode
PEX 0: PCI Express Root Complex Interface
PEX interface detected Link X1
PEX 1: PCI Express Root Complex Interface
PEX interface detected Link X1

Updating boot_count ... done

Net:   egiga0 [PRIME], egiga1
Hit any key to stop autoboot:  0

NAND read: device 0 offset 0x1600000, size 0x300000

Reading data from 0x18ffe00 -- 100% complete.
 3145728 bytes read: OK
## Booting image at 02000000 ...
Bad Magic Number
Audi>> usb start
(Re)start USB...
USB:   scanning bus for devices... 2 USB Device(s) found
Waiting for storage device(s) to settle before scanning...
1 Storage Device(s) found
Audi>> fatls usb 0:1
.
            system volume information/
.
.
            1505/
            15051/
            17015/
            audigerman/
.
  3505278   uimage

1 file(s), 5 dir(s)

Audi>>
Audi>> usbboot usb 0:1

Loading from USB device 0, partition 1: Name: usbda1
  Type: U-Boot

** Bad Magic Number **
Audi>>


Using Jounin's tftpd64 for windows, the boot or dhcp command fails from serial console; sometimes an IP gets assigned, but the bootp process fails after the 5 tries.

I'm following this link: https://wiki.openwrt.org/toh/linksys/ea3500#flash_layout .
I keep getting Bad Magic Number, booting from USB stick, NAND partition 1 or 3.

There is a section on debricking if that is of any use:

https://wiki.openwrt.org/toh/linksys/ea3500#debricking

1 Like

Thanks. I got further. Here is the first log. The second log, rebooting twice, won't upload:

Audi>> tftpboot 0x2000000 factory.bin
Using egiga0 device
TFTP from server 192.168.1.254; our IP address is 192.168.1.10
Filename 'factory.bin'.
Load address: 0x2000000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ############################################################
done
Bytes transferred = 5963776 (5b0000 hex)
Audi>> nand erase 0x200000 0x290000

NAND erase: device 0 offset 0x200000, size 0x290000
Erasing at 0x48c000 -- 100% complete.
OK
Audi>> nand write.e 0x2000000 0x200000 0x290000

NAND write: device 0 offset 0x200000, size 0x290000

Writing data at 0x48fe00 -- 100% complete.
 2686976 bytes written: OK
Audi>> nand erase 0x490000 ${filesize}

NAND erase: device 0 offset 0x490000, size 0x5b0000
Erasing at 0xa3c000 -- 100% complete.
OK
Audi>> nand write.e 0x2290000 0x200000 ${filesize}

NAND write: device 0 offset 0x200000, size 0x5b0000

Failed write verify, nand offset 0x00200000. Suggest to erase block and repeat write operation!
 If problem persists suggest marking block as bad (nand markbad <offset>) and repeating the operation!
writing NAND page at offset 0x200000 failed
Data did not fit into device, due to bad blocks
 5963776 bytes written: ERROR
Audi>>


After resetting, it reboots twice and stays at the Audi>> prompt.

That is your problem described here.

You need to erase that block and mark bad offsets as the message describes.

Sorry I don't know the command to achieve that

1 Like

An example:

2 Likes

This worked. No need to mark bad blocks; just needed to boot into openwrt.


Audi»tftpboot 0x2000000 lede-17.01.5-kirkwood-linksys-audi-initramfs-uImage
bootm
cd /tmp
wget http://downloads.openwrt.org/releases/17.01.5/targets/kirkwood/generic/lede-17.01.5-kirkwood-linksys-audi-squashfs-sysupgrade.tar
wget http://downloads.openwrt.org/releases/17.01.5/targets/kirkwood/generic/lede-17.01.5-kirkwood-linksys-audi-initramfs-uImage
wget http://downloads.openwrt.org/releases/17.01.5/targets/kirkwood/generic/lede-17.01.5-kirkwood-linksys-audi-squashfs-factory.bin
mtd erase kernel1
mtd write lede-17.01.5-kirkwood-linksys-audi-initramfs-uImage kernel1
mtd erase ubi
mtd write lede-17.01.5-kirkwood-linksys-audi-squashfs-factory.bin ubi
mtd erase kernel2
mtd write  lede-17.01.5-kirkwood-linksys-audi-initramfs-uImage kernel2
mtd erase rootfs2
mtd write lede-17.01.5-kirkwood-linksys-audi-squashfs-sysupgrade.tar rootfs2
reboot

1 Like