Follow up: A fresh attempt at 4.12.1 install on another pogo-plug v September 27, 2017 10:01AM |
Registered: 8 years ago Posts: 49 |
root@whiterabbit:~# fw_printenv baudrate=115200 bootcmd_mmc=run mmc_init; run set_bootargs_mmc; run mmc_boot bootcmd_sata=run sata_init; run set_bootargs_sata; run sata_boot; bootcmd_usb=run usb_init; run set_bootargs_usb; run usb_boot; bootdelay=10 console=ttyS0,115200 device=0:1 ethact=egiga0 led_error=orange blinking led_exit=green off led_init=green blinking 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 partition=nand0,2 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 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 stderr=serial stdin=serial stdout=serial 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 ethaddr=00:25:31:05:66:bd usb_rootfstype=ext3 mtdparts=mtdparts=orion_nand:2M(u-boot),3M(uImage),3M(uImage2),8M(failsafe),112M(root) serverip=192.168.2.12 ipaddr=192.168.2.6 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=3960 bootcmd=run bootcmd_mmc; run bootcmd_usb; run bootcmd_sata; run bootcmd_pogo; reset bootcmd_pogo=if ubi part root 2048 && ubifsmount ubi:rootfs && ubifsload 0x800000 uboot.mtd0.dockstar.original.kwb ; then go 0x800200; fi machid=F78
root@sirguy:/# lsblk -f /dev/sdc1 NAME FSTYPE LABEL UUID MOUNTPOINT sdc1 ext3 rootfs cb9fd5ca-830e-41a8-8de1-ae0bf8d67735 /media/craig/rootfs root@sirguy:/# lsblk -f -o label /dev/sdc1 LABEL rootfs
# /etc/fstab: static file system information. # # <file system> <mount point> <type> <options> <dump> <pass> LABEL=rootfs / ext3 noatime,errors=remount-ro 0 1 tmpfs /tmp tmpfs defaults 0 0
drwxr-xr-x 21 root root 4096 Feb 16 2015 .. drwxr-xr-x 2 root root 4096 Jul 15 17:14 dts -rw-r--r-- 1 root root 153501 Jul 15 22:21 config-4.12.1-kirkwood-tld-1 -rwxr-xr-x 1 root root 3821528 Jul 15 23:42 zImage-4.12.1-kirkwood-tld-1 -rw------- 1 root root 3821528 Jul 16 02:43 vmlinuz-4.12.1-kirkwood-tld-1 -rw------- 1 root root 2504031 Jul 16 02:43 System.map-4.12.1-kirkwood-tld-1 -rw-r--r-- 1 root root 8435004 Jul 16 03:06 linux-headers-4.12.1-kirkwood-tld-1_1.0_armel.deb -rw-r--r-- 1 root root 3821592 Jul 20 03:11 uImage.stock.4.12.1 -rw-r--r-- 1 root root 7245632 Jul 23 19:15 initrd.img-4.12.1-kirkwood-tld-1 -rw-r--r-- 1 root root 7245696 Jul 23 19:18 uInitrd.stock.4.12.1 -rwxr-xr-x 1 root root 3831812 Sep 27 09:13 zImage.fdt -rw-r--r-- 1 root root 3831876 Sep 27 09:14 uImage.4.12.1 -rw-r--r-- 1 root root 7245696 Sep 27 09:15 uInitrd.4.12.1 -rw-r--r-- 1 root root 3831876 Sep 27 09:15 uImage drwxr-xr-x 3 root root 4096 Sep 27 09:15 . -rw-r--r-- 1 root root 7245696 Sep 27 09:15 uInitrd
U-Boot 2014.07-tld-1 (Jul 18 2014 - 00:59:45) Pogoplug V4 gcc (Debian 4.6.3-14) 4.6.3 GNU ld (GNU Binutils for Debian) 2.22 Hit any key to stop autoboot: 0 MMC rescan: current device # 0 initialized OK 3831876 bytes read in 1435 ms (2.5 MiB/s) 7245696 bytes read in 1969 ms (3.5 MiB/s) ## Booting kernel from Legacy Image at 00800000 ... Image Name: Linux-4.12.1-kirkwood-tld-1 Created: 2017-09-27 14:13:55 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 3831812 Bytes = 3.7 MiB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... OK ## Loading init Ramdisk from Legacy Image at 01100000 ... Image Name: initramfs-4.12.1-kirkwood-tld-1 Created: 2017-09-27 14:14:53 UTC Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 7245632 Bytes = 6.9 MiB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK Starting kernel ...
Re: Follow up: A fresh attempt at 4.12.1 install on another pogo-plug v September 27, 2017 08:02PM |
Admin Registered: 13 years ago Posts: 18,564 |
list of /boot contents: drwxr-xr-x 21 root root 4096 Feb 16 2015 .. drwxr-xr-x 2 root root 4096 Jul 15 17:14 dts -rw-r--r-- 1 root root 153501 Jul 15 22:21 config-4.12.1-kirkwood-tld-1 -rwxr-xr-x 1 root root 3821528 Jul 15 23:42 zImage-4.12.1-kirkwood-tld-1 -rw------- 1 root root 3821528 Jul 16 02:43 vmlinuz-4.12.1-kirkwood-tld-1 -rw------- 1 root root 2504031 Jul 16 02:43 System.map-4.12.1-kirkwood-tld-1 -rw-r--r-- 1 root root 8435004 Jul 16 03:06 linux-headers-4.12.1-kirkwood-tld-1_1.0_armel.deb -rw-r--r-- 1 root root 3821592 Jul 20 03:11 uImage.stock.4.12.1 -rw-r--r-- 1 root root 7245632 Jul 23 19:15 initrd.img-4.12.1-kirkwood-tld-1 -rw-r--r-- 1 root root 7245696 Jul 23 19:18 uInitrd.stock.4.12.1 -rwxr-xr-x 1 root root 3831812 Sep 27 09:13 zImage.fdt -rw-r--r-- 1 root root 3831876 Sep 27 09:14 uImage.4.12.1 -rw-r--r-- 1 root root 7245696 Sep 27 09:15 uInitrd.4.12.1 -rw-r--r-- 1 root root 3831876 Sep 27 09:15 uImage drwxr-xr-x 3 root root 4096 Sep 27 09:15 . -rw-r--r-- 1 root root 7245696 Sep 27 09:15 uInitrd
uImage.4.12.1 uImage
uInitrd.4.12.1 uInitrd
Quote
>
> Starting kernel ...
>
> behavior as with other attempts. hangs there.
> light remains orange (not blinking)
>
Re: Follow up: A fresh attempt at 4.12.1 install on another pogo-plug v September 28, 2017 07:58AM |
Registered: 8 years ago Posts: 49 |
Quote
I did not see uImage.orig in here. Is uImage.stock.4.12.1 the original uImage?
Quote
The zImage.fdt indicates that you have appended DTB to zImage to produce uImage. but why do these pairs have different timestamp? are they identical?
Quote
>Could you describe how you install the kernel 4.12 and append DTB to uImage?
cp -a zImage-4.12.1-kirkwood-tld-1 zImage.fdt cat dts/kirkwood-pogoplug_v4.dts >> zImage.fdt mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-4.12.1-kirkwood-tld-1 -d zImage.fdt uImage.4.12.1 mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initramfs-4.12.1-kirkwood-tld-1 -d initrd.img-4.12.1-kirkwood-tld-1 uInitrd.4.12.1
Quote
> were you in the box while kernel 4.4 is running? .... or post that snipet of log of the
> session here?
drwxr-xr-x 3 root root 4096 Sep 27 15:13 . drwxr-xr-x 21 root root 4096 Feb 16 2015 .. -rw------- 1 root root 2240040 Jan 25 2016 System.map-4.4.0-kirkwood-tld-1 -rw-r--r-- 1 root root 140949 Jan 25 2016 config-4.4.0-kirkwood-tld-1 drwxr-xr-x 2 root root 4096 Jan 26 2016 dts -rw-r--r-- 1 root root 7179871 Feb 18 2016 initrd.img-4.4.0-kirkwood-tld-1 -rw-r--r-- 1 root root 7511582 Jan 25 2016 linux-headers-4.4.0-kirkwood-tld-1_1.0_armel.deb -rw-r--r-- 1 root root 3165142 Sep 27 15:13 uImage -rw-r--r-- 1 root root 3165142 Sep 27 15:13 uImage.4.4.0 -rw-r--r-- 1 root root 3154896 Feb 18 2016 uImage.stock.4.4.0 -rw-r--r-- 1 root root 7179935 Sep 27 15:13 uInitrd -rw-r--r-- 1 root root 7179935 Sep 27 15:13 uInitrd.4.4.0 -rw-r--r-- 1 root root 7179935 Feb 18 2016 uInitrd.stock.4.4.0 -rw------- 1 root root 3154832 Jan 25 2016 vmlinuz-4.4.0-kirkwood-tld-1 -rwxr-xr-x 1 root root 3154832 Jan 25 2016 zImage-4.4.0-kirkwood-tld-1 -rwxr-xr-x 1 root root 3165078 Sep 27 15:12 zImage.fdt
Re: Follow up: A fresh attempt at 4.12.1 install on another pogo-plug v September 28, 2017 11:08AM |
Registered: 8 years ago Posts: 49 |
U-Boot 2014.04.R2-1 (May 15 2014 - 14:35:47) Arch Linux ARM Seagate FreeAgent DockStar
Re: Follow up: A fresh attempt at 4.12.1 install on another pogo-plug v September 28, 2017 05:50PM |
Admin Registered: 13 years ago Posts: 18,564 |
Quote
> correct. I decided *.orig was not a super-helpful
> name & that things could get confusing
> without just sticking with using the version in
> the name. Especially once I start trying to
> "upgrade" kernels.
Quote
> correct re: production of uImage. Using the
> concatenated dtb file method since I wanted to
> make no changes to uboot. (hate to brick one of
> these.. I only paid $9 each & don't figure they
> are worth the time it would take to make up the
> serial cable).
Quote
> I named the output of both mkimage commands to
> uImage.4.12.1 & uInitrd.4.12.1 respectively, again
> to keep things straight. I then simply copied the
> files to uImage & uInitrd. Slight delay is from
> making the ramdisk after the kernel image. BUT,
> notice uImage.4.12.1 & uImage are the same size,
> same for the uInitrd.4.12.1 & uInitrd.
Quote
> This was a fresh un-tarring of the 4.12.1 rootfs
> kit... onto a blank SD card. (sorry I didn't make
> that more clear) nothing else on that card.
> Trying to eliminate variables you know.
> Also, to re-iterate, this was on a different
> pogoplug device than the one where I had
> erroneously entered (& subsequently removed) the
> fw env variables for booting without the
> concatenated dts file. Again, just to eliminate
> variables.
To make the images, I simply followed the > cat dts/kirkwood-pogoplug_v4.dts >> zImage.fdt
ls -lart
> cat dts/kirkwood-pogoplug_v4.dts >> zImage.fdt
Re: Follow up: A fresh attempt at 4.12.1 install on another pogo-plug v September 28, 2017 05:55PM |
Admin Registered: 13 years ago Posts: 18,564 |
Re: Follow up: A fresh attempt at 4.12.1 install on another pogo-plug v September 28, 2017 05:55PM |
Registered: 8 years ago Posts: 49 |
Quote
Was it a typo when you typed the post? the file name should be kirkwood-pogoplug_v4.dtb.
Note that it would have been better to see the actual log of the session while you are doing this so that I can spot any typo you might have made!
Re: Follow up: A fresh attempt at 4.12.1 install on another pogo-plug v September 28, 2017 06:38PM |
Registered: 8 years ago Posts: 49 |
Quote
And yes, perhaps it is time to use my script to reset your envs to the default envs, using netconsole. And then you don't have to append the DTB, just use the original 4.12.1 rootfs after untar it to the SD card..
Re: Follow up: A fresh attempt at 4.12.1 install on another pogo-plug v September 29, 2017 01:14AM |
Admin Registered: 13 years ago Posts: 18,564 |
setenv devices 'usb' setenv ethaddr '00:25:31:05:66:bd' setenv dtb_file '/boot/dts/kirkwood-pogoplug_v4.dtb' setenv mtdparts 'mtdparts=orion_nand:2M(u-boot),3M(uImage),3M(uImage2),8M(failsafe),112M(root)' setenv ipaddr '192.168.2.6' setenv serverip '192.168.2.12' printenv boot