I had a Debian dist-upgrade today that broke my front light by naming them back to shivaplug. The upgrade upgraded me to 3.16 I believe. I did the
to fix but it was not persistent when I rebooted so I decided to grade uboot.
Here is my log preparing the new uboot:
The plug did not respond so I took it apart and connected the serial cable and this is the output for that:
I unpluged the usb and recycled the power and stopped the boot process and have this:
Not really sure how to proceed from here. The new Debian dist-upgrade also broke my net boot time setup I had. I wonder if there was something else that caused this or if it was just me.
So, is there anyway to salvage this?
debian:~# echo "default-on" > /sys/class/leds/sheevaplug\:blue\:health/trigger debian:~# echo "none" > /sys/class/leds/sheevaplug\:red\:misc/trigger
to fix but it was not persistent when I rebooted so I decided to grade uboot.
Here is my log preparing the new uboot:
feas@debian:~$ sudo cp uboot.2016.05-tld-1.pogo_e02.bodhi.tar /tmp [sudo] password for feas: feas@debian:~$ cd /tmp feas@debian:/tmp$ ls uboot.2016.05-tld-1.pogo_e02.bodhi.tar feas@debian:/tmp$ tar xvf uboot.2016.05-tld-1.pogo_e02.bodhi.tar uboot.2016.05-tld-1.pogo_e02.mtd0.kwb feas@debian:/tmp$ ls uboot.2016.05-tld-1.pogo_e02.bodhi.tar uboot.2016.05-tld-1.pogo_e02.mtd0.kwb feas@debian:/tmp$ su Password: root@debian:/tmp# ls uboot.2016.05-tld-1.pogo_e02.bodhi.tar uboot.2016.05-tld-1.pogo_e02.mtd0.kwb root@debian:/tmp# flash_erase /dev/mtd0 0 4 Erasing 128 Kibyte @ 60000 -- 100 % complete root@debian:/tmp# nandwrite /dev/mtd0 uboot.2016.05-tld-1.pogo_e02.mtd0.kwb Writing data to block 0 at offset 0x0 Writing data to block 1 at offset 0x20000 Writing data to block 2 at offset 0x40000 Writing data to block 3 at offset 0x60000 root@debian:/tmp# cat /etc/fw_env.config # Configuration file for fw_(printenv/saveenv) utility. # Up to two entries are valid, in this case the redundant # environment sector is assumed present. # Notice, that the "Number of sectors" is ignored on NOR. # MTD device name Device offset Env. size Flash sector size Number of sectors /dev/mtd0 0xc0000 0x20000 0x20000 root@debian:/tmp# wget http://www.dropbox.com/s/4smmw2wr4ugayz9/uboot.2016.05-tld-1.environment.bodhi.tar --2016-07-27 00:04:40-- http://www.dropbox.com/s/4smmw2wr4ugayz9/uboot.2016.05-tld-1.environment.bodhi.tar Resolving www.dropbox.com (www.dropbox.com)... 162.125.4.1 Connecting to www.dropbox.com (www.dropbox.com)|162.125.4.1|:80... connected. HTTP request sent, awaiting response... 301 Moved Permanently Location: https://www.dropbox.com/s/4smmw2wr4ugayz9/uboot.2016.05-tld-1.environment.bodhi.tar [following] --2016-07-27 00:04:40-- https://www.dropbox.com/s/4smmw2wr4ugayz9/uboot.2016.05-tld-1.environment.bodhi.tar Connecting to www.dropbox.com (www.dropbox.com)|162.125.4.1|:443... connected. HTTP request sent, awaiting response... 302 Found Location: https://dl.dropboxusercontent.com/content_link/sMx557hgs9i4iWyXeOpwjjfenZ5IxCxPMfFrJuO5il7zd525B5xNg7w5jmQv05EX/file [following] --2016-07-27 00:04:41-- https://dl.dropboxusercontent.com/content_link/sMx557hgs9i4iWyXeOpwjjfenZ5IxCxPMfFrJuO5il7zd525B5xNg7w5jmQv05EX/file Resolving dl.dropboxusercontent.com (dl.dropboxusercontent.com)... 45.58.74.37 Connecting to dl.dropboxusercontent.com (dl.dropboxusercontent.com)|45.58.74.37|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 204800 (200K) [application/x-tar] Saving to: ‘uboot.2016.05-tld-1.environment.bodhi.tar’ uboot.2016.05-tld-1.en 100%[===========================>] 200.00K --.-KB/s in 0.1s 2016-07-27 00:04:41 (2.05 MB/s) - ‘uboot.2016.05-tld-1.environment.bodhi.tar’ saved [204800/204800] root@debian:/tmp# ls uboot.2016.05-tld-1.environment.bodhi.tar uboot.2016.05-tld-1.pogo_e02.mtd0.kwb uboot.2016.05-tld-1.pogo_e02.bodhi.tar root@debian:/tmp# tar xvf uboot.2016.05-tld-1.environment.bodhi.tar uboot.2016.05-tld-1.environment.img uboot.2016.05-tld-1.environment.64K.img uboot.2016.05-tld-1.environment root@debian:/tmp# fw_printenv > current_envs.txt root@debian:/tmp# /usr/sbin/flash_erase /dev/mtd0 0xc0000 1 Erasing 128 Kibyte @ c0000 -- 100 % complete root@debian:/tmp# /usr/sbin/nandwrite -s 786432 /dev/mtd0 uboot.2016.05-tld-1.environment.img Writing data to block 6 at offset 0xc0000 root@debian:/tmp# fw_setenv arcNumber 3542 root@debian:/tmp# fw_setenv machid dd6 root@debian:/tmp# cat current_envs.txt 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 serverip=192.168.86.110 ipaddr=192.168.86.109 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 arcNumber=3542 ethaddr=00:25:31:04:7B:64 root@debian:/tmp# fw_setenv mtdparts 'mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)' root@debian:/tmp# fw_setenv ethaddr '00:25:31:04:7B:64' root@debian:/tmp# fw_printenv 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=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec 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 ethact=egiga0 if_netconsole=ping $serverip ipaddr=192.168.0.231 led_error=orange blinking led_exit=green off led_init=green blinking dtb_file=/boot/dts/kirkwood-pogo_e02.dtb load_dtb_addr=0x1c00000 load_initrd_addr=0x1100000 load_uimage_addr=0x800000 load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device $load_dtb_addr $dtb_file load_initrd=echo loading uInitrd ...; load $bootdev $device $load_initrd_addr /boot/uInitrd load_uimage=echo loading uImage ...; load $bootdev $device $load_uimage_addr /boot/uImage mainlineLinux=yes mtdids=nand0=orion_nand partition=nand0,2 preboot_nc=run if_netconsole start_netconsole 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.0.220 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=serial stdin=serial stdout=serial uenv_addr=0x810000 uenv_import=echo importing envs ...; env import -t $uenv_addr $filesize uenv_init_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 0; do run uenv_read_disk; done; done; uenv_read_disk=if test $devtype -eq mmc; then if $devtype part; then run uenv_read; fi; else if $devtype part $disknum; then run uenv_read; fi; fi uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; fi usb_ready_retry=15 arcNumber=3542 machid=dd6 mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data) ethaddr=00:25:31:04:7B:64 root@debian:/tmp# cat /boot/uEnv.txt cat: /boot/uEnv.txt: No such file or directory root@debian:/tmp# fw_printenv > /boot/uEnv.txt root@debian:/tmp# fw_setenv 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' root@debian:/tmp# fw_setenv preboot 'run preboot_nc' root@debian:/tmp# fw_setenv ipaddr '192.168.86.109' root@debian:/tmp# fw_setenv serverip '192.168.86.110' root@debian:/tmp# reboot Connection to 192.168.86.109 closed by remote host. Connection to 192.168.86.109 closed.
The plug did not respond so I took it apart and connected the serial cable and this is the output for that:
feas@debian-laptop:~$ sudo picocom -b 115200 /dev/ttyUSB0 [sudo] password for feas: picocom v1.7 port is : /dev/ttyUSB0 flowcontrol : none baudrate is : 115200 parity is : none databits are : 8 escape is : C-a local echo is : no noinit is : no noreset is : no nolock is : no send_cmd is : sz -vv receive_cmd is : rz -vv imap is : omap is : emap is : crcrlf,delbs, Terminal ready U-Boot 2016.05-tld-1 (Jun 12 2016 - 13:23:43 -0700) Pogo E02 SoC: Kirkwood 88F6281_A0 DRAM: 256 MiB WARNING: Caches not enabled NAND: 128 MiB In: serial Out: serial Err: serial Net: egiga0 Hit any key to stop autoboot: 0 starting USB... USB0: USB EHCI 1.00 scanning bus 0 for devices... 3 USB Device(s) found scanning usb for storage devices... Use USB retry period from the environment: 15 second(s) 1 Storage Device(s) found Unknown command 'ide' - try 'help' Unknown command 'mmc' - try 'help' Partition Map for USB device 0 -- Partition Type: DOS Part Start Sector Num Sectors UUID Type 1 2048 12582912 b57a22f8-01 83 Boot 2 12584960 4194304 b57a22f8-02 82 loading envs from usb 0 ... 2788 bytes read in 153 ms (17.6 KiB/s) Unknown command 'ide' - try 'help' Unknown command 'mmc' - try 'help' importing envs ... himport_r: ethaddr=00:25:31:04:7B:64" into hash table running scan_disk ... Scan device usb device usb 0:1 1 bytes read in 136 ms (0 Bytes/s) Found bootable drive on usb 0 loading uImage ... 2082764 bytes read in 264 ms (7.5 MiB/s) loading uInitrd ... 10550768 bytes read in 814 ms (12.4 MiB/s) loading DTB /boot/dts/kirkwood-pogo_e02.dtb ... ** File not found /boot/dts/kirkwood-pogo_e02.dtb ** ## Booting kernel from Legacy Image at 00800000 ... Image Name: kernel 3.16.0-4-kirkwood Created: 2016-07-26 8:56:48 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 2082700 Bytes = 2 MiB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... OK ## Loading init Ramdisk from Legacy Image at 01100000 ... Image Name: ramdisk 3.16.0-4-kirkwood Created: 2016-07-26 8:56:58 UTC Image Type: ARM Linux RAMDisk Image (uncompressed) Data Size: 10550704 Bytes = 10.1 MiB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK Loading Kernel Image ... OK Using machid 0xdd6 from environment Starting kernel ... Uncompressing Linux... done, booting the kernel. [ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Initializing cgroup subsys cpuset [ 0.000000] Initializing cgroup subsys cpu [ 0.000000] Initializing cgroup subsys cpuacct [ 0.000000] Linux version 3.16.0-4-kirkwood (debian-kernel@lists.debian.org) (gcc version 4.8.4 (Debian 4.8.4-1) ) #1 Debian 3.16.36-1 (2016-07-04) [ 0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f [ 0.000000] CPU: VIVT data cache, VIVT instruction cache [ 0.000000] Machine model: Globalscale Technologies SheevaPlug [ 0.000000] Memory policy: Data cache writeback [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 65024 [ 0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data) [ 0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes) [ 0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes) [ 0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes) [ 0.000000] Memory: 243184K/262144K available (3907K kernel code, 360K rwdata, 1440K rodata, 277K init, 288K bss, 18960K reserved, 0K highmem) [ 0.000000] Virtual kernel memory layout: [ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB) [ 0.000000] fixmap : 0xffc00000 - 0xffe00000 (2048 kB) [ 0.000000] vmalloc : 0xd0800000 - 0xff000000 ( 744 MB) [ 0.000000] lowmem : 0xc0000000 - 0xd0000000 ( 256 MB) [ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB) [ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB) [ 0.000000] .text : 0xc0008000 - 0xc05410c4 (5349 kB) [ 0.000000] .init : 0xc0542000 - 0xc058774c ( 278 kB) [ 0.000000] .data : 0xc0588000 - 0xc05e2168 ( 361 kB) [ 0.000000] .bss : 0xc05e2168 - 0xc062a54c ( 289 kB) [ 0.000000] NR_IRQS:114 [ 0.000015] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 21474836475ns [ 0.000319] Console: colour dummy device 80x30 [ 0.000344] Calibrating delay loop... 1185.79 BogoMIPS (lpj=2371584) [ 0.024040] pid_max: default: 32768 minimum: 301 [ 0.024171] Security Framework initialized [ 0.024222] Yama: disabled by default; enable with sysctl kernel.yama.* [ 0.024301] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.024319] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.025094] Initializing cgroup subsys memory [ 0.025136] Initializing cgroup subsys devices [ 0.025187] Initializing cgroup subsys freezer [ 0.025212] Initializing cgroup subsys net_cls [ 0.025256] Initializing cgroup subsys blkio [ 0.025292] Initializing cgroup subsys perf_event [ 0.025314] Initializing cgroup subsys net_prio [ 0.025400] CPU: Testing write buffer coherency: ok [ 0.025505] ftrace: allocating 16357 entries in 32 pages [ 0.049506] Setting up static identity map for 0x3b1e18 - 0x3b1e70 [ 0.053008] devtmpfs: initialized [ 0.054793] pinctrl core: initialized pinctrl subsystem [ 0.055284] regulator-dummy: no parameters [ 0.058808] NET: Registered protocol family 16 [ 0.059213] DMA: preallocated 256 KiB pool for atomic coherent allocations [ 0.060247] cpuidle: using governor ladder [ 0.060272] cpuidle: using governor menu [ 0.060496] Feroceon L2: Enabling L2 [ 0.060537] Feroceon L2: Cache support initialised. [ 0.060884] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set [ 0.065171] No ATAGs? [ 0.069194] platform regulators:regulator@1: Driver reg-fixed-voltage requests probe deferral [ 0.070339] Switched to clocksource orion_clocksource [ 0.092514] NET: Registered protocol family 2 [ 0.093494] TCP established hash table entries: 2048 (order: 1, 8192 bytes) [ 0.093531] TCP bind hash table entries: 2048 (order: 1, 8192 bytes) [ 0.093561] TCP: Hash tables configured (established 2048 bind 2048) [ 0.093625] TCP: reno registered [ 0.093637] UDP hash table entries: 256 (order: 0, 4096 bytes) [ 0.093658] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) [ 0.093837] NET: Registered protocol family 1 [ 0.094132] Unpacking initramfs... [ 1.030001] Freeing initrd memory: 10296K (c1101000 - c1b0f000) [ 1.031615] futex hash table entries: 256 (order: -1, 3072 bytes) [ 1.031689] audit: initializing netlink subsys (disabled) [ 1.031754] audit: type=2000 audit(1.024:1): initialized [ 1.032625] zbud: loaded [ 1.032882] VFS: Disk quotas dquot_6.5.2 [ 1.032931] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) [ 1.033028] jffs2: version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc. [ 1.033243] msgmni has been set to 495 [ 1.035214] alg: No test for stdrng (krng) [ 1.035322] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252) [ 1.035513] io scheduler noop registered [ 1.035668] io scheduler cfq registered (default) [ 1.036879] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver [ 1.038239] mv_xor f1060800.xor: Marvell shared XOR driver [ 1.058458] mv_xor f1060800.xor: Marvell XOR: ( xor cpy ) [ 1.078455] mv_xor f1060800.xor: Marvell XOR: ( xor cpy ) [ 1.078633] mv_xor f1060900.xor: Marvell shared XOR driver [ 1.098452] mv_xor f1060900.xor: Marvell XOR: ( xor cpy ) [ 1.118453] mv_xor f1060900.xor: Marvell XOR: ( xor cpy ) [ 1.118900] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled [ 1.120174] console [ttyS0] disabled [ 1.120226] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 33, base_baud = 12500000) is a 16550A [ 1.628455] console [ttyS0] enabled [ 1.633796] nand: Could not find valid ONFI parameter page; aborting [ 1.640232] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xf1 [ 1.646623] nand: Hynix NAND 128MiB 3,3V 8-bit [ 1.651095] nand: 128MiB, SLC, page size: 2048, OOB size: 64 [ 1.656797] Scanning device for bad blocks [ 1.738146] 3 ofpart partitions found on MTD device orion_nand [ 1.744017] Creating 3 MTD partitions on "orion_nand": [ 1.749193] 0x000000000000-0x000000100000 : "u-boot" [ 1.755382] 0x000000100000-0x000000500000 : "uImage" [ 1.761479] 0x000000500000-0x000020000000 : "root" [ 1.766316] mtd: partition "root" extends beyond the end of device "orion_nand" -- size truncated to 0x7b00000 [ 1.778160] mousedev: PS/2 mouse device common for all mice [ 2.786447] rtc-mv f1010300.rtc: internal RTC not ticking [ 2.792012] i2c /dev entries driver [ 2.796713] ledtrig-cpu: registered to indicate activity on CPUs [ 2.803113] TCP: cubic registered [ 2.806471] NET: Registered protocol family 17 [ 2.811673] registered taskstats version 1 [ 2.816879] USB Power: 5000 mV [ 2.820423] rtc_hctosys: unable to open rtc device (rtc0) [ 2.827736] Freeing unused kernel memory: 276K (c0542000 - c0587000) Loading, please wait... [ 2.902796] systemd-udevd[47]: starting version 215 [ 2.916508] random: systemd-udevd urandom read with 1 bits of entropy available [ 3.037940] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4 [ 3.053217] usbcore: registered new interface driver usbfs [ 3.091750] libphy: orion_mdio_bus: probed [ 3.097458] platform mv643xx_eth_port.0: Driver mv643xx_eth_port requests probe deferral [ 3.108219] usbcore: registered new interface driver hub [ 3.138886] usbcore: registered new device driver usb [ 3.166083] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 3.208801] ehci-orion: EHCI orion driver [ 3.728240] orion-ehci f1050000.ehci: EHCI Host Controller [ 3.752600] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1 [ 4.280859] orion-ehci f1050000.ehci: irq 19, io mem 0xf1050000 [ 4.295900] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:25:31:04:7b:64 [ 4.306629] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00 [ 4.316047] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002 [ 4.322896] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 4.330163] usb usb1: Product: EHCI Host Controller [ 4.335072] usb usb1: Manufacturer: Linux 3.16.0-4-kirkwood ehci_hcd [ 4.341463] usb usb1: SerialNumber: f1050000.ehci [ 4.347503] hub 1-0:1.0: USB hub found [ 4.351327] hub 1-0:1.0: 1 port detected [ 4.666370] usb 1-1: new high-speed USB device number 2 using orion-ehci [ 4.804108] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608 [ 4.810861] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0 [ 4.818048] usb 1-1: Product: USB2.0 Hub [ 4.826655] hub 1-1:1.0: USB hub found [ 4.830862] hub 1-1:1.0: 4 ports detected [ 5.106365] usb 1-1.3: new high-speed USB device number 3 using orion-ehci [ 5.214485] usb 1-1.3: New USB device found, idVendor=0000, idProduct=7777 [ 5.221415] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 5.228779] usb 1-1.3: Product: Mass Storage [ 5.233082] usb 1-1.3: Manufacturer: Generic [ 5.237381] usb 1-1.3: SerialNumber: 2B2A01FE [ 5.257980] SCSI subsystem initialized [ 5.266739] usb-storage 1-1.3:1.0: USB Mass Storage device detected [ 5.273382] scsi0 : usb-storage 1-1.3:1.0 [ 5.279087] usbcore: registered new interface driver usb-storage [ 6.276706] scsi 0:0:0:0: Direct-Access Generic Flash Disk 8.07 PQ: 0 ANSI: 4 [ 6.299522] sd 0:0:0:0: [sda] 4096000000 512-byte logical blocks: (2.09 TB/1.90 TiB) [ 6.308130] sd 0:0:0:0: [sda] Write Protect is off [ 6.313878] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA [ 6.342125] sda: sda1 sda2 [ 6.349384] sd 0:0:0:0: [sda] Attached SCSI removable disk [ 6.359032] sd 0:0:0:0: Attached scsi generic sg0 type 0 Begin: Loading essential drivers ... done. Begin: Running /scripts/init-premount ... done. Begin: Mounting root file system ... Begin: Running /scripts/local-top ... Begin: Assembling all MD arrays ... [ 14.569472] __nand_correct_data: uncorrectable ECC error [ 14.574859] end_request: I/O error, dev mtdblock0, sector 1920 [ 14.580968] __nand_correct_data: uncorrectable ECC error [ 14.586352] end_request: I/O error, dev mtdblock0, sector 2032 [ 14.592463] __nand_correct_data: uncorrectable ECC error [ 14.597817] __nand_correct_data: uncorrectable ECC error [ 14.603171] end_request: I/O error, dev mtdblock0, sector 2046 mdadm: No arrays found in config file or automatically Failure: failed to assemble all arrays. done. done. Begin: Running /scripts/local-premount ... [ 14.628230] PM: Starting manual resume from disk done. Begin: Waiting for root file system ... Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. [ 36.583457] random: nonblocking pool is initialized Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. done. Gave up waiting for root device. Common problems: - Boot args (cat /proc/cmdline) - Check rootdelay= (did the system wait long enough?) - Check root= (did the system wait for the right device?) - Missing modules (cat /proc/modules; ls /dev) ALERT! /dev/disk/by-label/rootfs does not exist. Dropping to a shell! modprobe: module i8042 not found in modules.dep [ 44.818651] ehci-pci: EHCI PCI platform driver [ 44.844840] uhci_hcd: USB Universal Host Controller Interface driver [ 44.861893] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver [ 44.882161] hidraw: raw HID events driver (C) Jiri Kosina [ 44.892652] usbcore: registered new interface driver usbhid [ 44.898286] usbhid: USB HID core driver BusyBox v1.22.1 (Debian 1:1.22.0-9+deb8u1) built-in shell (ash) Enter 'help' for a list of built-in commands. /bin/sh: can't access tty; job control turned off (initramfs)
I unpluged the usb and recycled the power and stopped the boot process and have this:
picocom v1.7 port is : /dev/ttyUSB0 flowcontrol : none baudrate is : 115200 parity is : none databits are : 8 escape is : C-a local echo is : no noinit is : no noreset is : no nolock is : no send_cmd is : sz -vv receive_cmd is : rz -vv imap is : omap is : emap is : crcrlf,delbs, Terminal ready U-Boot 2016.05-tld-1 (Jun 12 2016 - 13:23:43 -0700) Pogo E02 SoC: Kirkwood 88F6281_A0 DRAM: 256 MiB WARNING: Caches not enabled NAND: 128 MiB In: serial Out: serial Err: serial Net: egiga0 Hit any key to stop autoboot: 0 PogoE02> printenv arcNumber=3542 bootargs=console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data) 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-pogo_e02.dtb ethact=egiga0 ethaddr=00:25:31:04:7B:64 if_netconsole=ping $serverip init_ide=ide reset init_mmc=mmc rescan init_usb=usb start ipaddr=192.168.86.109 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=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data) nc_ready=0 partition=nand0,2 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 scan_ide=ide reset scan_mmc=mmc rescan scan_usb=usb start 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=serial stdin=serial stdout=serial uenv_addr=0x810000 uenv_import=echo importing envs ...; env import -t $uenv_addr $filesize uenv_init_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 0; do run uenv_read_disk; done; done; uenv_loaded=0 uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; fi uenv_read_disk=if test $devtype -eq mmc; then if $devtype part; then run uenv_read; fi; else if $devtype part $disknum; then run uenv_read; fi; fi usb_ready_retry=15 Environment size: 3073/131068 bytes PogoE02>
Not really sure how to proceed from here. The new Debian dist-upgrade also broke my net boot time setup I had. I wonder if there was something else that caused this or if it was just me.
So, is there anyway to salvage this?