Quantcast
Channel: Linux Device Hacking
Viewing all articles
Browse latest Browse all 3247

Replace Ubit v0.5 with Uboot and a good kernel for GoFlex Net (5 replies)

$
0
0
Hi Everyone,

I trust there are here people can help me. I rediscover my goflexnet bought in 2011 but I found that can get an IP from router's dhcp. I have tried several things but I gave up. I come back to experts.

Problem: it seems goflexnet is not boot completly a kernel from usb memory anymore. it can't get an IP. I think uboot is more flexibile and there is more documentation around about it so decided to replace ubit with it. All I have read it tells you how you do it from the linux running.

Solution: I am looking for your advice on how to replace ubit and boot a debian from goflexnet unit? It seems I need to get an SLC usb memory stick if I still want to use the usb drive to boot the linux from it.

I have a serial console working and ubit works so I can stop existing incomplete linux booting...

From serial console, a log with the ubit and 'printenv' details to give you an indication what we are dealing with.

I am looking forward for your help to restore this beauty back to life,

Have a good weekend,
ES.

------------------------------
UBIT v0.5
U-Boot 2010.09 (Feb 01 2011 - 02:45:30)
UBIT v0.5 for Seagate GoFlex Net by Peter Carmichael

SoC:   Kirkwood 88F6281_A0
DRAM:  128 MiB
NAND:  256 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
88E1116 Initialized on egiga0
Creating 1 MTD partitions on "nand0":
0x000002500000-0x000010000000 : "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:            219 MiB
UBI: number of good PEBs:        1748
UBI: number of bad PEBs:         4
UBI: max. allowed volumes:       128
UBI: wear-leveling threshold:    4096
UBI: number of internal volumes: 1
UBI: number of user volumes:     3
UBI: available PEBs:             1522
UBI: total number of reserved PEBs: 226
UBI: number of PEBs reserved for bad PEB handling: 17
UBI: max/mean erase counter: 51/5
(Re)start USB...
USB:   Register 10011 NbrPorts 1
USB EHCI 1.00
scanning bus for devices... 1 USB Device(s) found
       scanning bus for storage devices... 0 Storage Device(s) found
UBIFS error (pid 0): ubifs_get_sb: cannot open "ubi:silent", error -19
Error reading superblock on volume 'ubi:silent'!
UBIFS not mounted, use ubifs mount to mount volume first!
Using egiga0 device
ping failed; host 10.10.10.5 is not alive
Hit any key to stop autoboot:  3 ??? 2 ??? 0

------------------------------
environment
Marvell>> printenv
bootcmd=run fast_boot; run usb_boot; run hd_boot; run ubi_boot
bootdelay=3
baudrate=115200
nc_test=ping $ncip
nc_start=setenv stdin nc; setenv stdout nc; setenv stderr nc; version
silent_boot=run $ubi_args silent_rd ubi_fallback
fast_boot=run $ubi_args fast_rd ubi_fallback
usb_boot=run usb_args ext2_kern ext2_boot; run ext2_rd ubi_fallback; run fat_kern fat_boot; run fat_rd ubi_fallback
usb_args=setenv boot_dev usb 0:1; setenv dev_args root=/dev/sda1 rootdelay=10; run set_bootargs
hd_boot=ide reset; run hd_args ext2_kern ext2_boot; run ext2_rd ubi_fallback
hd_args=setenv boot_dev ide 0:1; setenv dev_args root=/dev/sda1; run set_bootargs
ubi_boot=run $ubi_args ubi_rd ubi_fallback
ubi_args=ubi_args_default
ubi_args_default=setenv dev_args ubi.mtd=root; run set_bootargs
ubi_args_tmpfs=setenv dev_args ubi.mtd=root rootfstype=tmpfs; run set_bootargs
chain=nand read.e 0x800000 0x480000 0x80000; go 0x800200
ethact=egiga0
console=ttyS0,115200
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(pogoplug),-(root)
set_bootargs=setenv bootargs console=$console $mtdparts $dev_args netconsole=@$ipaddr/eth0,@$ncipk/
ext2_kern=ext2load $boot_dev $addr_kern /boot/uImage
ext2_rd=ext2load $boot_dev $addr_rd /uInitrd
ext2_boot=run ext2_rd boot_rd; run boot_kern
fat_kern=fatload $boot_dev $addr_kern /boot/uImage
fat_rd=fatload $boot_dev $addr_rd /uInitrd
fat_boot=run fat_rd boot_rd; run boot_kern
ubi_kern=ubifsmount boot; ubifsload $addr_kern /boot/uImage
ubi_rd=ubifsmount ramdisk; ubifsload $addr_rd /uInitrd
ubi_fallback=run ubi_kern boot_rd
silent_rd=ubifsmount silent; ubifsload $addr_rd /uInitrd
fast_rd=ubifsmount fast; ubifsload $addr_rd /uInitrd
boot_kern=bootm $addr_kern
boot_rd=bootm $addr_kern $addr_rd
addr_kern=0x680000
addr_rd=0x1100000
ipaddr=10.10.10.6
ncip=10.10.10.5
ncipk=10.10.10.4
serverip=10.10.10.3
led_init=green blinking
led_exit=green off
led_error=orange blinking
preboot=ubi part root; usb start; run silent_boot; run nc_test nc_start
ethaddr=00:10:75:26:0f:4a
stdin=serial
stdout=serial
stderr=serial
partition=nand0,0
mtddevnum=0
mtddevname=u-boot
dev_args=ubi.mtd=root
bootargs=console=ttyS0,115200 mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(pogoplug),-(root) ubi.mtd=root netconsole=@10.10.10.6/eth0,@10.10.10.4/

Environment size: 2280/131068 bytes


------------------------------
rootfs
Hit any key to stop autoboot:  3 ??? 2 ??? 1 ??? 0 
UBIFS: mounted UBI device 0, volume 2, name "fast"
UBIFS: mounted read-only
UBIFS: file system size:   2967552 bytes (2898 KiB, 2 MiB, 23 LEBs)
UBIFS: journal size:       1161217 bytes (1134 KiB, 1 MiB, 8 LEBs)
UBIFS: media format:       w4/r0 (latest is w4/r0)
UBIFS: default compressor: LZO
UBIFS: reserved for root:  0 bytes (0 KiB)
Loading file '/uInitrd' to addr 0x01100000 with size 2629543 (0x00281fa7)...
Done
UBIFS: mounted UBI device 0, volume 1, name "boot"
UBIFS: mounted read-only
UBIFS: file system size:   3354624 bytes (3276 KiB, 3 MiB, 26 LEBs)
UBIFS: journal size:       1161217 bytes (1134 KiB, 1 MiB, 8 LEBs)
UBIFS: media format:       w4/r0 (latest is w4/r0)
UBIFS: default compressor: LZO
UBIFS: reserved for root:  0 bytes (0 KiB)
Loading file '/boot/uImage' to addr 0x00680000 with size 2940876 (0x002cdfcc)...
Done
## Booting kernel from Legacy Image at 00680000 ...
   Image Name:   Linux-2.6.37-ubit-01711-g50c16ad
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2940812 Bytes = 2.8 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   UBIT-2010.11-00080-g45d63a5
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    2629479 Bytes = 2.5 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...


Viewing all articles
Browse latest Browse all 3247

Trending Articles