First try woes: Debian on the PogoPlug Pro May 21, 2017 04:51PM |
Registered: 8 years ago Posts: 162 |
Re: First try woes: Debian on the PogoPlug Pro May 22, 2017 12:49AM |
Admin Registered: 14 years ago Posts: 19,426 |
Re: First try woes: Debian on the PogoPlug Pro May 22, 2017 10:23AM |
Registered: 8 years ago Posts: 162 |
Quote
bodhi
Your u-boot envs are incomplete. So it means you have not installed the u-boot default envs image (u-boot installation always needs 2 images, the u-boot image and the u-boot default env image).
#setup fw_env.config for oxnas echo "/dev/mtd0 0x00100000 0x20000 0x20000">/etc/fw_env.config #save original envs /usr/local/cloudengines/bin/blparam > /blparam.txt #Download and flash new uBoot wget http://download.qnology.com/pogoplug/oxnas/uboot.2013.10-tld-4.ox820.bodhi.tar wget http://download.qnology.com/pogoplug/oxnas/uboot.2013.10-tld-4.ox820.bodhi.tar.md5 #check md5sum md5sum -c uboot.2013.10-tld-4.ox820.bodhi.tar.md5 #extract uBoot files tar -xf uboot.2013.10-tld-4.ox820.bodhi.tar #BE EXTRA CAREFUL WITH THE THESE COMMANDS. #NO TYPOS! CUT AND PASTE. #Erase and flash uboot on mtd0 #Flash encoded spl stage1 to 0x0 /tmp/flash_erase /dev/mtd0 0x0 6 /tmp/nandwrite /dev/mtd0 uboot.spl.2013.10.ox820.850mhz.mtd0.img #Flash uboot to 0x40000 /tmp/nandwrite -s 262144 /dev/mtd0 uboot.2013.10-tld-4.ox820.mtd0.img #Flash uboot environment #Erase 1 block starting 0x00100000 /tmp/flash_erase /dev/mtd0 0x00100000 1 /tmp/nandwrite -s 1048576 /dev/mtd0 pogopro_uboot_env.img #Set MAC Address /tmp/fw_setenv ethaddr "$(cat /sys/class/net/eth0/address)" #default to pogoplug classic dtb /tmp/fw_setenv fdt_file '/boot/dts/ox820-pogoplug-classic.dtb' /tmp/fw_setenv dt_load_dtb 'ext2load usb 0:1 $dtb_addr $fdt_file' #double check the MAC Address matches with #what is on the bottom of your Pogoplug /tmp/fw_printenv ethaddr #print out all uboot environment parameters #make sure there are no errors /tmp/fw_printenv > /fw_printenv.txt /tmp/fw_printenv Setup Netconsole More info here - http://forum.doozan.com/read.php?3,14,14 #Update IP Addresses as appropriate #ipaddr = Pogoplug IP /tmp/fw_setenv preboot 'run preboot_nc' /tmp/fw_setenv ipaddr '192.168.1.10' /tmp/fw_setenv serverip '192.168.1.100'
Re: First try woes: Debian on the PogoPlug Pro May 22, 2017 11:00AM |
Admin Registered: 14 years ago Posts: 19,426 |
/tmp/fw_printenv > /fw_printenv.txt /tmp/fw_printenv
Re: First try woes: Debian on the PogoPlug Pro May 22, 2017 11:51AM |
Registered: 8 years ago Posts: 162 |
#extract uBoot files tar -xf uboot.2013.10-tld-4.ox820.bodhi.tarwith
#extract uBoot files tar -xf uboot.2015.10-tld-1.ox820.bodhi.tar
#Flash uboot to 0x40000 /tmp/nandwrite -s 262144 /dev/mtd0 uboot.2013.10-tld-4.ox820.mtd0.imgwith
#Flash uboot to 0x40000 /tmp/nandwrite -s 262144 /dev/mtd0 uboot.2015.10-tld-1.ox820.mtd0.img
#Flash uboot environment #Erase 1 block starting 0x00100000 /tmp/flash_erase /dev/mtd0 0x00100000 1 /tmp/nandwrite -s 1048576 /dev/mtd0 pogopro_uboot_env.imgwith
#Flash uboot environment #Erase 1 block starting 0x00100000 /tmp/flash_erase /dev/mtd0 0x00100000 1 /tmp/nandwrite -s 1048576 /dev/mtd0 uboot.2013.10-tld-5.ox820.environment.img
#default to pogoplug classic dtb /tmp/fw_setenv fdt_file '/boot/dts/ox820-pogoplug-classic.dtb'with
#default to pogoplug pro dtb /tmp/fw_setenv fdt_file 'ox820-pogoplug-pro.dtb'
#extract tar -xvjf Debian-3.17.0-oxnas-tld-1-rootfs-bodhi.tar.bz2 #cleanup rm Debian-3.17.0-oxnas-tld-1-rootfs-bodhi.tar.bz2*with
tar -xvjf Debian-3.17.0-oxnas-tld-1-rootfs-bodhi.tar #cleanup rm Debian-3.17.0-oxnas-tld-1-rootfs-bodhi.tar*
ethtool -A eth0 rx off tx off
Re: First try woes: Debian on the PogoPlug Pro May 22, 2017 12:51PM |
Admin Registered: 14 years ago Posts: 19,426 |
Quote
I've uploaded the uboot.2015.10-tld-1 u-Boot image for Pogoplug V3 Oxnas.
Warning: netconsole does not start automatically in this version. If you don't have serial console and therefore need netconsole to see the boot progress, please use previous u-boot version (uboot.2013.10-tld-3.ox820.bodhi.tar - Updated 16 May 2014). And follow the instruction in that section.
uboot.2013.10-tld-4.ox820.mtd0.img
Re: First try woes: Debian on the PogoPlug Pro May 22, 2017 01:31PM |
Registered: 8 years ago Posts: 162 |
Quote
cdlenfert
and this one I'm guessing at since I have the pro model
#default to pogoplug classic dtb /tmp/fw_setenv fdt_file '/boot/dts/ox820-pogoplug-classic.dtb'
with
#default to pogoplug pro dtb /tmp/fw_setenv fdt_file 'ox820-pogoplug-pro.dtb'
Re: First try woes: Debian on the PogoPlug Pro May 22, 2017 01:42PM |
Admin Registered: 14 years ago Posts: 19,426 |
> #default to pogoplug pro dtb > /tmp/fw_setenv fdt_file 'ox820-pogoplug-pro.dtb' >
Re: First try woes: Debian on the PogoPlug Pro May 23, 2017 10:45AM |
Registered: 8 years ago Posts: 162 |
U-Boot SPL 2013.10-tld-4 (Sep 07 2014 - 14:10:12) Boot device: NAND Attempting to set PLLA to 850 MHz ... plla_ctrl0 : 0000020a plla_ctrl1 : 00330000 plla_ctrl2 : 0065008b plla_ctrl3 : 000000f1 PLLA Set U-Boot 2013.10-tld-4 (Sep 08 2014 - 19:43:38) for OXNAS DRAM: 128 MiB NAND: 128 MiB In: serial Out: serial Err: serial Net: Led: GREEN mii0 Main Loop ## Error: "preboot_nc" not defined Hit any key to stop autoboot: 0 Waiting for PHY auto negotiation to complete... done ENET Speed is 1000 Mbps - FULL duplex connection BOOTP broadcast 1 DHCP client bound to address 192.168.2.4 *** Warning: no boot file name; using 'C0A80204.img' Using mii0 device TFTP from server 192.168.2.1; our IP address is 192.168.2.4 Filename 'C0A80204.img'. Load address: 0x60000000 Loading: T T T T
Retry count exceeded; starting again BOOTP broadcast 1 DHCP client bound to address 192.168.2.4 *** Warning: no boot file name; using 'C0A80204.img' Using mii0 device TFTP from server 192.168.2.1; our IP address is 192.168.2.4 Filename 'C0A80204.img'. Load address: 0x60000000 Loading: T T T T T T T T T
? - alias for 'help' askenv - get environment variables from stdin base - print or set address offset bdinfo - print Board Info structure boot - boot default, i.e., run 'bootcmd' bootd - boot default, i.e., run 'bootcmd' bootelf - Boot from an ELF image in memory bootm - boot application image from memory bootmenu- ANSI terminal bootmenu bootp - boot image via network using BOOTP/TFTP protocol bootvx - Boot vxWorks from an ELF image bootz - boot Linux zImage image from memory chpart - change active partition cmp - memory compare coninfo - print console devices and information cp - memory copy crc32 - checksum calculation date - get/set/reset date & time dhcp - boot image via network using DHCP/TFTP protocol diskboot- boot from IDE device dns - lookup the IP of a hostname echo - echo args to console editenv - edit environment variable env - environment handling commands exit - exit script ext2load- load binary file from a Ext2 filesystem ext2ls - list files in a directory (default /) ext4load- load binary file from a Ext4 filesystem ext4ls - list files in a directory (default /) ext4write- create a file in the root directory false - do nothing, unsuccessfully fatinfo - print information about filesystem fatload - load binary file from a dos filesystem fatls - list files in a directory (default /) fatwrite- write file into a dos filesystem fdt - flattened device tree utility commands fsls - list files in a directory (default /) gettime - get timer val elapsed, go - start application at address 'addr' grepenv - search environment variables hash - compute hash message digest help - print command description/usage ide - IDE sub-system iminfo - print header information for application image imxtract- extract a part of a multi-image ini - parse an ini file in memory and merge the specified section into the env itest - return true/false on integer compare load - load binary file from a filesystem loadb - load binary file over serial line (kermit mode) loads - load S-Record file over serial line loadx - load binary file over serial line (xmodem mode) loady - load binary file over serial line (ymodem mode) loop - infinite loop on address range md - memory display md5sum - compute MD5 message digest mdio - MDIO utility commands mii - MII utility commands mm - memory modify (auto-incrementing address) mtdparts- define flash/nand partitions mw - memory write (fill) nand - NAND sub-system nboot - boot from NAND device nfs - boot image via network using NFS protocol nm - memory modify (constant address) ping - send ICMP ECHO_REQUEST to network host printenv- print environment variables pxe - commands to get and boot from pxe files reset - Perform RESET of the CPU run - run commands in an environment variable saveenv - save environment variables to persistent storage setenv - set environment variables setexpr - set environment variable as the result of eval expression showvar - print local hushshell variables sleep - delay execution for some time sntp - synchronize RTC via network source - run script from memory sysboot - command to get and boot from syslinux files terminal- start terminal emulator test - minimal test like /bin/sh tftpboot- boot image via network using TFTP protocol time - run commands and summarize execution time true - do nothing, successfully ubi - ubi commands ubifsload- load file from an UBIFS filesystem ubifsls - list files in a directory ubifsmount- mount UBIFS volume ubifsumount- unmount UBIFS volume unzip - unzip a memory region usb - USB sub-system usbboot - boot from USB device version - print monitor, compiler and linker version zip - zip a memory region OX820> usb usb - USB sub-system
Re: First try woes: Debian on the PogoPlug Pro May 23, 2017 11:00AM |
Registered: 8 years ago Posts: 162 |
OX820> usb start (Re)start USB... USB0: USB EHCI 1.00 scanning bus 0 for devices... 3 USB Device(s) found scanning usb for storage devices... 1 Storage Device(s) found OX820> usb dev USB device 0: Vendor: Verbatim Rev: Prod: Store n Go Drive Type: Removable Hard Disk Capacity: 3750.0 MB = 3.6 GB (7680000 x 512)
Re: First try woes: Debian on the PogoPlug Pro May 23, 2017 01:24PM |
Admin Registered: 14 years ago Posts: 19,426 |
Re: First try woes: Debian on the PogoPlug Pro May 23, 2017 01:52PM |
Registered: 8 years ago Posts: 162 |
/tmp/flash_erase /dev/mtd0 0x0 6 /tmp/nandwrite /dev/mtd0 uboot.spl.2013.10.ox820.850mhz.mtd0.img /tmp/nandwrite -s 262144 /dev/mtd0 uboot.2013.10-tld-4.ox820.mtd0.img /tmp/flash_erase /dev/mtd0 0x00100000 1 /tmp/nandwrite -s 1048576 /dev/mtd0 pogopro_uboot_env.img
[root@PogoplugPro /tmp]# /tmp/flash_erase /dev/mtd0 0x0 6 Erasing 128 Kibyte @ a0000 -- 100 % complete [root@PogoplugPro /tmp]# /tmp/nandwrite /dev/mtd0 uboot.spl.2013.10.ox820.850mhz.mtd0.img Writing data to block 0 at offset 0x0 [root@PogoplugPro /tmp]# /tmp/nandwrite -s 262144 /dev/mtd0 uboot.2013.10-tld-4.ox820.mtd0.img Writing data to block 2 at offset 0x40000 Writing data to block 3 at offset 0x60000 Writing data to block 4 at offset 0x80000 Writing data to block 5 at offset 0xa0000 [root@PogoplugPro /tmp]# /tmp/flash_erase /dev/mtd0 0x00100000 1 Erasing 128 Kibyte @ 100000 -- 100 % complete [root@PogoplugPro /tmp]# /tmp/nandwrite -s 1048576 /dev/mtd0 pogopro_uboot_env.img Writing data to block 8 at offset 0x100000
[root@PogoplugPro /root]# /tmp/fw_printenv bootcmd=bootp; setenv bootargs root=/dev/nfs nfsroot=${serverip}:${rootpath} ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}::off; bootm bootdelay=5 baudrate=115200 ethaddr=00:25:31:00:f7:fd fdt_file=/boot/dts/ox820-pogoplug-classic.dtb dt_load_dtb=ext2load usb 0:1 $dtb_addr $fdt_file
Re: First try woes: Debian on the PogoPlug Pro May 24, 2017 02:38AM |
Admin Registered: 14 years ago Posts: 19,426 |
> /tmp/flash_erase /dev/mtd0 0x0 6 > /tmp/nandwrite /dev/mtd0 uboot.spl.2013.10.ox820.8 > 50mhz.mtd0.img > /tmp/nandwrite -s 262144 /dev/mtd0 uboot.2013.10-t > ld-4.ox820.mtd0.img > /tmp/flash_erase /dev/mtd0 0x00100000 1 > /tmp/nandwrite -s 1048576 /dev/mtd0 pogopro_uboot_ > env.img >>
> [root@PogoplugPro /tmp]# /tmp/flash_erase /dev/mtd > 0 0x0 6 > Erasing 128 Kibyte @ a0000 -- 100 % complete > [root@PogoplugPro /tmp]# /tmp/nandwrite /dev/mtd0 > uboot.spl.2013.10.ox820.850mhz.mtd0.img > Writing data to block 0 at offset 0x0 > [root@PogoplugPro /tmp]# /tmp/nandwrite -s 262144 > /dev/mtd0 uboot.2013.10-tld-4.ox820.mtd0.img > Writing data to block 2 at offset 0x40000 > Writing data to block 3 at offset 0x60000 > Writing data to block 4 at offset 0x80000 > Writing data to block 5 at offset 0xa0000 > [root@PogoplugPro /tmp]# /tmp/flash_erase /dev/mtd > 0 0x00100000 1 > Erasing 128 Kibyte @ 100000 -- 100 % complete > [root@PogoplugPro /tmp]# /tmp/nandwrite -s 1048576 > /dev/mtd0 pogopro_uboot_env.img > Writing data to block 8 at offset 0x100000 >>
> [root@PogoplugPro /root]# /tmp/fw_printenv > bootcmd=bootp; setenv bootargs root=/dev/nfs nfsro > ot=${serverip}:${rootpath} ip=${ipaddr}:${serverip > }:${gatewayip}:${netmask}:${hostname}::off; bootm > bootdelay=5 > baudrate=115200 > ethaddr=00:25:31:00:f7:fd > fdt_file=/boot/dts/ox820-pogoplug-classic.dtb > dt_load_dtb=ext2load usb 0:1 $dtb_addr $fdt_file >>
cat /etc/fw_env.config cat /proc/mtd
Re: First try woes: Debian on the PogoPlug Pro May 24, 2017 07:16AM |
Registered: 8 years ago Posts: 162 |
Re: First try woes: Debian on the PogoPlug Pro May 24, 2017 10:08AM |
Registered: 8 years ago Posts: 162 |
baudrate=115200 bootcmd=bootp; setenv bootargs root=/dev/nfs nfsroot=${serverip}:${rootpath} ip=${ipaddr}:${serm bootdelay=5 dt_load_dtb=ext2load usb 0:1 $dtb_addr $fdt_file ethact=mii0 ethaddr=00:25:31:00:f7:fd fdt_file=/boot/dts/ox820-pogoplug-classic.dtb ipaddr=192.168.0.54 preboot=run preboot_nc serverip=192.168.0.32 stderr=serial stdin=serial stdout=serial Environment size: 444/131068 bytes
autoload=no baudrate=115200 bootargs=console=ttyS0,115200n8 bootdelay=10 console=console=ttyS0,115200n8 ethact=mii0 ethaddr=5e:2b:15:71:ec:b6 ipaddr=192.168.0.222 mtdids=nand0=41000000.nand mtdparts=mtdparts=41000000.nand:14m(boot),-(data) serverip=192.168.0.220 stderr=serial stdin=serial stdout=serial usb_device=0:1 if_netconsole=ping $serverip preboot_nc=run if_netconsole start_netconsole start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version usb_set_bootargs=setenv bootargs console=ttyS0,115200 root=/dev/sda1 rootdelay=10 uinitrd_addr=0x60e00000 uimage_addr=0x60500000 dtb_addr=0x62c00000 dt_load_dtb=ext2load usb 0:1 $dtb_addr /boot/dts/ox820-pogoplug-pro.dtb dt_load_initrd=ext2load usb 0:1 $uinitrd_addr /boot/uInitrd dt_load_uimage=ext2load usb 0:1 $uimage_addr /boot/uImage dt_bootm=bootm $uimage_addr $uinitrd_addr $dtb_addr dt_usb_boot=run dt_load_uimage; run dt_load_initrd; run dt_load_dtb; run dt_bootm dt_usb_bootcmd=run usb_set_bootargs; run dt_usb_boot dt_bootcmd_usb=usb start; run dt_usb_bootcmd; usb stop; reset bootcmd=run dt_bootcmd_usb
Re: First try woes: Debian on the PogoPlug Pro May 24, 2017 12:24PM |
Admin Registered: 14 years ago Posts: 19,426 |
[root@PogoplugPro /root]# /tmp/fw_printenv
cat /etc/fw_env.config cat /proc/mtd
Re: First try woes: Debian on the PogoPlug Pro May 24, 2017 01:25PM |
Registered: 8 years ago Posts: 162 |
OX820> /tmp/fw_printenv Unknown command '/tmp/fw_printenv' - try 'help'
Re: First try woes: Debian on the PogoPlug Pro May 25, 2017 12:42AM |
Admin Registered: 14 years ago Posts: 19,426 |
> baudrate=115200 > bootcmd=bootp; setenv bootargs root=/dev/nfs nfsro > ot=${serverip}:${rootpath} ip=${ipaddr}:${serm > bootdelay=5 > dt_load_dtb=ext2load usb 0:1 $dtb_addr $fdt_file > ethact=mii0 > ethaddr=00:25:31:00:f7:fd > fdt_file=/boot/dts/ox820-pogoplug-classic.dtb > ipaddr=192.168.0.54 > preboot=run preboot_nc > serverip=192.168.0.32 > stderr=serial > stdin=serial > stdout=serial > > Environment size: 444/131068 bytes >>
> autoload=no > baudrate=115200 > bootargs=console=ttyS0,115200n8 > bootdelay=10 > console=console=ttyS0,115200n8 > ethact=mii0 > ethaddr=5e:2b:15:71:ec:b6 > ipaddr=192.168.0.222 > mtdids=nand0=41000000.nand > mtdparts=mtdparts=41000000.nand:14m(boot),-(data) > serverip=192.168.0.220 > stderr=serial > stdin=serial > stdout=serial > usb_device=0:1 > if_netconsole=ping $serverip > preboot_nc=run if_netconsole start_netconsole > start_netconsole=setenv ncip $serverip; setenv boo > tdelay 10; setenv stdin nc; setenv stdout nc; sete > nv stderr nc; version > usb_set_bootargs=setenv bootargs console=ttyS0,115 > 200 root=/dev/sda1 rootdelay=10 > uinitrd_addr=0x60e00000 > uimage_addr=0x60500000 > dtb_addr=0x62c00000 > dt_load_dtb=ext2load usb 0:1 $dtb_addr /boot/dts/o > x820-pogoplug-pro.dtb > dt_load_initrd=ext2load usb 0:1 $uinitrd_addr /boo > t/uInitrd > dt_load_uimage=ext2load usb 0:1 $uimage_addr /boot > /uImage > dt_bootm=bootm $uimage_addr $uinitrd_addr $dtb_add > r > dt_usb_boot=run dt_load_uimage; run dt_load_initrd > ; run dt_load_dtb; run dt_bootm > dt_usb_bootcmd=run usb_set_bootargs; run dt_usb_bo > ot > dt_bootcmd_usb=usb start; run dt_usb_bootcmd; usb > stop; reset > bootcmd=run dt_bootcmd_usb >
autoload=no baudrate=115200 bootargs=console=ttyS0,115200n8 bootdelay=10 console=console=ttyS0,115200n8 ethact=mii0 ethaddr=5e:2b:15:71:ec:b6 ipaddr=192.168.0.222 mtdids=nand0=41000000.nand mtdparts=mtdparts=41000000.nand:14m(boot),-(data) serverip=192.168.0.220 stderr=serial stdin=serial stdout=serial usb_device=0:1 if_netconsole=ping $serverip preboot_nc=run if_netconsole start_netconsole start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version usb_set_bootargs=setenv bootargs console=ttyS0,115200 root=/dev/sda1 rootdelay=10 uinitrd_addr=0x60e00000 uimage_addr=0x60500000 dtb_addr=0x62c00000 dt_load_dtb=ext2load usb 0:1 $dtb_addr /boot/dts/ox820-pogoplug-pro.dtb dt_load_initrd=ext2load usb 0:1 $uinitrd_addr /boot/uInitrd dt_load_uimage=ext2load usb 0:1 $uimage_addr /boot/uImage dt_bootm=bootm $uimage_addr $uinitrd_addr $dtb_addr dt_usb_boot=run dt_load_uimage; run dt_load_initrd; run dt_load_dtb; run dt_bootm dt_usb_bootcmd=run usb_set_bootargs; run dt_usb_boot dt_bootcmd_usb=usb start; run dt_usb_bootcmd; usb stop; reset bootcmd=run dt_bootcmd_usb
setenv bootcmd 'run dt_bootcmd_usb' setenv mtdparts 'mtdparts=41000000.nand:14m(boot),-(data)'
Re: First try woes: Debian on the PogoPlug Pro May 25, 2017 11:07AM |
Registered: 8 years ago Posts: 162 |
##**NewEnvs**## autoload=no baudrate=115200 bootargs=console=ttyS0,115200n8 bootcmd=run dt_bootcmd_usb bootdelay=5 console=console=ttyS0,115200n8 dt_bootcmd_usb=usb start; run dt_usb_bootcmd; usb stop; reset dt_load_dtb=ext2load usb 0:1 $dtb_addr /boot/dts/ox820-pogoplug-pro.dtb dt_usb_boot=run dt_load_uimage; run dt_load_initrd; run dt_load_dtb; run dt_bootm dt_usb_bootcmd=run usb_set_bootargs; run dt_usb_boot dtb_addr=0x62c00000 ethact=mii0 ethaddr=00:25:31:00:f7:fd fdt_file=/boot/dts/ox820-pogoplug-classic.dtb if_netconsole=ping $serverip ipaddr=192.168.0.54 mtdids=nand0=41000000.nand mtdparts=mtdparts=41000000.nand:14m(boot),-(data) preboot=run preboot_nc preboot_nc=run if_netconsole start_netconsole serverip=192.168.0.32 start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc;n stderr=serial stdin=serial stdout=serial uimage_addr=0x60500000 uinitrd_addr=0x60e00000 usb_device=0:1 usb_set_bootargs=setenv bootargs console=ttyS0,115200 root=/dev/sda1 rootdelay=10 Environment size: 1086/131068 bytes ##***Boot Log**## resetting ... U-Boot SPL 2013.10-tld-4 (Sep 07 2014 - 14:10:12) Boot device: NAND Attempting to set PLLA to 850 MHz ... plla_ctrl0 : 0000020a plla_ctrl1 : 00330000 plla_ctrl2 : 0065008b plla_ctrl3 : 000000f1 PLLA Set U-Boot 2013.10-tld-4 (Sep 08 2014 - 19:43:38) for OXNAS DRAM: 128 MiB NAND: 128 MiB In: serial Out: serial Err: serial Net: Led: GREEN mii0 Main Loop ## Error: "preboot_nc" not defined Hit any key to stop autoboot: 0 Waiting for PHY auto negotiation to complete... done ENET Speed is 1000 Mbps - FULL duplex connection BOOTP broadcast 1 DHCP client bound to address 192.168.2.4 *** Warning: no boot file name; using 'C0A80204.img' Using mii0 device TFTP from server 192.168.2.1; our IP address is 192.168.2.4 Filename 'C0A80204.img'. Load address: 0x60000000 Loading: T T T T T T T T T T Retry count exceeded; starting again BOOTP broadcast 1 DHCP client bound to address 192.168.2.4 *** Warning: no boot file name; using 'C0A80204.img' Using mii0 device TFTP from server 192.168.2.1; our IP address is 192.168.2.4 Filename 'C0A80204.img'. Load address: 0x60000000 Loading: T Abort Led: ORANGE (Failed) Wrong Image Format for bootm command Led: ORANGE (Failed) ERROR: can't get kernel image!
Re: First try woes: Debian on the PogoPlug Pro May 25, 2017 12:12PM |
Admin Registered: 14 years ago Posts: 19,426 |
ssh root@debian.local
Re: First try woes: Debian on the PogoPlug Pro May 25, 2017 06:16PM |
Registered: 8 years ago Posts: 162 |
Re: First try woes: Debian on the PogoPlug Pro May 25, 2017 09:53PM |
Admin Registered: 14 years ago Posts: 19,426 |
Re: First try woes: Debian on the PogoPlug Pro August 11, 2017 12:31PM |
Registered: 8 years ago Posts: 162 |
## Checked my hardware info [root@PogoplugPro /root]# cat /proc/cpuinfo | grep Hardware Hardware : Oxsemi NAS ## Downloaded all of the required binaries (made executable) and uBoot image [root@PogoplugPro /tmp]# ls current_envs.txt flash_erase fw_env.config fw_printenv fw_setenv hbplug.log index.html nanddump nandwrite resolv.conf uboot.2013.10-tld-5.ox820.environment uboot.2013.10-tld-5.ox820.environment.img uboot.2015.10-tld-1.ox820.bodhi.tar uboot.2015.10-tld-1.ox820.mtd0.img uboot.spl.2013.10.ox820.850mhz.mtd0.img var ## Original envs [root@PogoplugPro /tmp]# cat /blparam.txt bootcmd=run boot_nand bootdelay=2 baudrate=115200 autoload=n netmask=255.255.0.0 bootfile="uImage" kernflmode=s load_nand=nboot 60500000 0 200000 load_nand2=nboot 60500000 0 800000 boot=bootm 60500000 boot_nand=run load_nand boot || run load_nand2 boot stdin=serial stdout=serial stderr=serial bootargs=root=ubi0:rootfs ubi.mtd=2,512 rootfstype=ubifs console=ttyS0,115200 elevator=cfq mac_adr=0x00,0x30,0xe0,0x00,0x00,0x01 mem=128M poweroutage=yes ethaddr=00:25:31:00:F3:4D cesvcid=P38LFT6AXYZMS7LZZ6LY5RAXKS ceboardver=PPRO1 serverip=192.168.33.2 ipaddr=192.168.33.195 ## Result of nand bad block scan [root@PogoplugPro /tmp]# dmesg | grep -i 'bad' <6>[ 5.230000] Scanning device for bad blocks <4>[ 5.270000] Bad eraseblock 434 at 0x000003640000 <5>[ 5.790000] UBI: number of bad PEBs: 1 <5>[ 5.820000] UBI: number of PEBs reserved for bad PEB handling: 9 ## Flashing steps [root@PogoplugPro /tmp]# /usr/sbin/flash_erase /dev/mtd0 0x0 6 Erase Total 6 Units Performing Flash Erase of length 131072 at offset 0xa0000 done [root@PogoplugPro /tmp]# /usr/sbin/nandwrite /dev/mtd0 uboot.spl.2013.10.ox820.850mhz.mtd0.img Writing data to block 0 at offset 0x0 [root@PogoplugPro /tmp]# /usr/sbin/nandwrite -s 262144 /dev/mtd0 uboot.2015.10-tld-1.ox820.mtd0.img Writing data to block 2 at offset 0x40000 Writing data to block 3 at offset 0x60000 Writing data to block 4 at offset 0x80000 Writing data to block 5 at offset 0xa0000 [root@PogoplugPro /tmp]# /usr/sbin/flash_erase /dev/mtd0 0x00100000 1 Erase Total 1 Units Performing Flash Erase of length 131072 at offset 0x100000 done [root@PogoplugPro /tmp]# /usr/sbin/nandwrite -s 1048576 /dev/mtd0 uboot.2013.10-tld-5.ox820.environment.img Writing data to block 8 at offset 0x100000 ## Result of fw_printenv (note: ethaddr and fdt_file are only there because I manually set them [[root@PogoplugPro /tmp]# /tmp/fw_printenv bootcmd=bootp; setenv bootargs root=/dev/nfs nfsroot=${serverip}:${rootpath} ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}::off; bootm bootdelay=5 baudrate=115200 ethaddr=00:25:31:00:f3:4d fdt_file=ox820-pogoplug-pro.dtb ## Result of cat /proc/mtd - it was my understanding that this did not need to be changed [root@PogoplugPro /tmp]# cat /proc/mad dev: size erasesize name mtd0: 08000000 00020000 "NAND 128MiB 3,3V 8-bit" mtd1: 00e00000 00020000 "boot" mtd2: 07200000 00020000 "rootfs"
autoload=no baudrate=115200 bootargs=console=ttyS0,115200n8 bootdelay=10 console=console=ttyS0,115200n8 ethact=mii0 ethaddr=00:25:31:00:F3:4D ipaddr=192.168.0.222 mtdids=nand0=41000000.nand mtdparts=mtdparts=41000000.nand:14m(boot),-(data) serverip=192.168.0.220 stderr=serial stdin=serial stdout=serial usb_device=0:1 if_netconsole=ping $serverip preboot_nc=run if_netconsole start_netconsole start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version usb_set_bootargs=setenv bootargs console=ttyS0,115200 root=/dev/sda1 rootdelay=10 uinitrd_addr=0x60e00000 uimage_addr=0x60500000 dtb_addr=0x62c00000 dt_load_dtb=ext2load usb 0:1 $dtb_addr /boot/dts/ox820-pogoplug-pro.dtb dt_load_initrd=ext2load usb 0:1 $uinitrd_addr /boot/uInitrd dt_load_uimage=ext2load usb 0:1 $uimage_addr /boot/uImage dt_bootm=bootm $uimage_addr $uinitrd_addr $dtb_addr dt_usb_boot=run dt_load_uimage; run dt_load_initrd; run dt_load_dtb; run dt_bootm dt_usb_bootcmd=run usb_set_bootargs; run dt_usb_boot dt_bootcmd_usb=usb start; run dt_usb_bootcmd; usb stop; reset bootcmd=run dt_bootcmd_usb
Re: First try woes: Debian on the PogoPlug Pro August 11, 2017 04:49PM |
Admin Registered: 14 years ago Posts: 19,426 |
## Flashing steps [root@PogoplugPro /tmp]# /usr/sbin/flash_erase /dev/mtd0 0x0 6 Erase Total 6 Units Performing Flash Erase of length 131072 at offset 0xa0000 done [root@PogoplugPro /tmp]# /usr/sbin/nandwrite /dev/mtd0 uboot.spl.2013.10.ox820.850mhz.mtd0.img Writing data to block 0 at offset 0x0 [root@PogoplugPro /tmp]# /usr/sbin/nandwrite -s 262144 /dev/mtd0 uboot.2015.10-tld-1.ox820.mtd0.img Writing data to block 2 at offset 0x40000 Writing data to block 3 at offset 0x60000 Writing data to block 4 at offset 0x80000 Writing data to block 5 at offset 0xa0000 [root@PogoplugPro /tmp]# /usr/sbin/flash_erase /dev/mtd0 0x00100000 1 Erase Total 1 Units Performing Flash Erase of length 131072 at offset 0x100000 done [root@PogoplugPro /tmp]# /usr/sbin/nandwrite -s 1048576 /dev/mtd0 uboot.2013.10-tld-5.ox820.environment.img Writing data to block 8 at offset 0x100000
Quote
Updated 02 Aug 2017:
Rootfs Debian-4.4.54-oxnas-tld-1-rootfs-bodhi.tar.bz2 was uploaded.
Basic Debian stretch Oxnas rootfs for Popo Pro/Classic V3 plug:
Quote
4. Create uImage with embedded DTB for booting with stock u-boot. Skip this step if you have installed the latest released uboot for OXNAS, or are installing this u-boot at the same time.
Re: First try woes: Debian on the PogoPlug Pro August 11, 2017 05:30PM |
Registered: 8 years ago Posts: 162 |
## Result of fw_printenv (note: ethaddr and fdt_file are only there because I manually set them [[root@PogoplugPro /tmp]# /tmp/fw_printenv bootcmd=bootp; setenv bootargs root=/dev/nfs nfsroot=${serverip}:${rootpath} ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}::off; bootm bootdelay=5 baudrate=115200 ethaddr=00:25:31:00:f3:4d fdt_file=ox820-pogoplug-pro.dtb
autoload=no baudrate=115200 bootargs=console=ttyS0,115200n8 bootdelay=10 console=console=ttyS0,115200n8 ethact=mii0 ethaddr=00:25:31:00:F3:4D ipaddr=192.168.0.222 mtdids=nand0=41000000.nand mtdparts=mtdparts=41000000.nand:14m(boot),-(data) serverip=192.168.0.220 stderr=serial stdin=serial stdout=serial usb_device=0:1 if_netconsole=ping $serverip preboot_nc=run if_netconsole start_netconsole start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version usb_set_bootargs=setenv bootargs console=ttyS0,115200 root=/dev/sda1 rootdelay=10 uinitrd_addr=0x60e00000 uimage_addr=0x60500000 dtb_addr=0x62c00000 dt_load_dtb=ext2load usb 0:1 $dtb_addr /boot/dts/ox820-pogoplug-pro.dtb dt_load_initrd=ext2load usb 0:1 $uinitrd_addr /boot/uInitrd dt_load_uimage=ext2load usb 0:1 $uimage_addr /boot/uImage dt_bootm=bootm $uimage_addr $uinitrd_addr $dtb_addr dt_usb_boot=run dt_load_uimage; run dt_load_initrd; run dt_load_dtb; run dt_bootm dt_usb_bootcmd=run usb_set_bootargs; run dt_usb_boot dt_bootcmd_usb=usb start; run dt_usb_bootcmd; usb stop; reset bootcmd=run dt_bootcmd_usb
Re: First try woes: Debian on the PogoPlug Pro August 11, 2017 11:59PM |
Registered: 8 years ago Posts: 162 |
root@DebianPlugPro:~# fdisk -l Device Boot Start End Blocks Id System /dev/sdc1 2 15265791 7632895 b W95 FAT32 root@DebianPlugPro:~# mkfs.ext4 -L "EMTEC8GB" /dev/sdc1 mke2fs 1.42.5 (29-Jul-2012) Filesystem label=EMTEC8GB OS type: Linux Block size=4096 (log=2) Fragment size=4096 (log=2) Stride=0 blocks, Stripe width=0 blocks 477664 inodes, 1908223 blocks 95411 blocks (5.00%) reserved for the super user First data block=0 Maximum filesystem blocks=1954545664 59 block groups 32768 blocks per group, 32768 fragments per group 8096 inodes per group Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632 Allocating group tables: done Writing inode tables: done Creating journal (32768 blocks): done Writing superblocks and filesystem accounting information: done root@DebianPlugPro:~# fdisk /dev/sdc Command (m for help): m Command action a toggle a bootable flag b edit bsd disklabel c toggle the dos compatibility flag d delete a partition l list known partition types m print this menu n add a new partition o create a new empty DOS partition table p print the partition table q quit without saving changes s create a new empty Sun disklabel t change a partition's system id u change display/entry units v verify the partition table w write table to disk and exit x extra functionality (experts only) Command (m for help): p Disk /dev/sdc: 7816 MB, 7816085504 bytes 255 heads, 63 sectors/track, 950 cylinders, total 15265792 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 Disk identifier: 0x00000000 Device Boot Start End Blocks Id System /dev/sdc1 2 15265791 7632895 b W95 FAT32 Command (m for help): i i: unknown command 0 Empty 24 NEC DOS 81 Minix / old Lin bf Solaris 1 FAT12 27 Hidden NTFS Win 82 Linux swap / So c1 DRDOS/sec (FAT- 2 XENIX root 39 Plan 9 83 Linux c4 DRDOS/sec (FAT- 3 XENIX usr 3c PartitionMagic 84 OS/2 hidden C: c6 DRDOS/sec (FAT- 4 FAT16 <32M 40 Venix 80286 85 Linux extended c7 Syrinx 5 Extended 41 PPC PReP Boot 86 NTFS volume set da Non-FS data 6 FAT16 42 SFS 87 NTFS volume set db CP/M / CTOS / . 7 HPFS/NTFS/exFAT 4d QNX4.x 88 Linux plaintext de Dell Utility 8 AIX 4e QNX4.x 2nd part 8e Linux LVM df BootIt 9 AIX bootable 4f QNX4.x 3rd part 93 Amoeba e1 DOS access a OS/2 Boot Manag 50 OnTrack DM 94 Amoeba BBT e3 DOS R/O b W95 FAT32 51 OnTrack DM6 Aux 9f BSD/OS e4 SpeedStor c W95 FAT32 (LBA) 52 CP/M a0 IBM Thinkpad hi eb BeOS fs e W95 FAT16 (LBA) 53 OnTrack DM6 Aux a5 FreeBSD ee GPT f W95 Ext'd (LBA) 54 OnTrackDM6 a6 OpenBSD ef EFI (FAT-12/16/ 10 OPUS 55 EZ-Drive a7 NeXTSTEP f0 Linux/PA-RISC b 11 Hidden FAT12 56 Golden Bow a8 Darwin UFS f1 SpeedStor 12 Compaq diagnost 5c Priam Edisk a9 NetBSD f4 SpeedStor 14 Hidden FAT16 <3 61 SpeedStor ab Darwin boot f2 DOS secondary 16 Hidden FAT16 63 GNU HURD or Sys af HFS / HFS+ fb VMware VMFS 17 Hidden HPFS/NTF 64 Novell Netware b7 BSDI fs fc VMware VMKCORE 18 AST SmartSleep 65 Novell Netware b8 BSDI swap fd Linux raid auto 1b Hidden W95 FAT3 70 DiskSecure Mult bb Boot Wizard hid fe LANstep 1c Hidden W95 FAT3 75 PC/IX be Solaris boot ff BBT 1e Hidden W95 FAT1 80 Old Minix Command (m for help): t Selected partition 1 Hex code (type L to list codes): 83 Changed system type of partition 1 to 83 (Linux) Command (m for help): w The partition table has been altered! Calling ioctl() to re-read partition table. WARNING: If you have created or modified any DOS 6.x partitions, please see the fdisk manual page for additional information. Syncing disks. root@DebianPlugPro:~# fdisk -l /dev/sdc Disk /dev/sdc: 7816 MB, 7816085504 bytes 255 heads, 63 sectors/track, 950 cylinders, total 15265792 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 Disk identifier: 0x00000000 Device Boot Start End Blocks Id System /dev/sdc1 2 15265791 7632895 83 Linux root@DebianPlugPro:/# df -h Filesystem Size Used Avail Use% Mounted on rootfs 3.6G 1.4G 2.0G 42% / udev 10M 0 10M 0% /dev tmpfs 12M 488K 12M 5% /run /dev/sda1 3.6G 1.4G 2.0G 42% / tmpfs 5.0M 0 5.0M 0% /run/lock tmpfs 24M 4.0K 24M 1% /run/shm tmpfs 60M 0 60M 0% /tmp /dev/sdb1 473M 424M 20M 96% /media/usb0 /dev/sdc1 7.1G 17M 6.7G 1% /media/usb1 root@DebianPlugPro:/# cd /media/usb1 root@DebianPlugPro:/media/usb1# wget http://domain.com/pogo/bodhi-pro-debian/uboot.2015.10-tld-1.ox820.bodhi.tar --2017-08-11 20:46:17-- http://www.domain.com/pogo/bodhi-pro-debian/uboot.2015.10-tld-1.ox820.bodhi.tar Resolving www.domain.com (www.domani.com)... ipaddress-here Connecting to www.domain.com (www.domain.com)|ipaddress-here|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 798720 (780K) [application/x-tar] Saving to: `uboot.2015.10-tld-1.ox820.bodhi.tar' 100%[======================================>] 798,720 71.5K/s in 11s 2017-08-11 20:46:29 (70.8 KB/s) - `uboot.2015.10-tld-1.ox820.bodhi.tar' saved [798720/798720] root@DebianPlugPro:/media/usb1# rm uboot.2015.10-tld-1.ox820.bodhi.tar root@DebianPlugPro:/media/usb1# wget http://domain.com/pogo/bodhi-pro-debian/linux-4.4.79-oxnas-tld-1.bodhi.tar.bz2 --2017-08-11 20:47:31-- http://domain.com/pogo/bodhi-pro-debian/linux-4.4.79-oxnas-tld-1.bodhi.tar.bz2 Resolving www.domain.com (www.domain.com)... ipaddress-here Connecting to www.domain.com (wwwdomain.com)ipaddress-here|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 23672134 (23M) [application/x-bzip2] Saving to: `linux-4.4.79-oxnas-tld-1.bodhi.tar.bz2' 100%[======================================>] 23,672,134 66.4K/s in 6m 3s 2017-08-11 20:53:35 (63.6 KB/s) - `linux-4.4.79-oxnas-tld-1.bodhi.tar.bz2' saved [23672134/23672134] root@DebianPlugPro:/media/usb1# tar -xjf linux-4.4.79-oxnas-tld-1.bodhi.tar.bz2 root@DebianPlugPro:/media/usb1# cd / root@DebianPlugPro:/# umount /media/usb1 root@DebianPlugPro:/# df -h Filesystem Size Used Avail Use% Mounted on rootfs 3.6G 1.4G 2.0G 42% / udev 10M 0 10M 0% /dev tmpfs 12M 488K 12M 5% /run /dev/sda1 3.6G 1.4G 2.0G 42% / tmpfs 5.0M 0 5.0M 0% /run/lock tmpfs 24M 4.0K 24M 1% /run/shm tmpfs 60M 0 60M 0% /tmp /dev/sdb1 473M 424M 20M 96% /media/usb0
Re: First try woes: Debian on the PogoPlug Pro August 12, 2017 12:15AM |
Admin Registered: 14 years ago Posts: 19,426 |
Quote
1. Format a new USB drive with a single Ext3 partition, and label it rootfs. If you are running the latest released uboot for OXNAS then you can use Ext4.
root@DebianPlugPro:~# mkfs.ext4 -L "EMTEC8GB" /dev/sdc1should have been
root@DebianPlugPro:~# mkfs.ext4 -L rootfs /dev/sdc1
Re: First try woes: Debian on the PogoPlug Pro August 12, 2017 09:52AM |
Registered: 8 years ago Posts: 162 |
e2label /dev/sdc1 rootfs
root@DebianPlugPro:~# lsblk -o name,mountpoint,label,size NAME MOUNTPOINT LABEL SIZE sda 3.7G `-sda1 / rootfs 3.7G sdb 497M `-sdb1 /media/usb0 IOMEGA512 496M sdc 7.3G `-sdc1 /media/usb1 rootfs 7.3G mtdblock0 14M mtdblock1 114M
Re: First try woes: Debian on the PogoPlug Pro August 12, 2017 01:22PM |
Registered: 8 years ago Posts: 162 |
Quote
guide
Adjust fstab (optional).
Edit /media/sdb1/etc/fstab entry for root device to match the rootfstype of your rootfstype if you use Ext4 or Ext2. However, you can keep it as is without problem in booting since the kernel will figure out which file system the rootfs was formatted.
LABEL=rootfs / ext4 noatime,errors=remount-ro 0 1
root@DebianPlugPro:/media/usb1# ls . linux-4.4.79-oxnas-tld-1.patch lost+found .. linux-dtb-4.4.79-oxnas-tld-1.tar zImage-4.4.79-oxnas-tld-1 config-4.4.79-oxnas-tld-1 linux-headers-4.4.79-oxnas-tld-1_1.0_armel.deb linux-4.4.79-oxnas-tld-1.bodhi.tar.bz2 linux-image-4.4.79-oxnas-tld-1_1.0_armel.deb
root@DebianPlugPro:/# ls / . bin description-pak etc iomega512 lost+found mnt proc run selinux sys uEnv.txt var .. boot dev home lib media opt root sbin srv tmp usr
Re: First try woes: Debian on the PogoPlug Pro August 12, 2017 04:52PM |
Admin Registered: 14 years ago Posts: 19,426 |
Quote
root@DebianPlugPro:/media/usb1# tar -xjf linux-4.4.79-oxnas-tld-1.bodhi.tar.bz2
Quote
At this point, all you need to do is to create a new rootfs using the latest rootfs:
Quote
Updated 02 Aug 2017:
Rootfs Debian-4.4.54-oxnas-tld-1-rootfs-bodhi.tar.bz2 was uploaded.
Basic Debian stretch Oxnas rootfs for Popo Pro/Classic V3 plug:
Remember to skip step 4 (you are running the latest u-boot).
Quote
Latest released kernel: linux-4.4.79-oxnas-tld-1.bodhi.tar.bz2 (05 Aug 2017)
Latest released rootfs: Debian-4.4.54-oxnas-tld-1-rootfs-bodhi.tar.bz2 (02 Aug 2017)