• Home
  • Help
  • Search
  • Login
  • Register
Pages: [1]
Author Topic: Cannot flash new SPO S/N Sheevaplug  (Read 4369 times)
pmg
Newbie
*

Karma: 0
Posts: 11


View Profile
« on: June 10, 2011, 10:21:28 PM »

I've just received two GlobalScale Sheevaplugs in the mail but am unable to flash new distros onto them properly using ESIA. I've tried reflashing the new Sheevaplug's with the U-Boot that comes with ESIA 2.0.5. (Marvell Version 3.4.19) as well as versions 3.4.24 and 3.4.27. I've tried flashing the old Ubuntu image as well as the new Debian Squeeze image - all to no avail.

I have three old Sheevaplugs that flash and boot just fine using *any* permutation of the above methods. With the new plugs, flashing U-Boot works fine, near as I can tell...but when I go boot the kernel I'm presented with this:

Code:
"## Booting image at 00800000 ..."
"Image Name:   Linux-2.6.22.18"
"Created:      2009-03-19   9:18:16 UTC"
"Image Type:   ARM Linux Kernel Image (uncompressed)"
"Data Size:    2106696 Bytes =  2 MB"
"Load Address: 00008000"
"Entry Point:  00008000"
"Verifying Checksum ... OK"
"OK"
"Starting kernel ..."
"Uncompressing Linux... done, booting the kernel."

and the device hangs. Or it spews out random Unicode characters and hangs 30 seconds later.

Some of the older units I have lying around with serial numbers like "1043-00XXXX" and "1043-0XXXX" and "1001-0XXXX" flash and boot fine.

The newer units have serial numbers "SP0-1120-0003XX" and "SP0-1120-0001XX".

Was there some update/hardware revision that occurred that I should know about that would cause symptoms like this? I'm pulling my hair out here.
Logged

pmg
Newbie
*

Karma: 0
Posts: 11


View Profile
« Reply #1 on: June 11, 2011, 01:06:52 PM »

So looking around the PlugWiki for the thousandth time,  I keep coming back to this:

Quote
CAUTION: Newer GlobalScale (2010) plugs are shipping with a faster processor than original. Using this installer will 'brick' your plug. You have to upgrade to kernel 2.6.36 or later, EXCEPT that this kernel does not fit inside the default partition. The procedure for installation is in need of updating.

Is this what is happening here? Both my old plugs and my new ones are 1.2GHz. Where is the *newest* procedure to flash the plug?
Currently I've tried ESIA, this method: http://www.plugcomputer.org/plugwiki/index.php/SheevaPlug_Installer , and this method: http://plugcomputer.org/plugforum/index.php?topic=3680.0 - there are so many how to guides I don't know which one to use anymore.
Logged

pmg
Newbie
*

Karma: 0
Posts: 11


View Profile
« Reply #2 on: June 11, 2011, 02:25:29 PM »

So I've gotten a bit further but it looks like these new plugs are unable to mount the root fs; any ideas?

Code:
         __  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ V /  __/ | |
        |_|  |_|\__,_|_|    \_/ \___|_|_|
 _   _     ____              _
| | | |   | __ )  ___   ___ | |_
| | | |___|  _ \ / _ \ / _ \| __|
| |_| |___| |_) | (_) | (_) | |_
 \___/    |____/ \___/ \___/ \__|
 ** MARVELL BOARD: SHEEVA PLUG LE

U-Boot 1.1.4 (Dec 27 2009 - 22:03:21) Marvell version: 3.4.27

U-Boot code: 00600000 -> 0067FFF0  BSS: -> 006CFEE0

