Re: Linux Kernel 3.17.0 Pogo V3 (Oxnas OX820) package and rootfs (Flattened Device Tree) February 07, 2015 05:38AM |
Admin Registered: 13 years ago Posts: 18,997 |
2. The env image pogopro_uboot_env.img should only be flashed if your rootfs has FDT kernel. If your kernel is an older non-FDT kernel then do not flash this env image.
ping 192.168.1.13
Nate
Re: Linux Kernel 3.17.0 Pogo V3 (Oxnas OX820) package and rootfs (Flattened Device Tree) February 07, 2015 08:02AM |
Re: Linux Kernel 3.17.0 Pogo V3 (Oxnas OX820) package and rootfs (Flattened Device Tree) February 07, 2015 12:20PM |
Admin Registered: 13 years ago Posts: 18,997 |
Nate
Re: Linux Kernel 3.17.0 Pogo V3 (Oxnas OX820) package and rootfs (Flattened Device Tree) February 09, 2015 01:29AM |
root@ubuntu-VirtualBox:/mnt# fdisk -l Disk /dev/sda: 8 GiB, 8589934592 bytes, 16777216 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: 0x90300e5f Device Boot Start End Sectors Size Id Type /dev/sda1 * 2048 14680063 14678016 7G 83 Linux /dev/sda2 14682110 16775167 2093058 1022M 5 Extended /dev/sda5 14682112 16775167 2093056 1022M 82 Linux swap / Solaris Disk /dev/sdb: 55.9 GiB, 60022480896 bytes, 117231408 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: 0xa4b694fd Device Boot Start End Sectors Size Id Type /dev/sdb1 2048 8390655 8388608 4G 83 Linux /dev/sdb2 8390656 117231407 108840752 51.9G 83 Linux
root@ubuntu-VirtualBox:/mnt# ls -la /dev/disk/by-label total 0 drwxr-xr-x 2 root root 60 Feb 9 15:23 . drwxr-xr-x 6 root root 120 Feb 9 15:23 .. lrwxrwxrwx 1 root root 10 Feb 9 15:23 rootfs -> ../../sdb1
Re: Linux Kernel 3.17.0 Pogo V3 (Oxnas OX820) package and rootfs (Flattened Device Tree) February 09, 2015 03:05AM |
Admin Registered: 13 years ago Posts: 18,997 |
Nate
Re: Linux Kernel 3.17.0 Pogo V3 (Oxnas OX820) package and rootfs (Flattened Device Tree) February 10, 2015 02:51AM |
root@ubuntu-VirtualBox:/home/ubuntu# fdisk /dev/sdb Welcome to fdisk (util-linux 2.25.1). 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: 55.9 GiB, 60022480896 bytes, 117231408 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: 0xa4b694fd Device Boot Start End Sectors Size Id Type /dev/sdb1 2048 8390655 8388608 4G 83 Linux /dev/sdb2 8390656 117231407 108840752 51.9G 83 Linux Command (m for help): o Created a new DOS disklabel with disk identifier 0x7133f033. Command (m for help): n Partition type p primary (0 primary, 0 extended, 4 free) e extended (container for logical partitions) Select (default p): Using default response p. Partition number (1-4, default 1): First sector (2048-117231407, default 2048): Last sector, +sectors or +size{K,M,G,T,P} (2048-117231407, default 117231407): +4G Created a new partition 1 of type 'Linux' and of size 4 GiB. Command (m for help): n Partition type p primary (1 primary, 0 extended, 3 free) e extended (container for logical partitions) Select (default p): Using default response p. Partition number (2-4, default 2): First sector (8390656-117231407, default 8390656): Last sector, +sectors or +size{K,M,G,T,P} (8390656-117231407, default 117231407): Created a new partition 2 of type 'Linux' and of size 51.9 GiB. Command (m for help): w The partition table has been altered. Calling ioctl() to re-read partition table. Syncing disks. root@ubuntu-VirtualBox:/home/ubuntu# sync
root@ubuntu-VirtualBox:/home/ubuntu# mkfs.ext4 -L 'rootfs' /dev/sdb1 mke2fs 1.42.10 (18-May-2014) /dev/sdb1 contains a ext3 file system labelled 'rootfs' last mounted on /media/ubuntu/rootfs on Mon Feb 9 18:08:16 2015 Proceed anyway? (y,n) y Creating filesystem with 1048576 4k blocks and 262144 inodes Filesystem UUID: b3aefd91-af8b-4d20-aa9c-ced7dc206e8e Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736 Allocating group tables: done Writing inode tables: done Creating journal (32768 blocks): done Writing superblocks and filesystem accounting information: done root@ubuntu-VirtualBox:/home/ubuntu# mkfs.ext4 /dev/sdb2 mke2fs 1.42.10 (18-May-2014) /dev/sdb2 contains a ext3 file system last mounted on Mon Feb 9 18:08:16 2015 Proceed anyway? (y,n) y Creating filesystem with 13605094 4k blocks and 3407872 inodes Filesystem UUID: d2bca4cd-af6d-402b-bfd7-d5b4b0f647da Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 4096000, 7962624, 11239424 Allocating group tables: done Writing inode tables: done Creating journal (32768 blocks): done Writing superblocks and filesystem accounting information: done root@ubuntu-VirtualBox:/home/ubuntu# sync
root@ubuntu-VirtualBox:/home/ubuntu# mount /dev/sdb1 /mnt/sdb1 root@ubuntu-VirtualBox:/home/ubuntu# cp ox820-sata-uboot.tar.gz /mnt/sdb1 root@ubuntu-VirtualBox:/home/ubuntu# cd /mnt/sdb1/ root@ubuntu-VirtualBox:/mnt/sdb1# tar -zxvf ox820-sata-uboot.tar.gz boot/ boot/uImage_2.6.31.14_OX820_1.2_shv.Pro boot/u-boot.img boot/u-boot.env boot/uInitrd boot/dts/ boot/dts/ox820-pogoplug-pro.dtb boot/uImage boot/u-boot-spl.bin root@ubuntu-VirtualBox:/mnt/sdb1# ls boot lost+found ox820-sata-uboot.tar.gz root@ubuntu-VirtualBox:/mnt/sdb1#sync
root@ubuntu-VirtualBox:/mnt/sdb1# vi disk_create root@ubuntu-VirtualBox:/mnt/sdb1# cat disk_create #!/bin/sh # uncomment line below and set to the correct disk disk=/dev/sdb1 if [ -z "${disk}" ] ; then echo "You must uncomment/set the 'disk' variable" exit -1 fi workarea="boot" stage1File=$workarea/u-boot-spl.bin perl <<EOF | dd of="$disk" bs=512 print "\x00" x 0x1a4; print "\x00\x5f\x01\x00"; print "\x00\xdf\x00\x00"; print "\x00\x80\x00\x00"; print "\x00" x (0x1b0 -0x1a4 -12 ); print "\x22\x80\x00\x00"; print "\x22\x00\x00\x00"; print "\x00\x80\x00\x00"; EOF if [ -f $stage1File ];then echo "Writing stage 1" dd if=$stage1File of="$disk" bs=512 seek=34 fi root@ubuntu-VirtualBox:/mnt/sdb1# sync root@ubuntu-VirtualBox:/mnt/sdb1# ./disk_create 0+1 records in 0+1 records out 444 bytes (444 B) copied, 0.0052846 s, 84.0 kB/s Writing stage 1 62+1 records in 62+1 records out 32120 bytes (32 kB) copied, 0.157186 s, 204 kB/s root@ubuntu-VirtualBox:/mnt/sdb1# sync
oot@ubuntu-VirtualBox:/mnt/sdb1# cd /home/ubuntu root@ubuntu-VirtualBox:/home/ubuntu# cp Debian-3.17.0-oxnas-tld-1-rootfs-bodhi.tar.bz2 /mnt/sdb1 root@ubuntu-VirtualBox:/gome/ubuntu# cd /mnt/sdb1 root@ubuntu-VirtualBox:/mnt/sdb1# ls boot lost+found Debian-3.17.0-oxnas-tld-1-rootfs-bodhi.tar.bz2 ox820-sata-uboot.tar.gz disk_create root@ubuntu-VirtualBox:/mnt/sdb1# tar -xjf Debian-3.17.0-oxnas-tld-1-rootfs-bodhi.tar.bz2 root@ubuntu-VirtualBox:/mnt/sdb1# ls bin ox820-sata-uboot.tar.gz boot proc Debian-3.17.0-oxnas-tld-1-rootfs-bodhi.tar.bz2 root dev run disk_create sbin etc selinux home srv lib sys lost+found tmp media usr mnt var opt root@ubuntu-VirtualBox:/mnt/sdb1# sync root@ubuntu-VirtualBox:/mnt/sdb1# cd .. root@ubuntu-VirtualBox:/mnt# umount sdb1
Re: Linux Kernel 3.17.0 Pogo V3 (Oxnas OX820) package and rootfs (Flattened Device Tree) February 10, 2015 03:32AM |
Admin Registered: 13 years ago Posts: 18,997 |
Nate
Re: Linux Kernel 3.17.0 Pogo V3 (Oxnas OX820) package and rootfs (Flattened Device Tree) February 10, 2015 08:44PM |
Re: Linux Kernel 3.17.0 Pogo V3 (Oxnas OX820) package and rootfs (Flattened Device Tree) February 10, 2015 09:21PM |
Admin Registered: 13 years ago Posts: 18,997 |
Nate
Re: Linux Kernel 3.17.0 Pogo V3 (Oxnas OX820) package and rootfs (Flattened Device Tree) February 10, 2015 09:46PM |
Re: Linux Kernel 3.17.0 Pogo V3 (Oxnas OX820) package and rootfs (Flattened Device Tree) February 10, 2015 10:26PM |
Admin Registered: 13 years ago Posts: 18,997 |
> root@ubuntu-VirtualBox:/mnt/sdb1/boot# > ./mkenvimage -s 16384 -o u-boot.env > u-boot-env.txt > bash: ./mkenvimage: cannot execute binary file: > Exec format error >
Nate
Re: Linux Kernel 3.17.0 Pogo V3 (Oxnas OX820) package and rootfs (Flattened Device Tree) February 10, 2015 11:38PM |
Re: Linux Kernel 3.17.0 Pogo V3 (Oxnas OX820) package and rootfs (Flattened Device Tree) February 11, 2015 01:58AM |
Admin Registered: 13 years ago Posts: 18,997 |
Nate
Re: Linux Kernel 3.17.0 Pogo V3 (Oxnas OX820) package and rootfs (Flattened Device Tree) February 11, 2015 06:08AM |
Re: Linux Kernel 3.17.0 Pogo V3 (Oxnas OX820) package and rootfs (Flattened Device Tree) February 11, 2015 07:22AM |
Admin Registered: 13 years ago Posts: 18,997 |
Re: Linux Kernel 3.18 Pogo V3 (Oxnas OX820) package and rootfs (Flattened Device Tree) February 13, 2015 12:24AM |
Admin Registered: 13 years ago Posts: 18,997 |
Re: Linux Kernel 3.18 Pogo V3 (Oxnas OX820) package and rootfs (Flattened Device Tree) February 13, 2015 06:18AM |
Registered: 9 years ago Posts: 429 |
Re: Linux Kernel 3.18 Pogo V3 (Oxnas OX820) package and rootfs (Flattened Device Tree) February 13, 2015 12:31PM |
Admin Registered: 13 years ago Posts: 18,997 |
Re: Linux Kernel 3.18 Pogo V3 (Oxnas OX820) package and rootfs (Flattened Device Tree) February 13, 2015 01:11PM |
Registered: 9 years ago Posts: 429 |
dump
Re: Linux Kernel 3.18 Pogo V3 (Oxnas OX820) package and rootfs (Flattened Device Tree) February 14, 2015 02:24AM |
Re: Linux Kernel 3.18 Pogo V3 (Oxnas OX820) package and rootfs (Flattened Device Tree) February 14, 2015 03:14AM |
Admin Registered: 13 years ago Posts: 18,997 |
Re: Linux Kernel 3.18 Pogo V3 (Oxnas OX820) package and rootfs (Flattened Device Tree) February 14, 2015 02:19PM |
Admin Registered: 13 years ago Posts: 18,997 |
find /lib/modules/ -name '*3390*' find /lib/modules/ -name 'rt*'
Re: Linux Kernel 3.18 Pogo V3 (Oxnas OX820) package and rootfs (Flattened Device Tree) February 25, 2015 05:23AM |
Registered: 10 years ago Posts: 28 |
Bus 001 Device 005: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)
Re: Linux Kernel 3.18 Pogo V3 (Oxnas OX820) package and rootfs (Flattened Device Tree) February 25, 2015 11:53AM |
Admin Registered: 13 years ago Posts: 18,997 |
Re: Linux Kernel 3.18 Pogo V3 (Oxnas OX820) package and rootfs (Flattened Device Tree) February 25, 2015 12:26PM |
Admin Registered: 13 years ago Posts: 18,997 |
Re: Linux Kernel 3.18 Pogo V3 (Oxnas OX820) package and rootfs (Flattened Device Tree) February 25, 2015 05:28PM |
Registered: 9 years ago Posts: 429 |
Re: Linux Kernel 3.18 Pogo V3 (Oxnas OX820) package and rootfs (Flattened Device Tree) February 27, 2015 06:14AM |
Registered: 9 years ago Posts: 429 |
tufkal
Re: Linux Kernel 3.18 Pogo V3 (Oxnas OX820) package and rootfs (Flattened Device Tree) March 01, 2015 04:15PM |
[root@alarm bin]# ./blparam 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 ethaddr=00:25:31:02:94:4D cesvcid=2NBD9UVLL5X5RF63QW5QYKW3TE ceboardver=PPV3 serverip=192.168.1.20 ipaddr=192.168.1.122 bootargs_stock=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 load_custom_nand=nboot 60500000 0 500000 load_custom_nand2=nboot 60500000 0 B00000 boot_custom=run load_custom_nand boot || run load_custom_nand2 boot bootargs=root=/dev/sda1 ubi.mtd=2,512 rootfstype=ext3 console=ttyS0,115200 elevator=cfq mac_adr=0x00,0x30,0xe0,0x00,0x00,0x01 mem=128M poweroutage=yes rootwait bootcmd=run boot_custom
Re: Linux Kernel 3.18 Pogo V3 (Oxnas OX820) package and rootfs (Flattened Device Tree) March 01, 2015 04:55PM |
Admin Registered: 13 years ago Posts: 18,997 |
boot_custom=run load_custom_nand boot || run load_custom_nand2 boot bootargs=root=/dev/sda1 ubi.mtd=2,512 rootfstype=ext3 console=ttyS0,115200 elev ator=cfq mac_adr=0x00,0x30,0xe0,0x00,0x00,0x01 mem=128M poweroutage=yes rootwait bootcmd=run boot_custom
bootcmd_usb=usb start; run usb_bootcmd; usb stop; reset usb_bootcmd=run usb_set_bootargs; run usb_boot usb_boot=run load_uimage; run load_initrd; bootm 0x60500000 0x60a00000 load_initrd=ext2load usb 0:1 0x60a00000 /boot/uInitrd load_uimage=ext2load usb 0:1 0x60500000 /boot/uImage bootcmd=run bootcmd_usb
Tufkal
Re: Linux Kernel 3.18 Pogo V3 (Oxnas OX820) package and rootfs (Flattened Device Tree) March 01, 2015 07:25PM |
> boot_custom=run load_custom_nand boot || run > load_custom_nand2 boot > bootargs=root=/dev/sda1 ubi.mtd=2,512 > rootfstype=ext3 console=ttyS0,115200 elev > ator=cfq mac_adr=0x00,0x30,0xe0,0x00,0x00,0x01 > mem=128M poweroutage=yes rootwait > bootcmd=run boot_custom >>
> bootcmd_usb=usb start; run usb_bootcmd; usb stop; > reset > usb_bootcmd=run usb_set_bootargs; run usb_boot > usb_boot=run load_uimage; run load_initrd; bootm > 0x60500000 0x60a00000 > load_initrd=ext2load usb 0:1 0x60a00000 > /boot/uInitrd > load_uimage=ext2load usb 0:1 0x60500000 > /boot/uImage > bootcmd=run bootcmd_usb >>