Reflashing NAND from uBoot?

This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.

Reflashing NAND from uBoot?

Postby mycorunner » Fri Jul 27, 2012 12:33 am

I bricked my pogoplug E02 but have serial access. I realize there are similar threads posted but I am not sure if the problem I'm having is the same, so I started a new thread.

I had ALARM running on a pogoplug E02 and I changed the arc number from 2098. I didn't really know what I was doing (trying to get the LEDs to work correctly) and sure enough, it wouldn't boot, with or without the usb flash drive with ALARM. I had previously installed Jeff Doozan's rescue system as well. Here is what I get when I boot:

$this->bbcode_second_pass_code('', 'U-Boot 2010.09 (Oct 23 2010 - 11:51:16)
Marvell-PinkPogo by Jeff Doozan

SoC: Kirkwood 88F6281_A0
DRAM: 256 MiB
NAND: 128 MiB
*** Warning - bad CRC or NAND, using default environment

In: serial
Out: serial
Err: serial
Net: egiga0
88E1116 Initialized on egiga0
Hit any key to stop autoboot: 0
(Re)start USB...
USB: Register 10011 NbrPorts 1
USB EHCI 1.00
scanning bus for devices... 2 USB Device(s) found
scanning bus for storage devices... 0 Storage Device(s) found
** Block device usb 0 not supported
** Block device usb 0 not supported
Wrong Image Format for bootm command
ERROR: can't get kernel image!
stopping USB..
### JFFS2 loading 'uboot-original-mtd0.kwb' to 0x800000
Scanning JFFS2 FS: done.
find_inode failed for name=uboot-original-mtd0.kwb
load: Failed to find inode
### JFFS2 LOAD ERROR<0> for uboot-original-mtd0.kwb!
## Starting application at 0x00800200 ...
')

I updated the uBoot following this guide (http://forum.doozan.com/read.php?3,6965) and from what I can tell it is working, but I can't boot into the device. I don't have a USB set up to test booting from USB (the pogoplug was my only linux computer...)

Is there a way I can flash either the Rescue System or the original firmware via serial and tftp the way I did with uBoot, or will I need to get a system up and running from USB to do that?
Last edited by mycorunner on Fri Jul 27, 2012 5:35 pm, edited 1 time in total.
mycorunner
 
Posts: 5
Joined: Tue Dec 13, 2011 11:38 pm

Re: debug via serial - E02

Postby mycorunner » Fri Jul 27, 2012 12:37 am

Also, here is the output of 'printenv' if I interrupt the boot process:
$this->bbcode_second_pass_code('', 'Marvell>> printenv
bootcmd=run bootcmd_usb; usb stop; run bootcmd_pogo; reset
bootdelay=3
baudrate=115200
preboot=
arcNumber=2097
mainlineLinux=yes
console=ttyS0,115200
usb_init=usb start
usb_device=0:1
usb_root=/dev/sda1
usb_rootfstype=ext2
usb_rootdelay=10
mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
mtdids=nand0=orion_nand
partition=nand0,2
bootcmd_pogo=fsload uboot-original-mtd0.kwb; go 0x800200
usb_load_uimage=mw 0x800000 0 1; ext2load usb $usb_device 0x800000 /boot/uImage
usb_boot=if ext2load usb $usb_device 0x1100000 /boot/uInitrd; then bootm 0x800000 0x1100000;else bootm 0x800000;fi;
set_bootargs_usb=setenv bootargs console=$console root=$usb_root rootdelay=$usb_rootdelay rootfstype=$usb_rootfstype $mtdparts
bootcmd_usb=run usb_init; run usb_load_uimage; run set_bootargs_usb; run usb_boot;
led_init=green blinking
led_exit=green off
led_error=orange blinking
stdin=serial
stdout=serial
stderr=serial
ethaddr=02:50:43:9e:e3:3d
ethact=egiga0

Environment size: 966/131068 bytes')

Hopefully that helps...
mycorunner
 
Posts: 5
Joined: Tue Dec 13, 2011 11:38 pm

Re: Reflashing NAND from uBoot?

Postby moonman » Thu Aug 02, 2012 4:33 pm

On E02 arcNumber=3542
For some reason it doesn't recognise your USB flash/hard drive as a storage device...

I think you will get more help regarding U-Boot at doozan forums
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am


Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 5 guests