help with pogoplug v2

This forum is for topics dealing with problems with software specifically in the ARMv5 repo.

Re: help with pogoplug v2

Postby makana » Wed Aug 07, 2013 12:03 am

unfortuneatley, I can't seem to get it to boot into any OS other than the stock OS. I tried a debian rootfs last night and it didn't cause a kernal panic but still didn't load. It timed out waiting for the OS and defaulted to a shell with almost no functionality. So at this point I really don't know what to do.
makana
 
Posts: 14
Joined: Mon Aug 05, 2013 12:15 am

Re: help with pogoplug v2

Postby moonman » Wed Aug 07, 2013 4:24 am

Can you post the out of these commands when booted into stock:

$this->bbcode_second_pass_code('', '/usr/sbin/fw_printenv')

$this->bbcode_second_pass_code('', 'grep -a --null-data U-Boot /dev/mtd0ro')
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: 3387
Joined: Sat Jan 15, 2011 3:36 am

Re: help with pogoplug v2

Postby makana » Thu Aug 08, 2013 2:28 am

Thanks you for taking the to help me with this.

$this->bbcode_second_pass_code('', '-sh-3.2# /usr/sbin/fw_printenv
ethact=egiga0
bootdelay=3
baudrate=115200
mainlineLinux=yes
console=ttyS0,115200
led_init=green blinking
led_exit=green off
led_error=orange blinking
mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
mtdids=nand0=orion_nand
partition=nand0,2
stdin=serial
stdout=serial
stderr=serial
rescue_installed=0
rescue_set_bootargs=setenv bootargs console=$console ubi.mtd=2 root=ubi0:rootfs
ro rootfstype=ubifs $mtdparts $rescue_custom_params
rescue_bootcmd=if test $rescue_installed -eq 1; then run rescue_set_bootargs; na
nd read.e 0x800000 0x100000 0x400000; bootm 0x800000; else run pogo_bootcmd; fi
pogo_bootcmd=if fsload uboot-original-mtd0.kwb; then go 0x800200; fi
force_rescue=0
force_rescue_bootcmd=if test $force_rescue -eq 1 || ext2load usb 0:1 0x1700000 /
rescueme 1 || fatload usb 0:1 0x1700000 /rescueme.txt 1; then run rescue_bootcmd
; fi
ubifs_mtd=3
ubifs_set_bootargs=setenv bootargs console=$console ubi.mtd=$ubifs_mtd root=ubi0
:rootfs rootfstype=ubifs $mtdparts $ubifs_custom_params
ubifs_bootcmd=run ubifs_set_bootargs; if ubi part data && ubifsmount rootfs && u
bifsload 0x800000 /boot/uImage && ubifsload 0x1100000 /boot/uInitrd; then bootm
0x800000 0x1100000; fi
usb_scan=usb_scan_done=0;for scan in $usb_scan_list; do run usb_scan_$scan; if t
est $usb_scan_done -eq 0 && ext2load usb $usb 0x800000 /boot/uImage 1; then usb_
scan_done=1; echo "Found bootable drive on usb $usb"; setenv usb_device $usb; se
tenv usb_root /dev/$dev; fi; done
usb_scan_list=1 2 3 4
usb_scan_1=usb=0:1 dev=sda1
usb_scan_2=usb=1:1 dev=sdb1
usb_scan_3=usb=2:1 dev=sdc1
usb_scan_4=usb=3:1 dev=sdd1
usb_device=0:1
usb_root=/dev/sda1
usb_rootdelay=10
usb_set_bootargs=setenv bootargs console=$console root=$usb_root rootdelay=$usb_
rootdelay rootfstype=$usb_rootfstype $mtdparts $usb_custom_params
usb_bootcmd=run usb_init; run usb_set_bootargs; run usb_boot
usb_boot=mw 0x800000 0 1; ext2load usb $usb_device 0x800000 /boot/uImage; if ext
2load usb $usb_device 0x1100000 /boot/uInitrd; then bootm 0x800000 0x1100000; el
se bootm 0x800000; fi
bootcmd=usb start; run force_rescue_bootcmd; run ubifs_bootcmd; run usb_bootcmd;
usb stop; run rescue_bootcmd; run pogo_bootcmd; reset
ethaddr=00:25:31:00:BE:BA
arcNumber=2097
usb_init=run usb_scan; setenv usb_root LABEL=ROOTFS
usb_custom_params=init=/usr/lib/systemd/systemd 
usb_rootfstype=ext3')

The grep command didn't work, I got: -sh-3.2# grep -a --null-data U-Boot /dev/mtd0ro
grep: unrecognized option `--null-data'.
makana
 
Posts: 14
Joined: Mon Aug 05, 2013 12:15 am

Re: help with pogoplug v2

Postby makana » Thu Aug 08, 2013 2:33 am

If it helps here is the output of the boot up

$this->bbcode_second_pass_code('', 'U-Boot 2011.12 (Feb 20 2012 - 21:21:59)
Pogoplug E02

SoC: Kirkwood 88F6281_A0
DRAM: 256 MiB
WARNING: Caches not enabled
NAND: 128 MiB
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

** Invalid boot device **
Creating 1 MTD partitions on "nand0":
0x000002500000-0x000008000000 : "mtd=3"
UBI: attaching mtd1 to ubi0
UBI: physical eraseblock size: 131072 bytes (128 KiB)
UBI: logical eraseblock size: 129024 bytes
UBI: smallest flash I/O unit: 2048
UBI: sub-page size: 512
UBI: VID header offset: 512 (aligned 512)
UBI: data offset: 2048
UBI: attached mtd1 to ubi0
UBI: MTD device name: "mtd=3"
UBI: MTD device size: 91 MiB
UBI: number of good PEBs: 728
UBI: number of bad PEBs: 0
UBI: max. allowed volumes: 128
UBI: wear-leveling threshold: 4096
UBI: number of internal volumes: 1
UBI: number of user volumes: 0
UBI: available PEBs: 717
UBI: total number of reserved PEBs: 11
UBI: number of PEBs reserved for bad PEB handling: 7
UBI: max/mean erase counter: 1/1
UBIFS error (pid 0): ubifs_get_sb: cannot open "ubi:rootfs", error -19
Error reading superblock on volume 'ubi:rootfs'!
** Block device usb 0 not supported
** Block device usb 1 not supported
** Block device usb 2 not supported
** Block device usb 3 not supported
** 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: ....... read_nand_cached: error reading nand off 0x1560000 s
ize 8192 bytes
. done.
### JFFS2 load complete: 524288 bytes loaded to 0x800000
## Starting application at 0x00800200 ...


U-Boot 1.1.4 (Sep 28 2009 - 11:55:23) Cloud Engines v2.0 (3.4.16)

U-Boot code: 00600000 -> 0067FFF0 BSS: -> 00690D60

Soc: 88F6281 A0 (DDR2)
CPU running @ 1200Mhz L2 running @ 400Mhz
SysClock = 400Mhz , TClock = 200Mhz

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

CPU : Marvell Feroceon (Rev 1)
CLOUD ENGINES BOARD: PPV2

Streaming disabled
Write allocate disabled


USB 0: host mode
PEX 0: interface detected no Link.
Net: egiga0 [PRIME], egiga1
Hit any key to stop autoboot: 0

NAND read: device 0 offset 0x100000, size 0x200000

Reading data from 0x2ff800 -- 100% complete.
2097152 bytes read: OK
## Booting image at 00800000 ...
Image Name: Linux-2.6.22.18
Created: 2010-10-19 23:05:02 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1979140 Bytes = 1.9 MB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
OK

Starting kernel ...

Uncompressing Linux.............................................................
............................................................... done, booting th
e kernel.
[ 0.000000] Linux version 2.6.22.18 (bdietrich@buildman) (gcc version 4.2.1)
#81 Tue Oct 19 16:05:00 PDT 2010
[ 0.000000] CPU: ARM926EJ-S [56251311] revision 1 (ARMv5TE), cr=00053177
[ 0.000000] Machine: Feroceon-KW
[ 0.000000] Using UBoot passing parameters structure
[ 0.000000] Memory policy: ECC disabled, Data cache writeback
[ 0.000000] CPU0: D VIVT write-back cache
[ 0.000000] CPU0: I cache: 16384 bytes, associativity 4, 32 byte lines, 128 s
ets
[ 0.000000] CPU0: D cache: 16384 bytes, associativity 4, 32 byte lines, 128 s
ets
[ 0.000000] Built 1 zonelists. Total pages: 65024
[ 0.000000] Kernel command line: console=ttyS0,115200 root=/dev/mtdblock2 ro
[ 0.000000] PID hash table entries: 1024 (order: 10, 4096 bytes)
[ 0.000000] Console: colour dummy device 80x30
[ 0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.010000] Memory: 256MB 0MB 0MB 0MB = 256MB total
[ 0.010000] Memory: 255872KB available (3592K code, 253K data, 124K init)
[ 0.250000] Mount-cache hash table entries: 512
[ 0.250000] CPU: Testing write buffer coherency: ok
[ 0.250000] NET: Registered protocol family 16
[ 0.250000]
[ 0.250000] CPU Interface
[ 0.250000] -------------
[ 0.250000] SDRAM_CS0 ....base 00000000, size 256MB
[ 0.250000] SDRAM_CS1 ....disable
[ 0.250000] SDRAM_CS2 ....disable
[ 0.250000] SDRAM_CS3 ....disable
[ 0.250000] PEX0_MEM ....base e8000000, size 128MB
[ 0.250000] PEX0_IO ....base f2000000, size 1MB
[ 0.250000] INTER_REGS ....base f1000000, size 1MB
[ 0.250000] NFLASH_CS ....base fa000000, size 2MB
[ 0.250000] SPI_CS ....base f4000000, size 16MB
[ 0.250000] BOOT_ROM_CS ....no such
[ 0.250000] DEV_BOOTCS ....no such
[ 0.250000] CRYPT_ENG ....base f0000000, size 2MB
[ 0.250000]
[ 0.250000] Marvell Development Board (LSP Version KW_LSP_4.2.7_patch21_wit
h_rx_desc_tuned)-- SHEEVA PLUG Soc: 88F6281 A0 LE
[ 0.250000]
[ 0.250000] Detected Tclk 200000000 and SysClk 400000000
[ 0.250000] MV Buttons Device Load
[ 0.250000] Marvell USB EHCI Host controller #0: c0652600
[ 0.750000] PEX0 interface detected no Link.
[ 0.750000] PCI: bus0: Fast back to back transfers enabled
[ 0.750000] SCSI subsystem initialized
[ 0.750000] usbcore: registered new interface driver usbfs
[ 0.750000] usbcore: registered new interface driver hub
[ 0.750000] usbcore: registered new device driver usb
[ 0.750000] NET: Registered protocol family 2
[ 0.760000] Time: kw_clocksource clocksource has been installed.
[ 0.850000] IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.850000] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
[ 0.850000] TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.850000] TCP: Hash tables configured (established 8192 bind 8192)
[ 0.850000] TCP reno registered
[ 0.880000] RTC has been updated!!!
[ 0.880000] RTC registered
[ 0.880000] Use the XOR engines (acceleration) for enhancing the following fu
nctions:
[ 0.880000] o RAID 5 Xor calculation
[ 0.880000] o kernel memcpy
[ 0.880000] o kenrel memzero
[ 0.880000] Number of XOR engines to use: 4
[ 0.880000] cesadev_init(c00117b0)
[ 0.880000] mvCesaInit: sessions=640, queue=64, pSram=f0000000
[ 0.880000] MV Buttons Driver Load
[ 0.880000] squashfs: version 3.3 (2007/10/31) Phillip Lougher
[ 0.880000] squashfs: LZMA suppport for slax.org by jro
[ 0.880000] JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[ 0.880000] io scheduler noop registered
[ 0.880000] io scheduler anticipatory registered (default)
[ 0.900000] Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing
disabled
[ 0.900000] serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33) is a 16550A
[ 0.910000] RAMDISK driver initialized: 16 RAM disks of 16384K size 1024 bloc
ksize
[ 0.920000] Loading Marvell Ethernet Driver:
[ 0.920000] o Cached descriptors in DRAM
[ 0.920000] o DRAM SW cache-coherency
[ 0.930000] o Single RX Queue support - ETH_DEF_RXQ=0
[ 0.930000] o Single TX Queue support - ETH_DEF_TXQ=0
[ 0.940000] o TCP segmentation offload enabled
[ 0.940000] o Receive checksum offload enabled
[ 0.950000] o Transmit checksum offload enabled
[ 0.950000] o Network Fast Processing (Routing) supported
[ 0.960000] o Driver ERROR statistics enabled
[ 0.960000] o Driver INFO statistics enabled
[ 0.970000] o Proc tool API enabled
[ 0.970000] o Rx descripors: q0=128
[ 0.970000] o Tx descripors: q0=532
[ 0.980000] o Loading network interface(s):
[ 0.990000] o eth0, ifindex = 1, GbE port = 0
[ 0.990000] o eth1, ifindex = 2, GbE port = 1
[ 1.000000]
[ 1.000000] mvFpRuleDb (cfdf6000): 2048 entries, 8192 bytes
[ 1.000000] Intel(R) PRO/1000 Network Driver - version 7.3.20-k2-NAPI
[ 1.010000] Copyright (c) 1999-2006 Intel Corporation.
[ 1.020000] e100: Intel(R) PRO/100 Network Driver, 3.5.17-k4-NAPI
[ 1.020000] e100: Copyright(c) 1999-2006 Intel Corporation
[ 1.030000]
[ 1.030000] Warning Sata is Powered Off
[ 1.030000] NFTL driver: nftlcore.c $Revision: 1.98 $, nftlmount.c $Revision:
1.41 $
[ 1.040000] NAND device: Manufacturer ID: 0xec, Chip ID: 0xf1 (Samsung NAND 1
28MiB 3,3V 8-bit)
[ 1.050000] Scanning device for bad blocks
[ 1.060000] Bad eraseblock 171 at 0x01560000
[ 1.110000] Using static partition definition
[ 1.110000] Creating 4 MTD partitions on "nand_mtd":
[ 1.120000] 0x00000000-0x00100000 : "u-boot"
[ 1.120000] 0x00100000-0x00500000 : "uImage"
[ 1.130000] 0x00500000-0x02500000 : "root"
[ 1.130000] 0x02500000-0x08000000 : "data"
[ 1.140000] ehci_marvell ehci_marvell.70059: Marvell Orion EHCI
[ 1.140000] ehci_marvell ehci_marvell.70059: new USB bus registered, assigned
bus number 1
[ 1.180000] ehci_marvell ehci_marvell.70059: irq 19, io base 0xf1050100
[ 1.200000] ehci_marvell ehci_marvell.70059: USB 2.0 started, EHCI 1.00, driv
er 10 Dec 2004
[ 1.200000] usb usb1: configuration #1 chosen from 1 choice
[ 1.210000] hub 1-0:1.0: USB hub found
[ 1.210000] hub 1-0:1.0: 1 port detected
[ 1.330000] USB Universal Host Controller Interface driver v3.0
[ 1.610000] usb 1-1: new high speed USB device using ehci_marvell and address
2
[ 1.760000] usb 1-1: configuration #1 chosen from 1 choice
[ 1.760000] hub 1-1:1.0: USB hub found
[ 1.770000] hub 1-1:1.0: 4 ports detected
[ 1.880000] usbcore: registered new interface driver usblp
[ 1.880000] drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver

[ 1.890000] Initializing USB Mass Storage driver...
[ 1.890000] usbcore: registered new interface driver usb-storage
[ 1.900000] USB Mass Storage support registered.
[ 1.910000] mice: PS/2 mouse device common for all mice
[ 1.910000] i2c /dev entries driver
[ 1.910000] Linux telephony interface: v1.00
[ 1.920000] md: linear personality registered for level -1
[ 1.920000] md: raid0 personality registered for level 0
[ 1.930000] md: raid1 personality registered for level 1
[ 2.100000] raid6: int32x1 97 MB/s
[ 2.270000] raid6: int32x2 114 MB/s
[ 2.440000] raid6: int32x4 122 MB/s
[ 2.610000] raid6: int32x8 110 MB/s
[ 2.610000] raid6: using algorithm int32x4 (122 MB/s)
[ 2.610000] md: raid6 personality registered for level 6
[ 2.620000] md: raid5 personality registered for level 5
[ 2.620000] md: raid4 personality registered for level 4
[ 2.630000] raid5: measuring checksumming speed
[ 2.680000] arm4regs : 1084.000 MB/sec
[ 2.730000] 8regs : 754.800 MB/sec
[ 2.780000] 32regs : 900.000 MB/sec
[ 2.780000] raid5: using function: arm4regs (1084.000 MB/sec)
[ 2.790000] device-mapper: ioctl: 4.11.0-ioctl (2006-10-12) initialised: dm-d
evel@redhat.com
[ 2.790000] dm_crypt using the OCF package.
[ 2.800000] sdhci: Secure Digital Host Controller Interface driver
[ 2.800000] sdhci: Copyright(c) Pierre Ossman
[ 2.810000] usbcore: registered new interface driver usbhid
[ 2.810000] drivers/hid/usbhid/hid-core.c: v2.6:USB HID core driver
[ 2.820000] TCP cubic registered
[ 2.820000] NET: Registered protocol family 1
[ 2.830000] NET: Registered protocol family 17
[ 2.830000] md: Autodetecting RAID arrays.
[ 2.840000] md: autorun ...
[ 2.840000] md: ... autorun DONE.
[ 4.590000] Empty flash at 0x009ac208 ends at 0x009ac800
[ 8.070000] VFS: Mounted root (jffs2 filesystem) readonly.
[ 8.080000] Freeing init memory: 124K
init started: BusyBox v1.7.0 (2008-02-26 19:25:17 IST)
starting pid 267, tty '': '/etc/init.d/rcS'
[ 10.210000] eth0: link down
[ 10.210000] eth0: started
udhcpc (v1.7.0) started
udhcpc: script /usr/share/udhcpc/default.script failed: No such file or director
y
Sending discover...
Sending discover...
[ 13.350000] eth0: link up, full duplex, speed 1 Gbps
Sending discover...
Sending select for *.*.*.*...
Lease of *.*.*.* obtained, lease time 86400
udhcpc: script /usr/share/udhcpc/default.script failed: No such file or director
y
starting pid 285, tty '': '/bin/sh'
-sh-3.2# ifconfig
eth0 Link encap:Ethernet HWaddr *:*:*:*:*:*
inet addr:169.254.37.133 Bcast:169.254.255.255 Mask:255.255.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:532
RX bytes:1192 (1.1 KiB) TX bytes:1770 (1.7 KiB)
Interrupt:11

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

-sh-3.2#')
makana
 
Posts: 14
Joined: Mon Aug 05, 2013 12:15 am

Re: help with pogoplug v2

Postby moonman » Thu Aug 08, 2013 4:02 am

It gives you kernel panic because your u-boot environment was modified and the kernel cannot find the rootfs.
It expects a rootfs partition to have a label "ROOTFS". For this to work you also need uinird because kernel can't read partition labels at boot by itself.

1. Create a bootable flashdrive (ext3)
2. Label it "ROOTFS" (all caps)
3. Download uinird from my uboot upgrade thread (look under goflex section)
4. Place in under boot directory on the flashdrive

This should work.
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: 3387
Joined: Sat Jan 15, 2011 3:36 am

Re: help with pogoplug v2

Postby makana » Fri Aug 09, 2013 12:35 am

Ok I made the changes and here are the results

$this->bbcode_second_pass_code('', 'U-Boot 2011.12 (Feb 20 2012 - 21:21:59)
Pogoplug E02

SoC: Kirkwood 88F6281_A0
DRAM: 256 MiB
WARNING: Caches not enabled
NAND: 128 MiB
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... 3 USB Device(s) found
scanning bus for storage devices... 1 Storage Device(s) found
Loading file "/rescueme" from usb device 0:1 (usbda1)
** File not found /rescueme
reading /rescueme.txt

** Unable to read "/rescueme.txt" from usb 0:1 **
Creating 1 MTD partitions on "nand0":
0x000002500000-0x000008000000 : "mtd=3"
UBI: attaching mtd1 to ubi0
UBI: physical eraseblock size: 131072 bytes (128 KiB)
UBI: logical eraseblock size: 129024 bytes
UBI: smallest flash I/O unit: 2048
UBI: sub-page size: 512
UBI: VID header offset: 512 (aligned 512)
UBI: data offset: 2048
UBI: attached mtd1 to ubi0
UBI: MTD device name: "mtd=3"
UBI: MTD device size: 91 MiB
UBI: number of good PEBs: 728
UBI: number of bad PEBs: 0
UBI: max. allowed volumes: 128
UBI: wear-leveling threshold: 4096
UBI: number of internal volumes: 1
UBI: number of user volumes: 0
UBI: available PEBs: 717
UBI: total number of reserved PEBs: 11
UBI: number of PEBs reserved for bad PEB handling: 7
UBI: max/mean erase counter: 1/1
UBIFS error (pid 0): ubifs_get_sb: cannot open "ubi:rootfs", error -19
Error reading superblock on volume 'ubi:rootfs'!
Loading file "/boot/uImage" from usb device 0:1 (usbda1)
1 bytes read
Found bootable drive on usb 0:1
Loading file "/boot/uImage" from usb device 0:1 (usbda1)
2889400 bytes read
Loading file "/boot/uInitrd" from usb device 0:1 (usbda1)
2510970 bytes read
## Booting kernel from Legacy Image at 00800000 ...
Image Name: Linux-3.1.10-22-ARCH
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2889336 Bytes = 2.8 MiB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
Image Name: initramfs
Image Type: ARM Linux RAMDisk Image (gzip compressed)
Data Size: 2510906 Bytes = 2.4 MiB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[ 16.338341] rtc-mv rtc-mv: internal RTC not ticking
[ 16.346709] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
:: running early hook [udev]
:: running hook [udev]
:: Triggering uevents...
Waiting 10 seconds for device /dev/disk/by-label/ROOTFS ...
[ 17.523136] sd 0:0:0:0: [sda] No Caching mode page present
[ 17.531466] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 17.542205] sd 0:0:0:0: [sda] No Caching mode page present
[ 17.547723] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 17.564207] sd 0:0:0:0: [sda] No Caching mode page present
[ 17.569975] sd 0:0:0:0: [sda] Assuming drive cache: write through
:: performing fsck on '/dev/disk/by-label/ROOTFS'
ROOTFS: clean, 35607/489600 files, 189508/1957886 blocks
:: mounting '/dev/disk/by-label/ROOTFS' on real root
:: running cleanup hook [udev]
ERROR: Root device mounted successfully, but /usr/lib/systemd/systemd  does not
exist.
Bailing out, you are on your own. Good luck.

sh: can't access tty; job control turned off
[rootfs /]#')
makana
 
Posts: 14
Joined: Mon Aug 05, 2013 12:15 am

Re: help with pogoplug v2

Postby moonman » Fri Aug 09, 2013 5:13 am

Boot into stock and run this command
$this->bbcode_second_pass_code('', '/usr/sbin/fw_setenv usb_custom_params')
to clear that variable. It's not needed
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: 3387
Joined: Sat Jan 15, 2011 3:36 am

Re: help with pogoplug v2

Postby makana » Sat Aug 10, 2013 3:11 am

Ok some serious progress has been made! I can now boot into alarm. However, ssh isn't working, networking is working but DNS is not.

$this->bbcode_second_pass_code('', 'U-Boot 2011.12 (Feb 20 2012 - 21:21:59)
Pogoplug E02

SoC: Kirkwood 88F6281_A0
DRAM: 256 MiB
WARNING: Caches not enabled
NAND: 128 MiB
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... 3 USB Device(s) found
scanning bus for storage devices... 1 Storage Device(s) found
Loading file "/rescueme" from usb device 0:1 (usbda1)
** File not found /rescueme
reading /rescueme.txt

** Unable to read "/rescueme.txt" from usb 0:1 **
Creating 1 MTD partitions on "nand0":
0x000002500000-0x000008000000 : "mtd=3"
UBI: attaching mtd1 to ubi0
UBI: physical eraseblock size: 131072 bytes (128 KiB)
UBI: logical eraseblock size: 129024 bytes
UBI: smallest flash I/O unit: 2048
UBI: sub-page size: 512
UBI: VID header offset: 512 (aligned 512)
UBI: data offset: 2048
UBI: attached mtd1 to ubi0
UBI: MTD device name: "mtd=3"
UBI: MTD device size: 91 MiB
UBI: number of good PEBs: 728
UBI: number of bad PEBs: 0
UBI: max. allowed volumes: 128
UBI: wear-leveling threshold: 4096
UBI: number of internal volumes: 1
UBI: number of user volumes: 0
UBI: available PEBs: 717
UBI: total number of reserved PEBs: 11
UBI: number of PEBs reserved for bad PEB handling: 7
UBI: max/mean erase counter: 1/1
UBIFS error (pid 0): ubifs_get_sb: cannot open "ubi:rootfs", error -19
Error reading superblock on volume 'ubi:rootfs'!
Loading file "/boot/uImage" from usb device 0:1 (usbda1)
1 bytes read
Found bootable drive on usb 0:1
Loading file "/boot/uImage" from usb device 0:1 (usbda1)
2889400 bytes read
Loading file "/boot/uInitrd" from usb device 0:1 (usbda1)
2510970 bytes read
## Booting kernel from Legacy Image at 00800000 ...
Image Name: Linux-3.1.10-22-ARCH
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2889336 Bytes = 2.8 MiB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
Image Name: initramfs
Image Type: ARM Linux RAMDisk Image (gzip compressed)
Data Size: 2510906 Bytes = 2.4 MiB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[ 22.050524] rtc-mv rtc-mv: internal RTC not ticking
[ 22.058866] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
:: running early hook [udev]
:: running hook [udev]
:: Triggering uevents...
Waiting 10 seconds for device /dev/disk/by-label/ROOTFS ...
[ 23.184571] sd 0:0:0:0: [sda] No Caching mode page present
[ 23.190090] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 23.205424] sd 0:0:0:0: [sda] No Caching mode page present
[ 23.211166] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 23.227551] sd 0:0:0:0: [sda] No Caching mode page present
[ 23.233395] sd 0:0:0:0: [sda] Assuming drive cache: write through
:: performing fsck on '/dev/disk/by-label/ROOTFS'
ROOTFS: clean, 35607/489600 files, 189508/1957886 blocks
:: mounting '/dev/disk/by-label/ROOTFS' on real root
:: running cleanup hook [udev]

Welcome to Arch Linux ARM!

Expecting device dev-ttyS0.device...
[ OK ] Reached target Remote File Systems.
[ OK ] Listening on Syslog Socket.
[ OK ] Listening on /dev/initctl Compatibility Named Pipe.
[ OK ] Listening on LVM2 metadata daemon socket.
[ OK ] Listening on Device-mapper event daemon FIFOs.
[ OK ] Listening on Delayed Shutdown Socket.
[ OK ] Reached target Encrypted Volumes.
[ OK ] Listening on Journal Socket.
Starting Create static device nodes in /dev...
Starting Setup Virtual Console...
Starting Journal Service...
[ OK ] Started Journal Service.
[ OK ] Set up automount Arbitrary Executable File Formats F...utomount Point.
Mounting Debug File System...
Mounting POSIX Message Queue File System...
[ OK ] Listening on udev Kernel Socket.
[ OK ] Listening on udev Control Socket.
Starting udev Coldplug all Devices...
Starting Apply Kernel Variables...
[ OK ] Reached target Paths.
[ OK ] Reached target Swap.
Mounting Temporary Directory...
Starting Remount Root and Kernel File Systems...
[ OK ] Started Create static device nodes in /dev.
[ OK ] Started Setup Virtual Console.
[ OK ] Mounted Debug File System.
[ OK ] Mounted POSIX Message Queue File System.
[ OK ] Started Apply Kernel Variables.
[ OK ] Mounted Temporary Directory.
[ OK ] Started Remount Root and Kernel File Systems.
[ OK ] Started udev Coldplug all Devices.
Starting Load Random Seed...
Starting udev Kernel Device Manager...
[ OK ] Started Load Random Seed.
[ OK ] Started udev Kernel Device Manager.
[ OK ] Reached target Local File Systems (Pre).
[ OK ] Reached target Local File Systems.
Starting Trigger Flushing of Journal to Persistent Storage...
Starting Recreate Volatile Files and Directories...
[ OK ] Found device /dev/ttyS0.
[ OK ] Started Recreate Volatile Files and Directories.
Starting Update UTMP about System Reboot/Shutdown...
[ OK ] Started Trigger Flushing of Journal to Persistent Storage.
[FAILED] Failed to start Update UTMP about System Reboot/Shutdown.
See 'systemctl status systemd-update-utmp.service' for details.
[ 27.490622] systemd[1]: Failed to start Update UTMP about System Reboot/Shutd
own.
[ OK ] Reached target System Initialization.
[ OK ] Reached target Timers.
[ OK ] Listening on D-Bus System Message Bus Socket.
[ OK ] Reached target Sockets.
[ OK ] Reached target Basic System.
Starting Netcfg multi-profile daemon...
Starting System Logger Daemon...
[ OK ] Started System Logger Daemon.
Starting Periodic Command Scheduler...
[ OK ] Started Periodic Command Scheduler.
Starting SSH Key Generation...
Starting Permit User Sessions...
Starting D-Bus System Message Bus...
[ OK ] Started D-Bus System Message Bus.
Starting Login Service...
[ OK ] Started Permit User Sessions.
Starting Getty on tty1...
[ OK ] Started Getty on tty1.
Starting Serial Getty on ttyS0...
[ OK ] Started Serial Getty on ttyS0.
[ OK ] Reached target Login Prompts.
[ OK ] Started Login Service.
Stopping System Logger Daemon...
[ OK ] Stopped System Logger Daemon.
Starting System Logger Daemon...
[ OK ] Started System Logger Daemon.
Stopping System Logger Daemon...
[ OK ] Stopped System Logger Daemon.
Starting System Logger Daemon...
[ OK ] Started System Logger Daemon.
Stopping System Logger Daemon...
[ OK ] Stopped System Logger Daemon.
Starting System Logger Daemon...
[ OK ] Started System Logger Daemon.
Stopping System Logger Daemon...
[ OK ] Stopped System Logger Daemon.
Starting System Logger Daemon...
[ OK ] Started System Logger Daemon.
Stopping System Logger Daemon...
[ OK ] Stopped System Logger Daemon.
Starting System Logger Daemon...
[FAILED] Failed to start System Logger Daemon.
See 'systemctl status syslog-ng.service' for details.
Starting System Logger Daemon...
[FAILED] Failed to start System Logger Daemon.
See 'systemctl status syslog-ng.service' for details.

Arch Linux 3.1.10-22-ARCH (ttyS0)

alarm login: [ OK ] Started Netcfg multi-profile daemon.
[ OK ] Reached target Network.
Starting OpenNTP Daemon...
[ OK ] Started SSH Key Generation.
Starting OpenSSH Daemon...
[ OK ] Started OpenSSH Daemon.
Stopping OpenSSH Daemon...
[ OK ] Stopped OpenSSH Daemon.
Starting OpenSSH Daemon...
[ OK ] Started OpenSSH Daemon.
Stopping OpenSSH Daemon...
[ OK ] Stopped OpenSSH Daemon.
Starting OpenSSH Daemon...
[ OK ] Started OpenSSH Daemon.
Stopping OpenSSH Daemon...
[ OK ] Stopped OpenSSH Daemon.
Starting OpenSSH Daemon...
[ OK ] Started OpenSSH Daemon.
Stopping OpenSSH Daemon...
[ OK ] Stopped OpenSSH Daemon.
Starting OpenSSH Daemon...
[ OK ] Started OpenSSH Daemon.
Stopping OpenSSH Daemon...
[ OK ] Stopped OpenSSH Daemon.
Starting OpenSSH Daemon...
[FAILED] Failed to start OpenSSH Daemon.
See 'systemctl status sshd.service' for details.
[ OK ] Started OpenNTP Daemon.
[ OK ] Reached target Multi-User System.
[ OK ] Reached target Graphical Interface.

Arch Linux 3.1.10-22-ARCH (ttyS0)

alarm login:')
makana
 
Posts: 14
Joined: Mon Aug 05, 2013 12:15 am

Re: help with pogoplug v2

Postby makana » Sat Aug 10, 2013 3:30 am

As far as the DNS issue goes it looks like the problem is that the file system has mounted read only so dhcp can't write the dns server into resolv.conf

$this->bbcode_second_pass_code('', '[root@alarm etc]# vi /etc/resolv.conf
"/var/tmp/Ex0000000400" Read-only file system')

This is what happened when I tried to manually run dhcp
$this->bbcode_second_pass_code('', '[root@alarm etc]# dhcpcd
dhcpcd[399]: version 5.6.8 starting
dhcpcd[399]: eth0: sending IPv6 Router Solicitation
dhcpcd[399]: eth0: broadcasting for a lease
dhcpcd[399]: eth0: offered *.*.*.* from *.*.*.*
dhcpcd[399]: eth0: acknowledged *.*.*.* from *.*.*.*
dhcpcd[399]: eth0: checking for *.*.*.*
dhcpcd[399]: eth0: sending IPv6 Router Solicitation
dhcpcd[399]: eth0: leased *.*.*.* for 86400 seconds
dhcpcd[399]: write_lease: Read-only file system
/usr/lib/dhcpcd/dhcpcd-run-hooks: line 118: /etc/resolv.conf: Read-only file sys
tem
chmod: changing permissions of '/etc/resolv.conf': Read-only file system
dhcpcd[399]: forked to background, child pid 425')

There is nothing in the resolv.conf and I can't edit it because it is read only

$this->bbcode_second_pass_code('', '[root@alarm etc]# cat resolv.conf
# Generated by dhcpcd
# /etc/resolv.conf.head can replace this line
# /etc/resolv.conf.tail can replace this line')
makana
 
Posts: 14
Joined: Mon Aug 05, 2013 12:15 am

Re: help with pogoplug v2

Postby makana » Sat Aug 10, 2013 3:36 am

$this->bbcode_second_pass_code('', '[root@alarm ~]# systemctl --failed
UNIT LOAD ACTIVE SUB DESCRIPTION
sshd.service loaded failed failed OpenSSH Daemon
syslog-ng.service loaded failed failed System Logger Daemon
systemd-update-utmp.service loaded failed failed Update UTMP about System Reboot

syslog.socket loaded failed failed Syslog Socket

LOAD = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB = The low-level unit activation state, values depend on unit type.

4 loaded units listed. Pass --all to see loaded but inactive units, too.
To show all installed unit files use 'systemctl list-unit-files'.')
makana
 
Posts: 14
Joined: Mon Aug 05, 2013 12:15 am

PreviousNext

Return to ARMv5

Who is online

Users browsing this forum: No registered users and 3 guests