Quantcast
Channel: Linux Device Hacking - uBoot
Viewing all articles
Browse latest Browse all 902

PogoPlug V4 won't boot after failed env input (1 reply)

$
0
0
Hello everyone,

I was trying to do a reinstall of arch on my pogoplug when the power in the part of the house where the pogolpug was connected went down. My pogo didn't start correctly so I soldered a serial cable. I can see what is happening via putty. Could somebody please help me to get the pogoplug working again? I am not a very experienced user.

This is the installation log, in-till power went down:
login as: root
root@192.168.178.17's password:
~ # killall hbwd
~ # cd /tmp
/tmp # wget http://download.doozan.com/uboot/nanddump
Connecting to download.doozan.com (50.116.34.13:80)
/tmp # wget http://download.doozan.com/uboot/nandwrite
Connecting to download.doozan.com (50.116.34.13:80)
/tmp # wget http://download.doozan.com/uboot/flash_erase
Connecting to download.doozan.com (50.116.34.13:80)
/tmp # wget http://download.doozan.com/uboot/fw_printenv
Connecting to download.doozan.com (50.116.34.13:80)
/tmp # chmod +x flash_erase fw_printenv nanddump nandwrite
/tmp # cp fw_printenv fw_setenv
/tmp # mount -o remount,rw /
/tmp # echo "/dev/mtd0 0xc0000 0x20000 0x20000">/etc/fw_env.config
/tmp # wget http://download.qnology.com/pogoplug/v4/uboot.2014.07-tld-1.pogo_v4.
bodhi.tar
Connecting to download.qnology.com (162.252.240.221:80)
/tmp # wget http://download.qnology.com/pogoplug/v4/uboot.2014.07-tld-1.pogo_v4.
bodhi.md5
Connecting to download.qnology.com (162.252.240.221:80)
/tmp # md5sum uboot.2014.07-tld-1.pogo_v4.bodhi.tar
d4b497dc5239844fd2d45f4ca83132e0  uboot.2014.07-tld-1.pogo_v4.bodhi.tar
/tmp # cat uboot.2014.07-tld-1.pogo_v4.bodhi.md5
d4b497dc5239844fd2d45f4ca83132e0

/tmp #
/tmp # tar -xf uboot.2014.07-tld-1.pogo_v4.bodhi.tar
/tmp # /tmp/flash_erase /dev/mtd0 0 4
Erase Total 4 Units
Performing Flash Erase of length 131072 at offset 0x60000 done
/tmp # /tmp/nandwrite /dev/mtd0 /tmp/uboot.2014.07-tld-1.pogo_v4.mtd0.kwb
Writing data to block 0 at offset 0x0
Writing data to block 1 at offset 0x20000
Writing data to block 2 at offset 0x40000
Writing data to block 3 at offset 0x60000
/tmp #
/tmp # wget http://download.qnology.com/pogoplug/v4/uboot.2014.07-tld-1.environm
ent.img.bodhi.tar
Connecting to download.qnology.com (162.252.240.221:80)
/tmp # wget http://download.qnology.com/pogoplug/v4/uboot.2014.07-tld-1.environm
ent.img.bodhi.md5
Connecting to download.qnology.com (162.252.240.221:80)
/tmp # d5sum uboot.2014.07-tld-1.environment.img.bodhi.tar
-sh: d5sum: not found
/tmp # cat uboot.2014.07-tld-1.environment.img.bodhi.md5
c5921e3ea0a07a859878339ffb771088

/tmp # tar -xf uboot.2014.07-tld-1.environment.img.bodhi.tar
/tmp # /tmp/flash_erase /dev/mtd0 0xc0000 1
Erase Total 1 Units
Performing Flash Erase of length 131072 at offset 0xc0000 done
/tmp # /tmp/nandwrite -s 786432 /dev/mtd0 uboot.2014.07-tld-1.environment.img
Writing data to block 6 at offset 0xc0000
/tmp #
/tmp # /tmp/fw_setenv ethaddr "$(cat /sys/class/net/eth0/address)"
Cannot parse config file: Invalid argument
/tmp # /tmp/fw_printenv ethaddr
Cannot parse config file: Invalid argument
/tmp # /tmp/fw_setenv ethaddr "$(cat /sys/class/net/eth0/address)"
Cannot parse config file: Invalid argument
/tmp # /tmp/fw_setenv ethaddr "$(cat /sys/class/net/eth0/address)"
Cannot parse config file: Invalid argument
/tmp # /tmp/fw_printenv ethaddr
Cannot parse config file: Invalid argument
/tmp # /tmp/fw_setenv arcNumber 3960
Cannot parse config file: Invalid argument
/tmp # /tmp/fw_setenv machid F78
Cannot parse config file: Invalid argument
/tmp # /tmp/flash_erase /dev/mtd0 0xc0000 1
Erase Total 1 Units
Performing Flash Erase of length 131072 at offset 0xc0000 done
/tmp # /tmp/nandwrite -s 786432 /dev/mtd0 uboot.2014.07-tld-1.environment.img
Writing data to block 6 at offset 0xc0000
/tmp #
/tmp # /tmp/fw_setenv ethaddr "$(cat /sys/class/net/eth0/address)"
Cannot parse config file: Invalid argument
/tmp # /tmp/fw_setenv usb_rootfstype ext3
Cannot parse config file: Invalid argument
/tmp # reboot
-sh: reboot: not found
/tmp # /
-sh: /: Permission denied
/tmp #
/tmp # #SET MACADDRESS
/tmp # /tmp/fw_setenv ethaddr "$(cat /sys/class/net/eth0/address)"
Cannot parse config file: Invalid argument
/tmp # /tmp/fw_setenv ethaddr "$(cat /sys/class/net/eth0/address)"
Cannot parse config file: Invalid argument
/tmp # /tmp/fw_printenv ethaddr
Cannot parse config file: Invalid argument
/tmp # /tmp/fw_setenv arcNumber 3960
Cannot parse config file: Invalid argument
/tmp # /tmp/fw_setenv machid F78.
Cannot parse config file: Invalid argument
/tmp # wget http://download.qnology.com/pogoplug/v4/uboot.2014.07-tld-1.environm
ent.img.bodhi.tar
Connecting to download.qnology.com (162.252.240.221:80)
wget: can't open 'uboot.2014.07-tld-1.environment.img.bodhi.tar': File exists
/tmp # wget http://download.qnology.com/pogoplug/v4/uboot.2014.07-tld-1.environm
ent.img.bodhi.md5
Connecting to download.qnology.com (162.252.240.221:80)
wget: can't open 'uboot.2014.07-tld-1.environment.img.bodhi.md5': File exists
/tmp # md5sum uboot.2014.07-tld-1.environment.img.bodhi.tar
c5921e3ea0a07a859878339ffb771088  uboot.2014.07-tld-1.environment.img.bodhi.tar
/tmp # cat uboot.2014.07-tld-1.environment.img.bodhi.md5
c5921e3ea0a07a859878339ffb771088

