Welcome! Log In Create A New Profile

Advanced

Rescue system install on tftp? Need Help

Posted by tobi1337 
Rescue system install on tftp? Need Help
October 02, 2012 04:34PM
Hey Guy´s i have some problems to install a Rescue System on my Dockstar. The NAND was complete erased and i reflash the uboot on JTAG with Openocd. What am I doing wrong?

Thanks!
Tobi
U-Boot 2010.09 (Oct 23 2010 - 11:49:22)
Marvell-Dockstar/Pogoplug by Jeff Doozan

SoC:   Kirkwood 88F6281_A0
DRAM:  128 MiB
NAND:  256 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
88E1116 Initialized on egiga0
Hit any key to stop autoboot:  0
Marvell>> nand erase 0x100000 0x400000

NAND erase: device 0 offset 0x100000, size 0x400000
Erasing at 0x4e0000 -- 100% complete.
OK
Marvell>> tftp 0x800000 uImage-mtd1.img
Using egiga0 device
TFTP from server 192.168.2.36; our IP address is 192.168.2.210
Filename 'uImage-mtd1.img'.
Load address: 0x800000
Loading: #################################################################
         #################################################################
         #################################################################
         ########################################################
done
Bytes transferred = 3670016 (380000 hex)
Marvell>> nand write.e 0x800000 0x100000 0x380000

NAND write: device 0 offset 0x100000, size 0x380000
 3670016 bytes written: OK
Marvell>> tftp 0x1000000 rootfs-mtd2.img
Using egiga0 device
TFTP from server 192.168.2.36; our IP address is 192.168.2.210
Filename 'rootfs-mtd2.img'.
Load address: 0x1000000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ######
done
Bytes transferred = 28704768 (1b60000 hex)
Marvell>> setenv rescue_set_bootargs 'setenv bootargs console=$console ubi.mtd=2 root=ubi0:rootfs ro rootfstype=ubifs $mtdparts $rescue_custom_params'
Marvell>> setenv rescue_bootcmd 'if test $rescue_installed -eq 1; then run rescue_set_bootargs; nand read.e 0x800000 0x100000 0x400000; bootm 0x800000; else run pogo_bootcmd; fi'
Marvell>> setenv bootcmd 'run bootcmd_usb; usb stop; run rescue_bootcmd; reset'
Marvell>> saveenv
Saving Environment to NAND...
Erasing Nand...
Erasing at 0xc0000 -- 100% complete.
Writing to Nand... done
Marvell>> run rescue_bootcmd

