Welcome! Log In Create A New Profile

Advanced

Trying to restore to Original Firmware Pogoplug E02

Posted by myhobby 
Trying to restore to Original Firmware Pogoplug E02
August 20, 2017 03:48AM
Some years ago I replaced the original firmware of 1 of the pogoplugs. I used the usb stick for something else and that resulted in a non booting Pogoplug.

During the years this kept bugging me, so I'm now putting some effort in restoring it to the unboxing condition.

Many, many hours have been burned to get to the following result below (which was interesting to achieve).

OX820 # setenv uinitrd_addr '0x60e00000'
OX820 # setenv uimage_addr '0x60500000'
OX820 # setenv dtb_addr '0x62c00000'
OX820 # setenv ide_set_bootargs 'setenv bootargs console=ttyS0,115200 root=/dev/sda1 rootdelay=10'
OX820 # setenv dt_bootm 'bootm $uimage_addr $uinitrd_addr $dtb_addr'
OX820 # setenv dt_load_dtb 'ext2load ide 0:1 $dtb_addr /boot/dts/ox820-pogoplug-pro.dtb'
OX820 # setenv dt_load_initrd 'ext2load ide 0:1 $uinitrd_addr /boot/uInitrd'
OX820 # setenv dt_load_uimage 'ext2load ide 0:1 $uimage_addr /boot/uImage'
OX820 # setenv dt_ide_boot 'run dt_load_uimage; run dt_load_initrd; run dt_load_dtb; run dt_bootm'
OX820 # setenv dt_ide_bootcmd 'run ide_set_bootargs; run dt_ide_boot'
OX820 # setenv dt_bootcmd_ide 'ide reset; run dt_ide_bootcmd; reset'
OX820 # setenv bootcmd 'run dt_bootcmd_ide'
OX820 # boot

Reset IDE: Bus 0: OK
Device 0: Model: STM3250318AS Firm: CC38 Ser#: 9VY5LZFJ
Type: Hard Disk
Supports 48-bit addressing
Capacity: 238475.1 MB = 232.8 GB (488397168 x 512)
3676848 bytes read in 606 ms (5.8 MiB/s)
2103272 bytes read in 464 ms (4.3 MiB/s)
7029 bytes read in 61 ms (112.3 KiB/s)
## Booting kernel from Legacy Image at 60500000 ...
Image Name: Linux-3.12.13-oxnas-tld-5
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3676784 Bytes = 3.5 MiB
Load Address: 60008000
Entry Point: 60008000
Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 60e00000 ...
Image Name: initramfs-3.12.13-oxnas-tld-5
Image Type: ARM Linux RAMDisk Image (gzip compressed)
Data Size: 2103208 Bytes = 2 MiB
Load Address: 60000000
Entry Point: 60000000
Verifying Checksum ... OK
## Flattened Device Tree blob at 62c00000
Booting using the fdt blob at 0x62c00000
Loading Kernel Image ... OK
Loading Ramdisk to 67c26000, end 67e277a8 ... OK
Loading Device Tree to 67c21000, end 67c25b74 ... OK

Led: GREEN

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 3.12.13-oxnas-tld-5 (root@tldDebian) (gcc version 4.6.3 (Debian 4.6.3-14) ) #3 SMP PREEMPT Mon May 12 17:42:03 PDT 2014
[ 0.000000] CPU: ARMv6-compatible processor [410fb025] revision 5 (ARMv7), cr=00c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] Machine: PLXTECH NAS782X SoC (Flattened Device Tree), model: Pogoplug Pro
[ 0.000000] Memory policy: ECC disabled, Data cache writealloc
[ 0.000000] DT missing boot CPU MPIDR[23:0], fall back to default cpu_logical_map
[ 0.000000] Start Ox820 platform
[ 0.000000] PERCPU: Embedded 7 pages/cpu @c0826000 s6656 r8192 d13824 u32768
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32512
[ 0.000000] Kernel command line: console=ttyS0,115200 root=/dev/sda1 rootdelay=10
[ 0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[ 0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] Memory: 120492K/131072K available (5186K kernel code, 234K rwdata, 1460K rodata, 158K init, 223K bss, 10580K reserved)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
[ 0.000000] vmalloc : 0xc8800000 - 0xff000000 ( 872 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xc8000000 ( 128 MB)
[ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB)
[ 0.000000] .text : 0xc0008000 - 0xc0685b90 (6647 kB)
[ 0.000000] .init : 0xc0686000 - 0xc06ada00 ( 159 kB)
[ 0.000000] .data : 0xc06ae000 - 0xc06e8aa0 ( 235 kB)
[ 0.000000] .bss : 0xc06e8aac - 0xc0720868 ( 224 kB)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[ 0.000000] Preemptible hierarchical RCU implementation.
[ 0.000000] NR_IRQS:160
[ 0.000000] sched_clock: 24 bits at 390kHz, resolution 2560ns, wraps every 42949ms
[ 0.000000] Console: colour dummy device 80x30
[ 0.000181] Calibrating delay loop... 339.14 BogoMIPS (lpj=1695744)
[ 0.050014] pid_max: default: 32768 minimum: 301
[ 0.050252] Mount-cache hash table entries: 512
[ 0.052797] CPU: Testing write buffer coherency: ok
[ 0.053196] Setting up static identity map for 0xc04ee9e8 - 0xc04eea20
[ 0.110356] CPU1: Booted secondary processor
[ 0.170170] Brought up 2 CPUs
[ 0.170191] SMP: Total of 2 processors activated.
[ 0.171284] devtmpfs: initialized
[ 0.174543] pinctrl core: initialized pinctrl subsystem
[ 0.174917] NET: Registered protocol family 16
[ 0.175390] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.178265] gpio-oxnas 44000000.gpio: at address c8846000
[ 0.178465] gpio-oxnas 44100000.gpio: at address c8848000
[ 0.178959] pinctrl-oxnas pinctrl.5: initialized OX820 pinctrl driver
[ 0.185640] bio: create slab <bio-0> at 0
[ 0.296414] oxnas-pcie 47c0: PCIe version/deviceID 0x82510b5
[ 0.296529] oxnas-pcie 47c0: link up
[ 0.296721] oxnas-pcie 47c0: PCI host bridge to bus 0000:00
[ 0.296747] pci_bus 0000:00: root bus resource [mem 0x48000000-0x49ffffff]
[ 0.296762] pci_bus 0000:00: root bus resource [mem 0x4a000000-0x4bdfffff pref]
[ 0.296778] pci_bus 0000:00: root bus resource [io 0x4be00000-0x4befffff]
[ 0.296796] pci_bus 0000:00: root bus resource [bus 00-7f]
[ 0.297144] PCI: bus0: Fast back to back transfers disabled
[ 0.297213] pci 0000:00:00.0: BAR 0: assigned [mem 0x48000000-0x4800ffff]
[ 0.297546] vgaarb: loaded
[ 0.297920] SCSI subsystem initialized
[ 0.298580] usbcore: registered new interface driver usbfs
[ 0.298654] usbcore: registered new interface driver hub
[ 0.298831] usbcore: registered new device driver usb
[ 0.298923] pps_core: LinuxPPS API ver. 1 registered
[ 0.298933] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.298969] PTP clock support registered
[ 0.299998] cfg80211: Calling CRDA to update world regulatory domain
[ 0.301196] Switched to clocksource rps_clocksource_timer
[ 0.312911] NET: Registered protocol family 2
[ 0.313653] TCP established hash table entries: 1024 (order: 1, 8192 bytes)
[ 0.313702] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[ 0.313735] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.313817] TCP: reno registered
[ 0.313840] UDP hash table entries: 256 (order: 1, 8192 bytes)
[ 0.313879] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[ 0.314216] NET: Registered protocol family 1
[ 0.314690] RPC: Registered named UNIX socket transport module.
[ 0.314708] RPC: Registered udp transport module.
[ 0.314718] RPC: Registered tcp transport module.
[ 0.314731] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.315036] Unpacking initramfs...
[ 0.527505] Freeing initrd memory: 2052K (c7c26000 - c7e27000)
[ 0.541255] NFS: Registering the id_resolver key type
[ 0.541314] Key type id_resolver registered
[ 0.541327] Key type id_legacy registered
[ 0.541355] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[ 0.542021] fuse init (API version 7.22)
[ 0.542960] msgmni has been set to 239
[ 0.607682] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[ 0.607703] io scheduler noop registered
[ 0.607715] io scheduler deadline registered
[ 0.607971] io scheduler cfq registered (default)
[ 0.608386] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[ 0.609489] 44200000.uart: ttyS0 at MMIO 0x44200000 (irq = 55, base_baud = 390625) is a 16550A
[ 1.122895] console [ttyS0] enabled
[ 1.127802] scsi0 : sata_oxnas
[ 1.131130] ata1: SATA max UDMA/133 irq 50
[ 1.135326] ox820sata: reseting SATA core
[ 1.136583] NAND device: Manufacturer ID: 0xad, Chip ID: 0xf1 (Hynix NAND 128MiB 3,3V 8-bit), 128MiB, page size: 2048, OOB size: 64
[ 1.136601] Scanning device for bad blocks
[ 1.218035] 2 ofpart partitions found on MTD device 41000000.nand
[ 1.224120] Creating 2 MTD partitions on "41000000.nand":
[ 1.229496] 0x000000000000-0x000000e00000 : "boot"
[ 1.235494] 0x000000e00000-0x000008000000 : "data"
[ 1.241871] stmmac - user ID: 0x12, Synopsys ID: 0x35
[ 1.246899] Ring mode enabled
[ 1.249937] DMA HW capability register supported
[ 1.254466] Enhanced/Alternate descriptors
[ 1.258803] Enabled extended descriptors
[ 1.262804] RX Checksum Offload Engine supported (type 2)
[ 1.268259] TX Checksum insertion supported
[ 1.272512] Wake-Up On Lan supported
[ 1.276152] Enable RX Mitigation via HW Watchdog Timer
[ 1.298854] libphy: stmmac: probed
[ 1.302274] eth0: PHY ID 001cc914 at 0 IRQ 0 (stmmac-0:00) active
[ 1.308339] eth0: PHY ID 001cc914 at 3 IRQ 0 (stmmac-0:03)
[ 1.313953] PCI: enabling device 0000:00:00.0 (0140 -> 0142)
[ 1.319738] ieee80211 phy0: rt2x00_set_rt: Info - RT chipset 3090, rev 3213 detected
[ 1.330946] ieee80211 phy0: rt2x00_set_rf: Info - RF chipset 0005 detected
[ 1.339256] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 1.345789] ehci-pci: EHCI PCI platform driver
[ 1.350535] oxnas-ehci 40200100.ehci: EHCI Host Controller
[ 1.356032] oxnas-ehci 40200100.ehci: new USB bus registered, assigned bus number 1
[ 1.363791] oxnas-ehci 40200100.ehci: irq 39, io mem 0x40200100
[ 1.380441] oxnas-ehci 40200100.ehci: USB 2.0 started, EHCI 1.00
[ 1.386680] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 1.393464] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.400665] usb usb1: Product: EHCI Host Controller
[ 1.405519] usb usb1: Manufacturer: Linux 3.12.13-oxnas-tld-5 ehci_hcd
[ 1.412032] usb usb1: SerialNumber: 40200100.ehci
[ 1.417377] hub 1-0:1.0: USB hub found
[ 1.421219] hub 1-0:1.0: 2 ports detected
[ 1.425738] usbcore: registered new interface driver usb-storage
[ 1.432015] mousedev: PS/2 mouse device common for all mice
[ 1.438371] usbcore: registered new interface driver usbhid
[ 1.443965] usbhid: USB HID core driver
[ 1.448064] TCP: cubic registered
[ 1.452369] NET: Registered protocol family 10
[ 1.458140] sit: IPv6 over IPv4 tunneling driver
[ 1.463569] NET: Registered protocol family 17
[ 1.468131] Key type dns_resolver registered
[ 1.669990] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[ 1.677265] ata1.00: ATA-8: STM3250318AS, CC38, max UDMA/133
[ 1.682931] ata1.00: 488397168 sectors, multi 0: LBA48 NCQ (depth 0/32)
[ 1.690772] ata1.00: configured for UDMA/133
[ 1.710440] scsi 0:0:0:0: Direct-Access ATA STM3250318AS CC38 PQ: 0 ANSI: 5
[ 1.719426] sd 0:0:0:0: [sda] 488397168 512-byte logical blocks: (250 GB/232 GiB)
[ 1.727377] sd 0:0:0:0: [sda] Write Protect is off
[ 1.732377] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 1.750510] usb 1-1: new high-speed USB device number 2 using oxnas-ehci
[ 1.754362] sda: sda1
[ 1.755893] sd 0:0:0:0: [sda] Attached SCSI disk
[ 1.764339] Freeing unused kernel memory: 156K (c0686000 - c06ad000)
Loading, please wait...
[ 1.901322] udev[73]: starting version 164
[ 1.922368] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608
[ 1.929052] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[ 1.936176] usb 1-1: Product: USB2.0 Hub
[ 1.976609] hub 1-1:1.0: USB hub found
[ 2.018424] hub 1-1:1.0: 4 ports detected
[ 2.330360] usb 1-1.1: new high-speed USB device number 3 using oxnas-ehci
[ 2.446108] usb 1-1.1: New USB device found, idVendor=13fe, idProduct=3600
[ 2.452989] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 2.460262] usb 1-1.1: Product: USB DISK 2.0
[ 2.464550] usb 1-1.1: Manufacturer:
[ 2.468887] usb 1-1.1: SerialNumber: 07B61707C5A01222
[ 2.474895] usb-storage 1-1.1:1.0: USB Mass Storage device detected
[ 2.486110] usb-storage 1-1.1:1.0: Quirks match for vid 13fe pid 3600: 4000
[ 2.493201] scsi1 : usb-storage 1-1.1:1.0
[ 3.516958] scsi 1:0:0:0: Direct-Access USB DISK 2.0 PMAP PQ: 0 ANSI: 0 CCS
[ 5.552529] sd 1:0:0:0: [sdb] 31277056 512-byte logical blocks: (16.0 GB/14.9 GiB)
[ 5.561269] sd 1:0:0:0: [sdb] Write Protect is off
[ 5.567139] sd 1:0:0:0: [sdb] No Caching mode page found
[ 5.572480] sd 1:0:0:0: [sdb] Assuming drive cache: write through
[ 5.584765] sd 1:0:0:0: [sdb] No Caching mode page found
[ 5.590067] sd 1:0:0:0: [sdb] Assuming drive cache: write through
[ 5.617315] sdb: sdb1
[ 5.625172] sd 1:0:0:0: [sdb] No Caching mode page found
[ 5.630584] sd 1:0:0:0: [sdb] Assuming drive cache: write through
[ 5.636664] sd 1:0:0:0: [sdb] Attached SCSI removable disk
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
[ 12.649313] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
Begin: Running /scripts/local-bottom ... done.
done.
Begin: Running /scripts/init-bottom ... mount: mounting /dev on /root/dev failed: No such file or directory
done.
mount: mounting /sys on /root/sys failed: No such file or directory
mount: mounting /proc on /root/proc failed: No such file or directory
Target filesystem doesn't have requested /sbin/init.
No init found. Try passing init= bootarg.


BusyBox v1.17.1 (Debian 1:1.17.1-8) built-in shell (ash)
Enter 'help' for a list of built-in commands.

/bin/sh: can't access tty; job control turned off
(initramfs)


I think I created a backup of an original Pogoplug E02 nand (backup is 128mb).


But I need some help, because I'm stuck due to a lack of "communication" towards the pogoplug.
- No wget Ip connection
- Can't mount usb stick (FAT-fs (sdb1): codepage cp437 not found)
- TFTP solution does not work (no IP)

Only the serial connection is "solid" ;-)

What can be done to make a next step. Currently booting from SATA drive, to access the HW,
Re: Trying to restore to Original Firmware Pogoplug V3 OXNAS
August 21, 2017 12:40AM
myhobby,

First, the thread title is wrong. You have the Pogolug V3 OXNAS, not the E02.

> What can be done to make a next step. Currently bo
> oting from SATA drive, to access the HW,

The missing last step is to ensure the rootfs is bootable. Your rootfs on the SATA drive was probably not created correctly.

What I would do next is trying to boot into Dedian, using USB flash drive. On another Linux box, as root user, prepare the new rootfs on USB following the instruction in the release thread, very closely. And remember to skip step 4.:

http://forum.doozan.com/read.php?2,16044

Scroll down to this section:

Updated 02 Aug 2017: 

Rootfs Debian-4.4.54-oxnas-tld-1-rootfs-bodhi.tar.bz2 was uploaded. 

Basic Debian stretch Oxnas rootfs for Popo Pro/Classic V3 plug: 

- tarball size: 180M 
- install size: 477M 
- Installed packages: nano, avahi, ntp, busybox-syslogd (log to RAM), htop, dialog, bz2, iperf, ethtool, sysvinit-core, sysvinit, sysvinit-utils, mtd-utils. 
- see LED controls in /etc/rc.local, and /etc/rc0.d/K08halt 
- see some useful aliases in /root/.profile 
- root password: root

After that, plug in this USB. And power up, No need to change any of the u-boot envs.

Please post the entire serial console log (from u-boot banner to the point where you see the Debian login prompt, or when it stops booting).

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Author:

Your Email:


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: