Welcome! Log In Create A New Profile

Advanced

Cant boot into PlugOS

Posted by markweng 
Cant boot into PlugOS
September 03, 2010 10:57PM
Hi Jeff,
Sorry here to bother you again...

Today I tried to install Debain couple times

For some reason I can't boot in PlugOS any more but debain
but in Debain everytime get different IP, here are fw_printenv and blparam

fw_printenv
root@debian:~# fw_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
ethact=egiga0

blparam
baudrate=115200
loads_echo=0
ipaddr=169.254.254.253
serverip=169.254.254.254
rootpath=/mnt/ARM_FS/
netmask=255.255.0.0
run_diag=yes
console=console=ttyS0,115200
CASset=min
MALLOC_len=1
ethprime=egiga0
bootargs_root=root=/dev/mtdblock2 ro
ethmtu=1500
usb0Mode=host
nandEcc=1bit
ethact=egiga0
stdin=serial
stdout=serial
stderr=serial
mainlineLinux=no
enaMonExt=no
enaCpuStream=no
enaWrAllo=no
pexMode=RC
disL2Cache=no
setL2CacheWT=yes
disL2Prefetch=yes
enaICPref=yes
enaDCPref=yes
sata_dma_mode=yes
netbsd_en=no
vxworks_en=no
bootdelay=3
disaMvPnp=no
ethaddr=00:10:75:1A:99:ED
cesvcid=KLUQAEQLRBP4XG4J8GS9C7A8XS
ceserialno=2GEP1463
ceboardver=REDSTONE:1.0
bootcmd_original=nand read.e 0x800000 0x100000 0x300000; setenv bootargs $(console) $(bootargs_root); bootm 0x800000
bootcmd=run bootcmd_original



Error from booting PlugOS
I did copy some files to MTD2 before by doing
cd /tmp
mkdir pogo
mount -t jffs2 /dev/mtdblock2 /tmp/pogo

I don't know if what I did cause error on the end.

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.
### JFFS2 load complete: 524288 bytes loaded to 0x800000
## Starting application at 0x00800200 ...