Soc: 88F6281 A1 (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 CS[1] base 0x10000000   size 256MB
DRAM Total size 512MB  16bit width
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
NAND:512 MB
Flash:  0 kB

CPU : Marvell Feroceon (Rev 1)

Streaming disabled
Write allocate disabled


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

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

Reading data from 0x4ff800 -- 100% complete.
 4194304 bytes read: OK
## Booting image at 00800000 ...
   Image Name:   Linux-2.6.36
   Created:      2010-10-25   7:36:30 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2947644 Bytes =  2.8 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
Linux version 2.6.36 (kelly@speedy) (gcc version 4.4.3 (Sourcery G++
Lite er) ) #1 PREEMPT Mon Oct 25 01:36:25 MDT 2010
CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=00053977
CPU: VIVT data cache, VIVT instruction cache
Machine: Marvell SheevaPlug Reference Board
Memory policy: ECC disabled, Data cache writeback
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
Kernel command line: console=ttyS0,115200
mtdparts=orion_nand:0x400000@0x100000(uImage),0x1fb00000@0x500000(rootfs)
ubi.mtd=1 root=ubi0:rootfs rootfstype=ubifs
PID hash table entries: 2048 (order: 1, 8192 bytes)
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Memory: 256MB 256MB = 512MB total
Memory: 513144k/513144k available, 11144k reserved, 0K highmem
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    DMA     : 0xffc00000 - 0xffe00000   (   2 MB)
    vmalloc : 0xe0800000 - 0xfe800000   ( 480 MB)
    lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
    modules : 0xbf000000 - 0xc0000000   (  16 MB)
      .init : 0xc0008000 - 0xc002e000   ( 152 kB)
      .text : 0xc002e000 - 0xc055d000   (5308 kB)
      .data : 0xc0582000 - 0xc05b1840   ( 191 kB)
SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Hierarchical RCU implementation.
        RCU-based detection of stalled CPUs is disabled.
        Verbose stalled-CPUs detection is disabled.
NR_IRQS:114
Console: colour dummy device 80x30
Calibrating delay loop... 1192.75 BogoMIPS (lpj=5963776)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
Kirkwood: MV88F6281-A1, TCLK=200000000.
Feroceon L2: Enabling L2
Feroceon L2: Cache support initialised.
bio: create slab <bio-0> at 0
vgaarb: loaded
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
cfg80211: Calling CRDA to update world regulatory domain
Switching to clocksource orion_clocksource
NET: Registered protocol family 2
IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
TCP established hash table entries: 16384 (order: 5, 131072 bytes)
TCP bind hash table entries: 16384 (order: 4, 65536 bytes)
TCP: Hash tables configured (established 16384 bind 16384)
TCP reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
JFFS2 version 2.2. (NAND) 2001-2006 Red Hat, Inc.
JFS: nTxBlock = 4008, nTxLock = 32071
msgmni has been set to 1002
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33) is a 16550A
console [ttyS0] enabled
brd: module loaded
loop: module loaded
NAND device: Manufacturer ID: 0xad, Chip ID: 0xdc (Hynix NAND 512MiB 3,3V 8-bit)
Scanning device for bad blocks
Bad eraseblock 2668 at 0x000014d80000
2 cmdlinepart partitions found on MTD device orion_nand
Creating 2 MTD partitions on "orion_nand":
0x000000100000-0x000000500000 : "uImage"
0x000000500000-0x000020000000 : "rootfs"
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: max. sequence number:       8
UBI error: ubi_read_volume_table: the layout volume was not found
UBI error: ubi_init: cannot attach mtd1
MV-643xx 10/100/1000 ethernet driver version 1.4
mv643xx_eth smi: probed
net eth0: port 0 with MAC address f0:ad:4e:00:86:d6
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
orion-ehci orion-ehci.0: Marvell Orion EHCI
orion-ehci orion-ehci.0: new USB bus registered, assigned bus number 1
orion-ehci orion-ehci.0: irq 19, io mem 0xf1050000
orion-ehci orion-ehci.0: USB 2.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver ums-datafab
usbcore: registered new interface driver ums-freecom
usbcore: registered new interface driver ums-jumpshot
usbcore: registered new interface driver ums-sddr09
usbcore: registered new interface driver ums-sddr55
mice: PS/2 mouse device common for all mice
rtc-mv rtc-mv: rtc core: registered rtc-mv as rtc0
i2c /dev entries driver
cpuidle: using governor ladder
cpuidle: using governor menu
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
mmc0: mvsdio driver initialized, lacking card detect (fall back to polling)
mv_xor_shared mv_xor_shared.0: Marvell shared XOR driver
mv_xor_shared mv_xor_shared.1: Marvell shared XOR driver
mv_xor mv_xor.0: Marvell XOR: ( xor cpy )
mv_xor mv_xor.1: Marvell XOR: ( xor fill cpy )
mv_xor mv_xor.2: Marvell XOR: ( xor cpy )
mv_xor mv_xor.3: Marvell XOR: ( xor fill cpy )
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
oprofile: hardware counters not available
oprofile: using timer interrupt.
TCP cubic registered
NET: Registered protocol family 17
lib80211: common routines for IEEE802.11 drivers
Registering the dns_resolver key type
registered taskstats version 1
rtc-mv rtc-mv: setting system clock to 2011-01-24 21:08:19 UTC (1295903299)
UBIFS error (pid 1): ubifs_get_sb: cannot open "ubi0:rootfs", error -19
VFS: Cannot open root device "ubi0:rootfs" or unknown-block(0,0)
Please append a correct "root=" boot option; here are the available partitions:
1f00            4096 mtdblock0 (driver?)
1f01          519168 mtdblock1 (driver?)
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[<c00336a4>] (unwind_backtrace+0x0/0xec) from [<c0432ad8>] (panic+0x5c/0x180)
[<c0432ad8>] (panic+0x5c/0x180) from [<c0008edc>] (mount_block_root+0x1c8/0x208)
[<c0008edc>] (mount_block_root+0x1c8/0x208) from [<c0009098>]
(prepare_namespace+0x88/0x1bc)
[<c0009098>] (prepare_namespace+0x88/0x1bc) from [<c000846c>]
(kernel_init+0x10c/0x14c)
[<c000846c>] (kernel_init+0x10c/0x14c) from [<c002f3ec>]
(kernel_thread_exit+0x0/0x8)

