POGO-V4-A3-01 + 2017.07 U-Boot Kirkwood + Debian 4.12.1 rootfs + Kernel 5.2.9 August 20, 2019 09:43PM |
Registered: 4 years ago Posts: 17 |
U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:34:01 -0700) Pogoplug V4 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... 1 USB Device(s) found scanning usb for storage devices... 0 Storage Device(s) found Reset IDE: ide_preinit failed MMC rescan: current device # 0 initialized OK Loading envs from usb 0... ** Bad device usb 0 ** 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... ** No partition table - mmc 0 ** Loading envs from mmc 1... MMC Device 1 not found MMC Device 1 not found ** Bad device mmc 1 ** Loading envs from mmc 2... MMC Device 2 not found MMC Device 2 not found ** Bad device mmc 2 ** Loading envs from mmc 3... MMC Device 3 not found MMC Device 3 not found ** Bad device mmc 3 ** running scan_disk ... Scan device usb device usb 0:1 ** Bad device usb 0 ** device usb 1:1 ** Bad device usb 1 ** device usb 2:1 ** Bad device usb 2 ** device usb 3:1 ** Bad device usb 3 ** Scan device ide Reset IDE: ide_preinit failed device ide 0:1 ** Bad device ide 0 ** device ide 1:1 ** Bad device ide 1 ** device ide 2:1 ** Bad device ide 2 ** device ide 3:1 ** Bad device ide 3 ** Scan device mmc MMC rescan: current device # 0 initialized OK device mmc 0:1 ** No partition table - mmc 0 ** device mmc 1:1 MMC Device 1 not found MMC Device 1 not found ** Bad device mmc 1 ** device mmc 2:1 MMC Device 2 not found MMC Device 2 not found ** Bad device mmc 2 ** device mmc 3:1 MMC Device 3 not found MMC Device 3 not found ** Bad device mmc 3 ** loading uImage ... ** Bad device usb 0 ** loading uInitrd ... ** Bad device usb 0 ** loading DTB /boot/dts/kirkwood-pogoplug_v4.dtb ... ** Bad device usb 0 ** Wrong Image Format for bootm command ERROR: can't get kernel image!
Pogov4> setenv usb_rootfstype 'ext3' Pogov4> setenv mmc_bootcmd 'mmc rescan; run mmc_set_bootargs; run mmc_boot' Pogov4> setenv mmc_boot 'mw 0x800000 0 1; ext2load mmc 0:1 0x00800000 /boot/uImage; if ext2load mmc 0:1 0x01100000 /boot/uInitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi' Pogov4> setenv mmc_root '/dev/mmcblk0p1' Pogov4> setenv mmc_set_bootargs 'setenv bootargs console=$console root=$mmc_root rootdelay=$usb_rootdelay rootfstype=$usb_rootfstype $mtdparts $usb_custom_params' Pogov4> saveenv
#!/bin/bash# (the pogoplug ships with busybox, so we have to use ash instead of bash.)
# see https://github.com/pepaslabs/pogoplug_mobile_uboot_installer
# file name: download_uboot_tools.sh
# parse command line args:
assume_yes=0
if [ "${1:-}" == "-y" ]
then
assume_yes=1
fi
### functions
echo_step()
{
echo
echo "* $@"
}
echo2()
{
echo "$@" >&2
}
prompt_to_proceed()
{
local message="$1"
echo -n "${message} [Y/n]: "
if [ "${assume_yes}" -eq 1 ]
then
echo "(Assuming yes...)"
return 0
fi
read yn
case $yn in
y|Y|yes|Yes|YES|'') echo "Proceeding..." ;;
*) echo2 "Exiting..." ; exit 1 ;;
esac
# thanks to http://stackoverflow.com/a/226724
}
# entering "strict" mode
set -e
set -u
set -o pipefail
# verbose
#set -x
### cache / downloads section
echo_run()
{
echo "+ $@"
eval "$@"
}
md5_step()
{
local file="$1"
local sum="$2"
echo_step "Verifying ${file}"
echo "${sum} ${file}" | md5sum -c -
}
wget_step()
{
local file="$1"
local baseurl="$2"
local sum="$3"
if [ ! -e ${file} ]
then
echo_step "Downloading ${file}"
echo_run wget "${baseurl}/${file}"
fi
if pwd | grep -q '/bin'
then
chmod +x "${file}"
fi
md5_step "${file}" "${sum}"
}
mkdir -p /tmp/bin /tmp/dev /tmp/cache /tmp/mnt
export PATH=/tmp/bin:${PATH}
# download flash utils
cd /tmp/bin
#baseurl="http://download.qnology.com/pogoplug/v4"
# Note: download.qnology.com seems to be down. Falling back to mirrored files:
baseurl="http://ssl.pepas.com/pogo/mirrored/download.qnology.com/pogoplug/v4"
wget_step nanddump ${baseurl} 770bbbbe4292747aa8f2163bb1e677bb
wget_step nandwrite ${baseurl} 47974246185ee52deae7cc6cfea5e8fc
wget_step flash_erase ${baseurl} 8b5f9961376281e30a1bd519353484b0
wget_step fw_printenv ${baseurl} 7d28314b0d2737094e57632a6fe43bbe
wget_step fw_setenv ${baseurl} 7d28314b0d2737094e57632a6fe43bbe
echo_step "Downloaded all files. Exiting."
arcNumber=3960
bootargs=console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=orion_nand:2M(u-boot),3M(uImage),3M(uImage2),8M(failsafe),112M(root)
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; sleep 3
bootdelay=10
bootdev=usb
device=0:1
device_type=mmc
devices=usb ide mmc
disk_number=3
disks=0 1 2 3
dtb_file=/boot/dts/kirkwood-pogoplug_v4.dtb
ethact=egiga0
ethaddr=00:aa:bb:cc:dd:ee[/b] (Comment: Make sure you use your own address printed under the box!)
if_netconsole=ping $serverip
init_ide=ide reset
init_mmc=mmc rescan
init_usb=usb start
ipaddr=192.168.10.xxx
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
machid=f78
mainlineLinux=yes
mmc_boot=mw 0x800000 0 1; ext2load mmc 0:1 0x00800000 /boot/uImage; if ext2load mmc 0:1 0x01100000 /boot/uInitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi
mmc_bootcmd=mmc rescan; run mmc_set_bootargs; run mmc_boot
mmc_root=/dev/mmcblk0p1
mmc_set_bootargs=setenv bootargs console=$console root=$mmc_root rootdelay=$usb_rootdelay rootfstype=$usb_rootfstype $mtdparts $usb_custom_params
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:2M(u-boot),3M(uImage),3M(uImage2),8M(failsafe),112M(root)
nc_ready=1
ncip=192.168.10.yyy
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
scan_ide=ide reset
scan_mmc=mmc rescan
scan_usb=usb start
serverip=192.168.10.yyy
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_loaded=0
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
usb_rootfstype=ext3
Environment size: 3824/131068 bytes
Pogov4> mmc info mmc info Device: MVEBU_MMC Manufacturer ID: 3 OEM: 5344 Name: SD01G Tran Speed: 25000000 Rd Block Len: 512 SD version 1.10 High Capacity: No Capacity: 968.8 MiB Bus Width: 4-bit Erase Group Size: 512 Bytes Pogov4> mmc list mmc list MVEBU_MMC: 0 (SD) Pogov4> mmc dev mmc dev switch to partitions #0, OK mmc0 is current device Pogov4> mmc part mmc part ## Unknown partition table type 0 Pogov4> usb stop usb stop stopping USB.. Pogov4> usb start usb start starting USB... USB0: USB EHCI 1.00 scanning bus 0 for devices... 1 USB Device(s) found scanning usb for storage devices... 0 Storage Device(s) found Pogov4> usb storage usb storage No storage devices, perhaps not 'usb start'ed..? Pogov4> usb info usb info 1: Hub, USB Revision 2.0 - u-boot EHCI Host Controller - Class: Hub - PacketSize: 64 Configurations: 1 - Vendor: 0x0000 Product 0x0000 Version 1.0 Configuration: 1 - Interfaces: 1 Self Powered 0mA Interface: 0 - Alternate Setting 0, Endpoints: 1 - Class Hub - Endpoint 1 In Interrupt MaxPacket 8 Interval 255ms
Re: POGO-V4-A3-01 + 2017.07 U-Boot Kirkwood + Debian 4.12.1 rootfs + Kernel 5.2.9 August 20, 2019 10:55PM |
Admin Registered: 13 years ago Posts: 18,548 |
printenv boot
mountWhat is the output?
Re: POGO-V4-A3-01 + 2017.07 U-Boot Kirkwood + Debian 4.12.1 rootfs + Kernel 5.2.9 August 21, 2019 07:33AM |
Registered: 4 years ago Posts: 17 |
U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:34:01 -0700) Pogoplug V4 gcc (Debian 6.3.0-18) 6.3.0 20170516 GNU ld (GNU Binutils for Debian) 2.28 Hit any key to stop autoboot: 9 0 Pogov4> printenv printenv arcNumber=3960 bootargs=console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=orion_nand:2M(u-boot),3M(uImage),3M(uImage2),8M(failsafe),112M(root) 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; sleep 3 bootdelay=10 bootdev=usb device=0:1 device_type=mmc devices=usb ide mmc disk_number=3 disks=0 1 2 3 dtb_file=/boot/dts/kirkwood-pogoplug_v4.dtb ethact=egiga0 ethaddr=00:aa:bb:cc:dd:ee (comment: same as on sticker under pogoplug) if_netconsole=ping $serverip init_ide=ide reset init_mmc=mmc rescan init_usb=usb start ipaddr=192.168.10.9 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 machid=f78 mainlineLinux=yes mtdids=nand0=orion_nand mtdparts=mtdparts=orion_nand:2M(u-boot),3M(uImage),3M(uImage2),8M(failsafe),112M(root) nc_ready=1 ncip=192.168.10.21 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 scan_ide=ide reset scan_mmc=mmc rescan scan_usb=usb start serverip=192.168.10.21 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_loaded=0 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: 3396/131068 bytes
Pogov4> boot
boot
Initializing devices...
starting USB...
USB0: USB EHCI 1.00
scanning bus 0 for devices... 1 USB Device(s) found
scanning usb for storage devices... 0 Storage Device(s) found
Reset IDE: ide_preinit failed
Card did not respond to voltage select!
mmc_init: -95, time 11
Loading envs from usb 0...
** Bad device usb 0 **
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...
Card did not respond to voltage select!
mmc_init: -95, time 11
Card did not respond to voltage select!
mmc_init: -95, time 10
** Bad device mmc 0 **
Loading envs from mmc 1...
MMC Device 1 not found
MMC Device 1 not found
** Bad device mmc 1 **
Loading envs from mmc 2...
MMC Device 2 not found
MMC Device 2 not found
** Bad device mmc 2 **
Loading envs from mmc 3...
MMC Device 3 not found
MMC Device 3 not found
** Bad device mmc 3 **
running scan_disk ...
Scan device usb
device usb 0:1
** Bad device usb 0 **
device usb 1:1
** Bad device usb 1 **
device usb 2:1
** Bad device usb 2 **
device usb 3:1
** Bad device usb 3 **
Scan device ide
Reset IDE: ide_preinit failed
device ide 0:1
** Bad device ide 0 **
device ide 1:1
** Bad device ide 1 **
device ide 2:1
** Bad device ide 2 **
device ide 3:1
** Bad device ide 3 **
Scan device mmc
Card did not respond to voltage select!
mmc_init: -95, time 11
device mmc 0:1
Card did not respond to voltage select!
mmc_init: -95, time 10
Card did not respond to voltage select!
mmc_init: -95, time 10
** Bad device mmc 0 **
device mmc 1:1
MMC Device 1 not found
MMC Device 1 not found
** Bad device mmc 1 **
device mmc 2:1
MMC Device 2 not found
MMC Device 2 not found
** Bad device mmc 2 **
device mmc 3:1
MMC Device 3 not found
MMC Device 3 not found
** Bad device mmc 3 **
loading uImage ...
** Bad device usb 0 **
loading uInitrd ...
** Bad device usb 0 **
loading DTB /boot/dts/kirkwood-pogoplug_v4.dtb ...
** Bad device usb 0 **
Wrong Image Format for bootm command
ERROR: can't get kernel image!
Pogov4>
Pogov4> boot
boot
Initializing devices...
starting USB...
USB0: USB EHCI 1.00
scanning bus 0 for devices... 1 USB Device(s) found
scanning usb for storage devices... 0 Storage Device(s) found
Reset IDE: ide_preinit failed
MMC rescan: current device # 0 initialized OK
Loading envs from usb 0...
** Bad device usb 0 **
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...
** No partition table - mmc 0 **
Loading envs from mmc 1...
MMC Device 1 not found
MMC Device 1 not found
** Bad device mmc 1 **
Loading envs from mmc 2...
MMC Device 2 not found
MMC Device 2 not found
** Bad device mmc 2 **
Loading envs from mmc 3...
MMC Device 3 not found
MMC Device 3 not found
** Bad device mmc 3 **
running scan_disk ...
Scan device usb
device usb 0:1
** Bad device usb 0 **
device usb 1:1
** Bad device usb 1 **
device usb 2:1
** Bad device usb 2 **
device usb 3:1
** Bad device usb 3 **
Scan device ide
Reset IDE: ide_preinit failed
device ide 0:1
** Bad device ide 0 **
device ide 1:1
** Bad device ide 1 **
device ide 2:1
** Bad device ide 2 **
device ide 3:1
** Bad device ide 3 **
Scan device mmc
MMC rescan: current device # 0 initialized OK
device mmc 0:1
** No partition table - mmc 0 **
device mmc 1:1
MMC Device 1 not found
MMC Device 1 not found
** Bad device mmc 1 **
device mmc 2:1
MMC Device 2 not found
MMC Device 2 not found
** Bad device mmc 2 **
device mmc 3:1
MMC Device 3 not found
MMC Device 3 not found
** Bad device mmc 3 **
loading uImage ...
** Bad device usb 0 **
loading uInitrd ...
** Bad device usb 0 **
loading DTB /boot/dts/kirkwood-pogoplug_v4.dtb ...
** Bad device usb 0 **
Wrong Image Format for bootm command
ERROR: can't get kernel image!
Pogov4>
admin@desktop:~$ sudo passwd root
[sudo] password for admin:
New password:
Retype new password:
passwd: password updated successfully
admin@desktop:~$ su root
Password:
root@desktop:/home/admin#
root@desktop:/home/admin# cd ~
root@desktop:~# fdisk /dev/sdb1
Welcome to fdisk (util-linux 2.33.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
The old ext3 signature will be removed by a write command.
Device does not contain a recognized partition table.
Created a new DOS disklabel with disk identifier 0x7ff2bb4c.
Command (m for help): p
Disk /dev/sdb1: 1,9 GiB, 1999323648 bytes, 3904929 sectors
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: 0x7ff2bb4c
Command (m for help): d 1
No partition is defined yet!
Command (m for help): F
Unpartitioned space /dev/sdb1: 1,9 GiB, 1998275072 bytes, 3902881 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
Start End Sectors Size
2048 3904928 3902881 1,9G
Command (m for help): n
Partition type
p primary (0 primary, 0 extended, 4 free)
e extended (container for logical partitions)
Select (default p): p
Partition number (1-4, default 1): 1
First sector (2048-3904928, default 2048): 2048
Last sector, +/-sectors or +/-size{K,M,G,T,P} (2048-3904928, default 3904928): 3904928
Created a new partition 1 of type 'Linux' and of size 1,9 GiB.
Command (m for help): w
The partition table has been altered.
Failed to add partition 1 to system: Invalid argument
The kernel still uses the old partitions. The new table will be used at the next reboot.
Syncing disks.
root@desktop:~# fdisk /dev/sdb1
Welcome to fdisk (util-linux 2.33.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Command (m for help): t
Selected partition 1
Hex code (type L to list all codes): 83
Changed type of partition 'Linux' to 'Linux'.
Command (m for help): i
Selected partition 1
Device: /dev/sdb1p1
Start: 2048
End: 3904928
Sectors: 3902881
Cylinders: 1637
Size: 1,9G
Id: 83
Type: Linux
Start-C/H/S: 0/33/3
End-C/H/S: 1015/52/45
Command (m for help): p
Disk /dev/sdb1: 1,9 GiB, 1999323648 bytes, 3904929 sectors
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: 0x7ff2bb4c
Device Boot Start End Sectors Size Id Type
/dev/sdb1p1 2048 3904928 3902881 1,9G 83 Linux
Command (m for help): w
The partition table has been altered.
Syncing disks.
root@desktop:~# which mkfs.ext3
/usr/sbin/mkfs.ext3
root@desktop:~# mkfs.ext3 -L rootfs /dev/sdb1
mke2fs 1.44.6 (5-Mar-2019)
Found a dos partition table in /dev/sdb1
Proceed anyway? (y,N) y
/dev/sdb1 is mounted; will not make a filesystem here!
root@desktop:~# umount /dev/sdb1
root@desktop:~# mkfs.ext3 -L rootfs /dev/sdb1
mke2fs 1.44.6 (5-Mar-2019)
Found a dos partition table in /dev/sdb1
Proceed anyway? (y,N) y
Creating filesystem with 488116 4k blocks and 122160 inodes
Filesystem UUID: 7914b7b1-e64a-4a9a-a2c2-07eafcfc5449
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912
Allocating group tables: done
Writing inode tables: done
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting information: done
root@desktop:~# fdisk /dev/mmcblk0p1
Welcome to fdisk (util-linux 2.33.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
The old ext3 signature will be removed by a write command.
Device does not contain a recognized partition table.
Created a new DOS disklabel with disk identifier 0x5227d595.
Command (m for help): p
Disk /dev/mmcblk0p1: 967 MiB, 1013972992 bytes, 1980416 sectors
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: 0x5227d595
Command (m for help): n
Partition type
p primary (0 primary, 0 extended, 4 free)
e extended (container for logical partitions)
Select (default p): p
Partition number (1-4, default 1):
First sector (2048-1980415, default 2048):
Last sector, +/-sectors or +/-size{K,M,G,T,P} (2048-1980415, default 1980415):
Created a new partition 1 of type 'Linux' and of size 966 MiB.
Command (m for help): p
Disk /dev/mmcblk0p1: 967 MiB, 1013972992 bytes, 1980416 sectors
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: 0x5227d595
Device Boot Start End Sectors Size Id Type
/dev/mmcblk0p1p1 2048 1980415 1978368 966M 83 Linux
Command (m for help): t
Selected partition 1
Hex code (type L to list all codes): 83
Changed type of partition 'Linux' to 'Linux'.
Command (m for help): w
The partition table has been altered.
Failed to add partition 1 to system: Invalid argument
The kernel still uses the old partitions. The new table will be used at the next reboot.
Syncing disks.
root@desktop:~# fdisk /dev/mmcblk0p1
Welcome to fdisk (util-linux 2.33.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Command (m for help): t
Selected partition 1
Hex code (type L to list all codes): 83
Changed type of partition 'Linux' to 'Linux'.
Command (m for help): i
Selected partition 1
Device: /dev/mmcblk0p1p1
Start: 2048
End: 1980415
Sectors: 1978368
Cylinders: 30913
Size: 966M
Id: 83
Type: Linux
Start-C/H/S: 32/0/1
End-C/H/S: 223/3/16
Command (m for help): w
The partition table has been altered.
Syncing disks.
root@desktop:~# mkfs.ext3 -L rootfs /dev/mmcblk0p1
mke2fs 1.44.6 (5-Mar-2019)
Found a dos partition table in /dev/mmcblk0p1
Proceed anyway? (y,N) y
Discarding device blocks: done
Creating filesystem with 247552 4k blocks and 61952 inodes
Filesystem UUID: 6579a554-8dc8-491d-b2b9-8b3bf781525e
Superblock backups stored on blocks:
32768, 98304, 163840, 229376
Allocating group tables: done
Writing inode tables: done
Creating journal (4096 blocks): done
Writing superblocks and filesystem accounting information: done
root@desktop:~# tar -xvjf /home/admin/Downloads/Debian-4.12.1-kirkwood-tld-1-rootfs-bodhi.tar.bz2 -C /media/admin/rootfs
root@desktop:~# tar -xvjf /home/admin/Downloads/Debian-4.12.1-kirkwood-tld-1-rootfs-bodhi.tar.bz2 -C /media/admin/rootfs1
(comment: This is the SD-card)
dtb_file=/boot/dts/kirkwood-pogoplug_v4.dtb
devices=mmc usb ide
disks=0 1 2 3 4 5 6 7
custom_params=init=/bin/systemd
root@desktop:~# cp /home/admin/Downloads/uEnv.txt /media/admin/rootfs/boot/
root@desktop:~# cp /home/admin/Downloads/uEnv.txt /media/admin/rootfs1/boot/
(comment: This is the SD-card)
root@desktop:~# mount sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime) proc on /proc type proc (rw,nosuid,nodev,noexec,relatime) udev on /dev type devtmpfs (rw,nosuid,relatime,size=3987872k,nr_inodes=996968,mode=755) devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000) tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=804932k,mode=755) /dev/mapper/ubuntu--budgie--vg-root on / type ext4 (rw,relatime,errors=remount-ro) securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime) tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev) tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k) tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755) cgroup2 on /sys/fs/cgroup/unified type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate) cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,name=systemd) pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime) bpf on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,relatime,mode=700) cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event) cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct) cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer) cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids) cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory) cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,hugetlb) cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset) cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices) cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio) cgroup on /sys/fs/cgroup/rdma type cgroup (rw,nosuid,nodev,noexec,relatime,rdma) cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio) systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=35,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=16705) mqueue on /dev/mqueue type mqueue (rw,relatime) debugfs on /sys/kernel/debug type debugfs (rw,relatime) hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,pagesize=2M) fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime) configfs on /sys/kernel/config type configfs (rw,relatime) /var/lib/snapd/snaps/core_7396.snap on /snap/core/7396 type squashfs (ro,nodev,relatime,x-gdu.hide) /var/lib/snapd/snaps/core_6673.snap on /snap/core/6673 type squashfs (ro,nodev,relatime,x-gdu.hide) /var/lib/snapd/snaps/ubuntu-budgie-welcome_131.snap on /snap/ubuntu-budgie-welcome/131 type squashfs (ro,nodev,relatime,x-gdu.hide) /var/lib/snapd/snaps/ubuntu-budgie-welcome_120.snap on /snap/ubuntu-budgie-welcome/120 type squashfs (ro,nodev,relatime,x-gdu.hide) /dev/sda1 on /boot type ext4 (rw,relatime) tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=804928k,mode=700,uid=1000,gid=1000) gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000) /dev/sdb1 on /media/admin/rootfs type ext3 (rw,nosuid,nodev,relatime,uhelper=udisks2) /dev/mmcblk0p1 on /media/admin/rootfs1 type ext3 (rw,nosuid,nodev,relatime,uhelper=udisks2)
Re: POGO-V4-A3-01 + 2017.07 U-Boot Kirkwood + Debian 4.12.1 rootfs + Kernel 5.2.9 August 21, 2019 01:43PM |
Admin Registered: 13 years ago Posts: 18,548 |
Quote
Test result: booting with USB-stick Data Traveller 2GB
Pogov4> boot
boot
Initializing devices...
starting USB...
USB0: USB EHCI 1.00
scanning bus 0 for devices... 1 USB Device(s) found
scanning usb for storage devices... 0 Storage Device(s) found
Quote
Test result: booting with SD-card 1GB Sandisk
Pogov4> boot
boot
Initializing devices...
starting USB...
USB0: USB EHCI 1.00
scanning bus 0 for devices... 1 USB Device(s) found
scanning usb for storage devices... 0 Storage Device(s) found
Reset IDE: ide_preinit failed
MMC rescan: current device # 0 initialized OK
<snip>
Scan device mmc
MMC rescan: current device # 0 initialized OK
device mmc 0:1
** No partition table - mmc 0 **
device mmc 1:1
Re: POGO-V4-A3-01 + 2017.07 U-Boot Kirkwood + Debian 4.12.1 rootfs + Kernel 5.2.9 August 23, 2019 08:31AM |
Registered: 4 years ago Posts: 17 |
Pogov4> usb start
usb start
starting USB...
USB0: USB EHCI 1.00
scanning bus 0 for devices... 1 USB Device(s) found
scanning usb for storage devices... 0 Storage Device(s) found
Pogo4> help ... tftpboot- boot image via network using TFTP protocol ...
Re: POGO-V4-A3-01 + 2017.07 U-Boot Kirkwood + Debian 4.12.1 rootfs + Kernel 5.2.9 August 23, 2019 02:59PM |
Admin Registered: 13 years ago Posts: 18,548 |
U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:34:01 -0700) Pogoplug V4 SoC: Kirkwood 88F6192_A1 DRAM: 128 MiB WARNING: Caches not enabled NAND: 128 MiB MMC: MVEBU_MMC: 0 In: serial Out: serial Err: serial Net: egiga0 Hit any key to stop autoboot: 0 Pogov4> usb start 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 Pogov4>
p o n a p w
mkfs.ext3 -L rootfs /dev/sdb1
Re: POGO-V4-A3-01 + 2017.07 U-Boot Kirkwood + Debian 4.12.1 rootfs + Kernel 5.2.9 August 24, 2019 10:45AM |
Registered: 4 years ago Posts: 17 |
Re: POGO-V4-A3-01 + 2017.07 U-Boot Kirkwood + Debian 4.12.1 rootfs + Kernel 5.2.9 August 24, 2019 12:18PM |
Registered: 4 years ago Posts: 17 |
user@desktop:~$ scp linux-5.2.9-kirkwood-tld-1-bodhi.tar.bz2* root@<POGO-V4-A3-01 ip address>:/boot linux-5.2.9-kirkwood-tld-1-bodhi.tar.bz2 100% 34MB 5.0MB/s 00:06 linux-5.2.9-kirkwood-tld-1-bodhi.tar.bz2.md5 100% 75 52.7KB/s 00:00 linux-5.2.9-kirkwood-tld-1-bodhi.tar.bz2.sha2 100% 107 90.1KB/s 00:00
root@DebianPlugv4:/boot# md5sum -c *md5 linux-5.2.9-kirkwood-tld-1-bodhi.tar.bz2: OK root@DebianPlugv4:/boot# sha256sum -c *sha256 linux-5.2.9-kirkwood-tld-1-bodhi.tar.bz2: OK # Backup of current kernel files root@DebianPlugv4:/boot# cp uInitrd uInitrd-4.12.1.bak root@DebianPlugv4:/boot# cp uImage uImage-4.12.1.bak root@DebianPlugv4:/boot# cp initrd.img-4.12.1-kirkwood-tld-1 initrd.img-4.12.1-kirkwood-tld-1.bak root@DebianPlugv4:/boot# cp System.map-4.12.1-kirkwood-tld-1 System.map-4.12.1-kirkwood-tld-1.bak root@DebianPlugv4:/boot# cp vmlinuz-4.12.1-kirkwood-tld-1 vmlinuz-4.12.1-kirkwood-tld-1.bak root@DebianPlugv4:/boot# cp config-4.12.1-kirkwood-tld-1 config-4.12.1-kirkwood-tld-1.bak root@DebianPlugv4:/boot# cp -r dts dts-4.12-1.bak # Install systemd and locales (annoying to get a lot of error messages) root@DebianPlugv4:~# apt-get install systemd locales root@DebianPlugv4:~# dpkg-reconfigure locales root@DebianPlugv4:~# echo custom_params=init=/bin/systemd > /boot/uEnv.txt #Change password root@DebianPlugv4:~# passwd #Generate New OpenSSH Keys root@DebianPlugv4:~# rm /etc/ssh/ssh_host* root@DebianPlugv4:~# ssh-keygen -A #Update root@DebianPlugv4:~# apt-get update root@DebianPlugv4:~# apt-get upgrade #Set hostname to DebianPlugv4 or whatever you like root@DebianPlugv4:~# echo DebianPlugv4>/etc/hostname #Set Time Zone root@DebianPlugv4:~# tzselect root@DebianPlugv4:~# reboot Login via ssh again and test if systemd is running root@DebianPlugv4:~# ps 1 PID TTY STAT TIME COMMAND 1 ? Ss 0:08 /bin/systemd root@DebianPlugv4:~# systemctl list-units --type=service UNIT LOAD ACTIVE SUB DESCRIPTION ... ssh.service loaded active running OpenBSD Secure Shell server ... systemd-sysctl.service loaded active exited Apply Kernel Variables
# Shutdown POGO-V4-A3-01 and backup rootfs. root@DebianPlugv4:~# poweroffWait some 20 seconds.
root@laptop # tar -cvjSf Debian-5.2.9-kirkwood-tld-1-chaos-rootfs.tar.bz2 <folder_where_rootfs_is>
Or from the same folder try:
root@laptop # tar -cvjSf Debian-5.2.9-kirkwood-tld-1-chaos-rootfs.tar.bz2 *
Re: POGO-V4-A3-01 + 2017.07 U-Boot Kirkwood + Debian 4.12.1 rootfs + Kernel 5.2.9 August 24, 2019 02:20PM |
Admin Registered: 13 years ago Posts: 18,548 |
> sudo tar -cvjSf
> Debian-5.2.9-kirkwood-tld-1-rootfs.tar.bz2
> <folder_where_rootfs_is>
>
> Or from the same folder try:
> sudo tar -cvjSf
> Debian-5.2.9-kirkwood-tld-1-rootfs.tar.bz2
> *
>