U-Boot 1.1.4 (Jul 16 2009 - 21:02:16) Cloud Engines (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 128MB
DRAM Total size 128MB  16bit width
Flash:  0 kB
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
NAND:256 MB

CPU : Marvell Feroceon (Rev 1)
CLOUD ENGINES BOARD: REDSTONE:1.0

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 0x300000

Reading data from 0x3ff800 -- 100% complete.
 3145728 bytes read: OK
## Booting image at 00800000 ...
   Image Name:   Linux-2.6.22.18
   Created:      2009-08-31  23:31:05 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1976384 Bytes =  1.9 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK

Starting kernel ...

Uncompressing Linux............................................................................................................................ done, booting the kernel.
[    0.000000] Linux version 2.6.22.18 (bdietrich@brad-ux) (gcc version 4.2.1) #57 Mon Aug 31 16:31:01 PDT 2009
[    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 sets
[    0.000000] CPU0: D cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets
[    0.000000] Built 1 zonelists.  Total pages: 32512
[    0.000000] Kernel command line: console=ttyS0,115200 root=/dev/mtdblock2 ro
[    0.000000] PID hash table entries: 512 (order: 9, 2048 bytes)
[    0.000000] Console: colour dummy device 80x30
[    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 0MB 0MB 0MB = 128MB total
[    0.000000] Memory: 125824KB available (3588K code, 252K data, 120K init)
[    0.240000] Mount-cache hash table entries: 512
[    0.240000] CPU: Testing write buffer coherency: ok
[    0.240000] NET: Registered protocol family 16
[    0.240000]
[    0.240000] CPU Interface
[    0.240000] -------------
[    0.240000] SDRAM_CS0 ....base 00000000, size 128MB
[    0.240000] SDRAM_CS1 ....disable
[    0.240000] SDRAM_CS2 ....disable
[    0.240000] SDRAM_CS3 ....disable
[    0.240000] PEX0_MEM ....base e8000000, size 128MB
[    0.240000] PEX0_IO ....base f2000000, size   1MB
[    0.240000] INTER_REGS ....base f1000000, size   1MB
[    0.240000] NFLASH_CS ....base fa000000, size   2MB
[    0.240000] SPI_CS ....base f4000000, size  16MB
[    0.240000] BOOT_ROM_CS ....no such
[    0.240000] DEV_BOOTCS ....no such
[    0.240000] CRYPT_ENG ....base f0000000, size   2MB
[    0.240000]
[    0.240000]   Marvell Development Board (LSP Version KW_LSP_4.2.7_patch21_with_rx_desc_tuned)-- SHEEVA PLUG  Soc: 88F6281 A0 LE
[    0.240000]
[    0.240000]  Detected Tclk 200000000 and SysClk 400000000
[    0.240000] MV Buttons Device Load
[    0.240000] Marvell USB EHCI Host controller #0: c0537600
[    0.740000] PEX0 interface detected no Link.
[    0.740000] PCI: bus0: Fast back to back transfers enabled
[    0.740000] SCSI subsystem initialized
[    0.740000] usbcore: registered new interface driver usbfs
[    0.740000] usbcore: registered new interface driver hub
[    0.740000] usbcore: registered new device driver usb
[    0.740000] NET: Registered protocol family 2
[    0.750000] Time: kw_clocksource clocksource has been installed.
[    0.840000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.840000] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
[    0.840000] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    0.840000] TCP: Hash tables configured (established 4096 bind 4096)
[    0.840000] TCP reno registered
[    0.870000] RTC has been updated!!!
[    0.870000] RTC registered
[    0.870000] Use the XOR engines (acceleration) for enhancing the following functions:
[    0.870000]   o RAID 5 Xor calculation
[    0.870000]   o kernel memcpy
[    0.870000]   o kenrel memzero
[    0.870000] Number of XOR engines to use: 4
[    0.870000] cesadev_init(c00116b4)
[    0.870000] mvCesaInit: sessions=640, queue=64, pSram=f0000000
[    0.870000] MV Buttons Driver Load
[    0.870000] squashfs: version 3.3 (2007/10/31) Phillip Lougher
[    0.870000] squashfs: LZMA suppport for slax.org by jro
[    0.870000] JFFS2 version 2.2. (NAND) A?Ac 2001-2006 Red Hat, Inc.
[    0.870000] io scheduler noop registered
[    0.870000] io scheduler anticipatory registered (default)
[    0.890000] Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled
[    0.890000] serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33) is a 16550A
[    0.900000] serial8250.0: ttyS1 at MMIO 0xf1012100 (irq = 34) is a 16550A
[    0.900000] RAMDISK driver initialized: 16 RAM disks of 16384K size 1024 blocksize
[    0.910000] Loading Marvell Ethernet Driver:
[    0.920000]   o Cached descriptors in DRAM
[    0.920000]   o DRAM SW cache-coherency
[    0.920000]   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.940000]   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.960000]   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.980000]     o eth0, ifindex = 1, GbE port = 0
[    0.990000]     o eth1, ifindex = 2, GbE port = 1
[    0.990000]
[    1.000000] mvFpRuleDb (c7ed5000): 1024 entries, 4096 bytes
[    1.000000] Intel(R) PRO/1000 Network Driver - version 7.3.20-k2-NAPI
[    1.010000] Copyright (c) 1999-2006 Intel Corporation.
[    1.010000] e100: Intel(R) PRO/100 Network Driver, 3.5.17-k4-NAPI
[    1.020000] e100: Copyright(c) 1999-2006 Intel Corporation
[    1.020000]
[    1.020000] 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: 0x2c, Chip ID: 0xda (Micron NAND 256MiB 3,3V 8-bit)
[    1.050000] Scanning device for bad blocks
[    1.100000] Bad eraseblock 1072 at 0x08600000
[    1.150000] Using static partition definition
[    1.160000] Creating 4 MTD partitions on "nand_mtd":
[    1.160000] 0x00000000-0x00100000 : "u-boot"
[    1.170000] 0x00100000-0x00500000 : "uImage"
[    1.170000] 0x00500000-0x02500000 : "root"
[    1.180000] 0x02500000-0x10000000 : "data"
[    1.180000] ehci_marvell ehci_marvell.70059: Marvell Orion EHCI
[    1.190000] ehci_marvell ehci_marvell.70059: new USB bus registered, assigned bus number 1
[    1.230000] ehci_marvell ehci_marvell.70059: irq 19, io base 0xf1050100
[    1.250000] ehci_marvell ehci_marvell.70059: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004
[    1.250000] usb usb1: configuration #1 chosen from 1 choice
[    1.260000] hub 1-0:1.0: USB hub found
[    1.260000] hub 1-0:1.0: 1 port detected
[    1.380000] USB Universal Host Controller Interface driver v3.0
[    1.660000] usb 1-1: new high speed USB device using ehci_marvell and address 2
[    1.810000] usb 1-1: configuration #1 chosen from 1 choice
[    1.810000] hub 1-1:1.0: USB hub found
[    1.820000] hub 1-1:1.0: 4 ports detected
[    1.930000] usbcore: registered new interface driver usblp
[    1.930000] drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver
[    1.940000] Initializing USB Mass Storage driver...
[    1.940000] usbcore: registered new interface driver usb-storage
[    1.950000] USB Mass Storage support registered.
[    1.960000] mice: PS/2 mouse device common for all mice
[    1.960000] i2c /dev entries driver
[    1.960000] Linux telephony interface: v1.00
[    1.970000] md: linear personality registered for level -1
[    1.970000] md: raid0 personality registered for level 0
[    1.980000] md: raid1 personality registered for level 1
[    2.150000] raid6: int32x1     97 MB/s
[    2.320000] raid6: int32x2    114 MB/s
[    2.490000] raid6: int32x4    122 MB/s
[    2.660000] raid6: int32x8    110 MB/s
[    2.660000] raid6: using algorithm int32x4 (122 MB/s)
[    2.660000] md: raid6 personality registered for level 6
[    2.670000] md: raid5 personality registered for level 5
[    2.670000] md: raid4 personality registered for level 4
[    2.680000] raid5: measuring checksumming speed
[    2.730000]    arm4regs  :  1084.000 MB/sec
[    2.780000]    8regs     :   754.800 MB/sec
[    2.830000]    32regs    :   900.000 MB/sec
[    2.830000] raid5: using function: arm4regs (1084.000 MB/sec)
[    2.840000] device-mapper: ioctl: 4.11.0-ioctl (2006-10-12) initialised: dm-devel@redhat.com
[    2.840000] dm_crypt using the OCF package.
[    2.850000] sdhci: Secure Digital Host Controller Interface driver
[    2.850000] sdhci: Copyright(c) Pierre Ossman
[    2.860000] usbcore: registered new interface driver usbhid
[    2.860000] drivers/hid/usbhid/hid-core.c: v2.6:USB HID core driver
[    2.870000] TCP cubic registered
[    2.870000] NET: Registered protocol family 1
[    2.880000] NET: Registered protocol family 17
[    2.880000] md: Autodetecting RAID arrays.
[    2.890000] md: autorun ...
[    2.890000] md: ... autorun DONE.
[    7.470000] Empty flash at 0x00de8e44 ends at 0x00de9000
[    7.830000] Empty flash at 0x014e8508 ends at 0x014e8800
[    8.150000] VFS: Mounted root (jffs2 filesystem) readonly.
[    8.160000] Freeing init memory: 120K
[    8.570000] JFFS2 compression type 0x07 not available.
[    8.580000] Error: jffs2_decompress returned -5
[    8.590000] JFFS2 compression type 0x07 not available.
[    8.590000] Error: jffs2_decompress returned -5
init started: BusyBox v1.7.0 (2008-02-26 19:25:17 IST)
starting pid 269, tty '': '/etc/init.d/rcS'
[   10.140000] JFFS2 compression type 0x07 not available.
[   10.150000] Error: jffs2_decompress returned -5
Bus error
[   10.160000] JFFS2 compression type 0x07 not available.
[   10.160000] Error: jffs2_decompress returned -5
Bus error
[   10.170000] JFFS2 compression type 0x07 not available.
[   10.180000] Error: jffs2_decompress returned -5
Bus error
[   10.180000] JFFS2 compression type 0x07 not available.
[   10.190000] Error: jffs2_decompress returned -5
Bus error
[   10.200000] JFFS2 compression type 0x07 not available.
[   10.210000] Error: jffs2_decompress returned -5
Bus error
/etc/init.d/rcS: line 9: /proc/sys/kernel/core_pattern: No suc[   10.220000] JFFS2 compression type 0x07 not available.
h file or direct[   10.220000] Error: jffs2_decompress returned -5
ory
Bus error
[   10.230000] JFFS2 compression type 0x07 not available.
[   10.240000] Error: jffs2_decompress returned -5
Bus error
[   10.250000] JFFS2 compression type 0x07 not available.
[   10.250000] Error: jffs2_decompress returned -5
Bus error
[   10.260000] JFFS2 compression type 0x07 not available.
[   10.270000] Error: jffs2_decompress returned -5
Bus error
[   10.280000] JFFS2 compression type 0x07 not available.
[   10.280000] Error: jffs2_decompress returned -5
Bus error
[   10.290000] JFFS2 compression type 0x07 not available.
[   10.300000] Error: jffs2_decompress returned -5
Bus error
starting pid 286, tty '': '/bin/sh'
-sh-3.2#


