• Home
  • Help
  • Search
  • Login
  • Register
Pages: [1]
Author Topic: USB Recovery Image  (Read 5854 times)
plugit
Global Moderator
Full Member
*****

Karma: 0
Posts: 139



View Profile
« on: April 14, 2009, 05:26:47 AM »

Anyone know what this is? Or rather, how to use it?
Logged

tunafishz
Newbie
*

Karma: 0
Posts: 1


View Profile
« Reply #1 on: April 14, 2009, 05:43:53 PM »

Yeah that's what I would like to know too since i just bricked my sheeva...

File is: u-boot/PPCBoot image

Maybe one needs to flash image into SD-card... I'll check into that later.

Logged

Raúl Porcel
Global Moderator
Jr. Member
*****

Karma: 0
Posts: 68


View Profile
« Reply #2 on: April 15, 2009, 12:21:01 AM »

Yeah that's what I would like to know too since i just bricked my sheeva...

File is: u-boot/PPCBoot image

Maybe one needs to flash image into SD-card... I'll check into that later.



Errr...i doubt you need to flash it to SD-card. The U-boot in the plug doesn't support SD. Besides, its called "USB recovery image", definitely not SD Smiley
Logged

plugit
Global Moderator
Full Member
*****

Karma: 0
Posts: 139



View Profile
« Reply #3 on: April 20, 2009, 09:01:23 AM »

Do you know, Rabeeh?
Logged

plugcomp
Newbie
*

Karma: 0
Posts: 18


View Profile
« Reply #4 on: April 21, 2009, 12:54:34 AM »

It's the new software package that will enable booting of the kernel and filesystem from attached USB key. I guess the document should come up quickly in the documentation package.

In the meantime, you can try the following steps:

Copy the images in USB_Recovery.zip package to a ext2 or ext3 formatted USB key. Also, copy a working uImage (such as uImage.sheeva.040309) and the filesystem you want to use (such as ububtu-Release.9.0.5.jffs2) to the USB key.

1. Upgrade the U-Boot on the plug with the U-Boot binary image in the SheevaPlug_UBoot.zip package file using the ‘bubt’ command. Select ‘n’ for the environment option. Reboot the plug.
2. After upgrading the U-Boot, stop the auto-boot to enter the U-Boot prompt. At the U-Boot prompt, set the following parameters:

a.   Marvell>> set loadaddr 0x2000000
b.   Marvell>> set mtd1Size 0x300000 (setting mtd1 size to 3MB)

(Note: If there are many bad blocks observed in mtd1 partition, the user can change the mtd1Size, which is the uImage partition size, to say 0x400000 or 0x500000 etc. The default is 0x300000)
 
c.   Marvell>> set filesize 0x44ad000 (size of the provided file, flashware.img, in hex bytes)
d.   Marvell>> saveenv
e.   Marvell>> reset

After the SheevaPlug boots up, stop autoboot and enter U-boot prompt:
f.   Marvell>> rcvr

Now Linux should boot and you should be able to write the uImage and Filesystem images to the flash.
« Last Edit: April 21, 2009, 12:58:05 AM by plugcomp » Logged

plugit
Global Moderator
Full Member
*****

Karma: 0
Posts: 139



View Profile
« Reply #5 on: April 21, 2009, 05:24:12 AM »

Über-nifty! I will be trying this tonight. Thanks so much for the info!

(the bit about mtd1Size is particularly interesting)
Logged

Raúl Porcel
Global Moderator
Jr. Member
*****

Karma: 0
Posts: 68


View Profile
« Reply #6 on: April 21, 2009, 11:36:19 AM »

Doesn't work:

Code:
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
NAND:512 MB
*** Warning - bad CRC or NAND, using default environment


CPU : Marvell Feroceon (Rev 1)

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
Marvell>>
Marvell>>
Marvell>>
Marvell>>
Marvell>> set loadaddr 0x2000000
Marvell>> set mtd1Size 0x300000
Marvell>> set filesize 0x44ad000
Marvell>> saveenv
Saving Environment to NAND...
Erasing Nand...Writing to Nand... done
Marvell>> reset

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

U-Boot 1.1.4 (Mar  2 2009 - 12:16:00) Marvell version: 3.4.16

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

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

CPU : Marvell Feroceon (Rev 1)

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
Marvell>>
Marvell>>
Marvell>>
Marvell>> rcvr
USB:   scanning bus for devices... 2 USB Device(s) found
       scanning bus for storage devices... 1 Storage Device(s) found
Trying to load image from USB flash drive using FAT FS
reading /flashware.img

** Unable to read "/flashware.img" from usb 0:1 **
Trying to load image from USB flash drive using ext2 FS partition 0
Failed to mount ext2 filesystem...
** Bad ext2 partition or disk - usb 0:0 **
Trying to load image from USB flash drive using ext2 FS partition 1
....
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
................................................................

