Pogoplug V4 - uBoot with Debian April 16, 2017 11:02AM |
Registered: 7 years ago Posts: 40 |
Re: Pogoplug V4 - uBoot with Debian April 16, 2017 03:24PM |
Admin Registered: 14 years ago Posts: 19,236 |
Quote
1.Uboot Script : Does this script http://projects.doozan.com/uboot will pick up the latest Uboot
Quote
should i need to use a different Url. Because bodhi has mentioned to use the latest uBoot package for a better Modern NAS support
Quote
2.Does anyone has experience in using Debian on micro SD card with class 4 in Pogoplug V4. is that stable?
Re: Pogoplug V4 - uBoot with Debian April 20, 2017 12:05AM |
Registered: 7 years ago Posts: 40 |
Re: Pogoplug V4 - uBoot with Debian April 20, 2017 12:47AM |
Admin Registered: 14 years ago Posts: 19,236 |
Re: Pogoplug V4 - uBoot with Debian April 20, 2017 05:34AM |
Registered: 7 years ago Posts: 40 |
Re: Pogoplug V4 - uBoot with Debian April 20, 2017 12:08PM |
Registered: 7 years ago Posts: 40 |
Re: Pogoplug V4 - uBoot with Debian April 20, 2017 08:13PM |
Admin Registered: 14 years ago Posts: 19,236 |
Re: Pogoplug V4 - uBoot with Debian April 20, 2017 08:57PM |
Registered: 7 years ago Posts: 40 |
Re: Pogoplug V4 - uBoot with Debian April 21, 2017 07:22PM |
Admin Registered: 14 years ago Posts: 19,236 |
Re: Pogoplug V4 - uBoot with Debian April 22, 2017 12:14AM |
Registered: 7 years ago Posts: 40 |
Re: Pogoplug V4 - uBoot with Debian April 22, 2017 02:19AM |
Admin Registered: 14 years ago Posts: 19,236 |
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params
Quote
Samba
Samba smb.conf for a simple set up
HowTo setup Samba/CIFS shares
Re: Pogoplug V4 - uBoot with Debian April 23, 2017 11:08AM |
Registered: 7 years ago Posts: 40 |
Re: Pogoplug V4 - uBoot with Debian April 23, 2017 04:18PM |
Admin Registered: 14 years ago Posts: 19,236 |
Re: Pogoplug V4 - uBoot with Debian April 02, 2018 11:48AM |
Registered: 7 years ago Posts: 40 |
arcNumber=3960 bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec; run bootcmd_pogo; reset 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_pogo=if ubi part root 2048 && ubifsmount ubi:rootfs && ubifsload 0x800000 uboot.mtd0.dockstar.original.kwb ; then go 0x800200; fi bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi bootdelay=10 bootdev=usb custom_params=init=/bin/systemd device=0:1 devices=usb ide mmc disks=0 1 2 3 dtb_file=/boot/dts/kirkwood-pogoplug_v4.dtb ethact=egiga0 ethaddr=00:25:31:05:ec:22 if_netconsole=ping $serverip ipaddr=192.168.1.5 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.1.11 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 serverip=192.168.1.11 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=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=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 usb_rootfstype=ext3
Re: Pogoplug V4 - uBoot with Debian April 02, 2018 01:48PM |
Registered: 11 years ago Posts: 1,303 |
Re: Pogoplug V4 - uBoot with Debian April 03, 2018 05:34PM |
Admin Registered: 14 years ago Posts: 19,236 |
Quote
1.I have installed multiple apps in SATA disk and can able to see the files and folders. Looks like the files in the sata disk/boot has corrupted. Is there a way i can fix this and boot from SATA HDD without losing my program data?
e2fsck /dev/sdb1
Quote
2.Whats the syntax to control the boot priority from uEnvs.txt. Is there any link/manual on the supported variables which can be used in uEnvs.txt?
uboot.2016.05-tld-1.environment (the content of the default envs in text format)
Re: Pogoplug V4 - uBoot with Debian January 18, 2020 08:47PM |
Registered: 7 years ago Posts: 40 |
Re: Pogoplug V4 - uBoot with Debian January 18, 2020 10:28PM |
Registered: 7 years ago Posts: 40 |
Re: Pogoplug V4 - uBoot with Debian January 19, 2020 10:13PM |
Registered: 7 years ago Posts: 40 |
arcNumber=3960 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_pogo=if ubi part root 2048 && ubifsmount ubi:rootfs && ubifsload 0x800000 uboot.mtd0.dockstar.original.kwb ; then go 0x800200; fi bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi bootcmd=run bootcmd_uenv; sleep 2; run scan_disk; run set_bootargs; run bootcmd_exec; run bootcmd_pogo; reset bootdelay=10 bootdev=usb custom_params=init=/bin/systemd device=0:1 devices=usb ide mmc disks=0 1 2 3 dtb_file=/boot/dts/kirkwood-pogoplug_v4.dtb ethact=egiga0 ethaddr=00:25:31:05:1d:41 if_netconsole=ping $serverip ipaddr=192.168.1.16 led_error=orange blinking led_exit=green off led_init=green blinking load_dtb_addr=0x1c00000 load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device $load_dtb_addr $dtb_file load_initrd_addr=0x1100000 load_initrd=echo loading uInitrd ...; load $bootdev $device $load_initrd_addr /boot/uInitrd load_uimage_addr=0x800000 load_uimage=echo loading uImage ...; load $bootdev $device $load_uimage_addr /boot/uImage 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.1.18 partition=nand0,2 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 preboot=run preboot_nc 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.1.18 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_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
Re: Pogoplug V4 - uBoot with Debian January 19, 2020 10:46PM |
Registered: 7 years ago Posts: 40 |
Re: Pogoplug V4 - uBoot with Debian September 18, 2020 11:39AM |
Registered: 7 years ago Posts: 40 |
Re: Pogoplug V4 - uBoot with Debian September 18, 2020 05:00PM |
Admin Registered: 14 years ago Posts: 19,236 |
e2fsck /dev/sdb1 mount /dev/sdb1 /media/sdb1 ls -lart /media/boot
Re: Pogoplug V4 - uBoot with Debian September 26, 2020 12:38AM |
Registered: 7 years ago Posts: 40 |
Re: Pogoplug V4 - uBoot with Debian October 04, 2020 12:48AM |
Registered: 7 years ago Posts: 40 |
Re: Pogoplug V4 - uBoot with Debian October 04, 2020 04:03PM |
Admin Registered: 14 years ago Posts: 19,236 |
Re: Pogoplug V4 - uBoot with Debian October 05, 2020 04:35AM |
Registered: 7 years ago Posts: 40 |
U-Boot 2011.12 (Feb 12 2012 - 21:33:07) Seagate FreeAgent DockStar SoC: Kirkwood 88F6281_A0 DRAM: 128 MiB WARNING: Caches not enabled NAND: 256 MiB In: serial Out: serial Err: serial Net: egiga0 88E1116 Initialized on egiga0 Hit any key to stop autoboot: 0 (Re)start USB... USB: Register 10011 NbrPorts 1 USB EHCI 1.00 scanning bus for devices... 3 USB Device(s) found scanning bus for storage devices... 1 Storage Device(s) found Loading file "/rescueme" from usb device 0:1 (usbda1) ** File not found /rescueme reading /rescueme.txt ** Unable to read "/rescueme.txt" from usb 0:1 ** Creating 1 MTD partitions on "nand0": 0x000002500000-0x000010000000 : "mtd=3" UBI: attaching mtd1 to ubi0 UBI: physical eraseblock size: 131072 bytes (128 KiB) UBI: logical eraseblock size: 129024 bytes UBI: smallest flash I/O unit: 2048 UBI: sub-page size: 512 UBI: VID header offset: 512 (aligned 512) UBI: data offset: 2048 UBI: attached mtd1 to ubi0 UBI: MTD device name: "mtd=3" UBI: MTD device size: 219 MiB UBI: number of good PEBs: 1751 UBI: number of bad PEBs: 1 UBI: max. allowed volumes: 128 UBI: wear-leveling threshold: 4096 UBI: number of internal volumes: 1 UBI: number of user volumes: 0 UBI: available PEBs: 1730 UBI: total number of reserved PEBs: 21 UBI: number of PEBs reserved for bad PEB handling: 17 UBI: max/mean erase counter: 1/1 UBIFS error (pid 0): ubifs_get_sb: cannot open "ubi:rootfs", error -19 Error reading superblock on volume 'ubi:rootfs'! Loading file "/boot/uImage" from usb device 0:1 (usbda1) 1 bytes read Found bootable drive on usb 0:1 Loading file "/boot/uImage" from usb device 0:1 (usbda1) 4975125 bytes read Loading file "/boot/uInitrd" from usb device 0:1 (usbda1) 9713936 bytes read ## Booting kernel from Legacy Image at 00800000 ... Image Name: Linux-5.2.9-kirkwood-tld-1 Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 4975061 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 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 OK Starting kernel ... Uncompressing Linux... done, booting the kernel.
Re: Pogoplug V4 - uBoot with Debian October 05, 2020 11:31PM |
Admin Registered: 14 years ago Posts: 19,236 |
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
kirkwood-dockstar.dtb
Re: Pogoplug V4 - uBoot with Debian October 06, 2020 10:33AM |
Registered: 7 years ago Posts: 40 |
Re: Pogoplug V4 - uBoot with Debian October 07, 2020 09:32PM |
Admin Registered: 14 years ago Posts: 19,236 |
Re: Pogoplug V4 - uBoot with Debian October 08, 2020 03:47AM |
Registered: 7 years ago Posts: 40 |
pi@berry:/media/usb0 $ ls boot -l total 55980 -rw------- 1 root root 3101889 Aug 18 2019 System.map-5.2.9-kirkwood-tld-1 -rw-r--r-- 1 root root 165790 Aug 18 2019 config-5.2.9-kirkwood-tld-1 drwxr-xr-x 2 root root 4096 Aug 17 2019 dts -rw-r--r-- 1 root root 9713872 Aug 25 2019 initrd.img-5.2.9-kirkwood-tld-1 -rw-r--r-- 1 root root 9649570 Aug 18 2019 linux-headers-5.2.9-kirkwood-tld-1_1.0_armel.deb -rw-r--r-- 1 root root 4973738 Oct 8 13:40 uImage -rw-r--r-- 1 root root 4963680 Aug 25 2019 uImage.orig -rw-r--r-- 1 root root 9713936 Aug 25 2019 uInitrd -rw------- 1 root root 4963616 Aug 18 2019 vmlinuz-5.2.9-kirkwood-tld-1 -rwxr-xr-x 1 root root 4963616 Aug 18 2019 zImage-5.2.9-kirkwood-tld-1 -rwxr-xr-x 1 root root 4973674 Oct 8 13:40 zImage.fdt
Creating 1 MTD partitions on "nand0": 0x000002500000-0x000010000000 : "mtd=3" UBI: attaching mtd1 to ubi0 UBI: physical eraseblock size: 131072 bytes (128 KiB) UBI: logical eraseblock size: 129024 bytes UBI: smallest flash I/O unit: 2048 UBI: sub-page size: 512 UBI: VID header offset: 512 (aligned 512) UBI: data offset: 2048 UBI: attached mtd1 to ubi0 UBI: MTD device name: "mtd=3" UBI: MTD device size: 219 MiB UBI: number of good PEBs: 1751 UBI: number of bad PEBs: 1 UBI: max. allowed volumes: 128 UBI: wear-leveling threshold: 4096 UBI: number of internal volumes: 1 UBI: number of user volumes: 0 UBI: available PEBs: 1730 UBI: total number of reserved PEBs: 21 UBI: number of PEBs reserved for bad PEB handling: 17 UBI: max/mean erase counter: 1/1 UBIFS error (pid 0): ubifs_get_sb: cannot open "ubi:rootfs", err9 Error reading superblock on volume 'ubi:rootfs'! ** Block device usb 0 not supported ** Block device usb 1 not supported ** Block device usb 2 not supported ** Block device usb 3 not supported ** Block device usb 0 not supported ** Block device usb 0 not supported Wrong Image Format for bootm command ERROR: can't get kernel image! stopping USB.. ### JFFS2 loading 'uboot-original-mtd0.kwb' to 0x800000 Scanning JFFS2 FS: read_nand_cached: error reading nand off 0xs . read_nand_cached: error reading nand off 0x6ef600 size 8192 bs ........ done. read_nand_cached: error reading nand off 0x5a6000 size 8192 bytes off = 0x5a5de0 magic 0x1985 type 0xe002 node.totlen = 2797 read_nand_cached: error reading nand off 0x6f0000 size 8192 bytes ### JFFS2 load complete: 188925 bytes loaded to 0x800000 ## Starting application at 0x00800200 ...