/tmp # tar -xf uboot.2014.07-tld-1.environment.img.bodhi.tar
/tmp # /tmp/flash_erase /dev/mtd0 0xc0000 1
Erase Total 1 Units
Performing Flash Erase of length 131072 at offset 0xc0000 done
/tmp # /tmp/nandwrite -s 786432 /dev/mtd0 uboot.2014.07-tld-1.environment.img
Writing data to block 6 at offset 0xc0000
/tmp #
/tmp # /tmp/fw_setenv ethaddr "$(cat /sys/class/net/eth0/address)"
Cannot parse config file: Invalid argument

This is what is happening when de device boots:
U-Boot 2014.07-tld-1 (Jul 18 2014 - 00:59:45)
Pogoplug V4

SoC:   Kirkwood 88F6192_A1
DRAM:  128 MiB
WARNING: Caches not enabled
NAND:  128 MiB
MMC:   kwsdio: 0
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
Warning: failed to set MAC address

Hit any key to stop autoboot:  0
Pogov4> printenv
arcNumber=2097
baudrate=115200
bootargs=root=ubi0:rootfs ubi.mtd=2,512 rootfstype=ubifs console=ttyS0,115200 elevator=cfq mac_adr=0x00,0x25,0x31,0x00,0xd4,0x6f mem=128 poweroutage=yes
bootcmd=run boot_nand
bootcmd_mmc=run mmc_init; run set_bootargs_mmc; run mmc_boot
bootcmd_sata=run sata_init; run set_bootargs_sata; run sata_boot;
bootcmd_usb=run usb_init; run set_bootargs_usb; run usb_boot;
bootdelay=10
console=ttyS0,115200
device=0:1
ethact=egiga0
if_netconsole=ping $serverip
ipaddr=192.168.0.231
led_error=orange blinking
led_exit=green off
led_init=green blinking
machid=0x831
mainlineLinux=yes
mmc_boot=mw 0x800000 0 1; run mmc_load_uimage; if run mmc_load_uinitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi
mmc_init=mmc rescan
mmc_load_uimage=ext2load mmc $device 0x800000 /boot/uImage
mmc_load_uinitrd=ext2load mmc $device 0x1100000 /boot/uInitrd
mmc_root=/dev/mmcblk0p1
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
partition=nand0,2
preboot_nc=run if_netconsole start_netconsole
rootdelay=10
rootfstype=ext3
sata_boot=mw 0x800000 0 1; run sata_load_uimage; if run sata_load_uinitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi
sata_init=ide reset
sata_load_uimage=ext2load ide $device 0x800000 /boot/uImage
sata_load_uinitrd=ext2load ide $device 0x1100000 /boot/uInitrd
sata_root=/dev/sda1
serverip=192.168.0.220
set_bootargs_mmc=setenv bootargs console=$console root=$mmc_root rootdelay=$rootdelay rootfstype=$rootfstype $mtdparts
set_bootargs_sata=setenv bootargs console=$console root=$sata_root rootdelay=$rootdelay rootfstype=$rootfstype $mtdparts
set_bootargs_usb=setenv bootargs console=$console root=$usb_root rootdelay=$rootdelay rootfstype=$rootfstype $mtdparts
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;
stderr=serial
stdin=serial
stdout=serial
usb_boot=mw 0x800000 0 1; run usb_load_uimage; if run usb_load_uinitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi
usb_init=usb start
usb_load_uimage=ext2load usb $device 0x800000 /boot/uImage
usb_load_uinitrd=ext2load usb $device 0x1100000 /boot/uInitrd
usb_root=/dev/sda1

Environment size: 2304/131068 bytes

As you can see it loads Uboot, but doesn't set a mac adress. I really hope somebody can help me with this.

Viewing all articles
Browse latest Browse all 902

Trending Articles