NAND read: device 0 offset 0x100000, size 0x400000
 4194304 bytes read: OK
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-3.3.2-kirkwide
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3627768 Bytes = 3.5 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Linux version 3.3.2-kirkwide (davygravy@bitbaker64) (gcc version 4.3.5 (Buildroot 2010.08) ) #1 Mon May 28 13:23:17 CDT 2012
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=00053977
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine: Marvell SheevaPlug Reference Board
[    0.000000] Memory policy: ECC disabled, Data cache writeback
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: console=ttyS0,115200 ubi.mtd=2 root=ubi0:rootfs ro rootfstype=ubifs mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Memory: 128MB = 128MB total
[    0.000000] Memory: 122080k/122080k available, 8992k reserved, 0K highmem
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
[    0.000000]     vmalloc : 0xc8800000 - 0xff000000   ( 872 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc06c06c8   (6882 kB)
[    0.000000]       .init : 0xc06c1000 - 0xc06eb000   ( 168 kB)
[    0.000000]       .data : 0xc06ec000 - 0xc0734c38   ( 292 kB)
[    0.000000]        .bss : 0xc0734c5c - 0xc07a4294   ( 446 kB)
[    0.000000] SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:114
[    0.000000] gpiochip_add: registered GPIOs 0 to 31 on device: orion_gpio0
[    0.000000] gpiochip_add: registered GPIOs 32 to 49 on device: orion_gpio1
[    0.000000] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 21474ms
[    0.000000] Console: colour dummy device 80x30
[   12.788749] Calibrating delay loop... 1191.11 BogoMIPS (lpj=5955584)
[   12.878682] pid_max: default: 32768 minimum: 301
[   12.878785] Security Framework initialized
[   12.878803] SELinux:  Disabled at boot.
[   12.878850] Mount-cache hash table entries: 512
[   12.879133] Initializing cgroup subsys cpuacct
[   12.879145] Initializing cgroup subsys devices
[   12.879155] Initializing cgroup subsys freezer
[   12.879163] Initializing cgroup subsys net_cls
[   12.879210] CPU: Testing write buffer coherency: ok
[   12.879426] Setting up static identity map for 0x511040 - 0x51107c
[   12.880083] devtmpfs: initialized
[   12.881449] NET: Registered protocol family 16
[   12.881946] Kirkwood: MV88F6281-A0, TCLK=200000000.
[   12.881960] Feroceon L2: Cache support initialised.
[   12.886274] bio: create slab <bio-0> at 0
[   12.886639] vgaarb: loaded
[   12.886905] SCSI subsystem initialized
[   12.887253] usbcore: registered new interface driver usbfs
[   12.887324] usbcore: registered new interface driver hub
[   12.887419] usbcore: registered new device driver usb
[   12.887996] Switching to clocksource orion_clocksource
[   12.913140] NET: Registered protocol family 2
[   12.913373] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[   12.913955] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
[   12.914055] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[   12.914109] TCP: Hash tables configured (established 4096 bind 4096)
[   12.914119] TCP reno registered
[   12.914129] UDP hash table entries: 256 (order: 0, 4096 bytes)
[   12.914152] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[   12.914382] NET: Registered protocol family 1
[   12.914694] RPC: Registered named UNIX socket transport module.
[   12.914705] RPC: Registered udp transport module.
[   12.914713] RPC: Registered tcp transport module.
[   12.914720] RPC: Registered tcp NFSv4.1 backchannel transport module.
[   12.914785] NetWinder Floating Point Emulator V0.97 (double precision)
[   12.915331] audit: initializing netlink socket (disabled)
[   12.915366] type=2000 audit(0.110:1): initialized
[   12.923927] VFS: Disk quotas dquot_6.5.2
[   12.924158] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[   12.926830] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[   12.927949] JFFS2 version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[   12.928525] fuse init (API version 7.18)
[   12.928998] SGI XFS with security attributes, large block/inode numbers, no debug enabled
[   12.930380] msgmni has been set to 238
[   12.931664] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
[   12.931678] io scheduler noop registered
[   12.931686] io scheduler deadline registered
[   12.931721] io scheduler cfq registered (default)
[   12.931779] mv_xor_shared mv_xor_shared.0: Marvell shared XOR driver
[   12.931815] mv_xor_shared mv_xor_shared.1: Marvell shared XOR driver
[   12.968099] mv_xor mv_xor.0: Marvell XOR: ( xor cpy )
[   13.008077] mv_xor mv_xor.1: Marvell XOR: ( xor fill cpy )
[   13.048068] mv_xor mv_xor.2: Marvell XOR: ( xor cpy )
[   13.088068] mv_xor mv_xor.3: Marvell XOR: ( xor fill cpy )
[   13.088408] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[   13.108934] serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33) is a 16550A
[   13.599817] console [ttyS0] enabled
[   13.604413] ONFI flash detected
[   13.607665] ONFI param page 0 valid
[   13.611193] NAND device: Manufacturer ID: 0x2c, Chip ID: 0xda (Micron MT29F2G08AAD)
[   13.618904] Scanning device for bad blocks
[   13.771060] Bad eraseblock 1990 at 0x00000f8c0000
[   13.780042] 4 cmdlinepart partitions found on MTD device orion_nand
[   13.786333] Creating 4 MTD partitions on "orion_nand":
[   13.791512] 0x000000000000-0x000000100000 : "u-boot"
[   13.797353] 0x000000100000-0x000000500000 : "uImage"
[   13.803185] 0x000000500000-0x000002500000 : "rootfs"
[   13.808933] 0x000002500000-0x000010000000 : "data"
[   13.814788] UBI: attaching mtd2 to ubi0
[   13.818669] UBI: physical eraseblock size:   131072 bytes (128 KiB)
[   13.824962] UBI: logical eraseblock size:    129024 bytes
[   13.830397] UBI: smallest flash I/O unit:    2048
[   13.835120] UBI: sub-page size:              512
[   13.839762] UBI: VID header offset:          512 (aligned 512)
[   13.845619] UBI: data offset:                2048
[   13.899747] UBI: max. sequence number:       2
[   13.914295] UBI: attached mtd2 to ubi0
[   13.918079] UBI: MTD device name:            "rootfs"
[   13.923149] UBI: MTD device size:            32 MiB
[   13.928060] UBI: number of good PEBs:        256
[   13.932697] UBI: number of bad PEBs:         0
[   13.937152] UBI: number of corrupted PEBs:   0
[   13.941618] UBI: max. allowed volumes:       128
[   13.946256] UBI: wear-leveling threshold:    4096
[   13.950982] UBI: number of internal volumes: 1
[   13.955438] UBI: number of user volumes:     0
[   13.959903] UBI: available PEBs:             250
[   13.964534] UBI: total number of reserved PEBs: 6
[   13.969260] UBI: number of PEBs reserved for bad PEB handling: 2
[   13.975294] UBI: max/mean erase counter: 1/1
[   13.979584] UBI: image sequence number:  0
[   13.983700] UBI: background thread "ubi_bgt0d" started, PID 41
[   13.989735] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[   13.996627] mv643xx_eth smi: probed
[   14.002278] mv643xx_eth_port mv643xx_eth_port.0: eth0: port 0 with MAC address 00:xx:xx:xx:xx:c6
[   14.011167] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   14.017768] orion-ehci orion-ehci.0: Marvell Orion EHCI
[   14.023112] orion-ehci orion-ehci.0: new USB bus registered, assigned bus number 1
[   14.058053] orion-ehci orion-ehci.0: irq 19, io mem 0xf1050000
[   14.078035] orion-ehci orion-ehci.0: USB 2.0 started, EHCI 1.00
[   14.084047] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[   14.090879] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   14.098145] usb usb1: Product: Marvell Orion EHCI
[   14.102869] usb usb1: Manufacturer: Linux 3.3.2-kirkwide ehci_hcd
[   14.109000] usb usb1: SerialNumber: orion-ehci.0
[   14.114091] hub 1-0:1.0: USB hub found
[   14.117871] hub 1-0:1.0: 1 port detected
[   14.122117] Initializing USB Mass Storage driver...
[   14.127101] usbcore: registered new interface driver usb-storage
[   14.133151] USB Mass Storage support registered.
[   14.138066] mousedev: PS/2 mouse device common for all mice
[   14.143713] i2c /dev entries driver
[   14.147687] device-mapper: uevent: version 1.0.3
[   14.152677] device-mapper: ioctl: 4.22.0-ioctl (2011-10-19) initialised: dm-devel@redhat.com
[   14.161235] cpuidle: using governor ladder
[   14.165423] cpuidle: using governor menu
[   14.170608] TCP cubic registered
[   14.173852] NET: Registered protocol family 17
[   14.178373] Registering the dns_resolver key type
[   14.183557] registered taskstats version 1
[   14.188362] console [netcon0] enabled
[   14.192038] netconsole: network logging started
[   14.196584] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[   14.202951] Initializing network drop monitor service
[   14.208251] md: Waiting for all devices to be available before autodetect
[   14.215068] md: If you don't use raid, use raid=noautodetect
[   14.221388] md: Autodetecting RAID arrays.
[   14.225507] md: Scanned 0 and added 0 devices.
[   14.229990] md: autorun ...
[   14.232796] md: ... autorun DONE.
[   14.236177] VFS: Cannot open root device "ubi0:rootfs" or unknown-block(0,0)
[   14.243274] Please append a correct "root=" boot option; here are the available partitions:
[   14.251683] 1f00            1024 mtdblock0  (driver?)
[   14.256762] 1f01            4096 mtdblock1  (driver?)
[   14.261856] 1f02           32768 mtdblock2  (driver?)
[   14.266939] 1f03          224256 mtdblock3  (driver?)
[   14.272032] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)



Edited 1 time(s). Last edit at 10/02/2012 04:37PM by tobi1337.
Re: Rescue system install on tftp? Need Help
October 03, 2012 06:58AM
Which uboot are you using?

=====================================================
Re: Rescue system install on tftp? Need Help
October 04, 2012 10:07AM
I have use the uboot from Jeff. With this uboot it doesn't work, after i have flash your uboot the Rescue System works fine :)
Re: Rescue system install on tftp? Need Help
October 04, 2012 06:36PM
kk, glad to hear it.

=====================================================
Author:

Your Email:


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: