Goflex Home - Installed uBoot and Debian but now stuck November 21, 2020 09:25AM |
Registered: 4 years ago Posts: 8 |
Failed to mount ext2 filesystem... ** Unrecognized filesystem type **
sudo apt-get upgrade
update-initramfs: Generating /boot/initrd.img-5.2.9-kirkwood-tld-1
cd /boot mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initramfs-5.2.9-kirkwood-tld-1 -d initrd.img-5.2.9-kirkwood-tld-1 uInitrd
update-initramfs: Generating /boot/initrd.img-5.2.9-kirkwood-tld-1
cd /boot mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initramfs-5.2.9-kirkwood-tld-1 -d initrd.img-5.2.9-kirkwood-tld-1 uInitrd
U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:21:31 -0700) Seagate GoFlex Home 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: Bus 0: OK Bus 1: not available Device 0: Model: ST3000DM001-9YN166 Firm: CC9F Ser#: S1F13FQH Type: Hard Disk Supports 48-bit addressing Capacity: 2861588.4 MB = 2794.5 GB (5860533168 x 512) 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... Failed to mount ext2 filesystem... ** Unrecognized filesystem type ** 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 loading 1 bytes read in 723 ms (0 Bytes/s) Found bootable drive on usb 0 uImage ... 4973929 bytes read in 1013 ms (4.7 MiB/s) loading uInitrd ... 9713936 bytes read in 930 ms (10 MiB/s) loading DTB /boot/dts/kirkwood-goflexhome.dtb ... 10249 bytes read in 3260 ms (2.9 KiB/s) ## Booting kernel from Legacy Image at 00800000 ... Image Name: Linux-5.2.9-kirkwood-tld-1 Created: 2020-11-21 15:02:53 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 4973865 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 Created: 2019-08-25 2:22:50 UTC Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 9713872 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 ...
GoFlexHome> printenv printenv arcNumber=3338 bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec bootcmd_exec=run load_uimage; if run load_initrd; then if run load_dtb; then bootm $load_uimage_addr $load_initrd_addr $load_dtb_addr; else bootm $load_uimage_addr $load_initrd_addr; fi; else if run load_dtb; then bootm $load_uimage_addr - $load_dtb_addr; else bootm $load_uimage_addr; fi; fi bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi bootdelay=10 bootdev=usb device=0:1 devices=usb ide mmc disks=0 1 2 3 dtb_file=/boot/dts/kirkwood-goflexhome.dtb ethact=egiga0 ethaddr=00:10:75:2E:B0:52 if_netconsole=ping $serverip ipaddr=192.168.2.243 led_error=orange blinking led_exit=green off led_init=green blinking load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device $load_dtb_addr $dtb_file load_dtb_addr=0x1c00000 load_initrd=echo loading uInitrd ...; load $bootdev $device $load_initrd_addr /boot/uInitrd load_initrd_addr=0x1100000 load_uimage=echo loading uImage ...; load $bootdev $device $load_uimage_addr /boot/uImage load_uimage_addr=0x800000 mainlineLinux=yes mtdids=nand0=orion_nand mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data) nc_ready=1 ncip=192.168.2.116 partition=nand0,2 preboot=run preboot_nc preboot_nc=setenv nc_ready 0; for pingstat in 1 2 3 4 5; do; sleep 1; if run if_netconsole; then setenv nc_ready 1; fi; done; if test $nc_ready -eq 1; then run start_netconsole; fi scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "usb start"; setenv scan_ide "ide reset"; setenv scan_mmc "mmc rescan"; for dev in $devices; do if test $scan_done -eq 0; then echo Scan device $dev; run scan_$dev; for disknum in $disks; do if test $scan_done -eq 0; then echo device $dev $disknum:1; if load $dev $disknum:1 $load_uimage_addr /boot/uImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $dev; fi; fi; done; fi; done serverip=192.168.2.116 set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version; stderr=nc stdin=nc stdout=nc uenv_addr=0x810000 uenv_import=echo importing envs ...; env import -t $uenv_addr $filesize uenv_init_devices=echo Initializing devices...; setenv init_usb "usb start"; setenv init_ide "ide reset"; setenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices; do for disknum in $disks; do if test $uenv_loaded -eq 0; then setenv device_type $devtype; setenv disk_number $disknum; run uenv_read; fi; done; done; uenv_read=echo Loading envs from $device_type $disk_number...; if load $device_type $disk_number:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; echo ... envs loaded; fi usb_ready_retry=15 Environment size: 3039/131068 bytes
Re: Goflex Home - Installed uBoot and Debian but now stuck November 21, 2020 04:47PM |
Admin Registered: 13 years ago Posts: 19,094 |
ping debian.local
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
cp -a uImage.orig uImage
Re: Goflex Home - Installed uBoot and Debian but now stuck November 22, 2020 11:49AM |
Registered: 4 years ago Posts: 8 |
Reset IDE: Bus 0: OK Bus 1: not available Device 0: Model: ST3000DM001-9YN166 Firm: CC9F Ser#: S1F13FQH Type: Hard Disk Supports 48-bit addressing Capacity: 2861588.4 MB = 2794.5 GB (5860533168 x 512) Unknown command 'mmc' - try 'help'
Loading envs from ide 0... Failed to mount ext2 filesystem... ** Unrecognized filesystem type **
Re: Goflex Home - Installed uBoot and Debian but now stuck November 22, 2020 04:04PM |
Admin Registered: 13 years ago Posts: 19,094 |
mount fdisk -lYou have 1 USB rootfs and 1 HDD, but insert the HDD later so most likely root is /dev/sda1 and the HDD is /dev/sdb1.
Re: Goflex Home - Installed uBoot and Debian but now stuck November 28, 2020 01:28PM |
Registered: 4 years ago Posts: 8 |
$ lsblk -f NAME FSTYPE LABEL UUID FSAVAIL FSUSE% MOUNTPOINT sda └─sda1 ext3 rootfs 129dad2f-d4aa-4dd7-82be-48a08497fb75 12.8G 5% /media/deb $ lsblk -l NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 1 14.5G 0 disk sda1 8:1 1 14.5G 0 part /media/deb
Re: Goflex Home - Installed uBoot and Debian but now stuck November 28, 2020 03:52PM |
Admin Registered: 13 years ago Posts: 19,094 |
Quote
$ lsblk -f
NAME FSTYPE LABEL UUID FSAVAIL FSUSE% MOUNTPOINT
sda
└─sda1 ext3 rootfs 129dad2f-d4aa-4dd7-82be-48a08497fb75 12.8G 5% /media/deb
mount fdisk -l df -h e2label /dev/sdb1 cd /media/sdb1 ls -lart ./boot
Re: Goflex Home - Installed uBoot and Debian but now stuck November 29, 2020 03:50AM |
Registered: 4 years ago Posts: 8 |
$ fdisk -l Disk /dev/sda: 14.5 GiB, 15597568000 bytes, 30464000 sectors Disk model: Ultra Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0xe12d4f1b Device Boot Start End Sectors Size Id Type /dev/sda1 * 2048 30463999 30461952 14.5G 83 Linux
$ df -h Filesystem Size Used Avail Use% Mounted on /dev/root 59G 20G 37G 35% / devtmpfs 1.8G 0 1.8G 0% /dev tmpfs 1.9G 0 1.9G 0% /dev/shm tmpfs 1.9G 17M 1.9G 1% /run tmpfs 5.0M 4.0K 5.0M 1% /run/lock tmpfs 1.9G 0 1.9G 0% /sys/fs/cgroup /dev/mmcblk0p1 253M 55M 198M 22% /boot tmpfs 383M 0 383M 0% /run/user/1000 /dev/loop0 15G 773M 13G 6% /media/pi /dev/sda1 15G 764M 13G 6% /media/deb
$ e2label /dev/sda1 rootfs
$ cd /media/deb $ ls -lart ./boot total 46244 drwxr-xr-x 21 root root 4096 Feb 17 2015 .. drwxr-xr-x 2 root root 4096 Aug 16 2019 dts -rwxr-xr-x 1 root root 4963616 Aug 18 2019 zImage-5.2.9-kirkwood-tld-1 -rw-r--r-- 1 root root 165790 Aug 18 2019 config-5.2.9-kirkwood-tld-1 -rw------- 1 root root 4963616 Aug 18 2019 vmlinuz-5.2.9-kirkwood-tld-1 -rw------- 1 root root 3101889 Aug 18 2019 System.map-5.2.9-kirkwood-tld-1 -rw-r--r-- 1 root root 9649570 Aug 18 2019 linux-headers-5.2.9-kirkwood-tld-1_1.0_armel.deb -rw-r--r-- 1 root root 9713872 Aug 25 2019 initrd.img-5.2.9-kirkwood-tld-1 -rw-r--r-- 1 root root 4963680 Aug 25 2019 uImage -rw-r--r-- 1 root root 9713936 Aug 25 2019 uInitrd drwxr-xr-x 3 root root 4096 Aug 25 2019 .
Re: Goflex Home - Installed uBoot and Debian but now stuck November 29, 2020 04:57AM |
Admin Registered: 13 years ago Posts: 19,094 |
Quote
https://forum.doozan.com/read.php?2,23630
Netconsole
Use netconsole to troubleshoot uBoot without a serial cable
Use netconsole to troubleshoot Debian kernel booting
umount /media/deb e2fsck /dev/sda1
ping debian.local
Re: Goflex Home - Installed uBoot and Debian but now stuck November 29, 2020 06:43AM |
Registered: 4 years ago Posts: 8 |
e2fsck 1.44.5 (15-Dec-2018) rootfs contains a file system with errors, check forced. Pass 1: Checking inodes, blocks, and sizes Pass 2: Checking directory structure Pass 3: Checking directory connectivity Pass 4: Checking reference counts Pass 5: Checking group summary information rootfs: 15076/952848 files (6.9% non-contiguous), 271556/3807744 blocks
Re: Goflex Home - Installed uBoot and Debian but now stuck November 29, 2020 07:16AM |
Registered: 4 years ago Posts: 8 |
$ apt-get upgrade .... [ ok ] Stopping NTP server: ntpd. [ ok ] Starting NTP server: ntpd. Processing triggers for libc-bin (2.28-10) ... Processing triggers for initramfs-tools (0.133+deb10u1) ... update-initramfs: Generating /boot/initrd.img-5.2.9-kirkwood-tld-1 cpio: Read error at byte 20480 in file ./usr/lib/modules/5.2.9-kirkwood-tld-1/kernel/drivers/net/ethernet/atheros/atl1e/atl1e.ko, padding with zeros cpio: Read error at byte 4096 in file ./usr/lib/modules/5.2.9-kirkwood-tld-1/kernel/drivers/net/ethernet/broadcom/bnx2.ko, padding with zeros
[ 37.077077][ T1164] Segment Routing with IPv6 [ 408.913420][ T168] usb 1-1: reset high-speed USB device number 2 using orion-ehci [ 409.114492][ C0] sd 1:0:0:0: [sda] tag#0 FAILED Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK [ 409.123583][ C0] sd 1:0:0:0: [sda] tag#0 CDB: Read(10) 28 00 00 fc db 28 00 00 38 00 [ 409.131667][ C0] print_req_error: I/O error, dev sda, sector 16571176 flags 80700 [ 409.283415][ T168] usb 1-1: reset high-speed USB device number 2 using orion-ehci [ 409.673410][ T168] usb 1-1: reset high-speed USB device number 2 using orion-ehci [ 410.063410][ T168] usb 1-1: reset high-speed USB device number 2 using orion-ehci [ 410.453411][ T168] usb 1-1: reset high-speed USB device number 2 using orion-ehci [ 410.843411][ T168] usb 1-1: reset high-speed USB device number 2 using orion-ehci [ 411.233411][ T168] usb 1-1: reset high-speed USB device number 2 using orion-ehci [ 411.434470][ C0] sd 1:0:0:0: [sda] tag#0 FAILED Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK [ 411.443540][ C0] sd 1:0:0:0: [sda] tag#0 CDB: Read(10) 28 00 00 fc db 28 00 00 08 00 [ 411.451623][ C0] print_req_error: I/O error, dev sda, sector 16571176 flags 0 [ 411.613415][ T168] usb 1-1: reset high-speed USB device number 2 using orion-ehci [ 411.814480][ C0] sd 1:0:0:0: [sda] tag#0 FAILED Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK [ 411.823552][ C0] sd 1:0:0:0: [sda] tag#0 CDB: Read(10) 28 00 00 fc d7 50 00 00 20 00 [ 411.831631][ C0] print_req_error: I/O error, dev sda, sector 16570192 flags 80700 [ 411.983410][ T168] usb 1-1: reset high-speed USB device number 2 using orion-ehci [ 412.373411][ T168] usb 1-1: reset high-speed USB device number 2 using orion-ehci [ 412.763408][ T168] usb 1-1: reset high-speed USB device number 2 using orion-ehci [ 413.153409][ T168] usb 1-1: reset high-speed USB device number 2 using orion-ehci [ 413.543410][ T168] usb 1-1: reset high-speed USB device number 2 using orion-ehci [ 413.933409][ T168] usb 1-1: reset high-speed USB device number 2 using orion-ehci [ 414.143562][ C0] sd 1:0:0:0: [sda] tag#0 CDB: Read(10) 28 00 00 fc d7 50 00 00 08 00 [ 414.151641][ C0] print_req_error: I/O error, dev sda, sector 16570192 flags 0 [ 414.513415][ T168] usb 1-1: reset high-speed USB device number 2 using orion-ehci [ 530.003414][ T168] usb 1-1: reset high-speed USB device number 2 using orion-ehci
e2fsck /dev/sda1 e2fsck 1.44.5 (15-Dec-2018) rootfs: recovering journal Clearing orphaned inode 496944 (uid=0, gid=0, mode=0100644, size=1986292) Clearing orphaned inode 496954 (uid=0, gid=0, mode=0100644, size=395844) Clearing orphaned inode 515192 (uid=0, gid=0, mode=0100755, size=723796) Clearing orphaned inode 496960 (uid=0, gid=0, mode=0100644, size=198192) Clearing orphaned inode 497066 (uid=0, gid=0, mode=0100644, size=267724) Clearing orphaned inode 539084 (uid=0, gid=0, mode=0100755, size=198576) Clearing orphaned inode 539214 (uid=0, gid=0, mode=0100644, size=190320) Clearing orphaned inode 539256 (uid=0, gid=0, mode=0100644, size=38920) Clearing orphaned inode 539272 (uid=0, gid=0, mode=0100644, size=703312) Clearing orphaned inode 539226 (uid=0, gid=0, mode=0100644, size=241872) Clearing orphaned inode 497077 (uid=0, gid=0, mode=0100644, size=9520) Clearing orphaned inode 539340 (uid=0, gid=0, mode=0100644, size=2097564) Clearing orphaned inode 497109 (uid=0, gid=0, mode=0100644, size=133212) Clearing orphaned inode 497046 (uid=0, gid=0, mode=0100644, size=580456) Setting free inodes count to 937685 (was 937784) Setting free blocks count to 3512359 (was 3538094) rootfs: clean, 15163/952848 files, 295385/3807744 blocks
Re: Goflex Home - Installed uBoot and Debian but now stuck November 29, 2020 12:26PM |
Registered: 4 years ago Posts: 8 |
Re: Goflex Home - Installed uBoot and Debian but now stuck November 29, 2020 03:25PM |
Admin Registered: 13 years ago Posts: 19,094 |
Re: Goflex Home - Installed uBoot and Debian but now stuck November 29, 2020 04:33PM |
Registered: 4 years ago Posts: 8 |