Logged

pmg
Newbie
*

Karma: 0
Posts: 11


View Profile
« Reply #3 on: June 12, 2011, 04:25:57 PM »

It looks like Globalscale may have gone back to Hynix memory after switching to Samsung briefly?

Replying to myself is getting a bit old, but I really need to figure this out.

So I did a "dmesg" on the new Sheevaplug and the old (working) one. The new plug barely works as shipped (missing 80% of critical modules, no networking capability, etc.) but at least "dmesg" works.

June, 2011 Sheevaplug (Currently bricks when flashed)
Code:
root@debian:~# dmesg
Linux version 2.6.22.18 (dhaval@devbox) (gcc version 4.2.1) #1 Thu Mar 19 14:46:22 IST 2009
CPU: ARM926EJ-S [56251311] revision 1 (ARMv5TE), cr=00053177
Machine: Feroceon-KW
Using UBoot passing parameters structure
Memory policy: ECC disabled, Data cache writeback
On node 0 totalpages: 131072
  DMA zone: 1024 pages used for memmap
  DMA zone: 0 pages reserved
  DMA zone: 130048 pages, LIFO batch:31
  Normal zone: 0 pages used for memmap
CPU0: D VIVT write-back cache
CPU0: I cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets
CPU0: D cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets
Built 1 zonelists.  Total pages: 130048
Kernel command line: console=ttyS0,115200 mtdparts=nand_mtd:0x400000@0x100000(uImage),0x1fb00000@0x500000(rootfs) rw root=/dev/mtdblock1 rw ip=10.4.50.4:10.4.50.5:10.4.50.5:255.255.255.0:DB88FXX81:eth0:none
PID hash table entries: 2048 (order: 11, 8192 bytes)
Console: colour dummy device 80x30
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Memory: 256MB 256MB 0MB 0MB = 512MB total
Memory: 515456KB available (3864K code, 257K data, 104K init)
Calibrating delay loop... 1192.75 BogoMIPS (lpj=5963776)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16

CPU Interface 
------------- 
SDRAM_CS0 ....base 00000000, size 256MB
SDRAM_CS1 ....base 10000000, size 256MB
SDRAM_CS2 ....disable
SDRAM_CS3 ....disable
PEX0_MEM ....base e8000000, size 128MB
PEX0_IO ....base f2000000, size   1MB
INTER_REGS ....base f1000000, size   1MB
NFLASH_CS ....base fa000000, size   2MB
SPI_CS ....base f4000000, size  16MB
BOOT_ROM_CS ....no such
DEV_BOOTCS ....no such
CRYPT_ENG ....base f0000000, size   2MB

  Marvell Development Board (LSP Version KW_LSP_4.2.7_patch2)-- SHEEVA PLUG  Soc: MV88F6281 Rev 3 LE

 Detected Tclk 200000000 and SysClk 400000000
