Booting Pogo V3 Debian rootfs from OpenWrt u-boot May 02, 2017 09:51AM |
Registered: 5 years ago Posts: 22 |
root@PogoPlug:/# fdisk -l You must set cylinders. You can do this from the extra functions menu. Disk /dev/mtdblock0: 0 MB, 262144 bytes 171 heads, 42 sectors/track, 0 cylinders, total 512 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: 0xaaaaaaaa This doesn't look like a partition table Probably you selected the wrong device. Device Boot Start End Blocks Id System /dev/mtdblock0p1 ? 2863311530 1431655763 1431655765 aa Unknown /dev/mtdblock0p2 ? 2863311530 1431655763 1431655765 aa Unknown /dev/mtdblock0p3 ? 2863311530 21843 715838805 aa Unknown /dev/mtdblock0p4 ? 2863311530 1426085203 1428870485 aa Unknown You must set cylinders. You can do this from the extra functions menu. Disk /dev/mtdblock1: 1 MB, 1441792 bytes 255 heads, 63 sectors/track, 0 cylinders, total 2816 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: 0xaaaaaaaa This doesn't look like a partition table Probably you selected the wrong device. Device Boot Start End Blocks Id System /dev/mtdblock1p1 ? 1437226410 5570643 1431655765 aa Unknown /dev/mtdblock1p2 ? 2863289685 5570558 718624085 aa Unknown /dev/mtdblock1p3 ? 1431677610 21843 1431655765 aa Unknown /dev/mtdblock1p4 ? 2863289685 5570558 718624085 aa Unknown Partition table entries are not in disk order Disk /dev/mtdblock2: 0 MB, 262144 bytes 255 heads, 63 sectors/track, 0 cylinders, total 512 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 /dev/mtdblock3: 33 MB, 33554432 bytes 171 heads, 42 sectors/track, 9 cylinders, total 65536 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: 0xaaaaaaaa This doesn't look like a partition table Probably you selected the wrong device. Device Boot Start End Blocks Id System /dev/mtdblock3p1 ? 2863311530 1431655763 1431655765 aa Unknown /dev/mtdblock3p2 ? 2863311530 1431655763 1431655765 aa Unknown /dev/mtdblock3p3 ? 2863311530 21843 715838805 aa Unknown /dev/mtdblock3p4 ? 2863311530 1426085203 1428870485 aa Unknown Disk /dev/mtdblock4: 0 MB, 131072 bytes 255 heads, 63 sectors/track, 0 cylinders, total 256 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 /dev/mtdblock5: 10 MB, 10485760 bytes 255 heads, 63 sectors/track, 1 cylinders, total 20480 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 /dev/mtdblock6: 119 MB, 119537664 bytes 255 heads, 63 sectors/track, 14 cylinders, total 233472 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 /dev/mtdblock7: 132 MB, 132120576 bytes 255 heads, 63 sectors/track, 16 cylinders, total 258048 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 /dev/mtdblock8: 134 MB, 134217728 bytes 171 heads, 42 sectors/track, 36 cylinders, total 262144 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: 0xaaaaaaaa This doesn't look like a partition table Probably you selected the wrong device. Device Boot Start End Blocks Id System /dev/mtdblock8p1 ? 2863311530 1431655763 1431655765 aa Unknown /dev/mtdblock8p2 ? 2863311530 1431655763 1431655765 aa Unknown /dev/mtdblock8p3 ? 2863311530 21843 715838805 aa Unknown /dev/mtdblock8p4 ? 2863311530 1426085203 1428870485 aa Unknown Disk /dev/sda: 1000.2 GB, 1000204886016 bytes 255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk /dev/sdb: 16.2 GB, 16239329280 bytes 64 heads, 32 sectors/track, 15487 cylinders, total 31717440 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 root@PogoPlug:/# tune2fs -L rootfs /dev/sdb tune2fs 1.42.4 (12-June-2012) root@PogoPlug:/#
Re: Booting Pogo V3 Debian rootfs from OpenWrt u-boot May 04, 2017 08:17PM |
Registered: 5 years ago Posts: 22 |
root@PogoPlug:~# cat /etc/fw_env.config # MTD device name Device offset Env. size Flash sector size Number of sectors /dev/mtd2 0x0 0x2000 0x40000 root@PogoPlug:~# cat /proc/mtd dev: size erasesize name mtd0: 00040000 00020000 "stage1" mtd1: 00160000 00020000 "u-boot" mtd2: 00040000 00020000 "u-boot-env" mtd3: 02000000 00020000 "boot" mtd4: 00020000 00020000 "factory" mtd5: 00a00000 00020000 "kernel" mtd6: 07200000 00020000 "rootfs" mtd7: 07e00000 00020000 "firmware" mtd8: 08000000 00020000 "fullflash" root@PogoPlug:~#
Re: Booting Pogo V3 Debian rootfs from OpenWrt u-boot May 17, 2017 09:43PM |
Registered: 5 years ago Posts: 22 |
Re: Booting Pogo V3 Debian rootfs from OpenWrt u-boot May 17, 2017 09:51PM |
Registered: 5 years ago Posts: 22 |
Re: Booting Pogo V3 Debian rootfs from OpenWrt u-boot May 18, 2017 01:32AM |
Admin Registered: 12 years ago Posts: 17,291 |
Re: Booting Pogo V3 Debian rootfs from OpenWrt u-boot May 18, 2017 08:19AM |
Registered: 5 years ago Posts: 22 |
Re: Booting Pogo V3 Debian rootfs from OpenWrt u-boot May 18, 2017 11:17AM |
Admin Registered: 12 years ago Posts: 17,291 |
> root@PogoPlug:/media/sdb1/boot# mkimage -A arm -O > linux -C none -T kernel -a 0x > 60008000 -e 0x60008000 -n 'Linux-3.3.17.0-oxnas-tl > d-1' -d zImage-3.17.0-oxnas-tl > d-1.fdt uImage sync > /bin/ash: mkimage: not found >
find /media/sdb1/ mkimage
Re: Booting Pogo V3 Debian rootfs from OpenWrt u-boot May 18, 2017 07:29PM |
Registered: 5 years ago Posts: 22 |
Re: Booting Pogo V3 Debian rootfs from OpenWrt u-boot May 19, 2017 12:36AM |
Admin Registered: 12 years ago Posts: 17,291 |
Re: Booting Pogo V3 Debian rootfs from OpenWrt u-boot May 19, 2017 03:09AM |
Registered: 5 years ago Posts: 22 |
root@PogoPlug:~# cat /proc/mtd dev: size erasesize name mtd0: 00040000 00020000 "stage1" mtd1: 00160000 00020000 "u-boot" mtd2: 00040000 00020000 "u-boot-env" mtd3: 02000000 00020000 "boot" mtd4: 00020000 00020000 "factory" mtd5: 00a00000 00020000 "kernel" mtd6: 07200000 00020000 "rootfs" mtd7: 07e00000 00020000 "firmware" mtd8: 08000000 00020000 "fullflash"
Re: Booting Pogo V3 Debian rootfs from OpenWrt u-boot May 19, 2017 08:12AM |
Admin Registered: 12 years ago Posts: 17,291 |
> root@PogoPlug:~# cat /proc/mtd > dev: size erasesize name > mtd0: 00040000 00020000 "stage1" > mtd1: 00160000 00020000 "u-boot" > mtd2: 00040000 00020000 "u-boot-env" > mtd3: 02000000 00020000 "boot" > mtd4: 00020000 00020000 "factory" > mtd5: 00a00000 00020000 "kernel" > mtd6: 07200000 00020000 "rootfs" > mtd7: 07e00000 00020000 "firmware" > mtd8: 08000000 00020000 "fullflash" >
Re: Booting Pogo V3 Debian rootfs from OpenWrt u-boot May 19, 2017 11:18AM |
Registered: 5 years ago Posts: 22 |
Re: Booting Pogo V3 Debian rootfs from OpenWrt u-boot May 19, 2017 12:29PM |
Admin Registered: 12 years ago Posts: 17,291 |
setenv mtdparts 'mtdparts=41000000.nand:14m(boot),-(data)'
boot
cat /proc/mtdExpected output
dev: size erasesize name mtd0: 00e00000 00020000 "boot" mtd1: 07200000 00020000 "data"
Re: Booting Pogo V3 Debian rootfs from OpenWrt u-boot May 19, 2017 01:34PM |
Registered: 5 years ago Posts: 22 |
[root@PogoPlug-Pro]#setenv mtdparts 'mtdparts=41000000.nand:14m(boot),-(data)' [root@PogoPlug-Pro]#boot Unknown command 'boot' - try 'help' [root@PogoPlug-Pro]#help ? - alias for 'help' base - print or set address offset bdinfo - print Board Info structure bootm - boot application image from memory bootp - boot image via network using BootP/TFTP protocol cmp - memory compare cp - memory copy crc32 - checksum calculation diskboot- boot from IDE device echo - echo args to console exit - exit script ext2load- load binary file from a Ext2 filesystem ext2ls- list files in a directory (default /) fatinfo - print information about filesystem fatload - load binary file from a dos filesystem fatls - list files in a directory (default /) go - start application at address 'addr' help - print online help ide - IDE sub-system iminfo - print header information for application image ledfail - Extinguish (0) or light (1) failure LED loop - infinite loop on address range md - memory display mm - memory modify (auto-incrementing) mtest - simple RAM test mw - memory write (fill) nand - NAND sub-system nboot - boot from NAND device nbootup - boot from NAND device with single bad block skip nm - memory modify (constant address) ping - send ICMP ECHO_REQUEST to network host printenv- print environment variables rarpboot- boot image via network using RARP/TFTP protocol reset - Perform RESET of the CPU run - run commands in an environment variable saveenv - save environment variables to persistent storage setenv - set environment variables test - minimal test like /bin/sh tftpboot- boot image via network using TFTP protocol version - print monitor version
Re: Booting Pogo V3 Debian rootfs from OpenWrt u-boot May 19, 2017 01:48PM |
Admin Registered: 12 years ago Posts: 17,291 |
Re: Booting Pogo V3 Debian rootfs from OpenWrt u-boot May 19, 2017 02:02PM |
Registered: 5 years ago Posts: 22 |
root@PogoPlug:/# reboot root@PogoPlug:/# [107848.580000] br-lan: port 1(eth0) entering forwarding state [107848.590000] device eth0 left promiscuous mode [107848.590000] br-lan: port 1(eth0) entering disabled state [107848.600000] br-lan: mixed no checksumming and other settings. [107851.650000] EXT4-fs (sda): re-mounted. Opts: (null) [107853.740000] sd 0:0:0:0: [sda] Synchronizing SCSI cache [107853.810000] Restarting system. NAS7820 BootStrap v0.1 [Fri Sep 27 08:37:50 CST 2013] PLX Technology, Inc. 2010. All Rights Reserved Copyright, lintel 2013.09 CPU Clock set to 700MHz ... Testing Stage2 Memory...OK! NAND Flash Info: Vendor ID:0x000000AD Product ID:0x000000F1 Type ID:0x00000000 Reading Nand Flash, Image 0 Hdr len: 0x00021D30 Hdr CRC: 0x3A0B1834 OK U-Boot 1.1.2 (Sep 23 2013 - 00:30:38) U-Boot code: 60D00000 -> 60D21D30 BSS: -> 60D56558 RAM Configuration: Bank #0: 60000000 128 MB SRAM Configuration: 64KB at 0x50000000 NAND:128 MiB In: serial Out: serial Err: serial Setting Linux mem= boot arg value Reading upgrade flag from NAND address 0x01ec0000 : 0 Hit any key to stop autoboot: 0 [root@PogoPlug-Pro]#
Re: Booting Pogo V3 Debian rootfs from OpenWrt u-boot May 19, 2017 02:18PM |
Admin Registered: 12 years ago Posts: 17,291 |
Hit any key to stop autoboot: 0
OX820>
[root@PogoPlug-Pro]#
Re: Booting Pogo V3 Debian rootfs from OpenWrt u-boot May 19, 2017 03:26PM |
Registered: 5 years ago Posts: 22 |
Re: Booting Pogo V3 Debian rootfs from OpenWrt u-boot May 19, 2017 03:30PM |
Registered: 5 years ago Posts: 22 |
Re: Booting Pogo V3 Debian rootfs from OpenWrt u-boot May 19, 2017 07:40PM |
Admin Registered: 12 years ago Posts: 17,291 |
fw_printenv
Re: Booting Pogo V3 Debian rootfs from OpenWrt u-boot May 19, 2017 10:55PM |
Registered: 5 years ago Posts: 22 |
root@PogoPlug:~/tools# ./fw_printenv bootcmd=run lightled root_sata boot_sata || run root_nand boot_nand || run extinguishled bootdelay=1 baudrate=115200 ethaddr=00:30:e0:00:00:01 ipaddr=192.168.1.200 serverip=192.168.1.100 autoload=n netmask=255.255.0.0 bootfile="uImage" load_nand=nboot 0x60500000 0 0x200000 load_nand2=nboot 0x60500000 0 0x440000 lightled=ledfail 1 extinguishled=ledfail 0 boot=bootm 60500000 root_dev=ubi0:rootfs root_nand=setenv bootargs root=ubi0:rootfs ubi.mtd=6,512 rootfstype=ubifs rootwait console=ttyS0,115200 mac_adr=0x00,0x30,0xe0,0x00,0x00,0x01 mem=128M poweroutage=yes root_sata=setenv bootargs root=/dev/sda2 ubi.mtd=6,512 rootwaitconsole=ttyS0,115200 mac_adr=0x00,0x30,0xe0,0x00,0x00,0x01 mem=128M poweroutage=yes fload1=fatload ide 0:1 0x60500000 /boot/uImage fload2=ext2load ide 0:1 0x60500000 /boot/uImage load_hdd=diskboot 0x60500000 0:1 load_hdd2=diskboot 0x60500000 0:2 load_hdd3=diskboot 0x60500000 0:3 reset_sata=ide reset select0=ide dev 0 select1=ide dev 1 boot_nand=run load_nand boot || run load_nand2 boot boot_sata=run reset_sata select0 fload1 boot || run reset_sata select0 fload2 boot || run reset_sata select0 load_hdd boot || run reset_sata select0 load_hdd2 boot stdin=serial stdout=serial stderr=serial bootargs=root=ubi0:rootfs ubi.mtd=6,512 rootfstype=ubifs rootwait console=ttyS0,115200 elevator=cfq mac_adr=0x00,0x30,0xe0,0x00,0x00,0x01 mem=128M poweroutage=yes root@PogoPlug:~/tools#
Re: Booting Pogo V3 Debian rootfs from OpenWrt u-boot May 20, 2017 07:20AM |
Admin Registered: 12 years ago Posts: 17,291 |
Re: Booting Pogo V3 Debian rootfs from OpenWrt u-boot May 20, 2017 11:03AM |
Registered: 5 years ago Posts: 22 |
NAS7820 BootStrap v0.1 [Fri Sep 27 08:37:50 CST 2013] PLX Technology, Inc. 2010. All Rights Reserved Copyright, lintel 2013.09 CPU Clock set to 700MHz ... Testing Stage2 Memory...OK! NAND Flash Info: Vendor ID:0x000000AD Product ID:0x000000F1 Type ID:0x00000000 Reading Nand Flash, Image 0 Hdr len: 0x00021D30 Hdr CRC: 0x3A0B1834 OK U-Boot 1.1.2 (Sep 23 2013 - 00:30:38) U-Boot code: 60D00000 -> 60D21D30 BSS: -> 60D56558 RAM Configuration: Bank #0: 60000000 128 MB SRAM Configuration: 64KB at 0x50000000 NAND:128 MiB In: serial Out: serial Err: serial Setting Linux mem= boot arg value Reading upgrade flag from NAND address 0x01ec0000 : 0 Hit any key to stop autoboot: 0 [root@PogoPlug-Pro]# [root@PogoPlug-Pro]#
root@PogoPlug:/# root@PogoPlug:/# reboot root@PogoPlug:/# [ 324.310000] br-lan: port 1(eth0) entering forwarding state [ 324.320000] device eth0 left promiscuous mode [ 324.320000] br-lan: port 1(eth0) entering disabled state [ 324.330000] br-lan: mixed no checksumming and other settings. [ 326.740000] Restarting system. NAS7820 BootStrap v0.1 [Fri Sep 27 08:37:50 CST 2013] PLX Technology, Inc. 2010. All Rights Reserved Copyright, lintel 2013.09 CPU Clock set to 700MHz ... Testing Stage2 Memory...OK! NAND Flash Info: Vendor ID:0x000000AD Product ID:0x000000F1 Type ID:0x00000000 Reading Nand Flash, Image 0 Hdr len: 0x00021D30 Hdr CRC: 0x3A0B1834 OK U-Boot 1.1.2 (Sep 23 2013 - 00:30:38) U-Boot code: 60D00000 -> 60D21D30 BSS: -> 60D56558 RAM Configuration: Bank #0: 60000000 128 MB SRAM Configuration: 64KB at 0x50000000 NAND:128 MiB In: serial Out: serial Err: serial Setting Linux mem= boot arg value Reading upgrade flag from NAND address 0x01ec0000 : 0 Hit any key to stop autoboot: 0 Turn on Green LED. Reset IDE: Initialising disks SATA PHY not ready for device 0 SATA PHY not ready for device 1 ide_preinit failed
Re: Booting Pogo V3 Debian rootfs from OpenWrt u-boot May 20, 2017 11:59AM |
Admin Registered: 12 years ago Posts: 17,291 |
> NAS7820 BootStrap v0.1 > [Fri Sep 27 08:37:50 CST 2013] > PLX Technology, Inc. 2010. All Rights Reserved > Copyright, lintel 2013.09 > CPU Clock set to 700MHz ... > Testing Stage2 Memory...OK! > NAND Flash Info: > Vendor ID:0x000000AD > Product ID:0x000000F1 > Type ID:0x00000000 > > Reading Nand Flash, Image 0 > Hdr len: 0x00021D30 > Hdr CRC: 0x3A0B1834 > OK > > > U-Boot 1.1.2 (Sep 23 2013 - 00:30:38) > > U-Boot code: 60D00000 -> 60D21D30 BSS: -> 60D5655 > 8 > RAM Configuration: > Bank #0: 60000000 128 MB > SRAM Configuration: > 64KB at 0x50000000 > NAND:128 MiB > In: serial > Out: serial > Err: serial > Setting Linux mem= boot arg value > Reading upgrade flag from NAND address 0x01ec0000 > : 0 > Hit any key to stop autoboot: 0 > [root@PogoPlug-Pro]# > [root@PogoPlug-Pro]# > >>
> root@PogoPlug:/# > root@PogoPlug:/# reboot > root@PogoPlug:/# [ 324.310000] br-lan: port 1(eth > 0) entering forwarding state > [ 324.320000] device eth0 left promiscuous mode > [ 324.320000] br-lan: port 1(eth0) entering disab > led state > [ 324.330000] br-lan: mixed no checksumming and o > ther settings. > [ 326.740000] Restarting system. > > NAS7820 BootStrap v0.1 > [Fri Sep 27 08:37:50 CST 2013] > PLX Technology, Inc. 2010. All Rights Reserved > Copyright, lintel 2013.09 > CPU Clock set to 700MHz ... > Testing Stage2 Memory...OK! > NAND Flash Info: > Vendor ID:0x000000AD > Product ID:0x000000F1 > Type ID:0x00000000 > > Reading Nand Flash, Image 0 > Hdr len: 0x00021D30 > Hdr CRC: 0x3A0B1834 > OK > > > U-Boot 1.1.2 (Sep 23 2013 - 00:30:38) > > U-Boot code: 60D00000 -> 60D21D30 BSS: -> 60D5655 > 8 > RAM Configuration: > Bank #0: 60000000 128 MB > SRAM Configuration: > 64KB at 0x50000000 > NAND:128 MiB > In: serial > Out: serial > Err: serial > Setting Linux mem= boot arg value > Reading upgrade flag from NAND address 0x01ec0000 > : 0 > Hit any key to stop autoboot: 0 > Turn on Green LED. > > Reset IDE: Initialising disks > SATA PHY not ready for device 0 > SATA PHY not ready for device 1 > ide_preinit failed > >
Re: Booting Pogo V3 Debian rootfs from OpenWrt u-boot May 20, 2017 12:13PM |
Registered: 5 years ago Posts: 22 |
Re: Booting Pogo V3 Debian rootfs from OpenWrt u-boot May 20, 2017 10:11PM |
Registered: 5 years ago Posts: 22 |
[root@PogoPlug-Pro]#version U-Boot 1.1.2 (Sep 23 2013 - 00:30:38) [root@PogoPlug-Pro]#bdinfo arch_number = 0x00000480 env_t = 0x00000000 boot_params = 0x60000100 DRAM bank = 0x00000000 -> start = 0x60000000 -> size = 0x08000000 ethaddr = 00:30:E0:00:00:01 ip_addr = 192.168.1.200 baudrate = 115200 bps [root@PogoPlug-Pro]#? ? - alias for 'help' base - print or set address offset bdinfo - print Board Info structure bootm - boot application image from memory bootp - boot image via network using BootP/TFTP protocol cmp - memory compare cp - memory copy crc32 - checksum calculation diskboot- boot from IDE device echo - echo args to console exit - exit script ext2load- load binary file from a Ext2 filesystem ext2ls- list files in a directory (default /) fatinfo - print information about filesystem fatload - load binary file from a dos filesystem fatls - list files in a directory (default /) go - start application at address 'addr' help - print online help ide - IDE sub-system iminfo - print header information for application image ledfail - Extinguish (0) or light (1) failure LED loop - infinite loop on address range md - memory display mm - memory modify (auto-incrementing) mtest - simple RAM test mw - memory write (fill) nand - NAND sub-system nboot - boot from NAND device nbootup - boot from NAND device with single bad block skip nm - memory modify (constant address) ping - send ICMP ECHO_REQUEST to network host printenv- print environment variables rarpboot- boot image via network using RARP/TFTP protocol reset - Perform RESET of the CPU run - run commands in an environment variable saveenv - save environment variables to persistent storage setenv - set environment variables test - minimal test like /bin/sh tftpboot- boot image via network using TFTP protocol version - print monitor version [root@PogoPlug-Pro]#
Re: Booting Pogo V3 Debian rootfs from OpenWrt u-boot May 20, 2017 10:33PM |
Registered: 5 years ago Posts: 22 |
[root@PogoPlug-Pro]# [root@PogoPlug-Pro]#setenv bootdelay 8 [root@PogoPlug-Pro]#saveenv Saving Environment to NAND... Erasing at 0x1a0000 -- 13107200% complete. OK 8192 bytes written: OK Erasing at 0x1c0000 -- 13107200% complete. OK 8192 bytes written: OK Writing to Nand... done [root@PogoPlug-Pro]#resetthen
root@PogoPlug:/# /root/tools/fw_printenv bootcmd=run lightled root_sata boot_sata || run root_nand boot_nand || run extinguishled baudrate=115200 ethaddr=00:30:e0:00:00:01 ipaddr=192.168.1.200 serverip=192.168.1.100 autoload=n netmask=255.255.0.0 bootfile="uImage" load_nand=nboot 0x60500000 0 0x200000 load_nand2=nboot 0x60500000 0 0x440000 lightled=ledfail 1 extinguishled=ledfail 0 boot=bootm 60500000 root_dev=ubi0:rootfs root_nand=setenv bootargs root=ubi0:rootfs ubi.mtd=6,512 rootfstype=ubifs rootwait console=ttyS0,115200 mac_adr=0x00,0x30,0xe0,0x00,0x00,0x01 mem=128M poweroutage=yes root_sata=setenv bootargs root=/dev/sda2 ubi.mtd=6,512 rootwaitconsole=ttyS0,115200 mac_adr=0x00,0x30,0xe0,0x00,0x00,0x01 mem=128M poweroutage=yes fload1=fatload ide 0:1 0x60500000 /boot/uImage fload2=ext2load ide 0:1 0x60500000 /boot/uImage load_hdd=diskboot 0x60500000 0:1 load_hdd2=diskboot 0x60500000 0:2 load_hdd3=diskboot 0x60500000 0:3 reset_sata=ide reset select0=ide dev 0 select1=ide dev 1 boot_nand=run load_nand boot || run load_nand2 boot boot_sata=run reset_sata select0 fload1 boot || run reset_sata select0 fload2 boot || run reset_sata select0 load_hdd boot || run reset_sata select0 load_hdd2 boot stdin=serial stdout=serial stderr=serial bootargs=root=ubi0:rootfs ubi.mtd=6,512 rootfstype=ubifs rootwait console=ttyS0,115200 elevator=cfq mac_adr=0x00,0x30,0xe0,0x00,0x00,0x01 mem=128M poweroutage=yes bootdelay=8 root@PogoPlug:/#
Re: Booting Pogo V3 Debian rootfs from OpenWrt u-boot May 21, 2017 12:43AM |
Admin Registered: 12 years ago Posts: 17,291 |
[root@PogoPlug-Pro]
> root@PogoPlug:/# /root/tools/fw_printenv > bootcmd=run lightled root_sata boot_sata || run r > oot_nand boot_nand || run extinguishled > baudrate=115200 > ethaddr=00:30:e0:00:00:01 > ipaddr=192.168.1.200 > serverip=192.168.1.100 > autoload=n > netmask=255.255.0.0 > bootfile="uImage" > load_nand=nboot 0x60500000 0 0x200000 > load_nand2=nboot 0x60500000 0 0x440000 > lightled=ledfail 1 > extinguishled=ledfail 0 > boot=bootm 60500000 > root_dev=ubi0:rootfs > root_nand=setenv bootargs root=ubi0:rootfs ubi.mtd > =6,512 rootfstype=ubifs rootwait console=ttyS0,115 > 200 mac_adr=0x00,0x30,0xe0,0x00,0x00,0x01 mem=128 > M poweroutage=yes > root_sata=setenv bootargs root=/dev/sda2 ubi.mtd=6 > ,512 rootwaitconsole=ttyS0,115200 mac_adr=0x00,0x3 > 0,0xe0,0x00,0x00,0x01 mem=128M poweroutage=yes > fload1=fatload ide 0:1 0x60500000 /boot/uImage > fload2=ext2load ide 0:1 0x60500000 /boot/uImage > load_hdd=diskboot 0x60500000 0:1 > load_hdd2=diskboot 0x60500000 0:2 > load_hdd3=diskboot 0x60500000 0:3 > reset_sata=ide reset > select0=ide dev 0 > select1=ide dev 1 > boot_nand=run load_nand boot || run load_nand2 boo > t > boot_sata=run reset_sata select0 fload1 boot || ru > n reset_sata select0 fload2 boot || run reset_sata > select0 load_hdd boot || run reset_sata select0 l > oad_hdd2 boot > stdin=serial > stdout=serial > stderr=serial > bootargs=root=ubi0:rootfs ubi.mtd=6,512 rootfstype > =ubifs rootwait console=ttyS0,115200 elevator=cfq > mac_adr=0x00,0x30,0xe0,0x00,0x00,0x01 mem=128M pow > eroutage=yes > bootdelay=8 >
Re: Booting Pogo V3 Debian rootfs from OpenWrt u-boot May 21, 2017 02:02AM |
Registered: 5 years ago Posts: 22 |
Reading upgrade flag from NAND address 0x01ec0000 : 0 Hit any key to stop autoboot: 0 [root@PogoPlug-Pro]#boot Unknown command 'boot' - try 'help' [root@PogoPlug-Pro]#What other command can be replaced it
[root@PogoPlug-Pro]#help ? - alias for 'help' base - print or set address offset bdinfo - print Board Info structure bootm - boot application image from memory bootp - boot image via network using BootP/TFTP protocol cmp - memory compare cp - memory copy crc32 - checksum calculation diskboot- boot from IDE device echo - echo args to console exit - exit script ext2load- load binary file from a Ext2 filesystem ext2ls- list files in a directory (default /) fatinfo - print information about filesystem fatload - load binary file from a dos filesystem fatls - list files in a directory (default /) go - start application at address 'addr' help - print online help ide - IDE sub-system iminfo - print header information for application image ledfail - Extinguish (0) or light (1) failure LED loop - infinite loop on address range md - memory display mm - memory modify (auto-incrementing) mtest - simple RAM test mw - memory write (fill) nand - NAND sub-system nboot - boot from NAND device nbootup - boot from NAND device with single bad block skip nm - memory modify (constant address) ping - send ICMP ECHO_REQUEST to network host printenv- print environment variables rarpboot- boot image via network using RARP/TFTP protocol reset - Perform RESET of the CPU run - run commands in an environment variable saveenv - save environment variables to persistent storage setenv - set environment variables test - minimal test like /bin/sh tftpboot- boot image via network using TFTP protocol version - print monitor version
Re: Booting Pogo V3 Debian rootfs from OpenWrt u-boot May 21, 2017 07:05AM |
Registered: 5 years ago Posts: 22 |
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: Bus 0: OK Device 0: Model: HGST HTS721010A9E630 Firm: JB0OA3U0 Ser#: JR1000D322ZPJE Type: Hard Disk Supports 48-bit addressing Capacity: 953869.7 MB = 931.5 GB (1953525168 x 512) ## Unknown partition table loading envs from usb 0 ... ** No partition table - usb 0 ** no IDE devices available running scan_disk ... Scan device usb device usb 0:1 ** No partition table - usb 0 ** device usb 1:1 ** Bad device usb 1 ** device usb 2:1 ** Bad device usb 2 ** device usb 3:1 ** Bad device usb 3 ** Scan device ide Reset IDE: Bus 0: OK Device 0: Model: HGST HTS721010A9E630 Firm: JB0OA3U0 Ser#: JR1000D322ZPJE Type: Hard Disk Supports 48-bit addressing Capacity: 953869.7 MB = 931.5 GB (1953525168 x 512) device ide 0:1 ** No partition table - ide 0 ** device ide 1:1 ** Bad device ide 1 ** device ide 2:1 ** Bad device ide 2 ** device ide 3:1 ** Bad device ide 3 ** loading uImage ... ** No partition table - usb 0 ** loading uInitrd ... ** No partition table - usb 0 ** loading DTB /boot/dts/ox820-pogoplug-pro.dtb ... ** No partition table - usb 0 ** Wrong Image Format for bootm command ERROR: can't get kernel image! resetting ...Did i miss something
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.100 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_$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.120 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: 2750/131068 bytes OX820>
root@debian:~# fdisk -l Disk /dev/mtdblock0: 14 MB, 14680064 bytes 171 heads, 42 sectors/track, 3 cylinders, total 28672 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: 0xaaaaaaaa This doesn't look like a partition table Probably you selected the wrong device. Device Boot Start End Blocks Id System /dev/mtdblock0p1 ? 2863311530 1431655763 1431655765 aa Unknown /dev/mtdblock0p2 ? 2863311530 1431655763 1431655765 aa Unknown /dev/mtdblock0p3 ? 2863311530 21843 715838805 aa Unknown /dev/mtdblock0p4 ? 2863311530 1426085203 1428870485 aa Unknown Disk /dev/mtdblock1: 119 MB, 119537664 bytes 255 heads, 63 sectors/track, 14 cylinders, total 233472 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 Disk /dev/mtdblock1 doesn't contain a valid partition table Disk /dev/sda: 1000.2 GB, 1000204886016 bytes 255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk identifier: 0x00000000 Disk /dev/sda doesn't contain a valid partition table Disk /dev/sdb: 16.2 GB, 16239329280 bytes 64 heads, 32 sectors/track, 15487 cylinders, total 31717440 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 Disk /dev/sdb doesn't contain a valid partition table root@debian:~# df -l Filesystem 1K-blocks Used Available Use% Mounted on rootfs 15478792 435760 14250096 3% / udev 10240 0 10240 0% /dev tmpfs 12192 76 12116 1% /run /dev/sdb 15478792 435760 14250096 3% / tmpfs 5120 0 5120 0% /run/lock tmpfs 24380 0 24380 0% /run/shm tmpfs 60956 0 60956 0% /tmp root@debian:~#