Trying 192.168.2.209...
Connected to 192.168.2.209.
Escape character is '^]'.

*****************************
*                           *
*   The Gemini Project 4.1  *
*                           *
*****************************

opendreambox 2.6.0 dreambox


dreambox login: root
root@dreambox:~# mount | grep /dev/
/dev/dreambox-rootfs on / type ext4 (rw,relatime,data=ordered)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,relatime)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
mqueue on /dev/mqueue type mqueue (rw,relatime)
/dev/dreambox-data on /data type ext4 (rw,relatime,data=ordered)
/dev/sda1 on /autofs/sda1 type ext4 (rw,relatime,sync,data=ordered)
/dev/mmcblk1p1 on /autofs/mmcblk1p1 type vfat (rw,relatime,sync,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
root@dreambox:~# cd /autofs/sda1
root@dreambox:/autofs/sda1# ls
data  lost+found
root@dreambox:/autofs/sda1# cd data
root@dreambox:/autofs/sda1/data# ls
ATV.bin  amlogic_64  build  common  common2  fenix  galilei_1.tar.gz  hardkernel  hardkernel.tar.gz  rpi3-android  s922x  s922x.tar  tmp
root@dreambox:/autofs/sda1/data# ./ATV.bin

ATV.bin: Self Extracting dreambox ATV Installer
extracting files to: . ...
AndroidTV/
AndroidTV/flash_atv.sh
AndroidTV/autoexec.img
AndroidTV/ramdisk-debug.img
AndroidTV/vendor.img
AndroidTV/meson-g12b-dreambox.dtb
AndroidTV/gboot.bin
AndroidTV/extlinux/
AndroidTV/extlinux/atv.debug
AndroidTV/extlinux/extlinux.conf
AndroidTV/extlinux/atv.boot
AndroidTV/extlinux/atv.recovery
AndroidTV/Image.lz4
AndroidTV/meson-g12b-dreambox-android.dtb
AndroidTV/u-boot.ext
AndroidTV/ramdisk-recovery.img
AndroidTV/ramdisk.img
AndroidTV/system.img
AndroidTV/MindTheGapps-13.0.0-arm64-ATV-20230323_181154.zip
Flash dreambox Android TV AOSP sdcard script
Image has 11 GiB userdata size!
Running from: /autofs/sda1/data/AndroidTV

Umounting device...
Done

Partitioning /dev/mmcblk1 device...
Checking that no-one is using this disk right now ... OK

Disk /dev/mmcblk1: 14.5 GiB, 15552479232 bytes, 30375936 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: 0xb43f9bf6

Old situation:

Device         Boot Start      End  Sectors  Size Id Type
/dev/mmcblk1p1       2048 30361599 30359552 14.5G  b W95 FAT32

>>> Created a new DOS disklabel with disk identifier 0xf3151ad7.
/dev/mmcblk1p1: Created a new partition 1 of type 'W95 FAT32 (LBA)' and of size 488.3 MiB.
Partition #1 contains a vfat signature.
/dev/mmcblk1p2: Created a new partition 2 of type 'Linux' and of size 1.7 GiB.
/dev/mmcblk1p3: Created a new partition 3 of type 'Linux' and of size 122.1 MiB.
/dev/mmcblk1p4: Created a new partition 4 of type 'Extended' and of size 12.2 GiB.
/dev/mmcblk1p5: Created a new partition 5 of type 'Linux' and of size 122.1 MiB.
/dev/mmcblk1p6: Created a new partition 6 of type 'Linux' and of size 11.5 GiB.
/dev/mmcblk1p7: Created a new partition 7 of type 'Linux' and of size 30.5 MiB.
/dev/mmcblk1p8: Created a new partition 8 of type 'Linux swap / Solaris' and of size 195.3 MiB.
/dev/mmcblk1p9: Done.

New situation:

Device         Boot    Start      End  Sectors   Size Id Type
/dev/mmcblk1p1          2048  1002047  1000000 488.3M  c W95 FAT32 (LBA)
/dev/mmcblk1p2       1003520  4503519  3500000   1.7G 83 Linux
/dev/mmcblk1p3       4503552  4753551   250000 122.1M 83 Linux
/dev/mmcblk1p4       4755456 30375935 25620480  12.2G  5 Extended
/dev/mmcblk1p5       4757504  5007503   250000 122.1M 83 Linux
/dev/mmcblk1p6       5011456 29011455 24000000  11.5G 83 Linux
/dev/mmcblk1p7      29014016 29076515    62500  30.5M 83 Linux
/dev/mmcblk1p8      29079552 29479551   400000 195.3M 82 Linux swap / Solaris

The partition table has been altered.
Calling ioctl() to re-read partition table.
Re-reading the partition table failed.: Device or resource busy
The kernel still uses the old table. The new table will be used at the next reboot or after you run partprobe(8) or kpartx(8).
Syncing disks.
Done

Waiting for automount
Done

Umounting device...
Done

Formatting boot partition...
Done

Formatting cache partition...
mke2fs 1.43.4 (31-Jan-2017)
The file /dev/mmcblk1p5 does not exist and no size was specified.
root@dreambox:/autofs/sda1/data# fdisk -l

Disk /dev/mmcblk0: 15.6 GB, 15634268160 bytes
4 heads, 16 sectors/track, 477120 cylinders
Units = cylinders of 64 * 512 = 32768 bytes

Disk /dev/mmcblk0 doesn't contain a valid partition table

Disk /dev/mmcblk0boot1: 4 MB, 4194304 bytes
4 heads, 16 sectors/track, 128 cylinders
Units = cylinders of 64 * 512 = 32768 bytes

Disk /dev/mmcblk0boot1 doesn't contain a valid partition table

Disk /dev/mmcblk0boot0: 4 MB, 4194304 bytes
4 heads, 16 sectors/track, 128 cylinders
Units = cylinders of 64 * 512 = 32768 bytes

Disk /dev/mmcblk0boot0 doesn't contain a valid partition table

Disk /dev/mmcblk1: 15.5 GB, 15552479232 bytes
4 heads, 16 sectors/track, 474624 cylinders
Units = cylinders of 64 * 512 = 32768 bytes

        Device Boot      Start         End      Blocks  Id System
/dev/mmcblk1p1              33       15657      500000   c Win95 FAT32 (LBA)
/dev/mmcblk1p2           15681       70368     1750000  83 Linux
Partition 2 does not end on cylinder boundary
/dev/mmcblk1p3           70369       74275      125000  83 Linux
Partition 3 does not end on cylinder boundary
/dev/mmcblk1p4           74305      474624    12810240   5 Extended
/dev/mmcblk1p5           74337       78243      125000  83 Linux
/dev/mmcblk1p6           78305      453304    12000000  83 Linux
/dev/mmcblk1p7          453345      454321       31250  83 Linux
/dev/mmcblk1p8          454369      460618      200000  82 Linux swap

Disk /dev/sda: 1000.1 GB, 1000194400256 bytes
255 heads, 63 sectors/track, 121600 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks  Id System
/dev/sda1               1      121600   976750592  83 Linux
root@dreambox:/autofs/sda1/data# ls          
ATV.bin    amlogic_64  common   fenix             hardkernel         rpi3-android  s922x.tar
AndroidTV  build       common2  galilei_1.tar.gz  hardkernel.tar.gz  s922x         tmp
root@dreambox:/autofs/sda1/data# cd AndroidTV
root@dreambox:/autofs/sda1/data/AndroidTV# ls
Image.lz4                                          extlinux      meson-g12b-dreambox-android.dtb  ramdisk-recovery.img  u-boot.ext
MindTheGapps-13.0.0-arm64-ATV-20230323_181154.zip  flash_atv.sh  meson-g12b-dreambox.dtb          ramdisk.img           vendor.img
autoexec.img                                       gboot.bin     ramdisk-debug.img                system.img
root@dreambox:/autofs/sda1/data/AndroidTV# ./flash_atv.sh
Flash dreambox Android TV AOSP sdcard script
Image has 11 GiB userdata size!
Running from: /autofs/sda1/data/AndroidTV

Umounting device...
Done

Partitioning /dev/mmcblk1 device...
Checking that no-one is using this disk right now ... OK

Disk /dev/mmcblk1: 14.5 GiB, 15552479232 bytes, 30375936 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: 0xf3151ad7

Old situation:

Device         Boot    Start      End  Sectors   Size Id Type
/dev/mmcblk1p1          2048  1002047  1000000 488.3M  c W95 FAT32 (LBA)
/dev/mmcblk1p2       1003520  4503519  3500000   1.7G 83 Linux
/dev/mmcblk1p3       4503552  4753551   250000 122.1M 83 Linux
/dev/mmcblk1p4       4755456 30375935 25620480  12.2G  5 Extended
/dev/mmcblk1p5       4757504  5007503   250000 122.1M 83 Linux
/dev/mmcblk1p6       5011456 29011455 24000000  11.5G 83 Linux
/dev/mmcblk1p7      29014016 29076515    62500  30.5M 83 Linux
/dev/mmcblk1p8      29079552 29479551   400000 195.3M 82 Linux swap / Solaris

>>> Created a new DOS disklabel with disk identifier 0x2ab59b44.
/dev/mmcblk1p1: Created a new partition 1 of type 'W95 FAT32 (LBA)' and of size 488.3 MiB.
Partition #1 contains a vfat signature.
/dev/mmcblk1p2: Created a new partition 2 of type 'Linux' and of size 1.7 GiB.
/dev/mmcblk1p3: Created a new partition 3 of type 'Linux' and of size 122.1 MiB.
/dev/mmcblk1p4: Created a new partition 4 of type 'Extended' and of size 12.2 GiB.
/dev/mmcblk1p5: Created a new partition 5 of type 'Linux' and of size 122.1 MiB.
/dev/mmcblk1p6: Created a new partition 6 of type 'Linux' and of size 11.5 GiB.
/dev/mmcblk1p7: Created a new partition 7 of type 'Linux' and of size 30.5 MiB.
/dev/mmcblk1p8: Created a new partition 8 of type 'Linux swap / Solaris' and of size 195.3 MiB.
/dev/mmcblk1p9: Done.

New situation:

Device         Boot    Start      End  Sectors   Size Id Type
/dev/mmcblk1p1          2048  1002047  1000000 488.3M  c W95 FAT32 (LBA)
/dev/mmcblk1p2       1003520  4503519  3500000   1.7G 83 Linux
/dev/mmcblk1p3       4503552  4753551   250000 122.1M 83 Linux
/dev/mmcblk1p4       4755456 30375935 25620480  12.2G  5 Extended
/dev/mmcblk1p5       4757504  5007503   250000 122.1M 83 Linux
/dev/mmcblk1p6       5011456 29011455 24000000  11.5G 83 Linux
/dev/mmcblk1p7      29014016 29076515    62500  30.5M 83 Linux
/dev/mmcblk1p8      29079552 29479551   400000 195.3M 82 Linux swap / Solaris

The partition table has been altered.
Calling ioctl() to re-read partition table.
Re-reading the partition table failed.: Device or resource busy
The kernel still uses the old table. The new table will be used at the next reboot or after you run partprobe(8) or kpartx(8).
Syncing disks.
Done

Waiting for automount
Done

Umounting device...
Done

Formatting boot partition...
Done

Formatting cache partition...
mke2fs 1.43.4 (31-Jan-2017)
Creating filesystem with 125000 1k blocks and 31360 inodes
Filesystem UUID: a8df63fd-95a7-4b22-938f-48ae7b3c99ba
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 

Done

Formatting data partition...
mke2fs 1.43.4 (31-Jan-2017)
Creating filesystem with 3000000 4k blocks and 750720 inodes
Filesystem UUID: c3a1d053-e454-40c1-94cd-995508802fd2
Superblock backups stored on blocks: 
        32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208

Allocating group tables: done                            
Writing inode tables: done                            
Creating journal (16384 blocks): done
Writing superblocks and filesystem accounting information: done 

Done

Setting up swapspace version 1, size = 204795904 bytes
UUID=cfc21d54-ec5d-4471-a468-19be4f49edfc
Done

Dumping system.img image...
144+1 records in
144+1 records out
1215643648 bytes (1.2 GB, 1.1 GiB) copied, 123.461 s, 9.8 MB/s
Done

e2fsck 1.43.4 (31-Jan-2017)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 3A: Optimizing directories
Pass 4: Checking reference counts
Pass 5: Checking group summary information

/: ***** FILE SYSTEM WAS MODIFIED *****
/: 3256/3360 files (0.4% non-contiguous), 291922/296788 blocks
resize2fs 1.43.4 (31-Jan-2017)
Resizing the filesystem on /dev/mmcblk1p2 to 437500 (4k) blocks.
The filesystem on /dev/mmcblk1p2 is now 437500 (4k) blocks long.

Dumping vendor.img image...
15+1 records in
15+1 records out
126189568 bytes (126 MB, 120 MiB) copied, 15.1603 s, 8.3 MB/s
Done

e2fsck 1.43.4 (31-Jan-2017)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
vendor: 635/640 files (0.2% non-contiguous), 30709/30808 blocks
resize2fs 1.43.4 (31-Jan-2017)
Resizing the filesystem on /dev/mmcblk1p3 to 31250 (4k) blocks.
The filesystem on /dev/mmcblk1p3 is now 31250 (4k) blocks long.


Copying boot files...
Done


gboot.bin: Self Extracting Gemini Bootmanager (dreamone) Installer
files/gboot.img
files/
files/autoexec.img
files/fw_setenv
files/fw_printenv
files/.directory
files/fw_env.config
installer
- Dreambox Android gboot update sdcard script
Running update Android from: /tmp/files

 * Umounting device...
 * Done

 * Waiting for automount
 * Done

 * Umounting device...
 * Done

 * Copying boot files...
 * Copying old autoexec.img file to autoexec_android.img
 * Done

 * No need to update env gboot_start

Install Completed
Install Completed
root@dreambox:/autofs/sda1/data/AndroidTV# 