MV Buttons Device Load
Marvell USB EHCI Host controller #0: c08b8600
PEX0 interface detected no Link.
PCI: bus0: Fast back to back transfers enabled
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
NET: Registered protocol family 2
Time: kw_clocksource clocksource has been installed.
IP route cache hash table entries: 16384 (order: 4, 65536 bytes)
TCP established hash table entries: 65536 (order: 7, 524288 bytes)
TCP bind hash table entries: 65536 (order: 6, 262144 bytes)
TCP: Hash tables configured (established 65536 bind 65536)
TCP reno registered
RTC registered
Use the XOR engines (acceleration) for enhancing the following functions:
  o RAID 5 Xor calculation
  o kernel memcpy
  o kenrel memzero
Number of XOR engines to use: 4
cesadev_init(c000c894)
mvCesaInit: sessions=640, queue=64, pSram=f0000000
Warning: TS unit is powered off.
MV Buttons Driver Load
NTFS driver 2.1.28 [Flags: R/O].
JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
io scheduler noop registered
io scheduler anticipatory registered (default)
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33) is a 16550A
serial8250.0: ttyS1 at MMIO 0xf1012100 (irq = 34) is a 16550A
Loading Marvell Ethernet Driver:
  o Cached descriptors in DRAM
  o DRAM SW cache-coherency
  o Single RX Queue support - ETH_DEF_RXQ=0
  o Single TX Queue support - ETH_DEF_TXQ=0
  o TCP segmentation offload enabled
  o Receive checksum offload enabled
  o Transmit checksum offload enabled
  o Network Fast Processing (Routing) supported
  o Driver ERROR statistics enabled
  o Driver INFO statistics enabled
  o Proc tool API enabled
  o Rx descripors: q0=128
  o Tx descripors: q0=532
  o Loading network interface(s):
    o eth0, ifindex = 1, GbE port = 0
    o eth1, ifindex = 2, GbE port = 1

mvFpRuleDb (dfd00000): 16384 entries, 65536 bytes
Intel(R) PRO/1000 Network Driver - version 7.3.20-k2-NAPI
Copyright (c) 1999-2006 Intel Corporation.
e100: Intel(R) PRO/100 Network Driver, 3.5.17-k4-NAPI
e100: Copyright(c) 1999-2006 Intel Corporation
Integrated Sata device found
scsi0 : Marvell SCSI to SATA adapter
scsi1 : Marvell SCSI to SATA adapter
NFTL driver: nftlcore.c $Revision: 1.98 $, nftlmount.c $Revision: 1.41 $
NAND device: Manufacturer ID: 0xad, Chip ID: 0xdc (Hynix NAND 512MiB 3,3V 8-bit)
Scanning device for bad blocks
Bad eraseblock 2466 at 0x13440000
2 cmdlinepart partitions found on MTD device nand_mtd
Using command line partition definition
Creating 2 MTD partitions on "nand_mtd":
0x00100000-0x00500000 : "uImage"
0x00500000-0x20000000 : "rootfs"
ehci_marvell ehci_marvell.70059: Marvell Orion EHCI
ehci_marvell ehci_marvell.70059: new USB bus registered, assigned bus number 1
ehci_marvell ehci_marvell.70059: irq 19, io base 0xf1050100
ehci_marvell ehci_marvell.70059: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
ohci_hcd: 2006 August 04 USB 1.1 'Open' Host Controller (OHCI) Driver
USB Universal Host Controller Interface driver v3.0
usbcore: registered new interface driver usblp
drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
mice: PS/2 mouse device common for all mice
i2c /dev entries driver
Linux telephony interface: v1.00
Marvell Telephony Driver:
mvBoardVoiceAssembleModeGet: TDM not supported(boardId=0x9)
assembly=-1,irq=-1
mp_check_config: Error, invalid voice assembley mode
md: linear personality registered for level -1
md: raid0 personality registered for level 0
md: raid1 personality registered for level 1
raid6: int32x1     97 MB/s
raid6: int32x2    114 MB/s
raid6: int32x4    122 MB/s
raid6: int32x8    110 MB/s
raid6: using algorithm int32x4 (122 MB/s)
md: raid6 personality registered for level 6
md: raid5 personality registered for level 5
md: raid4 personality registered for level 4
raid5: measuring checksumming speed
   arm4regs  :  1084.000 MB/sec
   8regs     :   754.800 MB/sec
   32regs    :   899.600 MB/sec
raid5: using function: arm4regs (1084.000 MB/sec)
device-mapper: ioctl: 4.11.0-ioctl (2006-10-12) initialised: dm-devel@redhat.com
dm_crypt using the OCF package.
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
mvsdmmc: irq =28 start f1090000
mvsdmmc: no IRQ detect
usbcore: registered new interface driver usbhid
drivers/hid/usbhid/hid-core.c: v2.6:USB HID core driver
Advanced Linux Sound Architecture Driver Version 1.0.14 (Thu May 31 09:03:25 2007 UTC).
mvCLAudioCodecRegGet: Error while reading register!
mvCLAudioCodecInit: Error - Invalid Cirrus Logic chip/rev ID!
Error - Cannot initialize audio decoder.at address =0xff<6>ALSA device list:
  #0: Marvell mv88fx_snd ALSA driver
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
eth0: started 
IP-Config: Complete:
      device=eth0, addr=10.4.50.4, mask=255.255.255.0, gw=10.4.50.5,
     host=DB88FXX81, domain=, nis-domain=(none),
     bootserver=10.4.50.5, rootserver=10.4.50.5, rootpath=
md: Autodetecting RAID arrays.
md: autorun ...
md: ... autorun DONE.
Empty flash at 0x087dd338 ends at 0x087dd800
Empty flash at 0x15230224 ends at 0x15230800
Empty flash at 0x1d52c8b4 ends at 0x1d52d000
VFS: Mounted root (jffs2 filesystem).
Freeing init memory: 104K
JFFS2 notice: (672) check_node_data: wrong data CRC in data node at 0x15230000: read 0x544fbd2b, calculated 0x9982c1e5.
JFFS2 notice: (1139) check_node_data: wrong data CRC in data node at 0x1d52c800: read 0x1d02163, calculated 0xc26240ac.
fat: exports duplicate symbol fat_add_entries (owned by kernel)
root@debian:~#

February, 2011 Sheevaplug (Flashes fine)
Code:
root@ubuntu:~# dmesg
Linux version 2.6.35.13 (kelly@speedy) (gcc version 4.5.2 (PlugComputer G++ 20110117) ) #2 PREEMPT Mon May 2 1
9:49:24 MDT 2011
CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=00053977
CPU: VIVT data cache, VIVT instruction cache
Machine: Marvell SheevaPlug Reference Board
Memory policy: ECC disabled, Data cache writeback
On node 0 totalpages: 131072
free_area_init_node: node 0, pgdat c0504544, node_mem_map c05b3000
  Normal zone: 1024 pages used for memmap
  Normal zone: 0 pages reserved
  Normal zone: 130048 pages, LIFO batch:31
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
Kernel command line: console=ttyS0,115200 mtdparts=orion_nand:0x400000@0x100000(uImage),0x1fb00000@0x500000(ro
otfs) ubi.mtd=1 root=ubi0:rootfs rootfstype=ubifs
PID hash table entries: 2048 (order: 1, 8192 bytes)
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Memory: 256MB 256MB = 512MB total
Memory: 513972k/513972k available, 10316k reserved, 0K highmem
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    DMA     : 0xffc00000 - 0xffe00000   (   2 MB)
    vmalloc : 0xe0800000 - 0xfe800000   ( 480 MB)
    lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
    modules : 0xbf000000 - 0xc0000000   (  16 MB)
      .init : 0xc0008000 - 0xc002b000   ( 140 kB)
      .text : 0xc002b000 - 0xc04b6000   (4652 kB)
      .data : 0xc04d6000 - 0xc0505920   ( 191 kB)
SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Hierarchical RCU implementation.
        RCU-based detection of stalled CPUs is disabled.
        Verbose stalled-CPUs detection is disabled.
NR_IRQS:114
Console: colour dummy device 80x30
Calibrating delay loop... 1192.75 BogoMIPS (lpj=5963776)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
Kirkwood: MV88F6281-A1, TCLK=200000000.
Feroceon L2: Enabling L2
Feroceon L2: Cache support initialised.
initial MPP regs: 01111111 11113322 00001111 00100000 00000000 00000000 00000000
  final MPP regs: 01111111 11113322 00001111 00000000 00000000 00000000 00000000
