mounting /dev/sdb1 on /tmp/usb_stick failed: Invalid argument June 07, 2023 02:53PM |
Registered: 1 year ago Posts: 10 |
Re: mounting /dev/sdb1 on /tmp/usb_stick failed: Invalid argument June 07, 2023 03:14PM |
Admin Registered: 13 years ago Posts: 18,898 |
Quote
/dev/sdb1 1 584 3926016 c Win95 FAT32 (LBA)
uname -a lsblk lsmodto see if any file system driver is running.
Re: mounting /dev/sdb1 on /tmp/usb_stick failed: Invalid argument June 07, 2023 03:45PM |
Registered: 1 year ago Posts: 10 |
Re: mounting /dev/sdb1 on /tmp/usb_stick failed: Invalid argument June 07, 2023 03:55PM |
Admin Registered: 13 years ago Posts: 18,898 |
Re: mounting /dev/sdb1 on /tmp/usb_stick failed: Invalid argument June 07, 2023 05:35PM |
Registered: 1 year ago Posts: 10 |
Re: mounting /dev/sdb1 on /tmp/usb_stick failed: Invalid argument June 07, 2023 07:34PM |
Registered: 1 year ago Posts: 10 |
Re: mounting /dev/sdb1 on /tmp/usb_stick failed: Invalid argument June 07, 2023 09:54PM |
Admin Registered: 13 years ago Posts: 18,898 |
Quote
See here for how to install latest Debian kernel and U-Boot.
https://forum.doozan.com/read.php?3,135359,135361#msg-135361
Re: mounting /dev/sdb1 on /tmp/usb_stick failed: Invalid argument June 07, 2023 10:02PM |
Admin Registered: 13 years ago Posts: 18,898 |
Re: mounting /dev/sdb1 on /tmp/usb_stick failed: Invalid argument June 08, 2023 06:43PM |
Registered: 1 year ago Posts: 10 |
Re: mounting /dev/sdb1 on /tmp/usb_stick failed: Invalid argument June 08, 2023 07:08PM |
Admin Registered: 13 years ago Posts: 18,898 |
Re: mounting /dev/sdb1 on /tmp/usb_stick failed: Invalid argument June 08, 2023 08:28PM |
Registered: 1 year ago Posts: 10 |
ssh root@pogoplug NO: fw_setenv, NO: fw_printenv, NO: flash_erase, YES: nandwrite tar zxf linux-tools-installation-bodhi.tar.gz moved tools directory to USB stick on Pogoplug: mounted and moved tools to /tmp cd /tmp/tools;ln -s fw_printenv fw_setenv cat /etc/fw_env.config # MTD device name Device offset Env. size Flash sector size Number of sectors /dev/mtd0 0xc0000 0x20000 0x20000 cat /proc/mtd dev: size erasesize name mtd0: 00100000 00020000 "u-boot" mtd1: 00400000 00020000 "uImage" mtd2: 02000000 00020000 "root" mtd3: 05b00000 00020000 "data" /tmp/tools$ ./fw_printenv ethaddr * ethaddr=00:25:31:02:22:44 nanddump --noecc --omitoob -l 0x80000 -f mtd0 /dev/mtd0 * -rw-r--r-- 1 root root 524288 Jan 16 12:41 mtd0 ./fw_printenv > current_envs.txt dmesg | grep -i 'bad' (nothing found)
Re: mounting /dev/sdb1 on /tmp/usb_stick failed: Invalid argument June 08, 2023 09:38PM |
Admin Registered: 13 years ago Posts: 18,898 |
Re: mounting /dev/sdb1 on /tmp/usb_stick failed: Invalid argument June 08, 2023 10:07PM |
Registered: 1 year ago Posts: 10 |
Pogoplug:/tmp$ tar -xf /tmp/usb_stick/uboot.2017.07-tld-1.pogo_e02.bodhi.tar Pogoplug:/tmp$ ls -l drwxr-xr-x 2 root root 40 Jan 15 10:24 debian -rwxr-xr-x 1 root root 18406 Jan 15 10:24 install_uboot_mtd0.sh -rwxr-xr-x 1 root root 11194 Jan 15 11:44 kirkwood.debian-wheezy.sh -rw-r--r-- 1 root root 30 Jan 16 03:01 resolv.conf drwxr-xr-x 2 1000 900 240 Jan 16 12:44 tools drwxr-xr-x 2 root root 40 Jan 15 06:39 touro -rw-r--r-- 1 root root 524288 Jan 15 11:45 uboot-mtd0-dump -rw-r--r-- 1 root root 524288 Sep 5 2017 uboot.2017.07-tld-1.pogo_e02.mtd0.kwb drwxr-xr-x 21 root root 4096 Jun 9 2023 usb_stick drwxr-xr-x 2 root root 40 Jan 1 00:00 var -rwxr-xr-x 1 root root 2186766 Jan 15 10:29 wget Pogoplug:/tmp$ tools/flash_erase /dev/mtd0 0 4 Erasing 128 Kibyte @ 60000 -- 100 % complete
Re: mounting /dev/sdb1 on /tmp/usb_stick failed: Invalid argument June 08, 2023 10:34PM |
Registered: 1 year ago Posts: 10 |
Pogoplug:/tmp$ tar -xf /tmp/usb_stick/uboot.2017.07-tld-1.pogo_e02.bodhi.tar Pogoplug:/tmp$ ls -l drwxr-xr-x 2 root root 40 Jan 15 10:24 debian -rwxr-xr-x 1 root root 18406 Jan 15 10:24 install_uboot_mtd0.sh -rwxr-xr-x 1 root root 11194 Jan 15 11:44 kirkwood.debian-wheezy.sh -rw-r--r-- 1 root root 30 Jan 16 03:01 resolv.conf drwxr-xr-x 2 1000 900 240 Jan 16 12:44 tools drwxr-xr-x 2 root root 40 Jan 15 06:39 touro -rw-r--r-- 1 root root 524288 Jan 15 11:45 uboot-mtd0-dump -rw-r--r-- 1 root root 524288 Sep 5 2017 uboot.2017.07-tld-1.pogo_e02.mtd0.kwb drwxr-xr-x 21 root root 4096 Jun 9 2023 usb_stick drwxr-xr-x 2 root root 40 Jan 1 00:00 var -rwxr-xr-x 1 root root 2186766 Jan 15 10:29 wget Pogoplug:/tmp$ tools/flash_erase /dev/mtd0 0 4 Erasing 128 Kibyte @ 60000 -- 100 % complete Pogoplug:/tmp$ nandwrite /dev/mtd mtd0 mtd12 mtd2 mtd6 mtdblock0 mtdblock4 mtd1 mtd13 mtd3 mtd7 mtdblock1 mtdblock5 mtd10 mtd14 mtd4 mtd8 mtdblock2 mtdblock6 mtd11 mtd15 mtd5 mtd9 mtdblock3 mtdblock7 Pogoplug:/tmp$ nandwrite /dev/mtd0 uboot.2017.07-tld-1.pogo_e02.mtd0.kwb Writing data to block 0 Writing data to block 20000 Writing data to block 40000 Writing data to block 60000 Pogoplug:/tmp$ ls -l /tmp/usb_stick/boot -rw-r--r-- 1 root root 4403336 Aug 1 2021 System.map-5.13.6-kirkwood-tld-1 -rw-r--r-- 1 root root 183927 Aug 1 2021 config-5.13.6-kirkwood-tld-1 drwxr-xr-x 2 root root 4096 Aug 1 2021 dts -rw-r--r-- 1 root root 9671027 Sep 24 2021 initrd.img-5.13.6-kirkwood-tld-1 -rw-r--r-- 1 root root 7762080 Aug 1 2021 linux-headers-5.13.6-kirkwood-tld-1_1.0_armel.deb -rw-r--r-- 1 root root 5435888 Sep 24 2021 uImage -rw-r--r-- 1 root root 9671091 Sep 24 2021 uInitrd -rwxr-xr-x 1 root root 5435824 Aug 1 2021 vmlinuz-5.13.6-kirkwood-tld-1 -rwxr-xr-x 1 root root 5435824 Aug 1 2021 zImage-5.13.6-kirkwood-tld-1
Re: mounting /dev/sdb1 on /tmp/usb_stick failed: Invalid argument June 08, 2023 10:57PM |
Admin Registered: 13 years ago Posts: 18,898 |
Re: mounting /dev/sdb1 on /tmp/usb_stick failed: Invalid argument June 08, 2023 11:09PM |
Registered: 1 year ago Posts: 10 |
Pogoplug:/tmp$ tar -xf /tmp/usb_stick/uboot.2016.05-tld-1.environment.bodhi.tar Pogoplug:/tmp$ tools/fw_printenv > current_envs.txt Pogoplug:/tmp$ /usr/sbin/flash_erase /dev/mtd0 0xc0000 1 Erase Total 1 Units Performing Flash Erase of length 131072 at offset 0xc0000 done Pogoplug:/tmp$ Pogoplug:/tmp$ mount /dev/sda1 /tmp/usb_stick/ Pogoplug:/tmp$ tar -xf /tmp/usb_stick/uboot.2016.05-tld-1.environment.bodhi.tar Pogoplug:/tmp$ tools/fw_printenv > current_envs.txt Pogoplug:/tmp$ /usr/sbin/flash_erase /dev/mtd0 0xc0000 1 Erase Total 1 Units Performing Flash Erase of length 131072 at offset 0xc0000 done Pogoplug:/tmp$ /usr/sbin/nandwrite -s 786432 /dev/mtd0 uboot.2016.05-tld-1.environment.img Writing data to block 6 at offset 0xc0000 Pogoplug:/tmp$ tools/fw_setenv mtdparts 'orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)' Pogoplug:/tmp$ tools/fw_setenv ethaddr '00:25:31:02:22:44' Pogoplug:/tmp$ fw_setenv uenv_init_devices 'echo Initializing devices...; setenv init_usb "usb start"; setenv init_ide "ide reset"; setenv init_mmc "mmc rescan"; for devtype in $dev> -bash: fw_setenv: command not found Pogoplug:/tmp$ tools/fw_setenv uenv_init_devices 'echo Initializing devices...; setenv init_usb "usb start"; setenv init_ide "ide reset"; setenv init_mmc "mmc rescan"; for devtype i> Pogoplug:/tmp$ tools/fw_setenv 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 .> < $disks; do if test $uenv_loaded -eq 0; then setenv device_type $devtype; setenv disk_number $disknum; run uenv_read; fi; done; done;' Pogoplug:/tmp$ tools/fw_setenv uenv_read_disk Pogoplug:/tmp$ tools/fw_setenv dtb_file '/boot/dts/kirkwood-pogo_e02.dtb' Pogoplug:/tmp$ tools/fw_printenv arcNumber=2097 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 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 machid=0x831 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 usb_ready_retry=15 mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data) ethaddr=00:25:31:02:22:44 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_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 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; dtb_file=/boot/dts/kirkwood-pogo_e02.dtb
Re: mounting /dev/sdb1 on /tmp/usb_stick failed: Invalid argument June 08, 2023 11:15PM |
Admin Registered: 13 years ago Posts: 18,898 |
Re: mounting /dev/sdb1 on /tmp/usb_stick failed: Invalid argument June 08, 2023 11:44PM |
Registered: 1 year ago Posts: 10 |
Linux debian 5.13.6-kirkwood-tld-1 #1.0 PREEMPT Sat Jul 31 22:10:39 PDT 2021 armv5tel The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Sat Sep 25 19:53:59 2021 from 192.168.0.100 debian 192.168.56.12 CloudEngines Pogoplug E02 Linux version 5.13.6-kirkwood-tld-1 (root@tldDebian) (gcc (Debian 8.3.0-6) 8.3.0, GNU ld (GNU Binutils for Debian) 2.31.1) #1.0 PREEMPT Sat Jul 31 22:10:39 PDT 2021 Debian 11.0 Thu Jun 8 21:32:37 PDT 2023 up 4 minutes
Re: mounting /dev/sdb1 on /tmp/usb_stick failed: Invalid argument June 09, 2023 12:47AM |
Admin Registered: 13 years ago Posts: 18,898 |