fly
Re: Debian on GoFlex Home June 13, 2012 09:20AM |
ethact=egiga0 bootdelay=3 baudrate=115200 mainlineLinux=yes console=ttyS0,115200 led_init=green blinking led_exit=green off led_error=orange blinking mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data) mtdids=nand0=orion_nand partition=nand0,2 stdin=serial stdout=serial stderr=serial rescue_installed=0 rescue_set_bootargs=setenv bootargs console=$console ubi.mtd=2 root=ubi0:rootfs ro rootfstype=ubifs $mtdparts $rescue_custom_params 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 pogo_bootcmd=if fsload uboot-original-mtd0.kwb; then go 0x800200; fi force_rescue=0 force_rescue_bootcmd=if test $force_rescue -eq 1 || ext2load usb 0:1 0x1700000 /rescueme 1 || fatload usb 0:1 0x1700000 /rescueme.txt 1; then run rescue_bootcmd; fi ubifs_mtd=3 ubifs_set_bootargs=setenv bootargs console=$console ubi.mtd=$ubifs_mtd root=ubi0:rootfs rootfstype=ubifs $mtdparts $ubifs_custom_params ubifs_bootcmd=run ubifs_set_bootargs; if ubi part data && ubifsmount rootfs && ubifsload 0x800000 /boot/uImage && ubifsload 0x1100000 /boot/uInitrd; then bootm 0x800000 0x1100000; fi usb_scan=usb_scan_done=0;for scan in $usb_scan_list; do run usb_scan_$scan; if test $usb_scan_done -eq 0 && ext2load usb $usb 0x800000 /boot/uImage 1; then usb_scan_done=1; echo "Found bootable drive on usb $usb"; setenv usb_device $usb; setenv usb_root /dev/$dev; fi; done usb_scan_list=1 2 3 4 usb_scan_1=usb=0:1 dev=sda1 usb_scan_2=usb=1:1 dev=sdb1 usb_scan_3=usb=2:1 dev=sdc1 usb_scan_4=usb=3:1 dev=sdd1 usb_init=run usb_scan usb_device=0:1 usb_root=/dev/sda1 usb_rootfstype=ext2 usb_rootdelay=10 usb_set_bootargs=setenv bootargs console=$console root=$usb_root rootdelay=$usb_rootdelay rootfstype=$usb_rootfstype $mtdparts $usb_custom_params usb_bootcmd=run usb_init; run usb_set_bootargs; run usb_boot usb_boot=mw 0x800000 0 1; ext2load usb $usb_device 0x800000 /boot/uImage; if ext2load usb $usb_device 0x1100000 /boot/uInitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi bootcmd=usb start; run force_rescue_bootcmd; run ubifs_bootcmd; run usb_bootcmd; usb stop; run rescue_bootcmd; run pogo_bootcmd; reset arcNumber=3089 serverip=192.168.178.24 ethaddr=00:10:75:29:0B:98 ipaddr=192.168.178.39 if_netconsole=ping $serverip start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version; preboot=run if_netconsole start_netconsole
Re: Debian on GoFlex Home June 13, 2012 05:27PM |
Registered: 13 years ago Posts: 78 |
> This is nc from the netcat-openbsd package. An > alternative nc is available > in the netcat-traditional package. > usage: nc [-46DdhklnrStUuvzC] [-i interval] [-P > proxy_username] [-p source_port] > [-s source_ip_address] [-T ToS] [-w timeout] > [-X proxy_protocol] > [-x proxy_address[:port]] [hostname] [port[s]] >> Maybe this is a hint? (Don't know how it should
fly
Re: Debian on GoFlex Home June 13, 2012 05:48PM |
U-Boot 2011.12 (Apr 18 2012 - 23:08:20) Seagate GoFlexNet arm-none-linux-gnueabi-gcc (Sourcery G++ Lite 2009q3-67) 4.4.1 GNU ld (Sourcery G++ Lite 2009q3-67) 2.19.51.20090709 Hit any key to stop autoboot: 0 (Re)start USB... USB: Register 10011 NbrPorts 1 USB EHCI 1.00 scanning bus for devices... 2 USB Device(s) found scanning bus for storage devices... 1 Storage Device(s) found Loading file "/rescueme" from usb device 0:1 (usbda1) ** File not found /rescueme reading /rescueme.txt ** Unable to read "/rescueme.txt" from usb 0:1 ** 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 error: validate_ec_hdr: bad VID header offset 2048, expected 512 UBI error: validate_ec_hdr: bad EC header UBI error: ubi_io_read_ec_hdr: validation failed for PEB 0 UBI error: ubi_init: cannot attach mtd1 UBI error: ubi_init: UBI error: cannot initialize UBI, error -22 UBI init error 22 Loading file "/boot/uImage" from usb device 0:1 (usbda1) 1 bytes read Found bootable drive on usb 0:1 Loading file "/boot/uImage" from usb device 0:1 (usbda1) 3627880 bytes read Loading file "/boot/uInitrd" from usb device 0:1 (usbda1) ** File not found /boot/uInitrd ## Booting kernel from Legacy Image at 00800000 ... Image Name: Linux-3.3.2-kirkwide Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 3627816 Bytes = 3.5 MiB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... OK Loading Kernel Image ... OK OK Starting kernel ...
Quote
davygravy
> Ok, so what now? How can I fix the (supposedly)
> broken uBoot, and make the GFH boot from USB flash
> drive?
You'll need to make sure (A) your U-Boot is the correct (updated version) and (B) its env variables are set correctly.
Re: Debian on GoFlex Home June 13, 2012 07:35PM |
Registered: 12 years ago Posts: 501 |
fly
Re: Debian on GoFlex Home June 14, 2012 04:35PM |
Re: Debian on GoFlex Home June 14, 2012 06:00PM |
Registered: 12 years ago Posts: 501 |
Re: Debian on GoFlex Home June 14, 2012 11:24PM |
Admin Registered: 13 years ago Posts: 18,558 |
fly
Re: Debian on GoFlex Home June 16, 2012 10:05AM |
root@debian-kirkwood-wide:~# fw_printenv usb_init usb_init=run usb_scan-> so I have to do # fw_setenv usb_init "run usb_scan; setenv usb_root LABEL=rootfs"
U-Boot 2011.12 (Apr 18 2012 - 23:08:20) Seagate GoFlexNet arm-none-linux-gnueabi-gcc (Sourcery G++ Lite 2009q3-67) 4.4.1 GNU ld (Sourcery G++ Lite 2009q3-67) 2.19.51.20090709 Hit any key to stop autoboot: 0 (Re)start USB... USB: Register 10011 NbrPorts 1 USB EHCI 1.00 scanning bus for devices... USB device not accepting new address (error=22) 2 USB Device(s) found scanning bus for storage devices... 0 Storage Device(s) found ** Block device usb 0 not supported ** Invalid boot device ** 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 error: validate_ec_hdr: bad VID header offset 2048, expected 512 UBI error: validate_ec_hdr: bad EC header UBI error: ubi_io_read_ec_hdr: validation failed for PEB 0 UBI error: ubi_init: cannot attach mtd1 UBI error: ubi_init: UBI error: cannot initialize UBI, error -22 UBI init error 22 ** Block device usb 0 not supported ** Block device usb 1 not supported ** Block device usb 2 not supported ** Block device usb 3 not supported ** 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: read_nand_cached: error reading nand off 0xb5e600 size 8192 bytes read_nand_cached: error reading nand off 0xb5e200 size 8192 bytes read_nand_cached: error reading nand off 0xb60200 size 8192 bytes read_nand_cached: error reading nand off 0xb62200 size 8192 bytes read_nand_cached: error reading nand off 0xb64200 size 8192 bytes read_nand_cached: error reading nand off 0xb66200 size 8192 bytes read_nand_cached: error reading nand off 0xb68200 size 8192 bytes read_nand_cached: error reading nand off 0xb6a200 size 8192 bytes read_nand_cached: error reading nand off 0xb6c200 size 8192 bytes read_nand_cached: error reading nand off 0xb6e200 size 8192 bytes read_nand_cached: error reading nand off 0xb70200 size 8192 bytes read_nand_cached: error reading nand off 0xb72200 size 8192 bytes read_nand_cached: error reading nand off 0xb74200 size 8192 bytes read_nand_cached: error reading nand off 0xb76200 size 8192 bytes read_nand_cached: error reading nand off 0xb78200 size 8192 bytes read_nand_cached: error reading nand off 0xb7a200 size 8192 bytes read_nand_cached: error reading nand off 0xb7c200 size 8192 bytes read_nand_cached: error reading nand off 0xb7e200 size 8192 bytes read_nand_cached: error reading nand off 0xb9ee00 size 8192 bytes read_nand_cached: error reading nand off 0xb9e400 size 8192 bytes read_nand_cached: error reading nand off 0xba0400 size 8192 bytes read_nand_cached: error reading nand off 0xba2400 size 8192 bytes read_nand_cached: error reading nand off 0xba4400 size 8192 bytes read_nand_cached: error reading nand off 0xba6400 size 8192 bytes read_nand_cached: error reading nand off 0xba8400 size 8192 bytes read_nand_cached: error reading nand off 0xbaa400 size 8192 bytes read_nand_cached: error reading nand off 0xbac400 size 8192 bytes read_nand_cached: error reading nand off 0xbae400 size 8192 bytes read_nand_cached: error reading nand off 0xbb0400 size 8192 bytes read_nand_cached: error reading nand off 0xbb2400 size 8192 bytes read_nand_cached: error reading nand off 0xbb4400 size 8192 bytes read_nand_cached: error reading nand off 0xbb6400 size 8192 bytes read_nand_cached: error reading nand off 0xbb8400 size 8192 bytes read_nand_cached: error reading nand off 0xbba400 size 8192 bytes read_nand_cached: error reading nand off 0xbbc400 size 8192 bytes read_nand_cached: error reading nand off 0xbbe400 size 8192 byte done. find_inode failed for name=uboot-original-mtd0.kwb load: Failed to find inode ### JFFS2 LOAD ERROR<0> for uboot-original-mtd0.kwb! ### JFFS2 loading 'uboot-original-mtd0.kwb' to 0x800000 Scanning JFFS2 FS: read_nand_cached: error reading nand off 0xb5e600 size 8192 bytes read_nand_cached: error reading nand off 0xb5e200 size 8192 bytes read_nand_cached: error reading nand off 0xb60200 size 8192 bytes read_nand_cached: error reading nand off 0xb62200 size 8192 bytes read_nand_cached: error reading nand off 0xb64200 size 8192 bytes read_nand_cached: error reading nand off 0xb66200 size 8192 bytes read_nand_cached: error reading nand off 0xb68200 size 8192 bytes read_nand_cached: error reading nand off 0xb6a200 size 8192 bytes read_nand_cached: error reading nand off 0xb6c200 size 8192 bytes read_nand_cached: error reading nand off 0xb6e200 size 8192 bytes read_nand_cached: error reading nand off 0xb70200 size 8192 bytes read_nand_cached: error reading nand off 0xb72200 size 8192 bytes read_nand_cached: error reading nand off 0xb74200 size 8192 bytes read_nand_cached: error reading nand off 0xb76200 size 8192 bytes read_nand_cached: error reading nand off 0xb78200 size 8192 bytes read_nand_cached: error reading nand off 0xb7a200 size 8192 bytes read_nand_cached: error reading nand off 0xb7c200 size 8192 bytes read_nand_cached: error reading nand off 0xb7e200 size 8192 bytes read_nand_cached: error reading nand off 0xb9ee00 size 8192 bytes read_nand_cached: error reading nand off 0xb9e400 size 8192 bytes read_nand_cached: error reading nand off 0xba0400 size 8192 bytes read_nand_cached: error reading nand off 0xba2400 size 8192 bytes read_nand_cached: error reading nand off 0xba4400 size 8192 bytes read_nand_cached: error reading nand off 0xba6400 size 8192 bytes read_nand_cached: error reading nand off 0xba8400 size 8192 bytes read_nand_cached: error reading nand off 0xbaa400 size 8192 bytes read_nand_cached: error reading nand off 0xbac400 size 8192 bytes read_nand_cached: error reading nand off 0xbae400 size 8192 bytes read_nand_cached: error reading nand off 0xbb0400 size 8192 bytes read_nand_cached: error reading nand off 0xbb2400 size 8192 bytes read_nand_cached: error reading nand off 0xbb4400 size 8192 bytes read_nand_cached: error reading nand off 0xbb6400 size 8192 bytes read_nand_cached: error reading nand off 0xbb8400 size 8192 bytes read_nand_cached: error reading nand off 0xbba400 size 8192 bytes read_nand_cached: error reading nand off 0xbbc400 size 8192 bytes read_nand_cached: error reading nand off 0xbbe400 size 8192 byte done. find_inode failed for name=uboot-original-mtd0.kwb load: Failed to find inode ### JFFS2 LOAD ERROR<0> for uboot-original-mtd0.kwb! resetting ... U-Boot 2011.12 (Apr 18 2012 - 23:08:20) Seagate GoFlexNet arm-none-linux-gnueabi-gcc (Sourcery G++ Lite 2009q3-67) 4.4.1 GNU ld (Sourcery G++ Lite 2009q3-67) 2.19.51.20090709 Hit any key to stop autoboot: 0 (Re)start USB... USB: Register 10011 NbrPorts 1 USB EHCI 1.00 scanning bus for devices... 2 USB Device(s) found scanning bus for storage devices... 1 Storage Device(s) found Loading file "/rescueme" from usb device 0:1 (usbda1) ** File not found /rescueme reading /rescueme.txt ** Unable to read "/rescueme.txt" from usb 0:1 ** 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 error: validate_ec_hdr: bad VID header offset 2048, expected 512 UBI error: validate_ec_hdr: bad EC header UBI error: ubi_io_read_ec_hdr: validation failed for PEB 0 UBI error: ubi_init: cannot attach mtd1 UBI error: ubi_init: UBI error: cannot initialize UBI, error -22 UBI init error 22 Loading file "/boot/uImage" from usb device 0:1 (usbda1) 1 bytes read Found bootable drive on usb 0:1 Loading file "/boot/uImage" from usb device 0:1 (usbda1) 2279256 bytes read Loading file "/boot/uInitrd" from usb device 0:1 (usbda1) 7004538 bytes read ## Booting kernel from Legacy Image at 00800000 ... Image Name: Linux-3.3.2 Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 2279192 Bytes = 2.2 MiB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... OK ## Loading init Ramdisk from Legacy Image at 01100000 ... Image Name: initramfs-3.3.2-kirkwood-dg Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 7004474 Bytes = 6.7 MiB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK Loading Kernel Image ... OK OK Starting kernel ...It boots nice after all that, but I'm just curious: Does that mean it tries to boot from nand-sector mtd0? Is that the broken PlugOS there or what?
Re: Debian on GoFlex Home June 16, 2012 03:08PM |
Admin Registered: 13 years ago Posts: 18,558 |
fly
Re: Debian on GoFlex Home June 17, 2012 03:09PM |
U-Boot 2011.12 (Apr 18 2012 - 23:08:20) Seagate GoFlexNet arm-none-linux-gnueabi-gcc (Sourcery G++ Lite 2009q3-67) 4.4.1 GNU ld (Sourcery G++ Lite 2009q3-67) 2.19.51.20090709 Hit any key to stop autoboot: 0 (Re)start USB... USB: Register 10011 NbrPorts 1 USB EHCI 1.00 scanning bus for devices... 2 USB Device(s) found scanning bus for storage devices... 1 Storage Device(s) found Loading file "/rescueme" from usb device 0:1 (usbda1) ** File not found /rescueme reading /rescueme.txt ** Unable to read "/rescueme.txt" from usb 0:1 ** 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 error: validate_ec_hdr: bad VID header offset 2048, expected 512 UBI error: validate_ec_hdr: bad EC header UBI error: ubi_io_read_ec_hdr: validation failed for PEB 0 UBI error: ubi_init: cannot attach mtd1 UBI error: ubi_init: UBI error: cannot initialize UBI, error -22 UBI init error 22 Loading file "/boot/uImage" from usb device 0:1 (usbda1) 1 bytes read Found bootable drive on usb 0:1 Loading file "/boot/uImage" from usb device 0:1 (usbda1) 2279256 bytes read Loading file "/boot/uInitrd" from usb device 0:1 (usbda1) 7004538 bytes read ## Booting kernel from Legacy Image at 00800000 ... Image Name: Linux-3.3.2 Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 2279192 Bytes = 2.2 MiB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... OK ## Loading init Ramdisk from Legacy Image at 01100000 ... Image Name: initramfs-3.3.2-kirkwood-dg Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 7004474 Bytes = 6.7 MiB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK Loading Kernel Image ... OK OK Starting kernel ...No idea what that means xD
Re: Debian on GoFlex Home June 17, 2012 04:14PM |
Registered: 12 years ago Posts: 501 |
Re: Debian on GoFlex Home June 18, 2012 12:20AM |
Admin Registered: 13 years ago Posts: 18,558 |
fly
Re: Debian on GoFlex Home June 18, 2012 04:08PM |
Re: Debian on GoFlex Home June 18, 2012 05:40PM |
Admin Registered: 13 years ago Posts: 18,558 |
fly
Re: Debian on GoFlex Home June 18, 2012 06:57PM |
#Set up orange LED to blink on incoming TCP traffic iptables -A INPUT -p tcp -j LED --led-trigger-id tcpin --led-delay 100 echo netfilter-tcpin > /sys/class/leds/dockstar\:orange\:misc/trigger(source)
Re: Debian on GoFlex Home June 19, 2012 10:18PM |
Admin Registered: 13 years ago Posts: 18,558 |
maihoaomv
Re: Debian on GoFlex Home July 04, 2012 02:56PM |
Re: Debian on GoFlex Home August 25, 2012 12:09PM |
Registered: 12 years ago Posts: 501 |
> #Set up orange LED to blink on incoming TCP > traffic > iptables -A INPUT -p tcp -j LED --led-trigger-id > tcpin --led-delay 100 > echo netfilter-tcpin > > /sys/class/leds/dockstar\:orange\:misc/trigger >> [url=http://archlinuxarm.org/forum/viewtopic.php?f