I have a pogoplug pro that I bricked by following the wrong info :( and it would not boot at all until this moring.
I followed the tutorial here http://archlinuxarm.org/forum/viewtopic.php?f=55&t=2146] and now my pogoplug is running fine on archlinux from sata but I want to resolve the issues I caused by flashing the wrong uboot.
After booting archlinux from sata I followed this http://forum.doozan.com/read.php?3,16017] to reinstall the right uboot then followed this http://forum.doozan.com/read.php?4,22570,22570#msg-22570 to be able to run default pogoplug service when no drive is connected but currently I am unable to boot into anything other than by using sata at this time.
I have a serial cable and am able to get more info if needed.
Here is my current uboot env:
This is what I get when I try to boot without any drive connected:
Output from dmesg | grep -i 'bad'
/etc/init.d/rcS file
Any and all help is appreciated
I followed the tutorial here http://archlinuxarm.org/forum/viewtopic.php?f=55&t=2146] and now my pogoplug is running fine on archlinux from sata but I want to resolve the issues I caused by flashing the wrong uboot.
After booting archlinux from sata I followed this http://forum.doozan.com/read.php?3,16017] to reinstall the right uboot then followed this http://forum.doozan.com/read.php?4,22570,22570#msg-22570 to be able to run default pogoplug service when no drive is connected but currently I am unable to boot into anything other than by using sata at this time.
I have a serial cable and am able to get more info if needed.
Here is my current uboot env:
bootargs=root=ubi0:rootfs ubi.mtd=2,512 rootfstype=ubifs console=ttyS0,115200 el evator=cfq mac_adr=0x00,0x25,0x31,0x00,0xd4,0x6f mem=128 poweroutage=yes bootcmd=run dt_bootcmd_usb; run bootcmd_stock; reset bootcmd_exec=run load_uimage; if run load_initrd; then if run load_dtb; then boo tm 0x60500000 0x60e00000 0x62c00000; else bootm 0x60500000 0x60e00000; fi; else if run load_dtb; then bootm 0x60500000 - 0x62c00000; else bootm 0x60500000; fi; fi bootcmd_stock=setenv autoload n; setenv bootargs_stock "root=ubi0:rootfs ubi.mtd =2,512 rootfstype=ubifs console=ttyS0,115200 elevator=cfq mac_adr=0x00,0x30,0xe0 ,0x00,0x00,0x01 mem=128M"; setenv poweroutage yes; setenv boot "bootm 60500000"; setenv bootcmd_stock_fw "run set_bootargs_stock; run boot_nand"; setenv boot bo otm 60500000; setenv boot_nand "run load_nand boot || run load_nand2 boot"; sete nv kernflmode s; setenv load_nand2 "nboot 60500000 0 800000"; setenv load_nand " nboot 60500000 0 200000"; setenv set_bootargs_stock "setenv bootargs $bootargs_s tock"; setenv mainlinelinux no; run bootcmd_stock_fw bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi bootdelay=10 bootdev=usb device=0:1 devices=usb ide disks=0 1 2 3 dt_bootcmd_usb=usb start; run dt_usb_bootcmd; usb stop dtb_file=/boot/dts/ox820-pogoplug-pro.dtb ethact=dwmac.40400000 ethaddr=00:25:31:01:C8:D9 if_netconsole=ping $serverip ipaddr=192.168.0.222 load_dtb=echo loading DTB $dtb_file ...; ext2load $bootdev $device 0x62c00000 $d tb_file load_initrd=echo loading uInitrd ...; ext2load $bootdev $device 0x60e00000 /boot /uInitrd load_uimage=echo loading uImage ...; ext2load $bootdev $device 0x60500000 /boot/ uImage mainlineLinux=yes mtdids=nand0=41000000.nand mtdparts=mtdparts=41000000.nand:14m(boot),-(data) preboot_nc=run if_netconsole start_netconsole scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "usb start"; setenv scan_ide "ide reset"; setenv scan_mmc "mmc rescan"; for dev in $devices ; do if test $scan_done -eq 0; then echo Scan device $dev; run scan_$dev; for di sknum in $disks; do if test $scan_done -eq 0; then echo device $dev $disknum:1; if ext2load $dev $disknum:1 0x60500000 /boot/uImage 1; then scan_done=1; echo Fo und bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $d ev; fi; fi; done; fi; done serverip=192.168.0.220 set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; se tenv stdout nc; setenv stderr nc; version; stderr=serial stdin=serial stdout=serial uenv_import=echo importing envs ...; env import -t 0x60500000 uenv_init_devices=setenv init_usb "usb start"; setenv init_ide "ide reset"; se tenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done; uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices; do for disknum in 0; do run uenv_read_disk; done; done; uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknu m:1 0x60500000 /boot/uEnv.txt; then setenv uenv_loaded 1; fi uenv_read_disk=if test $devtype -eq mmc; then if $devtype part; then run uenv_re ad; fi; else if $devtype part $disknum; then run uenv_read; fi; fi usb_custom_params=zswap.enabled=1 usb_ready_retry=15 Environment size: 3387/131068 bytes
This is what I get when I try to boot without any drive connected:
U-Boot SPL 2013.10-tld-4 (Sep 07 2014 - 14:10:12) Boot device: NAND Attempting to set PLLA to 850 MHz ... plla_ctrl0 : 0000020a plla_ctrl1 : 00330000 plla_ctrl2 : 0065008b plla_ctrl3 : 000000f1 PLLA Set U-Boot 2015.10-tld-1 (Nov 21 2015 - 01:17:59 -0800) OXNAS OX820 DRAM: 128 MiB NAND: 128 MiB In: serial Out: serial Err: serial Net: dwmac.40400000 Hit any key to stop autoboot: 0 starting USB... USB0: USB EHCI 1.00 scanning bus 0 for devices... 3 USB Device(s) found scanning usb for storage devices... 1 Storage Device(s) found ## Error: "dt_usb_bootcmd" not defined stopping USB.. Loading from nand0, offset 0x200000 Image Name: Linux-2.6.31.6_SMP_820 Created: 2011-02-08 18:06:30 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 2259824 Bytes = 2.2 MiB Load Address: 60008000 Entry Point: 60008000 ## Booting kernel from Legacy Image at 60500000 ... Image Name: Linux-2.6.31.6_SMP_820 Created: 2011-02-08 18:06:30 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 2259824 Bytes = 2.2 MiB Load Address: 60008000 Entry Point: 60008000 Verifying Checksum ... OK Loading Kernel Image ... OK Starting kernel ... Uncompressing Linux............................................................. ...................................................................... done, boo ting the kernel. [ 0.000000] Linux version 2.6.31.6_SMP_820 (bdietrich@brad-ux) (gcc version 4 .4.1 (Sourcery G++ Lite 2009q3-67) ) #96 SMP Tue Feb 8 10:06:27 PST 2011 [ 0.000000] CPU: ARMv6-compatible processor [410fb025] revision 5 (ARMv7), cr =00c5387f [ 0.000000] CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction ca che [ 0.000000] Machine: Oxsemi NAS [ 0.000000] 1 memory region [ 0.000000] Ignoring unrecognised tag 0x00000000 [ 0.000000] Memory policy: ECC disabled, Data cache writealloc [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pag es: 32512 [ 0.000000] Kernel command line: root=ubi0:rootfs ubi.mtd=2,512 rootfstype=ub ifs console=ttyS0,115200 elevator=cfq mac_adr=0x00,0x30,0xe0,0x00,0x00,0x01 mem= 128M [ 0.000000] PID hash table entries: 512 (order: 9, 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: 128MB = 128MB total [ 0.000000] Memory: 125496KB available (3716K code, 275K data, 124K init, 0K highmem) [ 0.000000] Hierarchical RCU implementation. [ 0.000000] NR_IRQS:96 [ 0.000000] OX820_RPS_init_irq: interrupts 64 to 96 [ 0.010000] Console: colour dummy device 80x30 [ 0.010000] console [ttyS0] enabled [ 0.020000] Calibrating delay loop... 339.14 BogoMIPS (lpj=1695744) [ 0.240000] Security Framework initialized [ 0.240000] Mount-cache hash table entries: 512 [ 0.250000] CPU: Testing write buffer coherency: ok [ 0.250000] Calibrating local timer... 424.49MHz. [ 0.320000] CPU1: Booted secondary processor [ 0.420000] Calibrating delay loop... 339.14 BogoMIPS (lpj=1695744) [ 0.630000] Brought up 2 CPUs [ 0.640000] SMP: Total of 2 processors activated (678.29 BogoMIPS). [ 0.650000] NET: Registered protocol family 16 [ 0.650000] Number of DMA channels = 4, version = 4 [ 0.660000] Reserving a DMA channel for DirectRAID [ 0.660000] Allocating 389 SRAM generic DMA descriptors [ 1.170000] PCIeA version/deviceID 082510b5 [ 1.170000] PCIeB version/deviceID 082510b5 [ 4.200000] ox820_pci_preinit() PCIEB link up timeout (00001814) [ 4.200000] ox820_pcie_setup_resources() Enabling PCIe Pre-Emphasis [ 4.210000] ox820_pciea_setup_resources() resource c781b2c0 [ 4.210000] ox820_pciea_setup_resources() io: 0x4be00000 - 0x4befffff [ 4.220000] ox820_pciea_setup_resources() non-pre: 0x48000000 - 0x49ffffff [ 4.230000] ox820_pciea_setup_resources() pre: 0x4a000000 - 0x4bdfffff [ 4.230000] PCI: bus0: Fast back to back transfers disabled [ 4.240000] PCI: bus1: Fast back to back transfers enabled [ 4.250000] bio: create slab <bio-0> at 0 [ 4.260000] SCSI subsystem initialized [ 4.290000] NET: Registered protocol family 2 [ 4.290000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes) [ 4.300000] Switched to NOHz mode on CPU #0 [ 4.300000] TCP established hash table entries: 4096 (order: 3, 32768 bytes) [ 4.300000] Switched to NOHz mode on CPU #1 [ 4.310000] TCP bind hash table entries: 4096 (order: 3, 32768 bytes) [ 4.320000] TCP: Hash tables configured (established 4096 bind 4096) [ 4.320000] TCP reno registered [ 4.330000] NET: Registered protocol family 1 [ 4.330000] Create fragment cache [ 4.340000] fuse init (API version 7.12) [ 4.340000] msgmni has been set to 245 [ 4.350000] alg: No test for stdrng (krng) [ 4.350000] io scheduler noop registered [ 4.360000] io scheduler anticipatory registered [ 4.360000] io scheduler deadline registered [ 4.370000] io scheduler cfq registered (default) [ 4.390000] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled [ 4.390000] serial8250: ttyS0 at MMIO 0x44200000 (irq = 55) is a 16550A [ 4.410000] brd: module loaded [ 4.420000] loop: module loaded [ 4.420000] ox820sata: OX820 sata core. [ 4.420000] scsi0 : oxnassata [ 4.430000] scsi1 : oxnassata [ 4.430000] ata1: SATA max UDMA/133 irq 50 [ 4.440000] ata2: SATA max UDMA/133 irq 50 [ 4.440000] ox820sata: reseting SATA core [ 4.800000] ata1: SATA link down (SStatus 0 SControl 300) [ 4.800000] ox820sata: reseting SATA core [ 5.160000] ata2: SATA link down (SStatus 0 SControl 300) [ 5.160000] tun: Universal TUN/TAP device driver, 1.6 [ 5.170000] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com> [ 5.170000] NAND: Page read time 40ms [ 5.180000] NAND device: Manufacturer ID: 0xad, Chip ID: 0xf1 (Hynix NAND 128 MiB 3,3V 8-bit) [ 5.180000] Scanning device for bad blocks [ 5.250000] Creating 2 MTD partitions on "NAND 128MiB 3,3V 8-bit": [ 5.260000] 0x000000000000-0x000000e00000 : "boot" [ 5.270000] 0x000000e00000-0x000008000000 : "rootfs" [ 5.270000] UBI: attaching mtd2 to ubi0 [ 5.280000] UBI: physical eraseblock size: 131072 bytes (128 KiB) [ 5.280000] UBI: logical eraseblock size: 129024 bytes [ 5.290000] UBI: smallest flash I/O unit: 2048 [ 5.290000] UBI: sub-page size: 512 [ 5.300000] UBI: VID header offset: 512 (aligned 512) [ 5.300000] UBI: data offset: 2048 [ 5.660000] UBI: attached mtd2 to ubi0 [ 5.660000] UBI: MTD device name: "rootfs" [ 5.660000] UBI: MTD device size: 114 MiB [ 5.670000] UBI: number of good PEBs: 912 [ 5.670000] UBI: number of bad PEBs: 0 [ 5.680000] UBI: max. allowed volumes: 128 [ 5.680000] UBI: wear-leveling threshold: 4096 [ 5.690000] UBI: number of internal volumes: 1 [ 5.690000] UBI: number of user volumes: 1 [ 5.700000] UBI: available PEBs: 0 [ 5.700000] UBI: total number of reserved PEBs: 912 [ 5.710000] UBI: number of PEBs reserved for bad PEB handling: 9 [ 5.710000] UBI: max/mean erase counter: 2/0 [ 5.720000] UBI: image sequence number: 0 [ 5.720000] UBI: background thread "ubi_bgt0d" started, PID 278 [ 5.730000] mice: PS/2 mouse device common for all mice [ 5.730000] TCP cubic registered [ 5.730000] NET: Registered protocol family 10 [ 5.740000] NET: Registered protocol family 17 [ 5.740000] RPC: Registered udp transport module. [ 5.750000] RPC: Registered tcp transport module. [ 5.850000] UBIFS: recovery needed [ 5.990000] UBIFS: recovery completed [ 6.000000] UBIFS: mounted UBI device 0, volume 0, name "rootfs" [ 6.000000] UBIFS: file system size: 114573312 bytes (111888 KiB, 109 MiB, 888 LEBs) [ 6.010000] UBIFS: journal size: 9033728 bytes (8822 KiB, 8 MiB, 71 LEB s) [ 6.020000] UBIFS: media format: w4/r0 (latest is w4/r0) [ 6.030000] UBIFS: default compressor: zlib [ 6.030000] UBIFS: reserved for root: 0 bytes (0 KiB) [ 6.040000] VFS: Mounted root (ubifs filesystem) on device 0:10. [ 6.040000] Freeing init memory: 124K Too many bit errors @ 0xa0000 -- Can't correct! PAGE DATA: OOB: Too many bit errors @ 0xa0800 -- Can't correct! PAGE DATA: OOB: Too many bit errors @ 0xa1000 -- Can't correct! PAGE DATA: OOB: Too many bit errors @ 0xa1800 -- Can't correct! PAGE DATA: OOB: Too many bit errors @ 0xa2000 -- Can't correct! PAGE DATA: OOB: Too many bit errors @ 0xa2800 -- Can't correct! PAGE DATA: OOB: Too many bit errors @ 0xa3000 -- Can't correct! PAGE DATA: OOB: Too many bit errors @ 0xa3800 -- Can't correct! PAGE DATA: OOB: Too many bit errors @ 0xa4000 -- Can't correct! PAGE DATA: OOB: Too many bit errors @ 0xa4800 -- Can't correct! PAGE DATA: OOB: Too many bit errors @ 0xa5000 -- Can't correct! PAGE DATA: OOB: Too many bit errors @ 0xa5800 -- Can't correct! PAGE DATA: OOB: Too many bit errors @ 0xa6000 -- Can't correct! PAGE DATA: OOB: Too many bit errors @ 0xa6800 -- Can't correct! PAGE DATA: OOB: Too many bit errors @ 0xa7000 -- Can't correct! PAGE DATA: OOB: Too many bit errors @ 0xa7800 -- Can't correct! PAGE DATA: OOB: Too many bit errors @ 0xa8000 -- Can't correct! PAGE DATA: OOB: Too many bit errors @ 0xa8800 -- Can't correct! PAGE DATA: OOB: Too many bit errors @ 0xa9000 -- Can't correct! PAGE DATA: OOB: Too many bit errors @ 0xa9800 -- Can't correct! PAGE DATA: OOB: Too many bit errors @ 0xaa000 -- Can't correct! PAGE DATA: OOB: Too many bit errors @ 0xaa800 -- Can't correct! PAGE DATA: OOB: Too many bit errors @ 0xab000 -- Can't correct! PAGE DATA: OOB: Too many bit errors @ 0xab800 -- Can't correct! PAGE DATA: OOB: Too many bit errors @ 0xac000 -- Can't correct! PAGE DATA: OOB: Too many bit errors @ 0xac800 -- Can't correct! PAGE DATA: OOB: Too many bit errors @ 0xad000 -- Can't correct! PAGE DATA: OOB: Too many bit errors @ 0xad800 -- Can't correct! PAGE DATA: OOB: Too many bit errors @ 0xae000 -- Can't correct! PAGE DATA: OOB: Too many bit errors @ 0xae800 -- Can't correct! PAGE DATA: OOB: Too many bit errors @ 0xaf000 -- Can't correct! PAGE DATA: OOB: Too many bit errors @ 0xaf800 -- Can't correct! PAGE DATA: OOB: Too many bit errors @ 0xb0000 -- Can't correct! PAGE DATA: OOB: Too many bit errors @ 0xb0800 -- Can't correct! PAGE DATA: OOB: Too many bit errors @ 0xb1000 -- Can't correct! PAGE DATA: OOB: Too many bit errors @ 0xb1800 -- Can't correct! PAGE DATA: OOB: Too many bit errors @ 0xb2000 -- Can't correct! PAGE DATA: OOB: Too many bit errors @ 0xb2800 -- Can't correct! PAGE DATA: OOB: Too many bit errors @ 0xb3000 -- Can't correct! PAGE DATA: OOB: Too many bit errors @ 0xb3800 -- Can't correct! PAGE DATA: OOB: Too many bit errors @ 0xb4000 -- Can't correct! PAGE DATA: OOB: Too many bit errors @ 0xb4800 -- Can't correct! PAGE DATA: OOB: Too many bit errors @ 0xb5000 -- Can't correct! PAGE DATA: OOB: Too many bit errors @ 0xb5800 -- Can't correct! PAGE DATA: OOB: Too many bit errors @ 0xb6000 -- Can't correct! PAGE DATA: OOB: Too many bit errors @ 0xb6800 -- Can't correct! PAGE DATA: OOB: Too many bit errors @ 0xb7000 -- Can't correct! PAGE DATA: OOB: Too many bit errors @ 0xb7800 -- Can't correct! PAGE DATA: OOB: Too many bit errors @ 0xb8000 -- Can't correct! PAGE DATA: OOB: Too many bit errors @ 0xb8800 -- Can't correct! PAGE DATA: OOB: Too many bit errors @ 0xb9000 -- Can't correct! PAGE DATA: OOB: Too many bit errors @ 0xb9800 -- Can't correct! PAGE DATA: OOB: Too many bit errors @ 0xba000 -- Can't correct! PAGE DATA: OOB: Too many bit errors @ 0xba800 -- Can't correct! PAGE DATA: OOB: Too many bit errors @ 0xbb000 -- Can't correct! PAGE DATA: OOB: Too many bit errors @ 0xbb800 -- Can't correct! PAGE DATA: OOB: Too many bit errors @ 0xbc000 -- Can't correct! PAGE DATA: OOB: Too many bit errors @ 0xbc800 -- Can't correct! PAGE DATA: OOB: Too many bit errors @ 0xbd000 -- Can't correct! PAGE DATA: OOB: Too many bit errors @ 0xbd800 -- Can't correct! PAGE DATA: OOB: Too many bit errors @ 0xbe000 -- Can't correct! PAGE DATA: OOB: Too many bit errors @ 0xbe800 -- Can't correct! PAGE DATA: OOB: Too many bit errors @ 0xbf000 -- Can't correct! PAGE DATA: OOB: Too many bit errors @ 0xbf800 -- Can't correct! PAGE DATA: OOB: -- Invalid CRC32 on parameters: 0x6e206369 != 0x27033e1f /etc/init.d/rcS: /tmp/ethaddr: line 1: 00000380:: not found /etc/init.d/rcS: /tmp/ethaddr: line 3: syntax error: EOF in backquote substituti on
Output from dmesg | grep -i 'bad'
~ # dmesg | grep -i 'bad' <6>[ 5.180000] Scanning device for bad blocks <5>[ 5.670000] UBI: number of bad PEBs: 0 <5>[ 5.700000] UBI: number of PEBs reserved for bad PEB handling: 9
/etc/init.d/rcS file
/ # cat /etc/init.d/rcS #! /bin/sh . /etc/cefs.conf if /usr/local/cloudengines/bin/blparam | grep ethaddr > /tmp/ethaddr; then . /tmp/ethaddr fi rm -f /tmp/ethaddr if /usr/local/cloudengines/bin/blparam | grep cedebug > /tmp/cedebug; then . /tmp/cedebug fi rm -f /tmp/cedebug mount -t proc none /proc mount -t sysfs none /sys mount -t devpts none /dev/pts mount -t tmpfs none /tmp mkdir /tmp/var echo "/tmp/core_%e_%t" > /proc/sys/kernel/core_pattern hostname PogoplugPro #This is to enable PCIe Pre-Emphasis on PCIeA /sbin/devmem2 0x44a00000 w 0x14 /sbin/devmem2 0x44a00004 w 0x4ce10 /sbin/devmem2 0x44a00004 w 0x2ce10 /sbin/devmem2 0x44a00000 w 0x2004 /sbin/devmem2 0x44a00004 w 0x482c7 /sbin/devmem2 0x44a00004 w 0x282c7 ifconfig lo 127.0.0.1 modprobe mii modprobe gmac gmac_offload_tx=0 insmod /lib/modules/2.6.31.6_SMP_820/kernel/drivers/net/wireless/rt3390sta.ko if [ "x$ethaddr" != "x" ]; then ifconfig eth0 hw ether $ethaddr else if [ "x$ceethhwaddr" != "x" ]; then ifconfig eth0 hw ether $ceethhwaddr fi fi ifconfig eth0 up # NB: Needs to start with "udhcpc -b " so hbplug_netmgr can find in /proc udhcpc -b -i eth0 -H `hostname` modprobe usbcore modprobe ehci-hcd modprobe usb-storage modprobe fat modprobe vfat mount -t usbfs none /proc/bus/usb /etc/init.d/db if [ "x$cedebug" != "x" ]; then telnetd /usr/sbin/dropbear fi ifconfig ra0 up # Moved here to avoid race /etc/init.d/hbmgr.sh start #/bin/mount -a
Any and all help is appreciated