bio: create slab <bio-0> at 0
vgaarb: loaded
SCSI subsystem initialized
libata version 3.00 loaded.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
Switching to clocksource orion_clocksource
Slow work thread pool: Starting up
Slow work thread pool: Ready
FS-Cache: Loaded
NET: Registered protocol family 2
IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
TCP established hash table entries: 16384 (order: 5, 131072 bytes)
TCP bind hash table entries: 16384 (order: 4, 65536 bytes)
TCP: Hash tables configured (established 16384 bind 16384)
TCP reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
PCI: CLS 0 bytes, default 32
FS-Cache: Netfs 'nfs' registered for caching
JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
JFS: nTxBlock = 4015, nTxLock = 32123
msgmni has been set to 1003
alg: No test for stdrng (krng)
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33) is a 16550A
console [ttyS0] enabled
brd: module loaded
loop: module loaded
NAND device: Manufacturer ID: 0xec, Chip ID: 0xdc (Samsung NAND 512MiB 3,3V 8-bit)
Scanning device for bad blocks
Bad eraseblock 2213 at 0x0000114a0000
2 cmdlinepart partitions found on MTD device orion_nand
Creating 2 MTD partitions on "orion_nand":
0x000000100000-0x000000500000 : "uImage"
0x000000500000-0x000020000000 : "rootfs"
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:            "rootfs"
UBI: MTD device size:            507 MiB
UBI: number of good PEBs:        4055
UBI: number of bad PEBs:         1
UBI: max. allowed volumes:       128
UBI: wear-leveling threshold:    4096
UBI: number of internal volumes: 1
UBI: number of user volumes:     1
UBI: number of user volumes:     1
UBI: available PEBs:             0
UBI: total number of reserved PEBs: 4055
UBI: number of PEBs reserved for bad PEB handling: 40
UBI: max/mean erase counter: 7/1
UBI: image sequence number: 0
UBI: background thread "ubi_bgt0d" started, PID 458
MV-643xx 10/100/1000 ethernet driver version 1.4
mv643xx_eth smi: probed
net eth0: port 0 with MAC address f0:ad:4e:00:3f:9f
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
orion-ehci orion-ehci.0: Marvell Orion EHCI
orion-ehci orion-ehci.0: new USB bus registered, assigned bus number 1
orion-ehci orion-ehci.0: irq 19, io mem 0xf1050000
orion-ehci orion-ehci.0: USB 2.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver ums-datafab
usbcore: registered new interface driver ums-freecom
usbcore: registered new interface driver ums-jumpshot
usbcore: registered new interface driver ums-sddr09
usbcore: registered new interface driver ums-sddr55
mice: PS/2 mouse device common for all mice
rtc-mv rtc-mv: rtc core: registered rtc-mv as rtc0
i2c /dev entries driver
cpuidle: using governor ladder
cpuidle: using governor menu
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
mmc0: mvsdio driver initialized, lacking card detect (fall back to polling)
Registered led device: plug:green:health
mv_xor_shared mv_xor_shared.0: Marvell shared XOR driver
mv_xor_shared mv_xor_shared.1: Marvell shared XOR driver
mv_xor mv_xor.0: Marvell XOR: ( xor cpy )
mv_xor mv_xor.1: Marvell XOR: ( xor fill cpy )
mv_xor mv_xor.2: Marvell XOR: ( xor cpy )
mv_xor mv_xor.3: Marvell XOR: ( xor fill cpy )
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
oprofile: hardware counters not available
oprofile: using timer interrupt.
TCP cubic registered
NET: Registered protocol family 17
lib80211: common routines for IEEE802.11 drivers
lib80211_crypt: registered algorithm 'NULL'
Gating clock of unused units
before: 0x00c701dd
 after: 0x00c701d9
registered taskstats version 1
rtc-mv rtc-mv: setting system clock to 2011-06-12 11:34:58 UTC (1307878498)
UBIFS: recovery needed
UBIFS: recovery completed
UBIFS: mounted UBI device 0, volume 0, name "rootfs"
UBIFS: file system size:   515579904 bytes (503496 KiB, 491 MiB, 3996 LEBs)
UBIFS: journal size:       25804800 bytes (25200 KiB, 24 MiB, 200 LEBs)
UBIFS: media format:       w4/r0 (latest is w4/r0)
UBIFS: default compressor: lzo
UBIFS: reserved for root:  4952683 bytes (4836 KiB)
VFS: Mounted root (ubifs filesystem) on device 0:13.
Freeing init memory: 140K
ip_tables: (C) 2000-2006 Netfilter Core Team
device-mapper: ioctl: 4.17.0-ioctl (2010-03-05) initialised: dm-devel@redhat.com
NET: Registered protocol family 10
ADDRCONF(NETDEV_UP): eth0: link is not ready
root@ubuntu:~#

