Re: 2015.10 U-Boot for Pogoplug V3 (OXNAS OX820) March 28, 2016 05:24AM |
Registered: 8 years ago Posts: 20 |
cd /media/sdb1/boot cp -a zImage-3.17.0-oxnas-tld-1 zImage-3.17.0-oxnas-tld-1.fdt cat dts/ox820-pogoplug-classic.dtb >> zImage-3.17.0-oxnas-tld-1.fdt mkimage -A arm -O linux -C none -T kernel -a 0x60008000 -e 0x60008000 -n 'Linux-3.3.17.0-oxnas-tld-1' -d zImage-3.17.0-oxnas-tld-1.fdt uImage sync
Re: 2015.10 U-Boot for Pogoplug V3 (OXNAS OX820) March 28, 2016 05:14PM |
Admin Registered: 13 years ago Posts: 18,821 |
printenvAnd post the entire serial console log here.
Re: 2015.10 U-Boot for Pogoplug V3 (OXNAS OX820) March 29, 2016 03:51AM |
Registered: 8 years ago Posts: 20 |
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 2015.10-tld-1 (Nov 21 2015 - 01:17:59 -0800) OXNAS OX820 DRAM: 128 MiB NAND: 128 MiB In: serial Out: serial Err: serial Net: dwmac.40400000 Hit any key to stop autoboot: 0 OX820> printenv bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec; reset bootcmd_exec=run load_uimage; if run load_initrd; then if run load_dtb; then bootm 0x60500000 0x60e00000 0x62c00000; else bootm 0x60500000 0x60e00000; fi; else if run load_dtb; then bootm 0x60500000 - 0x62c00000; else bootm 0x60500000; fi; fi bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi bootdelay=10 bootdev=usb device=0:1 devices=usb ide disks=0 1 2 3 dtb_file=/boot/dts/ox820-pogoplug-pro.dtb ethact=dwmac.40400000 ethaddr=52:3b:20:9c:11:51 if_netconsole=ping $serverip ipaddr=192.168.0.222 load_dtb=echo loading DTB $dtb_file ...; ext2load $bootdev $device 0x62c00000 $dtb_file load_initrd=echo loading uInitrd ...; ext2load $bootdev $device 0x60e00000 /boot/uInitrd load_uimage=echo loading uImage ...; ext2load $bootdev $device 0x60500000 /boot/uImage mainlineLinux=yes mtdids=nand0=41000000.nand mtdparts=mtdparts=41000000.nand:14m(boot),-(data) preboot_nc=run if_netconsole start_netconsole 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 ext2load $dev $disknum:1 0x60500000 /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.0.220 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=serial stdin=serial stdout=serial uenv_import=echo importing envs ...; env import -t 0x60500000 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 0x60500000 /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_custom_params=zswap.enabled=1 usb_ready_retry=15 Environment size: 2590/131068 bytes OX820>
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 2015.10-tld-1 (Nov 21 2015 - 01:17:59 -0800) OXNAS OX820 DRAM: 128 MiB NAND: 128 MiB In: serial Out: serial Err: serial Net: dwmac.40400000 Hit any key to stop autoboot: 0 starting 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 Reset IDE: SATA PHY not ready for device 0 ide_preinit failed Partition Map for USB device 0 -- Partition Type: DOS Part Start Sector Num Sectors UUID Type 1 2048 31297648 c754aed3-01 83 loading envs from usb 0 ... ** File not found /boot/uEnv.txt ** no IDE devices available running scan_disk ... Scan device usb device usb 0:1 1 bytes read in 220 ms (0 Bytes/s) Found bootable drive on usb 0 loading uImage ... 4109737 bytes read in 416 ms (9.4 MiB/s) loading uInitrd ... 1953812 bytes read in 308 ms (6 MiB/s) loading DTB /boot/dts/ox820-pogoplug-pro.dtb ... 7029 bytes read in 237 ms (28.3 KiB/s) ## Booting kernel from Legacy Image at 60500000 ... Image Name: Linux-3.3.17.0-oxnas-tld-1 Created: 2016-03-29 9:13:22 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 4109673 Bytes = 3.9 MiB Load Address: 60008000 Entry Point: 60008000 Verifying Checksum ... OK ## Loading init Ramdisk from Legacy Image at 60e00000 ... Image Name: initramfs-3.17.0-oxnas-tld-1 Created: 2014-11-01 7:18:53 UTC Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 1953748 Bytes = 1.9 MiB Load Address: 60000000 Entry Point: 60000000 Verifying Checksum ... OK ## Flattened Device Tree blob at 62c00000 Booting using the fdt blob at 0x62c00000 Loading Kernel Image ... OK Loading Ramdisk to 67c4e000, end 67e2afd4 ... OK Loading Device Tree to 67c49000, end 67c4db74 ... OK Starting kernel ... Uncompressing Linux... done, booting the kernel.From there is stops. In the serial log i read: loading DTB /boot/dts/ox820-pogoplug-pro.dtb ... it that okay? If i am correct it should be the classic version.
cd /media/sdb1/boot cp -a zImage-3.17.0-oxnas-tld-1 zImage-3.17.0-oxnas-tld-1.fdt cat dts/ox820-pogoplug-pro.dtb >> zImage-3.17.0-oxnas-tld-1.fdt mkimage -A arm -O linux -C none -T kernel -a 0x60008000 -e 0x60008000 -n 'Linux-3.3.17.0-oxnas-tld-1' -d zImage-3.17.0-oxnas-tld-1.fdt uImage syncI replaced the pro with classic.
Re: 2015.10 U-Boot for Pogoplug V3 (OXNAS OX820) March 29, 2016 05:01AM |
Admin Registered: 13 years ago Posts: 18,821 |
setenv dtb_file '/boot/dts/ox820-pogoplug-classic.dtb' boot
Re: 2015.10 U-Boot for Pogoplug V3 (OXNAS OX820) March 29, 2016 06:13AM |
Registered: 8 years ago Posts: 20 |
Re: 2015.10 U-Boot for Pogoplug V3 (OXNAS OX820) March 29, 2016 01:09PM |
Admin Registered: 13 years ago Posts: 18,821 |
Quote
Updated 02 Nov 2014:
Rootfs Debian-3.17.0-oxnas-tld-1-rootfs-bodhi.tar.bz2 was uploaded. This rootfs is to keep in sync with kernel Linux-3.17.0-oxnas-tld-1.
Basic minimal Debian Oxnas rootfs for Popo Pro/Classic V3 plug:
- tarball size: 83M
- install size: 251M
- a basic wheezy rootfs
- Installed packages: nano, avahi, ntp, busybox-syslogd (log to RAM), htop, dialog, bz2.
- see LED controls in /etc/rc.local, and /etc/rc0.d/K08halt
- see some useful aliases in /root/.profile
- root password: root
Download at Dropbox:
Debian-3.17.0-oxnas-tld-1-rootfs-bodhi.tar.bz2
md5:
c8e9df471f331c56befc4051a754bfea
And remember to check the hash of what you download, as always.
INSTALLATION:
Installation can be done on any Linux box, with a fresh USB drive (SD card or HDD would work fine too). It is assuming the USB drive is mounted at /media/sdb1.
1. Format a new Ext3 USB drive, and label it rootfs. Note: if your existing uBoot env for rootfs type is ext2, then you might want to keep it consistent and use Ext2 USB drive. It will work with Ext3 drive without problem, though.
For example:
set_bootargs_usb=setenv bootargs console=$console root=$usb_root rootdelay=$rootdelay rootfstype=$rootfstype $mtdparts
rootfstype=ext2
2. Mount the drive on a Linux box. As root user, cd to top level directory and extract it.
cd /media/sdb1
tar -xjf Debian-3.17.0-oxnas-tld-1-rootfs-bodhi.tar.bz2
3. edit /media/sdb1/etc/fstab entry for /dev/root to match the rootfstype of your usb_rootfstype (however, you can keep it as Ext2 without problem in booting an Ext3 partition).
/dev/root / ext2 noatime,errors=remount-ro 0 1
4. Create uImage with embbeded DTB to run with older u-boot. Please see Note 2 below if you are running this kernel witht the new U-Boot.
Pogo Pro vs. Pogo Classic: If you're installing this on a Pogo V3 Classic (no PCI), replace the ox820-pogoplug-pro.dtb below with ox820-pogoplug-classic.dtb.
cd /media/sdb1/boot
cp -a zImage-3.17.0-oxnas-tld-1 zImage-3.17.0-oxnas-tld-1.fdt
cat dts/ox820-pogoplug-pro.dtb >> zImage-3.17.0-oxnas-tld-1.fdt
mkimage -A arm -O linux -C none -T kernel -a 0x60008000 -e 0x60008000 -n 'Linux-3.3.17.0-oxnas-tld-1' -d zImage-3.17.0-oxnas-tld-1.fdt uImage
sync
5. Done. Take this USB rootfs to your plug and cold start.
Note1: After logging in this rootf the first time, remember to generate new SSH key to make it your own unique rootfs. And also update your rootfs to get the latest Debian package updates:
rm /etc/ssh/ssh_host*
ssh-keygen -A
apt-get update
apt-get upgrade
Note2: To simplify the first time installation process, the uImage is recreated with the DTB embedded in step 4. If you are familiar with FDT kernel booting, and want to boot with separate DTB, see the Kernel 3.17 installation section A.6 in this thread for instruction about setting up u-boot envs. Or if you are going run this kernel with the new u-boot as mentioned, then do set up booting as described in section A.6.
Note3: if the Linux box that you are using to create rootfs does not already have mkimage installed then install u-boot-tools package to make it available:
apt-get install u-boot-tools
Note4: For setting up wireless on the Pogo Pro, please see: http://forum.doozan.com/read.php?2,16044,20964#msg-20964
Re: 2015.10 U-Boot for Pogoplug V3 (OXNAS OX820) March 29, 2016 03:31PM |
Registered: 8 years ago Posts: 20 |
Re: 2015.10 U-Boot for Pogoplug V3 (OXNAS OX820) March 29, 2016 05:54PM |
Admin Registered: 13 years ago Posts: 18,821 |
Re: 2015.10 U-Boot for Pogoplug V3 (OXNAS OX820) March 29, 2016 06:29PM |
Registered: 8 years ago Posts: 20 |
Re: 2015.10 U-Boot for Pogoplug V3 (OXNAS OX820) March 30, 2016 06:48AM |
Registered: 11 years ago Posts: 1,303 |
Re: 2015.10 U-Boot for Pogoplug V3 (OXNAS OX820) March 30, 2016 06:03PM |
Admin Registered: 13 years ago Posts: 18,821 |
Re: 2015.10 U-Boot for Pogoplug V3 (OXNAS OX820) March 30, 2016 10:35PM |
Registered: 11 years ago Posts: 1,303 |
Re: 2015.10 U-Boot for Pogoplug V3 (OXNAS OX820) March 31, 2016 12:44AM |
Admin Registered: 13 years ago Posts: 18,821 |
Re: 2015.10 U-Boot for Pogoplug V3 (OXNAS OX820) March 31, 2016 11:07PM |
Registered: 11 years ago Posts: 1,303 |
Re: 2015.10 U-Boot for Pogoplug V3 (OXNAS OX820) April 06, 2016 07:14AM |
Registered: 11 years ago Posts: 1,303 |
... bootm=echo Booting from ${disk} ...; run setargs; bootm ${loadaddr}; ...
... bootz=echo Booting from ${disk} ...; run setargs; bootz ${loadaddr} - ${fdt_addr}; bootm=echo Booting from ${disk} ...; run setargs; bootm ${loadaddr}; ...
Re: 2015.10 U-Boot for Pogoplug V3 (OXNAS OX820) April 06, 2016 02:49PM |
Admin Registered: 13 years ago Posts: 18,821 |
Re: 2015.10 U-Boot for Pogoplug V3 (OXNAS OX820) April 06, 2016 04:36PM |
Registered: 11 years ago Posts: 1,303 |
DaveP
Re: 2015.10 U-Boot for Pogoplug V3 (OXNAS OX820) April 13, 2016 10:35PM |
Re: 2015.10 U-Boot for Pogoplug V3 (OXNAS OX820) April 14, 2016 12:09AM |
Admin Registered: 13 years ago Posts: 18,821 |
Re: 2015.10 U-Boot for Pogoplug V3 (OXNAS OX820) April 17, 2016 10:30PM |
Registered: 8 years ago Posts: 3 |
Quote
zzbao
dev: size erasesize name
mtd0: 08000000 00020000 "NAND 128MiB 3,3V 8-bit"
mtd1: 00e00000 00020000 "boot"
mtd2: 07200000 00020000 "rootfs"
This is different from the instruction (mtd0 -> boot, mtd1 -> data). can I proceed?
Quote
bodhi
So the bottom line is if you have only one rootfs in a single Ext3 partition, which is labeled as rootfs, then you're all set.
Re: 2015.10 U-Boot for Pogoplug V3 (OXNAS OX820) April 17, 2016 11:30PM |
Admin Registered: 13 years ago Posts: 18,821 |
> cd /media/sdb1/boot > cp -a zImage-3.17.0-oxnas-tld-1 > zImage-3.17.0-oxnas-tld-1.fdt > cat dts/ox820-pogoplug-pro.dtb >> > zImage-3.17.0-oxnas-tld-1.fdt > mkimage -A arm -O linux -C none -T kernel -a > 0x60008000 -e 0x60008000 -n > 'Linux-3.3.17.0-oxnas-tld-1' -d > zImage-3.17.0-oxnas-tld-1.fdt uImage > sync
Re: 2015.10 U-Boot for Pogoplug V3 (OXNAS OX820) April 18, 2016 11:00AM |
Registered: 8 years ago Posts: 3 |
Re: 2015.10 U-Boot for Pogoplug V3 (OXNAS OX820) April 18, 2016 01:15PM |
Admin Registered: 13 years ago Posts: 18,821 |
dmesg | grep -i bad
Re: 2015.10 U-Boot for Pogoplug V3 (OXNAS OX820) May 11, 2016 02:03AM |
Registered: 10 years ago Posts: 36 |
Re: 2015.10 U-Boot for Pogoplug V3 (OXNAS OX820) May 11, 2016 03:06AM |
Admin Registered: 13 years ago Posts: 18,821 |
fw_setenv devices 'ide usb'
fw_setenv devices 'ide'
Re: 2015.10 U-Boot for Pogoplug V3 (OXNAS OX820) May 11, 2016 07:51PM |
Registered: 10 years ago Posts: 36 |
Re: 2015.10 U-Boot for Pogoplug V3 (OXNAS OX820) September 22, 2016 03:43AM |
Admin Registered: 13 years ago Posts: 18,821 |
cheng
Re: 2015.10 U-Boot for Pogoplug V3 (OXNAS OX820) October 29, 2016 09:40AM |
Re: 2015.10 U-Boot for Pogoplug V3 (OXNAS OX820) October 29, 2016 03:08PM |
Admin Registered: 13 years ago Posts: 18,821 |
pulledfromthewater
Re: 2015.10 U-Boot for Pogoplug V3 (OXNAS OX820) December 19, 2016 12:17PM |
scanning bus 0 for devices... EHCI timed out on TD - token=0x80008c80 unable to get device descriptor (error=-1) 1 USB Device(s) found scanning usb for storage devices... 0 Storage Device(s) found
bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec; reset bootcmd_exec=run load_uimage; if run load_initrd; then if run load_dtb; then bootm 0x60500000 0x60e00000 0x62c00000; else bootm 0x60500000 0x60e00000; fi; else if run load_dtb; then bootm 0x60500000 - 0x62c00000; else bootm 0x605i bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi bootdelay=10 bootdev=usb device=0:1 devices=usb ide disks=0 1 2 3 dtb_file=/boot/dts/ox820-pogoplug-pro.dtb ethact=dwmac.40400000 ethaddr=52:3b:20:9c:11:51 if_netconsole=ping $serverip ipaddr=192.168.0.9 load_dtb=echo loading DTB $dtb_file ...; ext2load $bootdev $device 0x62c00000 $dtb_file load_initrd=echo loading uInitrd ...; ext2load $bootdev $device 0x60e00000 /boot/uInitrd load_uimage=echo loading uImage ...; ext2load $bootdev $device 0x60500000 /boot/uImage mainlineLinux=yes mtdids=nand0=41000000.nand mtdparts=mtdparts=41000000.nand:14m(boot),-(data) 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_$e serverip=192.168.0.3 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=serial stdin=serial stdout=serial uenv_import=echo importing envs ...; env import -t 0x60500000 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 0x60500000 /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_custom_params=zswap.enabled=1 usb_ready_retry=15