Re: [Pogoplug Mobile/Series 4] Install uBoot/Debian July 20, 2013 04:57AM |
Registered: 11 years ago Posts: 2 |
Re: [Pogoplug Mobile/Series 4] Install uBoot/Debian July 20, 2013 04:16PM |
Admin Registered: 13 years ago Posts: 18,898 |
To install, you must have NAND tools and fw_env tools installed first. See here: http://forum.doozan.com/read.php?2,11663,11713#msg-11713
# MTD device name Device offset Env. size Flash sector size Number of sectors /dev/mtd0 0xc0000 0x20000 0x20000
Re: [Pogoplug Mobile] Install uBoot/Debian July 20, 2013 07:49PM |
Admin Registered: 13 years ago Posts: 18,898 |
Re: [Pogoplug Mobile/Series 4] Install uBoot/Debian September 08, 2013 11:54AM |
Registered: 11 years ago Posts: 13 |
HTTP://XXXXXX.local:PORTaddress in to my web browser from 7 and admin stuff on my pogo...(not to mention have access to all my drives from there, and my wireless printer from the router!)
Re: [Pogoplug Mobile/Series 4] Install uBoot/Debian September 08, 2013 06:31PM |
Admin Registered: 13 years ago Posts: 18,898 |
HTTP://XXXXXX.local:PORT> address in to my web browser from 7 and admin
Re: [Pogoplug Mobile/Series 4] Install uBoot/Debian September 22, 2013 12:36PM |
Registered: 11 years ago Posts: 13 |
Re: [Pogoplug Mobile/Series 4] Install uBoot/Debian January 01, 2014 11:54PM |
Admin Registered: 13 years ago Posts: 18,898 |
Re: [Pogoplug Mobile/Series 4] Install uBoot/Debian February 06, 2014 12:08AM |
Registered: 10 years ago Posts: 5 |
Re: [Pogoplug Mobile/Series 4] Install uBoot/Debian February 06, 2014 01:19AM |
Admin Registered: 13 years ago Posts: 18,898 |
Re: [Pogoplug Mobile/Series 4] Install uBoot/Debian February 06, 2014 08:17AM |
Registered: 10 years ago Posts: 5 |
Re: [Pogoplug Mobile/Series 4] Install uBoot/Debian February 06, 2014 10:17AM |
Registered: 10 years ago Posts: 5 |
Re: [Pogoplug Mobile/Series 4] Install uBoot/Debian February 06, 2014 01:58PM |
Admin Registered: 13 years ago Posts: 18,898 |
Re: [Pogoplug Mobile] Install uBoot/Debian February 06, 2014 02:51PM |
Registered: 10 years ago Posts: 5 |
Re: [Pogoplug Mobile] Install uBoot/Debian February 06, 2014 03:13PM |
Admin Registered: 13 years ago Posts: 18,898 |
Re: [Pogoplug Mobile] Install uBoot/Debian February 09, 2014 11:41PM |
Registered: 10 years ago Posts: 5 |
Re: [Pogoplug Mobile/Series 4] Install uBoot/Debian February 10, 2014 12:29AM |
Admin Registered: 13 years ago Posts: 18,898 |
Re: [Pogoplug Mobile/Series 4] Install uBoot/Debian March 21, 2014 06:09AM |
Registered: 11 years ago Posts: 12 |
Re: [Pogoplug Mobile/Series 4] Install uBoot/Debian March 21, 2014 02:38PM |
Admin Registered: 13 years ago Posts: 18,898 |
Re: [Pogoplug Mobile/Series 4] Install uBoot/Debian March 22, 2014 12:07AM |
Registered: 11 years ago Posts: 12 |
setenv mmc_root /dev/mmcblk0p2
Re: [Pogoplug Mobile/Series 4] Install uBoot/Debian March 22, 2014 01:32AM |
Admin Registered: 13 years ago Posts: 18,898 |
usb_rootfstype=ext3 usb_set_bootargs=setenv bootargs console=$console root=$usb_root rootdelay=$usb_rootdelay rootfstype=$usb_rootfstype $mtdparts $usb_custom_params
Re: [Pogoplug Mobile/Series 4] Install uBoot/Debian March 22, 2014 02:03AM |
Admin Registered: 13 years ago Posts: 18,898 |
Re: [Pogoplug Mobile/Series 4] Install uBoot/Debian May 15, 2014 11:57AM |
Registered: 10 years ago Posts: 34 |
pacman -Sy wget
cd /usr/bin/ wget http://download.doozan.com/uboot/nanddump wget http://download.doozan.com/uboot/nandwrite wget http://download.doozan.com/uboot/flash_erase wget http://download.doozan.com/uboot/fw_printenv wget http://download.doozan.com/uboot/fw_env.config wget http://download.doozan.com/uboot/files/environment/uboot.environment chmod +x flash_erase fw_printenv nanddump nandwrite mv uboot.environment ~/ mv fw_env.config /etc/fw_env.config FW_PRINTENV=/usr/bin/fw_printenv FW_SETENV=/usr/bin/fw_setenv if [ ! -f "$FW_SETENV" ]; then ln -s "$FW_PRINTENV" "$FW_SETENV" 2> /dev/null if [ "$?" -ne "0" ]; then mount -o remount,rw / ln -s "$FW_PRINTENV" "$FW_SETENV" mount -o remount,ro / fi fi
sudo fdisk /dev/sdb (or wherever the SD card is for your Linux box)
sudo mke2js -j /dev/sdb1 e2label /dev/sdb1 rootfs
mkdir -p /mnt/sdcard mount /dev/sdb1 /mnt/sdcard wget (the Debian.tar.gz image URL) tar -xvf Debian.tar.gz rm Debian.tar.gz sync umount /mnt/sdcard
fw_setenv mmc_set_bootargs 'setenv bootargs console=$console root=$mmc_root rootfstype=$mmc_rootfstype $mtdparts' fw_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' fw_setenv mmc_root '/dev/mmcblk0p1' fw_setenv mmc_bootcmd 'mmc init; mmc init; run mmc_set_bootargs; run mmc_boot' fw_setenv bootcmd 'usb start; run force_rescue_bootcmd; run ubifs_bootcmd; run usb_bootcmd; usb stop; run mmc_bootcmd' fw_setenv mmc_rootfstype 'ext3'
setenv mmc_boot 'mw 0x800000 0 1; ext2load mmc 0:1 0x00800000 /uImage; if ext2load mmc 0:1 0x01100000 /boot/uInitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi'(7) I had an issue where at some point along the way, my ethaddr was changed to some random address in the uboot env. I had to change it back.
fw_setenv ethaddr 'xx:xx:xx:xx:xx:xx' (whatever your Mac address is)
/sbin/reboot
mkswap /dev/mmcblk0p2 swapon /dev/mmcblk0p2
/dev/mmcblk0p2 none swap defaults 0 0
Re: [Pogoplug Mobile/Series 4] Install uBoot/Debian May 31, 2014 10:04AM |
Registered: 10 years ago Posts: 7 |
U-Boot 2011.12 (Apr 08 2012 - 19:03:41) Cloud Engines-Pogoplug v4/Mobile:MMC version arm-none-linux-gnueabi-gcc (Sourcery G++ Lite 2009q3-67) 4.4.1 GNU ld (Sourcery G++ Lite 2009q3-67) 2.19.51.20090709 Hit any key to stop autoboot: 0 (Re)start USB... USB: Register 10011 NbrPorts 1 USB EHCI 1.00 scanning bus for devices... 1 USB Device(s) found scanning bus for storage devices... 0 Storage Device(s) found ** Block device usb 0 not supported ** Invalid boot device ** incorrect device type in data Partition data not found! ** 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.. SDHC found. Card desciption is: Manufacturer: 0x27, OEM "PH" Product name: "SD04G", revision 3.0 Serial number: 2083185295 Manufacturing date: 5/2012 CRC: 0x00, b0 = 0 mmc1 is available SDHC found. Card desciption is: Manufacturer: 0x27, OEM "PH" Product name: "SD04G", revision 3.0 Serial number: 2083185295 Manufacturing date: 5/2012 CRC: 0x00, b0 = 0 mmc1 is available Loading file "/boot/uImage" from mmc device 0:1 (xxa1) 2461416 bytes read Loading file "/boot/uInitrd" from mmc device 0:1 (xxa1) 6362802 bytes read ## Booting kernel from Legacy Image at 00800000 ... Image Name: Linux-3.14.0-kirkwood-tld-1 Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 2461352 Bytes = 2.3 MiB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... OK ## Loading init Ramdisk from Legacy Image at 01100000 ... Image Name: initramfs-3.14.0-kirkwood-tld-1 Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 6362738 Bytes = 6.1 MiB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK Loading Kernel Image ... OK OK Starting kernel ...
Pogov4> printenv printenv arcNumber=2097 baudrate=115200 bootcmd=usb start; run force_rescue_bootcmd; run ubifs_bootcmd; run usb_bootcmd; usb stop; run mmc_bootcmd bootdelay=10 console=ttyS0,115200 ethact=egiga0 ethaddr=02:50:43:25:18:60 force_rescue=0 force_rescue_bootcmd=if test $force_rescue -eq 1 || ext2load usb 0:1 0x1700000 /rescueme 1 || fatload usb 0:1 0x1700000 /rescueme.txt 1; then run rescue_bootcmd; fi if_netconsole=ping $serverip ipaddr=192.168.1.101 led_error=orange blinking led_exit=green off led_init=green blinking mainlineLinux=yes mmc_bootcmd=mmc init; mmc init;ext2load mmc 0:1 0x00800000 /boot/uImage; if ext2load mmc 0:1 0x01100000 /boot/uInitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi mtddevname=uImage2 mtddevnum=2 mtdids=nand0=orion_nand mtdparts=mtdparts=orion_nand:2M(u-boot),3M(uImage),3M(uImage2),8M(failsafe),112M(root) ncip=192.168.1.2 partition=nand0,2 pogo_bootcmd=if fsload uboot-original-mtd0.kwb; then go 0x800200; fi preboot=run if_netconsole start_netconsole rescue_bootcmd=if test $rescue_installed -eq 1; then run rescue_set_bootargs; nand read.e 0x800000 0x100000 0x400000; bootm 0x800000; else run pogo_bootcmd; fi rescue_installed=0 rescue_set_bootargs=setenv bootargs console=$console ubi.mtd=2 root=ubi0:rootfs ro rootfstype=ubifs $mtdparts $rescue_custom_params serverip=192.168.1.2 start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version; stderr=nc stdin=nc stdout=nc ubifs_bootcmd=run ubifs_set_bootargs; if ubi part data && ubifsmount rootfs && ubifsload 0x800000 /boot/uImage && ubifsload 0x1100000 /boot/uInitrd; then bootm 0x800000 0x1100000; fi ubifs_mtd=3 ubifs_set_bootargs=setenv bootargs console=$console ubi.mtd=$ubifs_mtd root=ubi0:rootfs rootfstype=ubifs $mtdparts $ubifs_custom_params usb_boot=mw 0x800000 0 1; ext2load usb $usb_device 0x800000 /boot/uImage; if ext2load usb $usb_device 0x1100000 /boot/uInitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi usb_bootcmd=run usb_init; run usb_set_bootargs; run usb_boot usb_device=0:1 usb_init=run usb_scan usb_root=/dev/sda1 usb_rootdelay=10 usb_rootfstype=ext2 usb_scan=usb_scan_done=0;for scan in $usb_scan_list; do run usb_scan_$scan; if test $usb_scan_done -eq 0 && ext2load usb $usb 0x800000 /boot/uImage 1; then usb_scan_done=1; echo "Found bootable drive on usb $usb"; setenv usb_device $usb; setenv usb_root /dev/$dev; fi; done usb_scan_1=usb=0:1 dev=sda1 usb_scan_2=usb=1:1 dev=sdb1 usb_scan_3=usb=2:1 dev=sdc1 usb_scan_4=usb=3:1 dev=sdd1 usb_scan_list=1 2 3 4 usb_set_bootargs=setenv bootargs console=$console root=$usb_root rootdelay=$usb_rootdelay rootfstype=$usb_rootfstype $mtdparts $usb_custom_params Environment size: 2796/131068 bytes Pogov4>
Re: [Pogoplug Mobile/Series 4] Install uBoot/Debian May 31, 2014 01:06PM |
Admin Registered: 13 years ago Posts: 18,898 |
Loading file "/boot/uImage" from mmc device 0:1 (xxa1)and your usb_root is
usb_root=/dev/sda1
Re: [Pogoplug Mobile/Series 4] Install uBoot/Debian May 31, 2014 01:41PM |
Registered: 10 years ago Posts: 7 |
Re: [Pogoplug Mobile/Series 4] Install uBoot/Debian June 05, 2014 12:11PM |
Registered: 12 years ago Posts: 40 |
U-Boot 2011.12 (Apr 08 2012 - 19:03:41) Cloud Engines-Pogoplug v4/Mobile:MMC version arm-none-linux-gnueabi-gcc (Sourcery G++ Lite 2009q3-67) 4.4.1 GNU ld (Sourcery G++ Lite 2009q3-67) 2.19.51.20090709 Hit any key to stop autoboot: 0 (Re)start USB... USB: Register 10011 NbrPorts 1 USB EHCI 1.00 scanning bus for devices... 2 USB Device(s) found scanning bus for storage devices... 1 Storage Device(s) fo Loading file "/rescueme" from usb device 0:1 (usbda1) Failed to mount ext2 filesystem... ** Bad ext2 partition or disk - usb 0:1 ** reading /rescueme.txt ** Unable to read "/rescueme.txt" from usb 0:1 ** incorrect device type in data Partition data not found! Loading file "/boot/uImage" from usb device 0:1 (usbda1) Failed to mount ext2 filesystem... ** Bad ext2 partition or disk - usb 0:1 ** ** Block device usb 1 not supported ** Block device usb 2 not supported ** Block device usb 3 not supported Loading file "/boot/uImage" from usb device 0:1 (usbda1) Failed to mount ext2 filesystem... ** Bad ext2 partition or disk - usb 0:1 ** Loading file "/boot/uInitrd" from usb device 0:1 (usbda1) Failed to mount ext2 filesystem... ** Bad ext2 partition or disk - usb 0:1 ** Wrong Image Format for bootm command ERROR: can't get kernel image! stopping USB.. No MMC card found SDHC found. Card desciption is: Manufacturer: 0x03, OEM "SD" Product name: "SU16G", revision 8.0 Serial number: 454569302 Manufacturing date: 7/2012 CRC: 0x00, b0 = 0 mmc1 is available Loading file "/boot/uImage" from mmc device 0:1 (xxa1) ** File not found /boot/uImage Loading file "/boot/uInitrd" from mmc device 0:1 (xxa1) ** File not found /boot/uInitrd Wrong Image Format for bootm command ERROR: can't get kernel image! Pogov4>
rescue:~# fw_printenv ethact=egiga0 bootdelay=3 baudrate=115200 mainlineLinux=yes console=ttyS0,115200 led_init=green blinking led_exit=green off led_error=orange blinking mtdids=nand0=orion_nand partition=nand0,2 stdin=serial stdout=serial stderr=serial rescue_installed=0 rescue_set_bootargs=setenv bootargs console=$console ubi.mtd=2 root=ubi0:rootfs ro rootfstype=ubifs $mtdparts $rescue_custom_params rescue_bootcmd=if test $rescue_installed -eq 1; then run rescue_set_bootargs; nand read.e 0x800000 0x100000 0x400000; bootm 0x800000; else run pogo_bootcmd; fi pogo_bootcmd=if fsload uboot-original-mtd0.kwb; then go 0x800200; fi force_rescue=0 force_rescue_bootcmd=if test $force_rescue -eq 1 || ext2load usb 0:1 0x1700000 /rescueme 1 || fatload usb 0:1 0x1700000 /rescueme.txt 1; then run rescue_bootcmd; fi ubifs_mtd=3 ubifs_set_bootargs=setenv bootargs console=$console ubi.mtd=$ubifs_mtd root=ubi0:rootfs rootfstype=ubifs $mtdparts $ubifs_custom_params ubifs_bootcmd=run ubifs_set_bootargs; if ubi part data && ubifsmount rootfs && ubifsload 0x800000 /boot/uImage && ubifsload 0x1100000 /boot/uInitrd; then bootm 0x800000 0x1100000; fi usb_scan=usb_scan_done=0;for scan in $usb_scan_list; do run usb_scan_$scan; if test $usb_scan_done -eq 0 && ext2load usb $usb 0x800000 /boot/uImage 1; then usb_scan_done=1; echo "Found bootable drive on usb $usb"; setenv usb_device $usb; setenv usb_root /dev/$dev; fi; done usb_scan_list=1 2 3 4 usb_scan_1=usb=0:1 dev=sda1 usb_scan_2=usb=1:1 dev=sdb1 usb_scan_3=usb=2:1 dev=sdc1 usb_scan_4=usb=3:1 dev=sdd1 usb_init=run usb_scan usb_device=0:1 usb_root=/dev/sda1 usb_rootdelay=10 usb_set_bootargs=setenv bootargs console=$console root=$usb_root rootdelay=$usb_rootdelay rootfstype=$usb_rootfstype $mtdparts $usb_custom_params usb_bootcmd=run usb_init; run usb_set_bootargs; run usb_boot usb_boot=mw 0x800000 0 1; ext2load usb $usb_device 0x800000 /boot/uImage; if ext2load usb $usb_device 0x1100000 /boot/uInitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi mtdparts=mtdparts=orion_nand:2M(u-boot),3M(uImage),3M(uImage2),8M(failsafe),112M(root) serverip=192.168.145.10 ipaddr=192.168.145.200 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 machid=F78 bootcmd=usb start; run force_rescue_bootcmd; run ubifs_bootcmd; run usb_bootcmd; usb stop; run mmc_bootcmd mmc_bootcmd=mmc init; mmc init;ext2load mmc 0:1 0x00800000 /boot/uImage; if ext2load mmc 0:1 0x01100000 /boot/uInitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi ethaddr=00:25:31:03:xx:xx usb_rootfstype=ext3
Re: [Pogoplug Mobile/Series 4] Install uBoot/Debian June 05, 2014 12:44PM |
Registered: 14 years ago Posts: 406 |
Re: [Pogoplug Mobile/Series 4] Install uBoot/Debian June 05, 2014 12:55PM |
Admin Registered: 13 years ago Posts: 18,898 |
Loading file "/rescueme" from usb device 0:1 (usbda1) Failed to mount ext2 filesystem... ** Bad ext2 partition or disk - usb 0:1 **
Re: [Pogoplug Mobile/Series 4] Install uBoot/Debian June 05, 2014 12:58PM |
Admin Registered: 13 years ago Posts: 18,898 |
> auto ech0
Re: [Pogoplug Mobile/Series 4] Install uBoot/Debian June 05, 2014 01:17PM |
Registered: 10 years ago Posts: 34 |
usb_root=/dev/sda1