Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) July 03, 2015 07:26PM |
Admin Registered: 13 years ago Posts: 19,106 |
> 4. You are running stock kernel, and have gained > SHH access to the box, and have downloaded > u-boot-tools and mtd-utils (fw_setenv, > flash_erase, nandwrite …) to work with NAND > mtds. And plan to run a USB rootfs that came from > any of the above 3. >>
> [ 4380.990000] uncorrectable error : > [ 4380.990000] uncorrectable error : Warning: Bad > CRC, using default environment > bootcmd=bootp; setenv bootargs root=/dev/nfs > nfsroot=${serverip}:${rootpath} > ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:$ > {hostname}::off; bootm > bootdelay=5 > baudrate=115200 >>
dibbsy
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) July 04, 2015 12:25AM |
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) July 04, 2015 01:02AM |
Admin Registered: 13 years ago Posts: 19,106 |
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) July 07, 2015 03:37PM |
Admin Registered: 13 years ago Posts: 19,106 |
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) August 28, 2015 08:21AM |
Registered: 12 years ago Posts: 28 |
/tmp/.cemnt/mnt_sda1 # cat /proc/mtd dev: size erasesize name mtd0: 08000000 00020000 "NAND 128MiB 3,3V 8-bit" mtd1: 00e00000 00020000 "boot" mtd2: 07200000 00020000 "rootfs" nanddump mtd0 got 132MB, here I think I should dump the mtd1 instead? /tmp/.cemnt/mnt_sda1 # /usr/sbin/flash_erase /dev/mtd0 0x0 6 Erase Total 6 Units Performing Flash Erase of length 131072 at offset 0xa0000 done erased 1 block here /tmp/.cemnt/mnt_sda1 # /usr/sbin/nandwrite /dev/mtd0 uboot.spl.2013.10.ox820.850mhz.mtd0.img Writing data to block 0 at offset 0x0 /tmp/.cemnt/mnt_sda1 # /usr/sbin/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 /tmp/.cemnt/mnt_sda1 # /usr/sbin/flash_erase /dev/mtd0 0x00100000 1 Erase Total 1 Units Performing Flash Erase of length 131072 at offset 0x100000 done /tmp/.cemnt/mnt_sda1 # /usr/sbin/nandwrite -s 1048576 /dev/mtd0 pogopro_uboot_env.img Writing data to block 8 at offset 0x100000
autoload=no baudrate=115200 bootargs=console=ttyS0,115200n8 bootdelay=10 console=console=ttyS0,115200n8 ethact=mii0 mtdids=nand0=41000000.nand mtdparts=mtdparts=41000000.nand:14m(boot),-(data) 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 uinitrd_addr=0x60e00000 uimage_addr=0x60500000 dtb_addr=0x62c00000 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 ipaddr=192.168.1.3 serverip=192.168.1.10 ethaddr=00:25:31:xx:xx:xx devices=usb ide bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi uenv_import=echo importing envs ...; env import -t 0x60500000 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_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 uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 0x60500000 /boot/uEnv.txt; then setenv uenv_loaded 1; fi 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; bootcmd=run bootcmd_uenv; run dt_bootcmd_usb; reset dt_load_dtb=ext2load usb 0:1 $dtb_addr /boot/dts/ox820-pogoplug-classic.dtb rootfstype=ext3 usb_set_bootargs=setenv bootargs console=ttyS0,115200 root=/dev/sda1 rootfstype=$rootfstype rootdelay=10
usb formated as ext3 with label rootfs su and tar Debian-3.17.0-oxnas-tld-1-rootfs-bodhi.tar.bz2 cd /tmp/.cemnt/mnt_sda1/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 output: Image Name: Linux-3.3.17.0-oxnas-tld-1 Created: Fri Aug 28 23:18:24 2015 Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 4109673 Bytes = 4013.35 kB = 3.92 MB Load Address: 60008000 Entry Point: 60008000 sync ls -al /mnt/usb/boot/ total 21500 drwxr-xr-x 3 root root 4096 Aug 28 21:09 . drwxr-xr-x 23 root root 4096 Aug 28 22:10 .. -rw-r--r-- 1 root root 98866 Oct 26 2014 config-3.17.0-oxnas-tld-1 drwxr-xr-x 2 root root 4096 Nov 1 2014 dts -rw-r--r-- 1 root root 1953748 Nov 1 2014 initrd.img-3.17.0-oxnas-tld-1 -rw-r--r-- 1 root root 1519590 Oct 26 2014 System.map-3.17.0-oxnas-tld-1 -rw-r--r-- 1 root root 684 Aug 28 22:16 uEnv.txt -rw-r--r-- 1 root root 4109737 Aug 28 03:07 uImage -rw-r--r-- 1 root root 1953812 Nov 1 2014 uInitrd -rwxr-xr-x 1 root root 4102640 Oct 26 2014 vmlinuz-3.17.0-oxnas-tld-1 -rwxr-xr-x 1 root root 4102640 Oct 26 2014 zImage-3.17.0-oxnas-tld-1 -rwxr-xr-x 1 root root 4109673 Aug 28 03:05 zImage-3.17.0-oxnas-tld-1.fdt did A.6
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
preboot=run preboot_nc
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) August 28, 2015 09:42AM |
Registered: 9 years ago Posts: 11 |
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) August 28, 2015 09:59AM |
Registered: 12 years ago Posts: 28 |
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) August 28, 2015 03:57PM |
Admin Registered: 13 years ago Posts: 19,106 |
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) October 03, 2015 12:33AM |
Registered: 11 years ago Posts: 1,303 |
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) October 03, 2015 01:00AM |
Admin Registered: 13 years ago Posts: 19,106 |
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) October 03, 2015 07:53AM |
Registered: 11 years ago Posts: 1,303 |
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) October 03, 2015 03:17PM |
Admin Registered: 13 years ago Posts: 19,106 |
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) October 04, 2015 08:16AM |
Registered: 10 years ago Posts: 12 |
(Re)start USB... USB0: USB EHCI 1.00 scanning bus 0 for devices... 2 USB Device(s) found scanning usb for storage devices... 0 Storage Device(s) found Reset IDE: Bus 0: OK Device 0: Model: WDC WD2500BEVT-00A23T0 Firm: 01.01A01 Ser#: WD-WXB1A70X5232 Type: Hard Disk Supports 48-bit addressing Capacity: 238475.1 MB = 232.8 GB (488397168 x 512) no USB devices available Partition Map for IDE device 0 -- Partition Type: DOS Part Start Sector Num Sectors UUID Type 1 63 7373772 65406540-01 83 Boot 2 7374848 481021952 65406540-02 83 loading envs from ide 0 ... 652 bytes read in 48 ms (12.7 KiB/s) importing envs ... ## Info: input data size = 2077 = 0x81D Reset IDE: Bus 0: OK Device 0: Model: WDC WD2500BEVT-00A23T0 Firm: 01.01A01 Ser#: WD-WXB1A70X5232 Type: Hard Disk Supports 48-bit addressing Capacity: 238475.1 MB = 232.8 GB (488397168 x 512) 4102704 bytes read in 1117 ms (3.5 MiB/s) 1953812 bytes read in 594 ms (3.1 MiB/s) 7033 bytes read in 20 ms (342.8 KiB/s) 7033 bytes read in 27 ms (253.9 KiB/s) ## Booting kernel from Legacy Image at 60500000 ... Image Name: Linux-3.17.0-oxnas-tld-1 Created: 2014-11-01 7:16:44 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 4102640 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 67c4b000, end 67e27fd4 ... OK Loading Device Tree to 67c46000, end 67c4ab78 ... OK Led: GREEN Starting kernel ... Uncompressing Linux... done, booting the kernel.<<<<<<<<<<<<<<<<<<<<<<<freeze, nothing for 5 min
[ 3.350154] sd 1:0:0:0: [sda] Attached SCSI disk Begin: Loading essential drivers ... done. Begin: Running /scripts/init-premount ... done. Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done. Begin: Waiting for root file system ... done. Gave up waiting for root device. Common problems: - Boot args (cat /proc/cmdline) - Check rootdelay= (did the system wait long enough?) - Check root= (did the system wait for the right device?) - Missing modules (cat /proc/modules; ls /dev) ALERT! /dev/disk/by-label/rootfs does not exist. Dropping to a shell! modprobe: module i8042 not found in modules.dep modprobe: module atkbd not found in modules.dep modprobe: module uhci-hcd not found in modules.dep modprobe: module ohci-hcd not found in modules.dep BusyBox v1.20.2 (Debian 1:1.20.0-7) built-in shell (ash) Enter 'help' for a list of built-in commands. /bin/sh: can't access tty; job control turned off (initramfs)
[ 3.459860] sd 1:0:0:0: [sda] Write Protect is off [ 3.465986] sd 1:0:0:0: [sda] No Caching mode page found [ 3.471354] sd 1:0:0:0: [sda] Assuming drive cache: write through [ 3.485035] sda: sda1 [ 3.494776] sd 1:0:0:0: [sda] Attached SCSI removable disk Begin: Loading essential drivers ... done. Begin: Running /scripts/init-premount ... done. Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done. Begin: Running /scripts/local-premount ... done. [ 12.149442] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null) Begin: Running /scripts/local-bottom ... done. done. Begin: Running /scripts/init-bottom ... done. INIT: version 2.88 booting [info] Using makefile-style concurrent boot in runlevel S. [....] Starting the hotplug events dispatcher: udevd[ 13.939146] udevd[253]: starting version 175
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) October 04, 2015 01:23PM |
Admin Registered: 13 years ago Posts: 19,106 |
tune2fs -L rootfs /dev/sdb1Adjust the drive letter sdb1 to whichever the rootfs partition was assigned.
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) October 09, 2015 07:51PM |
Registered: 10 years ago Posts: 12 |
autoload=no baudrate=115200 bootargs=console=ttyS0,115200n8 bootcmd=run bootcmd_uenv; run bootcmd_sata; run dt_bootcmd_usb; reset bootcmd_sata=run sata_init; run set_bootargs_sata; run sata_boot bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi bootdelay=10 console=console=ttyS0,115200n8 devices=usb ide dt_bootcmd_usb=usb start; run dt_usb_bootcmd; usb stop; reset dt_bootm=bootm $uimage_addr $uinitrd_addr $dtb_addr dt_load_dtb=ext2load usb 0:1 0x62c00000 /boot/dts/ox820-pogoplug-classic.dtb dt_load_initrd=ext2load usb 0:1 $uinitrd_addr /boot/uInitrd dt_load_uimage=ext2load usb 0:1 $uimage_addr /boot/uImage 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:xxxxxxxxxxxxxxxx if_netconsole=ping $serverip ipaddr=192.168.8.19 mtdids=nand0=41000000.nand mtdparts=mtdparts=41000000.nand:14m(boot),-(data) preboot_nc=run if_netconsole start_netconsole rootfstype=ext4 sata_boot=run sata_load_uimage; run sata_load_uinitrd; run sata_load_dtb; run sata_bootm sata_bootm=bootm $uimage_addr $uinitrd_addr $dtb_addr sata_init=ide reset sata_load_dtb=ext2load ide 0:1 0x62c00000 /boot/dts/ox820-pogoplug-pro.dtb sata_load_uimage=ext2load ide 0:1 0x60500000 /boot/uImage sata_load_uinitrd=ext2load ide 0:1 0x60e00000 /boot/uInitrd serverip=192.168.0.x set_bootargs_sata=setenv bootargs console=ttyS0,115200 root=LABEL=satarootfs rootfstype=ext4 rootdelay=10 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 uimage_addr=0x60500000 uinitrd_addr=0x60e00000 usb_device=0:1 usb_ready_retry=15 usb_set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootfstype=ext4 rootdelay=10
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) October 09, 2015 09:47PM |
Admin Registered: 13 years ago Posts: 19,106 |
el2label /dev/sda1
cat /etc/fstab
setenv set_bootargs_sata 'setenv bootargs console=ttyS0,115200 root=LABEL=satarootfs rootfstype=ext4 rootdelay=10 earlyprintk=serial' setenv sata_load_dtb 'ext4load ide 0:1 0x62c00000 /boot/dts/ox820-pogoplug-pro.dtb' setenv sata_load_uimage 'ext4load ide 0:1 0x60500000 /boot/uImage setenv sata_load_uinitrd 'ext4load ide 0:1 0x60e00000 /boot/uInitrd' boot
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) October 11, 2015 07:50AM |
Registered: 10 years ago Posts: 12 |
nohud
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) October 17, 2015 05:31PM |
cat /etc/fw_env.config # pogoplug v3 /dev/mtd0 0x00100000 0x20000 0x20000 cat /proc/mtd dev: size erasesize name mtd0: 00e00000 00020000 "boot" mtd1: 07200000 00020000 "data"
cat /etc/fw_env.config # U-Boot Kirkwood /dev/mtd0 0x0c0000 0x20000 0x20000 cat /proc/mtd dev: size erasesize name mtd0: 00100000 00020000 "u-boot" mtd1: 00400000 00020000 "uImage" mtd2: 02000000 00020000 "rootfs" mtd3: 0db00000 00020000 "data"
cat /etc/fw_env.config # MTD device name Device offset Env. size Flash sector size Number of sectors # pogoplug pro /dev/mtd1 0x0000000 0x20000 0x20000 cat /proc/mtd dev: size erasesize name mtd0: 00100000 00020000 "u-boot" mtd1: 00020000 00020000 "env" mtd2: 00ce0000 00020000 "rootfs" mtd3: 07200000 00020000 "data"
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) October 17, 2015 06:16PM |
Admin Registered: 13 years ago Posts: 19,106 |
> cat /etc/fw_env.config > > # pogoplug v3 > /dev/mtd0 0x00100000 0x20000 > 0x20000 > > cat /proc/mtd > > dev: size erasesize name > mtd0: 00e00000 00020000 "boot" > mtd1: 07200000 00020000 "data" >>
> cat /etc/fw_env.config > > # U-Boot Kirkwood > /dev/mtd0 0x0c0000 0x20000 > 0x20000 > > cat /proc/mtd > > dev: size erasesize name > mtd0: 00100000 00020000 "u-boot" > mtd1: 00400000 00020000 "uImage" > mtd2: 02000000 00020000 "rootfs" > mtd3: 0db00000 00020000 "data" >>
> cat /etc/fw_env.config > # MTD device name Device offset Env. size > Flash sector size Number of sectors > # pogoplug pro > /dev/mtd1 0x0000000 0x20000 > 0x20000 > > > cat /proc/mtd > dev: size erasesize name > mtd0: 00100000 00020000 "u-boot" > mtd1: 00020000 00020000 "env" > mtd2: 00ce0000 00020000 "rootfs" > mtd3: 07200000 00020000 "data" > >
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) October 25, 2015 05:10PM |
Admin Registered: 13 years ago Posts: 19,106 |
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) November 07, 2015 09:27PM |
Registered: 9 years ago Posts: 5 |
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) November 08, 2015 03:10AM |
Admin Registered: 13 years ago Posts: 19,106 |
Quote
This new default envs image now supports booting with multiple disk drives (and hubs) attached. The disk drives could be any type (usb, sata, sd card). The scanning logic and default envs were set to automatically boot the box with the following required configuration:
a. There must be only one partition among all partitions from all drives that contains the kernel files. The 2 kernel files are /boot/uImage and /boot/uInitrd.
b. The partition that contains the 2 kernel files must be partition 1 in a disk drive
c. The partition that contains the rootfs must be labeled rootfs
Re: 2015.10 U-Boot for Pogoplug V3 (OXNAS OX820) November 22, 2015 02:51PM |
Admin Registered: 13 years ago Posts: 19,106 |
Thang
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) December 17, 2015 01:53PM |
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) December 19, 2015 04:18AM |
Admin Registered: 13 years ago Posts: 19,106 |
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) January 03, 2016 09:25AM |
Registered: 13 years ago Posts: 157 |
$ cat /proc/mtd dev: size erasesize name mtd0: 08000000 00020000 "NAND 128MiB 3,3V 8-bit" mtd1: 00e00000 00020000 "boot" mtd2: 07200000 00020000 "rootfs"
$ uname -a Linux pogo-oxnas 2.6.31.6_SMP_820 #6 SMP Thu Jun 14 19:49:57 CDT 2012 armv6l GNU/Linux $ cat /etc/debian_version 6.0.6
# pogoplug v3 /dev/mtd1 0x00100000 0x20000 0x20000
$ cat /etc/fw_env.config # MTD device name Device offset Env. size Flash sector size Number of sectors /dev/mtd0 0xc0000 0x20000 0x20000
Warning: Bad CRC, using default environment bootcmd=bootp; setenv bootargs root=/dev/nfs nfsroot=${serverip}:${rootpath} ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}::off; bootm bootdelay=5 baudrate=115200
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) January 03, 2016 10:30AM |
Admin Registered: 13 years ago Posts: 19,106 |
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) January 03, 2016 01:47PM |
Registered: 13 years ago Posts: 157 |
Re: 2015.10 U-Boot for Pogoplug V3 (OXNAS OX820) January 04, 2016 07:26PM |
Registered: 13 years ago Posts: 157 |
hwaddress ether 00:25:31:XX:YY:ZZ
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 usb_custom_params=zswap.enabled=1 device=0:1 devices=usb ide disks=0 1 2 3 ethaddr=52:3b:20:9c:11:51 ethact=mii0 if_netconsole=ping $serverip 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) 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 start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version; stderr=serial stdin=serial stdout=serial set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params 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_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 uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 0x60500000 /boot/uEnv.txt; then setenv uenv_loaded 1; fi usb_ready_retry=15 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 ipaddr=192.168.xxx.yyy serverip=192.168.xxx.zzz dtb_file=/boot/dts/ox820-pogoplug-pro.dtb uinitrd_addr=0x60e00000 uimage_addr=0x60500000 dtb_addr=0x62c00000 usb_set_bootargs=setenv bootargs console=ttyS0,115200 root=/dev/sda1 rootdelay=10 dt_bootm=bootm $uimage_addr $uinitrd_addr $dtb_addr dt_load_dtb=ext2load usb 0:1 $dtb_addr $dtb_file dt_load_initrd=ext2load usb 0:1 $uinitrd_addr /boot/uInitrd dt_load_uimage=ext2load usb 0:1 $uimage_addr /boot/uImage 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: 2015.10 U-Boot for Pogoplug V3 (OXNAS OX820) January 04, 2016 07:57PM |
Registered: 9 years ago Posts: 429 |