Is that a way to reflash the MTD2?

Thanks again
wcw
Re: Cant boot into PlugOS
September 04, 2010 05:46PM
Second this issue, mine after happily following the squeeze install script.

It wouldn't be an issue, if most of the scripts here didn't all start with, 'boot into Pogo..'
Re: Cant boot into PlugOS
September 04, 2010 11:19PM
The relevant error is here:
[    8.570000] JFFS2 compression type 0x07 not available.
[    8.580000] Error: jffs2_decompress returned -5

Which means that, somehow, your jffs2 partition is now compressed with LZO (type 0x07), which the old Pogoplug kernel doesn't support.

It might be possible to re-compress your partition with another algorithm, but I don't know anything about doing that.

If you can't find a way to do that, the following steps will help you restore the original pogoplug software on the mtd2 partition. To do so, boot into Debian and run the following commands:

# Restore mtd2
wget http://plugapps.com/os/pogoplug/ce_mirror/ce_ramdisk_v2.0b.img.gz
unzip ce_ramdisk_v2.0b.img.gz
flash_erase /dev/mtd2
nandwrite /dev/mtd0 ce_ramdisk_v2.0b.img

# Put a copy of the Pogoplug uBoot someplace accessible
cd /
wget http://jeff.doozan.com/debian/uboot/uboot-original-mtd0.kwb