They key differences (as far as I can tell) are the "NAND device: Manufacturer ID: 0xad, Chip ID: 0xdc (Hynix NAND 512MiB 3,3V 8-bit)" vs  "NAND device: Manufacturer ID: 0xec, Chip ID: 0xdc (Samsung NAND 512MiB 3,3V 8-bit)" line. If the memory is in fact different, would this explain the kernel panic/random ascii giberish other people have been seeing? Is this what a "timing issue" is? I notice there is some difference between the "Orion" bit too...

Any suggestions on how to move forward?
« Last Edit: June 12, 2011, 04:28:53 PM by pmg » Logged

pmg
Newbie
*

Karma: 0
Posts: 11


View Profile
« Reply #4 on: June 12, 2011, 06:17:09 PM »

Confirmed that the new plug is using a different NAND (Hynix HY27UF084G2B vs Samsung K9F4G08U0B)

February, 2011 SheevaPlug


June, 2011 SheevaPlug
« Last Edit: June 12, 2011, 06:20:01 PM by pmg » Logged

spinifex
Full Member
***

Karma: 8
Posts: 167



View Profile WWW
« Reply #5 on: June 12, 2011, 06:32:37 PM »

This is disturbing.
Somewhere there must exist an openocd setup that handles the new memory setup, including the the different "orion"/environment stuff.  Google +"sheevaplug.cfg"

Reading your dmesg output the sole issue seems to be in loading the rootfs from "ubi0:rootfs".

My only suggestion is to prepare a bootable SD card, mod the environment to boot off SD and get the plug to boot. From here you might be able diagnose or mount the rootfs (into /mnt) with the older plugs this is done by:

# cat/proc/mtd

find the ubifs partitition that is rootfs

and

# mkdir /mnt/nand
# ubiattach /dev/ubi_ctrl -m 2 || true
# mount -t ubifs ubi0:rootfs /mnt/nand

You may need to change the -m 2 and the ubi0:rootfs
Logged

pmg
Newbie
*

Karma: 0
Posts: 11


View Profile
« Reply #6 on: June 13, 2011, 04:34:54 AM »

Hmm, good point about the MMC / SD card! I was able to get the new SheevaPlug booting off the card using an old Ubuntu image as well as the new Debian Squeeze one! Cheesy

I'm now thinking there must be some kind of problem with the kernel not supporting the new NAND.

I tried executing your commands, these are my results. What do they mean? (To be honest, I'm not sure what file system I'm using anymore.)

Code:
debian:~# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00400000 00020000 "uImage"
mtd1: 1fb00000 00020000 "rootfs"
debian:~# ubiattach /dev/ubi_ctrl -m 1 || true
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 error: compare_lebs: unsupported on-flash UBI format

ubiattach: error!: cannot attach mtd1
           error 22 (Invalid argument)
debian:~#

I traced that error to here: http://www.kernel.org/pub//scm/linux/kernel/git/jejb/storage-tree/drivers/mtd/ubi/scan.c - but I don't think I'm using an old version of UBI...

I haven't made any headway with reconfiguring OpenOCD - is this what I should be looking into now?
« Last Edit: June 13, 2011, 04:40:17 AM by pmg » Logged

pingtoo
Sr. Member
****

Karma: 15
Posts: 318


View Profile
« Reply #7 on: June 13, 2011, 06:27:21 AM »

The problem is the rootfs on the NAND is jffs2 and your kernel command line specify using UBI, they are not compatible, so you boot failed.

As far as I can tell from your posts, you have not successfully flash rootfs to NAND. However I cannot tell if you were able to load kernel from SD. IF you do then there always have a way to manually load rootfs/kernel to NAND. so let us know if you were able to go on to u-boot prompt to load kernel from SD and we can work from there.

Good Luck Smiley
Logged

Good Luck Smiley

spinifex
Full Member
***

Karma: 8
Posts: 167



View Profile WWW
« Reply #8 on: June 13, 2011, 06:30:11 AM »


Must be good to know that the SD boots.

Can you try :

# ubiattach /dev/ubi_ctrl -m 2

Then

# mount -t ubifs ubi0:rootfs /mnt

# ls -l /mnt

You are past my knowledge limits. However, cxbiker on the Kernel forum might be able to assist. Post a message there and you may get lucky.

It would seem that the issue is the formatting of the UIFS.


There are a few web references for formatting UBIFS:

http://plugcomputer.org/plugwiki/index.php/Enabling_UBIFS

Check the newit.co.uk forum

http://nitrogen.posterous.com/converting-a-sheevaplug-from-jffs2-to-ubiubif
Logged

pmg
Newbie
*

Karma: 0
Posts: 11


View Profile
« Reply #9 on: June 13, 2011, 06:59:08 AM »

Can you try :
# ubiattach /dev/ubi_ctrl -m 2
# mount -t ubifs ubi0:rootfs /mnt
# ls -l /mnt

Sure, I'm only seeing two partitions though so -m 2 didn't do anything...

Code:
debian:~# ubiattach /dev/ubi_ctrl -m 2
ubiattach: error!: cannot attach mtd2
           error 19 (No such device)
debian:~# mount -t ubifs ubi0:rootfs /mnt
UBIFS error (pid 1040): ubifs_get_sb: cannot open "ubi0:rootfs", error -19
mount: unknown filesystem type 'ubifs'
debian:~# ls -l /mnt
total 4
drwxr-xr-x 2 root root 4096 Jan 25 04:36 nand

Similarly, I get "Invalid Argument" warnings if I try to attach -m 1 or -m 0...

I don't know why it says "unknown filesystem type 'ubifs'"; if I run "cat /proc/filesystems" I get:

Code:
debian:~# cat /proc/filesystems
nodev   sysfs
nodev   rootfs
nodev   bdev
nodev   proc
nodev   tmpfs
nodev   debugfs
nodev   sockfs
nodev   usbfs
nodev   pipefs
nodev   anon_inodefs
nodev   rpc_pipefs
nodev   inotifyfs
nodev   devpts
        ext3
        ext2
        ext4
        cramfs
nodev   ramfs
        vfat
        msdos
nodev   nfs
nodev   nfs4
nodev   jffs2
        jfs
nodev   oprofilefs
nodev   ubifs

I was not able to flash the kernel onto the NAND using the normal methods (ESIA / Sheeva Plug Installer). I was able to get everything flashed onto the MMC and boot successfully that way.

The June, 2011 plugs I got in came preflashed with JFFS2 partitions but I can't for the life of me make their Hynix nand work with UBIFS. I was kind of able to monkey patch an upgraded uboot and kernel onto one of the other ones but it's super tedious. Ideally I would like the quickest path to being able to flash a prebuilt image on these new boxes.

Thanks for the links, looking into it now. The nitrogen one is very thorough!
« Last Edit: June 13, 2011, 07:04:43 AM by pmg » Logged

pingtoo
Sr. Member
****

Karma: 15
Posts: 318


View Profile
« Reply #10 on: June 13, 2011, 11:00:59 AM »

So you just want a quick way to flash. here is a trick, as long as you can flash u-boot you can do this,

1. Prepare a blank file size at most 512MB (but only need to be large enough to hold u-boot/env/rootfs.
Code:
dd if=/dev/zero of=blankfile bs=1m count=512

2. Write stuff you want in NAND to the blank file first.
Code:
dd if=/path/to/u-boot of=/path/to/blankfile conv=notrunc
dd if=/path/to/u-boot-env.bin of=/path/to/blankfile conv=notrunc skip=1280
dd if=/path/to/kernel of=/path/to/blankfile conv=notrunc skip=2048
dd if=/path/to/rootfs of=/path/to/blankfile conv=notrunc skip=10240

3. Flash the blankfile to NAND
Code:
openocd -f /path/to/sheevaplug.cfg
On a seperated terminal session,
Code:
telnet localhost 4444
init
sheevaplug_init
nand probe 0
nand erase 0 0x0 [expr 512*1024*1024]
nand write 0 /path/to/blankfile 0 oob_softecc_kw

Above code is just right off my head, have not been tested, but it should give you a general direction on what to work on. Be very careful about the nand erase part, once it started you lost your u-boot on NAND.

Good luck Smiley
Logged

Good Luck Smiley

Pages: [1]
Print
Jump to: