Lithium
Re: 2015.10 U-Boot for Pogoplug V3 (OXNAS OX820) March 25, 2016 06:30PM |
Re: 2015.10 U-Boot for Pogoplug V3 (OXNAS OX820) March 25, 2016 07:12PM |
Admin Registered: 13 years ago Posts: 19,192 |
Lithium
Re: 2015.10 U-Boot for Pogoplug V3 (OXNAS OX820) March 25, 2016 07:20PM |
Re: 2015.10 U-Boot for Pogoplug V3 (OXNAS OX820) March 25, 2016 08:25PM |
Admin Registered: 13 years ago Posts: 19,192 |
Lithium
Re: 2015.10 U-Boot for Pogoplug V3 (OXNAS OX820) March 26, 2016 05:35AM |
Re: 2015.10 U-Boot for Pogoplug V3 (OXNAS OX820) March 26, 2016 07:18AM |
Admin Registered: 13 years ago Posts: 19,192 |
Re: 2015.10 U-Boot for Pogoplug V3 (OXNAS OX820) March 26, 2016 07:35AM |
Registered: 8 years ago Posts: 20 |
ubuntu@ubuntu:~/Desktop/tmp$ tar -xvzf onax-sata_boot.tar.gz ./ ./disk_create ./uImage ./stage1/ ./stage1/stage1.wrapped750 ./stage1/stage1.wrapped850 ./stage1/stage1.wrapped700 ./stage1/stage1.wrapped800 ./u-boot/ ./u-boot/u-boot.wrapped ./u-boot.wrapped ./stage1.wrapped ./uImages/ ./uImages/uImage.nopci ./uImages/uImage.pci sudo ./disk_create 0+1 records in 0+1 records out 444 bytes (444 B) copied, 2.89768 s, 0.2 kB/s Writing stage 1 14+1 records in 14+1 records out 7576 bytes (7.6 kB) copied, 0.0194048 s, 390 kB/s Writing uboot 253+1 records in 253+1 records out 129852 bytes (130 kB) copied, 0.187917 s, 691 kB/s Writing kernel to 4164+1 records in 4164+1 records out 2132324 bytes (2.1 MB) copied, 0.00910292 s, 234 MB/s ubuntu@ubuntu:~/Desktop/tmp$ sudo fdisk /dev/sdb Welcome to fdisk (util-linux 2.26.2). Changes will remain in memory only, until you decide to write them. Be careful before using the write command. Command (m for help): p Disk /dev/sdb: 465.8 GiB, 500107862016 bytes, 976773168 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 Disklabel type: dos Disk identifier: 0x00008000 Command (m for help): n Partition type p primary (0 primary, 0 extended, 4 free) e extended (container for logical partitions) Select (default p): p Partition number (1-4, default 1): 1 First sector (2048-976773167, default 2048): 2048 Last sector, +sectors or +size{K,M,G,T,P} (2048-976773167, default 976773167): +10M Created a new partition 1 of type 'Linux' and of size 10 MiB. Command (m for help): w The partition table has been altered. Calling ioctl() to re-read partition table. Syncing disks. ubuntu@ubuntu:~/Desktop/tmp$ sudo fdisk /dev/sdb Welcome to fdisk (util-linux 2.26.2). Changes will remain in memory only, until you decide to write them. Be careful before using the write command. Command (m for help): n Partition type p primary (1 primary, 0 extended, 3 free) e extended (container for logical partitions) Select (default p): p Partition number (2-4, default 2): 2 First sector (22528-976773167, default 22528): Last sector, +sectors or +size{K,M,G,T,P} (22528-976773167, default 976773167): +100M Created a new partition 2 of type 'Linux' and of size 100 MiB. Command (m for help): w The partition table has been altered. Calling ioctl() to re-read partition table. Syncing disks. ubuntu@ubuntu:~/Desktop/tmp$ sudo mkfs.ext3 /dev/sdb2 mke2fs 1.42.12 (29-Aug-2014) Creating filesystem with 102400 1k blocks and 25688 inodes Filesystem UUID: 5336a9d1-e862-4cad-b8c8-26180c716868 Superblock backups stored on blocks: 8193, 24577, 40961, 57345, 73729 Allocating group tables: done Writing inode tables: done Creating journal (4096 blocks): done Writing superblocks and filesystem accounting information: done ubuntu@ubuntu:~/Desktop/tmp$ sudo e2label /dev/sdb2 rootfs ubuntu@ubuntu:~/Desktop/tmp$ sudo ./disk_create 0+1 records in 0+1 records out 444 bytes (444 B) copied, 0.000132105 s, 3.4 MB/s Writing stage 1 14+1 records in 14+1 records out 7576 bytes (7.6 kB) copied, 0.0444857 s, 170 kB/s Writing uboot 253+1 records in 253+1 records out 129852 bytes (130 kB) copied, 0.443836 s, 293 kB/s Writing kernel to 4164+1 records in 4164+1 records out 2132324 bytes (2.1 MB) copied, 0.00784558 s, 272 MB/s
$ printenv bootcmd=run dload1 boot || run dload2 boot || lightled bootdelay=2 baudrate=115200 ethaddr=00:30:e0:00:00:01 ipaddr=172.31.0.128 serverip=172.31.0.100 autoload=n netmask=255.255.0.0 bootfile="uImage" lightled=ledfail 1 extinguishled=ledfail 0 boot=bootm 60500000 dload1=diskboot 60500000 0:1 dload2=diskboot 60500000 0:2 root_dev1=/dev/sda2 root_dev2=/dev/sda1 root_dev=/dev/sda2 stdin=serial stdout=serial stderr=serial bootargs=root=/dev/sda2 console=ttyS0,115200 elevator=cfq mac_adr=0x00,0x30,0xe0,0x00,0x00,0x01 rootwait ubi.mtd=2,512 mem=128M poweroutage=yes Environment size: 565/8188 bytes
Re: 2015.10 U-Boot for Pogoplug V3 (OXNAS OX820) March 26, 2016 11:07AM |
Registered: 8 years ago Posts: 20 |
[root@alarm tmp]# dmesg | grep -i 'bad' [ 2.300000] Scanning device for bad blocks [ 2.300000] Bad eraseblock 5 at 0x0000000a0000 [ 2.300000] Bad eraseblock 116 at 0x000000e80000 [ 2.310000] Bad eraseblock 268 at 0x000002180000 [ 2.340000] Bad eraseblock 590 at 0x0000049c0000 [ 2.350000] Bad eraseblock 789 at 0x0000062a0000 [ 2.860000] UBI: number of bad PEBs: 4 [ 2.890000] UBI: number of PEBs reserved for bad PEB handling: 9
Re: 2015.10 U-Boot for Pogoplug V3 (OXNAS OX820) March 26, 2016 03:13PM |
Admin Registered: 13 years ago Posts: 19,192 |
Re: 2015.10 U-Boot for Pogoplug V3 (OXNAS OX820) March 26, 2016 03:35PM |
Admin Registered: 13 years ago Posts: 19,192 |
Re: 2015.10 U-Boot for Pogoplug V3 (OXNAS OX820) March 26, 2016 04:16PM |
Admin Registered: 13 years ago Posts: 19,192 |
dev: size erasesize name mtd0: 00e00000 00020000 "boot" mtd1: 07200000 00020000 "data"
Quote
8. Flash u-boot to 0x40000
/usr/sbin/nandwrite -s 262144 /dev/mtd0 uboot.2015.10-tld-1.ox820.mtd0.img
Expected output
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
Re: 2015.10 U-Boot for Pogoplug V3 (OXNAS OX820) March 26, 2016 06:11PM |
Registered: 8 years ago Posts: 20 |
Re: 2015.10 U-Boot for Pogoplug V3 (OXNAS OX820) March 26, 2016 06:21PM |
Registered: 8 years ago Posts: 20 |
dev: size erasesize name mtd0: 00e00000 00020000 "boot" mtd1: 07200000 00020000 "data"
[root@alarm boot]# cat /proc/mtd dev: size erasesize name mtd0: 08000000 00020000 "NAND 128MiB 3,3V 8-bit" mtd1: 00e00000 00020000 "boot" mtd2: 07200000 00020000 "rootfs"I dont know how to modify this.
Re: 2015.10 U-Boot for Pogoplug V3 (OXNAS OX820) March 26, 2016 06:40PM |
Admin Registered: 13 years ago Posts: 19,192 |
printenv
Re: 2015.10 U-Boot for Pogoplug V3 (OXNAS OX820) March 26, 2016 06:49PM |
Registered: 8 years ago Posts: 20 |
Re: 2015.10 U-Boot for Pogoplug V3 (OXNAS OX820) March 26, 2016 06:52PM |
Admin Registered: 13 years ago Posts: 19,192 |
Re: 2015.10 U-Boot for Pogoplug V3 (OXNAS OX820) March 26, 2016 07:00PM |
Registered: 8 years ago Posts: 20 |
Re: 2015.10 U-Boot for Pogoplug V3 (OXNAS OX820) March 27, 2016 02:55AM |
Admin Registered: 13 years ago Posts: 19,192 |
setenv bootargs 'root=/dev/sda2 console=ttyS0,115200 elevator=cfq mac_adr=0x00,0x30,0xe0,0x00,0x00,0x01 rootwait ubi.mtd=2,512 mem=128M poweroutage=yes mtdparts=41000000.nand:14m(boot),-(data)'
boot
cat /proc/mtd
Re: 2015.10 U-Boot for Pogoplug V3 (OXNAS OX820) March 27, 2016 07:32AM |
Registered: 8 years ago Posts: 20 |
dev: size erasesize name mtd0: 08000000 00020000 "NAND 128MiB 3,3V 8-bit" mtd1: 00e00000 00020000 "boot" mtd2: 07200000 00020000 "rootfs"
[root@alarm tmp]# /usr/sbin/flash_erase /dev/mtd0 0x0 6 Erasing 128 Kibyte @ 80000 -- 66 % complete flash_erase: Skipping bad block at 000a0000 Erasing 128 Kibyte @ a0000 -- 100 % complete # /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 Bad block at a0000, 1 block(s) from a0000 will be skipped Writing data to block 6 at offset 0xc0000
Re: 2015.10 U-Boot for Pogoplug V3 (OXNAS OX820) March 27, 2016 09:08AM |
Registered: 10 years ago Posts: 68 |
Re: 2015.10 U-Boot for Pogoplug V3 (OXNAS OX820) March 27, 2016 03:27PM |
Admin Registered: 13 years ago Posts: 19,192 |
Re: 2015.10 U-Boot for Pogoplug V3 (OXNAS OX820) March 27, 2016 03:33PM |
Admin Registered: 13 years ago Posts: 19,192 |
/usr/sbin/flash_erase /dev/mtd0 0x0 7
/usr/sbin/nandwrite /dev/mtd0 uboot.spl.2013.10.ox820.850mhz.mtd0.img
/usr/sbin/nandwrite -s 262144 /dev/mtd0 uboot.2015.10-tld-1.ox820.mtd0.img
Re: 2015.10 U-Boot for Pogoplug V3 (OXNAS OX820) March 27, 2016 04:17PM |
Registered: 8 years ago Posts: 20 |
[root@alarm tmp]# /usr/sbin/flash_erase /dev/mtd0 0x0 6 Erasing 128 Kibyte @ 80000 -- 66 % complete flash_erase: Skipping bad block at 000a0000 Erasing 128 Kibyte @ a0000 -- 100 % complete # /usr/sbin/nandwrite /dev/mtd0 uboot.spl.2013.10.ox820.850mhz.mtd0.img Writing data to block 0 at offset 0x0 # /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 Bad block at a0000, 1 block(s) from a0000 will be skipped Writing data to block 6 at offset 0xc0000 [root@alarm tmp]# /usr/sbin/flash_erase /dev/mtd0 0x00100000 1 Erasing 128 Kibyte @ 100000 -- 100 % complete # /usr/sbin/nandwrite -s 1048576 /dev/mtd0 uboot.2013.10-tld-5.ox820.environment.img Writing data to block 8 at offset 0x100000
Re: 2015.10 U-Boot for Pogoplug V3 (OXNAS OX820) March 27, 2016 04:20PM |
Admin Registered: 13 years ago Posts: 19,192 |
Re: 2015.10 U-Boot for Pogoplug V3 (OXNAS OX820) March 27, 2016 04:26PM |
Registered: 8 years ago Posts: 20 |
Re: 2015.10 U-Boot for Pogoplug V3 (OXNAS OX820) March 27, 2016 04:28PM |
Admin Registered: 13 years ago Posts: 19,192 |
Re: 2015.10 U-Boot for Pogoplug V3 (OXNAS OX820) March 27, 2016 04:29PM |
Registered: 8 years ago Posts: 20 |
[root@alarm tmp]# /usr/sbin/flash_erase /dev/mtd0 0x0 7 Erasing 128 Kibyte @ 80000 -- 57 % complete flash_erase: Skipping bad block at 000a0000 Erasing 128 Kibyte @ c0000 -- 100 % complete td0.imglarm tmp]# /usr/sbin/nandwrite /dev/mtd0 uboot.spl.2013.10.ox820.850mhz.m Writing data to block 0 at offset 0x0 820.mtd0.imgtmp]# /usr/sbin/nandwrite -s 262144 /dev/mtd0 uboot.2015.10-tld-1.ox 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 Bad block at a0000, 1 block(s) from a0000 will be skipped Writing data to block 6 at offset 0xc0000 [root@alarm tmp]# /usr/sbin/flash_erase /dev/mtd0 0x00100000 1 Erasing 128 Kibyte @ 100000 -- 100 % complete x820.environment.imgsr/sbin/nandwrite -s 1048576 /dev/mtd0 uboot.2013.10-tld-5.o Writing data to block 8 at offset 0x100000
Re: 2015.10 U-Boot for Pogoplug V3 (OXNAS OX820) March 27, 2016 04:45PM |
Admin Registered: 13 years ago Posts: 19,192 |
Quote
Latest rootfs: Debian-3.17.0-oxnas-tld-1-rootfs-bodhi.tar.bz2 (02 Nov 2014)
printenv
boot
Re: 2015.10 U-Boot for Pogoplug V3 (OXNAS OX820) March 27, 2016 04:53PM |
Admin Registered: 13 years ago Posts: 19,192 |
Re: 2015.10 U-Boot for Pogoplug V3 (OXNAS OX820) March 28, 2016 04:26AM |
Registered: 8 years ago Posts: 20 |