Then reboot and interrupt uBoot and run the following from uBoot:
ext2load usb $usb_device uboot-original-mtd0.kwb 0x800000
go 0x800200

Hopefully that will put you into the original Pogo plug install. From there, you should re-run the uBoot installer to patch the Pogoplug environment and install the necessary uBoot files.

-- Jeff
Re: Cant boot into PlugOS
September 05, 2010 08:42AM
Hi Jeff,

Thanks for the information. :-)
Before your post, yesterday I went to local Office Depote and picked up a Dockstar for about $10.
Since just $10 so I dared myself then took this diection
Seagate_DockStar_Reflashing
Since my boot variables are all there so I only did
setenv ipaddr 192.168.1.123
setenv serverip 192.168.1.101
nand erase 0x100000 0x400000
tftp 0x800000 ce_kernel_redstone_v63.img
nand write.e 0x800000 0x100000 0x1e30f0
tftp 0x1000000 ce_ramdisk_v2.0b.img
setenv bootargs $(console) root=/dev/mtdblock2 initrd=0x1000000,0xb39a59
bootm 0x800000
But I when did the tftp 0x800000 ce_kernel_redstone_v63.img
I can see my tftp server start to send the file but stuck at 0% and never changed.
Then I checked the command on the u-boot and didn't see "fttp" but "fttpboot", so I guessed maybe the new u-boot caused tftp problem it.

My problam was can't boot in pogo but still can boot in debian with jeff's new u-boot
So I took chance flash back to original u-boot and reboot then the tftp works and my dockstart back to factory.
I will install the new u-boot and debian later.

Thanks Jeff for all your work and I learn a lot from your website.

Mark
Re: Cant boot into PlugOS
January 04, 2011 02:21PM
Jeff Wrote:
-------------------------------------------------------

> # Restore mtd2
> wget
> http://plugapps.com/os/pogoplug/ce_mirror/ce_ramdi
> sk_v2.0b.img.gz
> unzip ce_ramdisk_v2.0b.img.gz
> flash_erase /dev/mtd2
> nandwrite /dev/mtd0 ce_ramdisk_v2.0b.img
>

I suppose there should be /dev/mtd2 instead of /dev/mtd0
Am I correct?
Author:

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: