|
Goflex net - stuck not sure on what April 21, 2020 01:59PM |
Registered: 4 years ago Posts: 19 |
U-Boot 2011.12 (Apr 18 2012 - 23:08:20)
Seagate GoFlexNet
SoC: Kirkwood 88F6281_A1
DRAM: 128 MiB
WARNING: Caches not enabled
NAND: 256 MiB
In: serial
Out: serial
Err: serial
Net: egiga0
88E1116 Initialized on egiga0
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: attached mtd1 to ubi0
UBI: MTD device name: "mtd=3"
UBI: MTD device size: 219 MiB
UBI: number of good PEBs: 1750
UBI: number of bad PEBs: 2
UBI: max. allowed volumes: 128
UBI: wear-leveling threshold: 4096
UBI: number of internal volumes: 1
UBI: number of user volumes: 0
UBI: available PEBs: 1729
UBI: total number of reserved PEBs: 21
UBI: number of PEBs reserved for bad PEB handling: 17
UBI: max/mean erase counter: 1/1
UBIFS error (pid 0): ubifs_get_sb: cannot open "ubi:rootfs", error -19
Error reading superblock on volume 'ubi:rootfs'!
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)
4975125 bytes read
Loading file "/boot/uInitrd" from usb device 0:1 (usbda1)
9713936 bytes read
## Booting kernel from Legacy Image at 00800000 ...
Image Name: Linux-5.2.9-kirkwood-tld-1
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 4975061 Bytes = 4.7 MiB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
Image Name: initramfs-5.2.9-kirkwood-tld-1
Image Type: ARM Linux RAMDisk Image (gzip compressed)
Data Size: 9713872 Bytes = 9.3 MiB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK
Starting kernel ...
Uncompressing Linux... done, booting the kernel.
GoFlexNet> printenv arcNumber=2097 baudrate=115200 bootcmd=usb start; run force_rescue_bootcmd; run ubifs_bootcmd; run usb_bootcmd; usb stop; run rescue_bootcmd; run pogo_bootcmd; reset bootdelay=3 console=ttyS0,115200 dtb_file=/boot/dts/kirkwood-goflexnet.dtb ethact=egiga0 ethaddr=00:10:75:26:73:F8 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 led_error=orange blinking led_exit=green off led_init=green blinking mainlineLinux=yes mtdids=nand0=orion_nand mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data) partition=nand0,2 pogo_bootcmd=if fsload uboot-original-mtd0.kwb; then go 0x800200; fi 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 rescue_installed=0 rescue_set_bootargs=setenv bootargs console=$console ubi.mtd=2 root=ubi0:rootfs ro rootfstype=ubifs $mtdparts $rescue_custom_params stderr=serial stdin=serial stdout=serial 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 ubifs_mtd=3 ubifs_set_bootargs=setenv bootargs console=$console ubi.mtd=$ubifs_mtd root=ubi0:rootfs rootfstype=ubifs $mtdparts $ubifs_custom_params 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 usb_bootcmd=run usb_init; run usb_set_bootargs; run usb_boot usb_device=0:1 usb_init=run usb_scan usb_root=/dev/sda1 usb_rootdelay=10 usb_rootfstype=ext2 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_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_scan_list=1 2 3 4 usb_set_bootargs=setenv bootargs console=$console root=$usb_root rootdelay=$usb_rootdelay rootfstype=$usb_rootfstype $mtdparts $usb_custom_params Environment size: 2386/131068 bytes GoFlexNet>
|
Re: Goflex net - stuck not sure on what April 21, 2020 05:12PM |
Admin Registered: 13 years ago Posts: 18,575 |
Quote
4. Create uImage with embedded DTB for booting with older u-boots (2012 or earlier). Do not do this step if you have installed the latest U-Boot for Kirkwood (or are installing this u-boot at the same time).
Please replace kirkwood-goflexnet.dtb below with the correct DTB name for your box (see the folder /media/sdb1/boot/dts for the exact spelling of your Kirkwood box name).
Generate the uImage with DTB embedded inside:
cd /media/sdb1/boot
cp -a zImage-5.2.9-kirkwood-tld-1 zImage.fdt
cat dts/kirkwood-goflexnet.dtb >> zImage.fdt
mv uImage uImage.orig
mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-5.2.9-kirkwood-tld-1 -d zImage.fdt uImage
sync
If your Linux box does not have mkimage, then install it
apt-get install u-boot-tools
|
Re: Goflex net - stuck not sure on what April 22, 2020 09:08AM |
Registered: 4 years ago Posts: 19 |
[root@localhost /]# su - Last login: Tue Apr 21 16:52:38 EDT 2020 on pts/0 [root@localhost ~]# mkfs.ext3 /dev/sdb1 mke2fs 1.42.9 (28-Dec-2013) Filesystem label= OS type: Linux Block size=4096 (log=2) Fragment size=4096 (log=2) Stride=0 blocks, Stripe width=0 blocks 237104 inodes, 946944 blocks 47347 blocks (5.00%) reserved for the super user First data block=0 Maximum filesystem blocks=973078528 29 block groups 32768 blocks per group, 32768 fragments per group 8176 inodes per group Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736 Allocating group tables: done Writing inode tables: done Creating journal (16384 blocks): done Writing superblocks and filesystem accounting information: done [root@localhost ~]# e2label /dev/sdb1 rootfs [root@localhost ~]# e2label /dev/sdb1 rootfs [root@localhost ~]# mount /dev/sdb1 /media/sdb1 [root@localhost ~]# cd /media/sdb1 [root@localhost sdb1]# tar -xjf /tmp/Debian-5.2.9-kirkwood-tld-1-rootfs-bodhi.tar.bz2 [root@localhost sdb1]# cd /media/sdb1/boot [root@localhost boot]# cp -a zImage-5.2.9-kirkwood-tld-1 zImage.fdt [root@localhost boot]# cat dts/kirkwood-goflexnet.dtb >> zImage.fdt [root@localhost boot]# mv uImage uImage.orig [root@localhost /]# su - Last login: Tue Apr 21 16:52:38 EDT 2020 on pts/0 [root@localhost ~]# mkfs.ext3 /dev/sdb1 mke2fs 1.42.9 (28-Dec-2013) Filesystem label= OS type: Linux Block size=4096 (log=2) Fragment size=4096 (log=2) Stride=0 blocks, Stripe width=0 blocks 237104 inodes, 946944 blocks 47347 blocks (5.00%) reserved for the super user First data block=0 Maximum filesystem blocks=973078528 29 block groups 32768 blocks per group, 32768 fragments per group 8176 inodes per group Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736 Allocating group tables: done Writing inode tables: done Creating journal (16384 blocks): done Writing superblocks and filesystem accounting information: done [root@localhost ~]# e2label /dev/sdb1 rootfs [root@localhost ~]# e2label /dev/sdb1 rootfs [root@localhost ~]# mount /dev/sdb1 /media/sdb1 [root@localhost ~]# cd /media/sdb1 [root@localhost sdb1]# tar -xjf /tmp/Debian-5.2.9-kirkwood-tld-1-rootfs-bodhi.tar.bz2 [root@localhost sdb1]# cd /media/sdb1/boot [root@localhost boot]# cp -a zImage-5.2.9-kirkwood-tld-1 zImage.fdt [root@localhost boot]# cat dts/kirkwood-goflexnet.dtb >> zImage.fdt [root@localhost boot]# mv uImage uImage.orig [root@localhost boot]# mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-5.2.9-kirkwood-tld-1 -d zImage.fdt uImage Image Name: Linux-5.2.9-kirkwood-tld-1 Created: Wed Apr 22 10:03:11 2020 Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 4975061 Bytes = 4858.46 KiB = 4.74 MiB Load Address: 00008000 Entry Point: 00008000 [root@localhost boot]# sync [root@localhost boot]# cd [root@localhost ~]# umount /media/sdb1
|
Re: Goflex net - stuck not sure on what April 22, 2020 04:36PM |
Registered: 4 years ago Posts: 19 |
|
Re: Goflex net - stuck not sure on what April 22, 2020 04:51PM |
Admin Registered: 13 years ago Posts: 18,575 |
setenv usb_boot 'mw 0x800000 0 1; ext2load usb $usb_device 0x800000 /boot/uImage; if ext2load usb $usb_device 0x2100000 /boot/uInitrd; then bootm 0x800000 0x2100000; else bootm 0x800000; fi'
boot
fw_printenvand then set it
fw_setenv usb_boot 'mw 0x800000 0 1; ext2load usb $usb_device 0x800000 /boot/uImage; if ext2load usb $usb_device 0x2100000 /boot/uInitrd; then bootm 0x800000 0x2100000; else bootm 0x800000; fi'
|
Re: Goflex net - stuck not sure on what April 22, 2020 06:27PM |
Registered: 4 years ago Posts: 19 |
|
Re: Goflex net - stuck not sure on what April 22, 2020 06:38PM |
Registered: 4 years ago Posts: 19 |
|
Re: Goflex net - stuck not sure on what April 22, 2020 08:57PM |
Admin Registered: 13 years ago Posts: 18,575 |
|
Re: Goflex net - stuck not sure on what April 22, 2020 08:59PM |
Admin Registered: 13 years ago Posts: 18,575 |
Quote
Now, chicken and egg question - Should I update to 5.5.1 kernel first or latest U-Boot first?
|
Re: Goflex net - stuck not sure on what April 23, 2020 12:21PM |
Registered: 4 years ago Posts: 19 |
U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:17:19 -0700)
Seagate GoFlex Net
gcc (Debian 6.3.0-18) 6.3.0 20170516
GNU ld (GNU Binutils for Debian) 2.28
Hit any key to stop autoboot: 0
Initializing devices...
starting USB...
USB0: USB EHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
scanning usb for storage devices...
Use USB retry period from the environment: 15 second(s)
1 Storage Device(s) found
Reset IDE: ide_preinit failed
Unknown command 'mmc' - try 'help'
Loading envs from usb 0...
** File not found /boot/uEnv.txt **
Loading envs from usb 1...
** Bad device usb 1 **
Loading envs from usb 2...
** Bad device usb 2 **
Loading envs from usb 3...
** Bad device usb 3 **
Loading envs from ide 0...
** Bad device ide 0 **
Loading envs from ide 1...
** Bad device ide 1 **
Loading envs from ide 2...
** Bad device ide 2 **
Loading envs from ide 3...
** Bad device ide 3 **
Loading envs from mmc 0...
** Bad device mmc 0 **
Loading envs from mmc 1...
** Bad device mmc 1 **
Loading envs from mmc 2...
** Bad device mmc 2 **
Loading envs from mmc 3...
** Bad device mmc 3 **
running scan_disk ...
Scan device usb
device usb 0:1
1 bytes read in 476 ms (0 Bytes/s)
Found bootable drive on usb 0
loading uImage ...
5214373 bytes read in 843 ms (5.9 MiB/s)
loading uInitrd ...
9742447 bytes read in 2136 ms (4.3 MiB/s)
loading DTB /boot/dts/kirkwood-goflexnet.dtb ...
11445 bytes read in 1677 ms (5.9 KiB/s)
## Booting kernel from Legacy Image at 00800000 ...
Image Name: Linux-5.5.1-kirkwood-tld-1
Created: 2020-04-23 14:55:56 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 5214309 Bytes = 5 MiB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
Image Name: initramfs-5.5.1-kirkwood-tld-1
Created: 2020-04-23 14:56:05 UTC
Image Type: ARM Linux RAMDisk Image (gzip compressed)
Data Size: 9742383 Bytes = 9.3 MiB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
## Flattened Device Tree blob at 01c00000
Booting using the fdt blob at 0x1c00000
Starting kernel ...
|
Re: Goflex net - stuck not sure on what April 23, 2020 01:23PM |
Registered: 4 years ago Posts: 19 |
|
Re: Goflex net - stuck not sure on what April 23, 2020 04:48PM |
Admin Registered: 13 years ago Posts: 18,575 |
Quote
Netconsole
Use netconsole to troubleshoot uBoot without a serial cable
Use netconsole to troubleshoot Debian kernel booting
|
Re: Goflex net - stuck not sure on what April 24, 2020 10:04AM |
Registered: 4 years ago Posts: 19 |
Reset IDE: ide_preinit failed Unknown command 'mmc' - try 'help' Loading envs from usb 0... ** File not found /boot/uEnv.txt ** Loading envs from usb 1... ** Bad device usb 1 ** Loading envs from usb 2... ** Bad device usb 2 ** Loading envs from usb 3... ** Bad device usb 3 ** Loading envs from ide 0... ** Bad device ide 0 ** Loading envs from ide 1... ** Bad device ide 1 ** Loading envs from ide 2... ** Bad device ide 2 ** Loading envs from ide 3... ** Bad device ide 3 ** Loading envs from mmc 0... ** Bad device mmc 0 ** Loading envs from mmc 1... ** Bad device mmc 1 ** Loading envs from mmc 2... ** Bad device mmc 2 ** Loading envs from mmc 3... ** Bad device mmc 3 ** running scan_disk ...
|
Re: Goflex net - stuck not sure on what April 24, 2020 04:40PM |
Admin Registered: 13 years ago Posts: 18,575 |
fw_setenv devices 'usb ide'or
fw_setenv devices 'ide usb'
|
Re: Goflex net - stuck not sure on what April 25, 2020 07:00PM |
Registered: 4 years ago Posts: 19 |