72011776 bytes read
Update bootcmd

bootcmd: setenv bootargs $(console) root=/dev/ram0 rootfstype=squashfs initrd=0x2200000,0x41ad000 ramdisk_size=67252 recovery=usb serverip=0.0.0.0; bootm 0x2000000;
Booting the image (@ 0x2000000)...
## Booting image at 02000000 ...
   Image Name:   Linux-2.6.22.18
   Created:      2009-03-30  15:30:26 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2148292 Bytes =  2 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
Linux version 2.6.22.18 (root@localhost.localdomain) (gcc version 4.2.1) #2 Mon Mar 30 08:30:12 PDT 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
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:0xc0000@0(uboot)ro,0x1ff00000@0x100000(root) root=/dev/ram0 rootfstype=squashfs initrd=0x2200000,0x41ad000 ramdisk_size=67252 recovery=usb serverip=0.0.0.0
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: 448000KB available (3920K code, 260K data, 124K init)
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: 88F6281 A0 LE

 Detected Tclk 200000000 and SysClk 400000000
MV Buttons Device Load
Marvell USB EHCI Host controller #0: c08ab600
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
checking if image is initramfs...it isn't (bad gzip magic numbers); looks like an initrd
Freeing initrd memory: 67252K
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(c0011674)
mvCesaInit: sessions=640, queue=64, pSram=f0000000
Warning: TS unit is powered off.
MV Buttons Driver Load
squashfs: version 3.3 (2007/10/31) Phillip Lougher
squashfs: LZMA suppport for slax.org by jro
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
RAMDISK driver initialized: 20 RAM disks of 67252K size 4096 blocksize
loop: module loaded
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 (c61b0000): 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

Warning Sata is Powered Off
NFTL driver: nftlcore.c $Revision: 1.98 $, nftlmount.c $Revision: 1.41 $
NAND device: Manufacturer ID: 0xec, Chip ID: 0xdc (Samsung NAND 512MiB 3,3V 8-bit)
Scanning device for bad blocks
Bad eraseblock 763 at 0x05f60000
Bad eraseblock 1462 at 0x0b6c0000
Bad eraseblock 2121 at 0x10920000
2 cmdlinepart partitions found on MTD device nand_mtd
Using command line partition definition
Creating 2 MTD partitions on "nand_mtd":
0x00000000-0x000c0000 : "uboot"
0x00100000-0x20000000 : "root"
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
USB Universal Host Controller Interface driver v3.0
usb 1-1: new high speed USB device using ehci_marvell and address 2
usb 1-1: configuration #1 chosen from 1 choice
usbcore: registered new interface driver usblp
drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver
Initializing USB Mass Storage driver...
scsi0 : SCSI emulation for USB Mass Storage devices
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
md: Autodetecting RAID arrays.
md: autorun ...
md: ... autorun DONE.
RAMDISK: Couldn't find valid RAM disk image starting at 0.
List of all partitions:
1f00        768 mtdblock0 (driver?)
1f01     523264 mtdblock1 (driver?)
No filesystem could mount root, tried:  squashfs
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(1,0)
                                                                                   
Logged

plugcomp
Newbie
*

Karma: 0
Posts: 18


View Profile
« Reply #7 on: April 21, 2009, 12:39:50 PM »

Your uboot version is:
U-Boot 1.1.4 (Mar  2 2009 - 12:16:00) Marvell version: 3.4.16

The parameters loadaddr 0x2000000, mtd1Size and filesize have been modified in the following version of the uboot:
U-Boot 1.1.4 (Apr  9 2009 - 12:23:12) Marvell version: 3.4.16

Update your uboot using the command 'bubt'. Also the latest documents have been uploaded at :
http://www.marvell.com/products/embedded_processors/developer/kirkwood/sheevaplug.jsp

Logged

plugcomp
Newbie
*

Karma: 0
Posts: 18


View Profile
« Reply #8 on: April 22, 2009, 01:10:15 AM »

I also noticed that one parameter is missing in the bootargs.

Use the following command in the uboot after the images have been written to the NAND:

Marvell>> setenv bootargs 'console=ttyS0,115200 mtdparts=nand_mtd:0x100000@0x00000(u-boot),0x300000@0x100000(uImage)ro,0x1fc00000@0x400000(rootfs)rw root=/dev/mtdblock2'
Logged

crasmus
Newbie
*

Karma: 0
Posts: 6


View Profile
« Reply #9 on: May 17, 2009, 03:55:50 PM »

How do I While doing the bubt thing get to the place to invoke the N parameter ? 1. Upgrade the U-Boot on the plug with the U-Boot binary image in the SheevaPlug_UBoot.zip package file using the ‘bubt’ command. Select ‘n’ for the environment option. Reboot the plug.)
Logged

Pages: [1]
Print
Jump to: