Eyal
Pogoplug V4 fails to upgrade May 02, 2020 05:01AM |
U-Boot 2014.07-tld-2 (Sep 19 2014 - 16:13:05) Pogoplug V4 SoC: Kirkwood 88F6192_A1 DRAM: 128 MiB WARNING: Caches not enabled NAND: 128 MiB MMC: kwsdio: 0 In: serial Out: serial Err: serial Net: egiga0 No link on egiga0 ping failed; host xxx.xxx.x.x is not alive //remark - while on serial I am with no network Hit any key to stop autoboot: 0 MMC rescan: current device # 0 initialized OK 4973642 bytes read in 1605 ms (3 MiB/s) 9713936 bytes read in 1966 ms (4.7 MiB/s) ## Booting kernel from Legacy Image at 00800000 ... Image Name: Linux-5.2.9-kirkwood-tld-1 Created: 2020-05-02 5:31:40 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 4973578 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 Loading Kernel Image ... OK Using machid 0xf78 from environment Starting kernel ... Uncompressing Linux... done, booting the kernel.
U-Boot 2014.07-tld-2 (Sep 19 2014 - 16:13:05) Pogoplug V4 SoC: Kirkwood 88F6192_A1 DRAM: 128 MiB WARNING: Caches not enabled NAND: 128 MiB MMC: kwsdio: 0 In: serial Out: serial Err: serial Net: egiga0 No link on egiga0 ping failed; host xxx.xxx.x.x is not alive //remark - while on serial i am with no network Hit any key to stop autoboot: 0 Pogov4> printenv arcNumber=3960 baudrate=115200 bootcmd=run bootcmd_mmc; run bootcmd_usb; run bootcmd_sata; run bootcmd_pogo; reset bootcmd_mmc=run mmc_init; run set_bootargs_mmc; run mmc_boot bootcmd_pogo=if ubi part root 2048 && ubifsmount ubi:rootfs && ubifsload 0x800000 uboot.mtd0.dockstar.original.kwb ; then go 0x800200; fi bootcmd_sata=run sata_init; run set_bootargs_sata; run sata_boot; bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi bootcmd_usb=run usb_init; run set_bootargs_usb; run usb_boot; bootdelay=10 console=ttyS0,115200 device=0:1 ethact=egiga0 ethaddr=xx:xx:xx:xx:xx:xx //remark - actual numbers hidden if_netconsole=ping $serverip ipaddr=xxx.xxx.x.xx //remark - actual numbers hidden led_error=orange blinking led_exit=green off led_init=green blinking machid=f78 mainlineLinux=yes mmc_boot=mw 0x800000 0 1; run mmc_load_uimage; if run mmc_load_uinitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi mmc_init=mmc rescan mmc_load_uimage=ext2load mmc $device 0x800000 /boot/uImage mmc_load_uinitrd=ext2load mmc $device 0x1100000 /boot/uInitrd mmc_root=/dev/mmcblk0p1 mtdids=nand0=orion_nand mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data) partition=nand0,2 preboot=run preboot_nc preboot_nc=run if_netconsole start_netconsole rootdelay=10 rootfstype=ext3 sata_boot=mw 0x800000 0 1; run sata_load_uimage; if run sata_load_uinitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi sata_init=ide reset sata_load_uimage=ext2load ide $device 0x800000 /boot/uImage sata_load_uinitrd=ext2load ide $device 0x1100000 /boot/uInitrd sata_root=/dev/sda1 serverip=xxx.xxx.x.x //remark - actual numbers hidden set_bootargs_mmc=setenv bootargs console=$console root=$mmc_root rootdelay=$rootdelay rootfstype=$rootfstype $mtdparts set_bootargs_sata=setenv bootargs console=$console root=$sata_root rootdelay=$rootdelay rootfstype=$rootfstype $mtdparts set_bootargs_usb=setenv bootargs console=$console root=$usb_root rootdelay=$rootdelay rootfstype=$rootfstype $mtdparts 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_import=echo importing envs ...; env import -t 0x810000 uenv_load=usb start; mmc rescan; ide reset; setenv uenv_loaded 0; for devtype in usb mmc ide; do for disknum in 0; do run uenv_read_disk; done; done uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 0x810000 /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_boot=mw 0x800000 0 1; run usb_load_uimage; if run usb_load_uinitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi usb_init=usb start usb_load_uimage=ext2load usb $device 0x800000 /boot/uImage usb_load_uinitrd=ext2load usb $device 0x1100000 /boot/uInitrd usb_root=/dev/sda1 Environment size: 2987/131068 bytes Pogov4>
Re: Pogoplug V4 fails to upgrade May 02, 2020 05:34AM |
Admin Registered: 13 years ago Posts: 18,847 |
bootcmd=run bootcmd_mmc; run bootcmd_usb; run bootcmd_sata; run bootcmd_pogo; reset bootcmd_mmc=run mmc_init; run set_bootargs_mmc; run mmc_boot mmc_boot=mw 0x800000 0 1; run mmc_load_uimage; if run mmc_load_uinitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi mmc_init=mmc rescan mmc_load_uimage=ext2load mmc $device 0x800000 /boot/uImage mmc_load_uinitrd=ext2load mmc $device 0x1100000 /boot/uInitrd mmc_root=/dev/mmcblk0p1 set_bootargs_mmc=setenv bootargs console=$console root=$mmc_root rootdelay=$rootdelay rootfstype=$rootfstype $mtdparts
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
Eyal
Re: Pogoplug V4 fails to upgrade May 02, 2020 10:24AM |
Re: Pogoplug V4 fails to upgrade May 02, 2020 04:02PM |
Admin Registered: 13 years ago Posts: 18,847 |
setenv mmc_boot 'mw 0x800000 0 1; run mmc_load_uimage; if run mmc_load_uinitrd; then bootm 0x800000 0x2100000; else bootm 0x800000; fi' setenv mmc_load_uinitrd 'ext2load mmc $device 0x2100000 /boot/uInitrd'The above change is the fix.
setenv set_bootargs_mmc 'setenv bootargs console=$console root=$mmc_root rootdelay=$rootdelay rootfstype=$rootfstype $mtdparts earlyprintk=serial'
boot
Eyal
Re: Pogoplug V4 fails to upgrade May 03, 2020 09:36AM |
Re: Pogoplug V4 fails to upgrade May 03, 2020 03:58PM |
Admin Registered: 13 years ago Posts: 18,847 |
apt-get update apt-get dist-upgradeWhen it finished, you will need to regenerate uInitrd in /boot.
Eyal
Re: Pogoplug V4 fails to upgrade May 05, 2020 04:46AM |