[X96Air] slow boot from eemc

Hello
My box is Savio Smart TV Box Platinum TB-P02. This is another modified X96Air with the s905x3 4 / 32GB.
Photos:

Coreelec version 9.2.5 works perfectly, both from the microsd card as well as when running with emmc. Unfortunately, booting from emmc memory takes approx. 38 seconds, while normal boot from SD card takes approx. 20 seconds.
dtb: sm1_s905x3_4g_1gbit
I am attaching the logs below:

1. Run from a microSD card

CoreELEC:~ #  cat /proc/cpuinfo
processor	: 0
BogoMIPS	: 48.00
Features	: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp
CPU implementer	: 0x41
CPU architecture: 8
CPU variant	: 0x1
CPU part	: 0xd05
CPU revision	: 0

processor	: 1
BogoMIPS	: 48.00
Features	: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp
CPU implementer	: 0x41
CPU architecture: 8
CPU variant	: 0x1
CPU part	: 0xd05
CPU revision	: 0

processor	: 2
BogoMIPS	: 48.00
Features	: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp
CPU implementer	: 0x41
CPU architecture: 8
CPU variant	: 0x1
CPU part	: 0xd05
CPU revision	: 0

processor	: 3
BogoMIPS	: 48.00
Features	: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp
CPU implementer	: 0x41
CPU architecture: 8
CPU variant	: 0x1
CPU part	: 0xd05
CPU revision	: 0

Serial		: 2b0c100001200d000010373043575050
model name	: Amlogic S905X3 rev c
Hardware	: Amlogic
Revision	: 0400

CoreELEC:~ # df -h
Filesystem                Size      Used Available Use% Mounted on
devtmpfs                  1.9G      4.0K      1.9G   0% /dev
/dev/mmcblk1p1          511.7M    212.9M    298.8M  42% /flash
/dev/loop0              193.5M    193.5M         0 100% /
/dev/mmcblk1p2            6.7G      1.6G      5.0G  24% /storage
tmpfs                     1.9G         0      1.9G   0% /dev/shm
tmpfs                     1.9G      8.3M      1.9G   0% /run
tmpfs                     1.9G         0      1.9G   0% /sys/fs/cgroup
tmpfs                     1.9G     16.0K      1.9G   0% /var
tmpfs                     1.9G         0      1.9G   0% /tmp

CoreELEC:~ # ls -l /sys/block/
total 0
lrwxrwxrwx    1 root     root             0 Nov 11 07:43 loop0 -> ../devices/virtual/block/loop0
lrwxrwxrwx    1 root     root             0 Nov 11 07:43 loop1 -> ../devices/virtual/block/loop1
lrwxrwxrwx    1 root     root             0 Nov 11 07:43 loop2 -> ../devices/virtual/block/loop2
lrwxrwxrwx    1 root     root             0 Nov 11 07:43 loop3 -> ../devices/virtual/block/loop3
lrwxrwxrwx    1 root     root             0 Nov 11 07:43 loop4 -> ../devices/virtual/block/loop4
lrwxrwxrwx    1 root     root             0 Nov 11 07:43 loop5 -> ../devices/virtual/block/loop5
lrwxrwxrwx    1 root     root             0 Nov 11 07:43 loop6 -> ../devices/virtual/block/loop6
lrwxrwxrwx    1 root     root             0 Nov 11 07:43 loop7 -> ../devices/virtual/block/loop7
lrwxrwxrwx    1 root     root             0 Nov 10 10:33 mmcblk0 -> ../devices/platform/ffe07000.emmc/mmc_host/emmc/emmc:0001/block/mmcblk0
lrwxrwxrwx    1 root     root             0 Nov 11 07:43 mmcblk0boot0 -> ../devices/platform/ffe07000.emmc/mmc_host/emmc/emmc:0001/block/mmcblk0/mmcblk0boot0
lrwxrwxrwx    1 root     root             0 Nov 11 07:43 mmcblk0boot1 -> ../devices/platform/ffe07000.emmc/mmc_host/emmc/emmc:0001/block/mmcblk0/mmcblk0boot1
lrwxrwxrwx    1 root     root             0 Nov 11 07:43 mmcblk0rpmb -> ../devices/platform/ffe07000.emmc/mmc_host/emmc/emmc:0001/block/mmcblk0/mmcblk0rpmb
lrwxrwxrwx    1 root     root             0 Nov 10 10:33 mmcblk1 -> ../devices/platform/ffe05000.sd/mmc_host/sd/sd:aaaa/block/mmcblk1

CoreELEC:~ # mount
devtmpfs on /dev type devtmpfs (rw,relatime,size=1957344k,nr_inodes=489336,mode=755)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
/dev/mmcblk1p1 on /flash type vfat (ro,noatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,errors=remount-ro)
/dev/loop0 on / type squashfs (ro,relatime)
/dev/mmcblk1p2 on /storage type ext4 (rw,noatime,data=ordered)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,nodev,mode=755)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
cgroup2 on /sys/fs/cgroup/unified type cgroup2 (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,name=systemd)
bpf on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/debug type cgroup (rw,nosuid,nodev,noexec,relatime,debug)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /var type tmpfs (rw,relatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev)
configfs on /sys/kernel/config type configfs (rw,nosuid,nodev,noexec,relatime)

CoreELEC:~ # ls -l /dev/ | paste
http://ix.io/2DKK

CoreELEC:~ # dmesg|paste
http://ix.io/2DKH

2. install cemmc -x , and logs without restart

CoreELEC:~ # ceemmc -x

Starting CoreELEC eMMC installation tool...

System is not supported: sm1_s905x3_4g_1gbit!

There is NO official support by Team CoreELEC
if you continue to run this tool!
Continue? [y]: y

eMMC size: 0x000748000000 [32GB]

No CoreELEC installation found on eMMC

Install in dual boot mode, CoreELEC and Android on eMMC
  Use CoreELEC data from
    [1] current used SD or USB device
    [2] existing backup on current used SD or USB device

Install in single boot mode, only CoreELEC on eMMC
  Use CoreELEC data from
    [3] current used SD or USB device
    [4] existing backup on current used SD or USB device

Please choose one option? [1/2/3/4]: 3

Free space of 'partition CE_FLASH': 512MB
Warning: Could not find 'dto' partition!
Free space of 'partition CE_STORAGE': 29212MB

Used space of '/flash': 222MB
Used space of '/storage': 1748MB

There is enough free space on eMMC for installation!

Install CoreELEC on eMMC.
Continue? [y]: y

Moved 'env' from offset 0x00004d400000, size 0x000000800000 to offset 0x000000400000
Moved 'misc' from offset 0x000051400000, size 0x000000800000 to offset 0x000000c00000
Moved 'logo' from offset 0x00004e400000, size 0x000000800000 to offset 0x000001400000
Moved 'dtbo' from offset 0x000052400000, size 0x000000800000 to offset 0x000001c00000

Starting to format the new 'CE_STORAGE' partition...
mke2fs 1.45.3 (14-Jul-2019)
Discarding device blocks: done                            
Creating filesystem with 7478272 4k blocks and 1872304 inodes
Filesystem UUID: c0e3fab4-41ba-4c8b-9e06-61eb8a7c3228
Superblock backups stored on blocks: 
	32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 
	4096000

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


Starting to format the new 'CE_FLASH' partition...
mkfs.fat 4.1 (2017-01-24)
Stopping Kodi before start of copy process!

Starting copying of data to the eMMC!
Please do NOT interrupt this progress till it's finished!

Copy all data from '/flash' to '/media/CE_FLASH'
        222.89M 100%   30.95MB/s    0:00:06 (xfr#68, to-chk=0/80) 

Syncthing, please wait...
Copy all data from '/storage' to '/media/CE_STORAGE/coreelec_storage'
          1.75G  99%   20.27MB/s    0:01:22 (xfr#11856, to-chk=0/14020)   

Syncthing, please wait...
Start Kodi again to have a user interface!

Success!


You can now power off the device, remove the used boot media (SD or USB) and
power on again to boot the device from eMMC!

CoreELEC:~ # ls -l /sys/block/
total 0
lrwxrwxrwx    1 root     root             0 Nov 11 13:25 loop0 -> ../devices/virtual/block/loop0
lrwxrwxrwx    1 root     root             0 Nov 11 13:25 loop1 -> ../devices/virtual/block/loop1
lrwxrwxrwx    1 root     root             0 Nov 11 13:25 loop2 -> ../devices/virtual/block/loop2
lrwxrwxrwx    1 root     root             0 Nov 11 13:25 loop3 -> ../devices/virtual/block/loop3
lrwxrwxrwx    1 root     root             0 Nov 11 13:25 loop4 -> ../devices/virtual/block/loop4
lrwxrwxrwx    1 root     root             0 Nov 11 13:25 loop5 -> ../devices/virtual/block/loop5
lrwxrwxrwx    1 root     root             0 Nov 11 13:25 loop6 -> ../devices/virtual/block/loop6
lrwxrwxrwx    1 root     root             0 Nov 11 13:25 loop7 -> ../devices/virtual/block/loop7
lrwxrwxrwx    1 root     root             0 Nov 11 10:09 mmcblk0 -> ../devices/platform/ffe07000.emmc/mmc_host/emmc/emmc:0001/block/mmcblk0
lrwxrwxrwx    1 root     root             0 Nov 11 13:25 mmcblk0boot0 -> ../devices/platform/ffe07000.emmc/mmc_host/emmc/emmc:0001/block/mmcblk0/mmcblk0boot0
lrwxrwxrwx    1 root     root             0 Nov 11 13:25 mmcblk0boot1 -> ../devices/platform/ffe07000.emmc/mmc_host/emmc/emmc:0001/block/mmcblk0/mmcblk0boot1
lrwxrwxrwx    1 root     root             0 Nov 11 13:25 mmcblk0rpmb -> ../devices/platform/ffe07000.emmc/mmc_host/emmc/emmc:0001/block/mmcblk0/mmcblk0rpmb
lrwxrwxrwx    1 root     root             0 Nov 11 10:09 mmcblk1 -> ../devices/platform/ffe05000.sd/mmc_host/sd/sd:aaaa/block/mmcblk1

CoreELEC:~ # mount
devtmpfs on /dev type devtmpfs (rw,relatime,size=1957344k,nr_inodes=489336,mode=755)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
/dev/mmcblk1p1 on /flash type vfat (ro,noatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,errors=remount-ro)
/dev/loop0 on / type squashfs (ro,relatime)
/dev/mmcblk1p2 on /storage type ext4 (rw,noatime,data=ordered)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,nodev,mode=755)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
cgroup2 on /sys/fs/cgroup/unified type cgroup2 (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,name=systemd)
bpf on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/debug type cgroup (rw,nosuid,nodev,noexec,relatime,debug)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /var type tmpfs (rw,relatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev)
configfs on /sys/kernel/config type configfs (rw,nosuid,nodev,noexec,relatime)

CoreELEC:~ # df -h
Filesystem                Size      Used Available Use% Mounted on
devtmpfs                  1.9G      4.0K      1.9G   0% /dev
/dev/mmcblk1p1          511.7M    212.9M    298.8M  42% /flash
/dev/loop0              193.5M    193.5M         0 100% /
/dev/mmcblk1p2            6.7G      1.6G      5.0G  24% /storage
tmpfs                     1.9G         0      1.9G   0% /dev/shm
tmpfs                     1.9G      7.7M      1.9G   0% /run
tmpfs                     1.9G         0      1.9G   0% /sys/fs/cgroup
tmpfs                     1.9G     16.0K      1.9G   0% /var
tmpfs                     1.9G         0      1.9G   0% /tmp

CoreELEC:~ # cat /proc/cpuinfo | paste
http://ix.io/2DJV

CoreELEC:~ # dmesg|paste
http://ix.io/2DLZ

CoreELEC:~ # ls -l /dev/ | paste
http://ix.io/2DM

3. Logs after restart - running from emmc

CoreELEC:~ # cat /proc/cpuinfo
processor	: 0
BogoMIPS	: 48.00
Features	: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp
CPU implementer	: 0x41
CPU architecture: 8
CPU variant	: 0x1
CPU part	: 0xd05
CPU revision	: 0

processor	: 1
BogoMIPS	: 48.00
Features	: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp
CPU implementer	: 0x41
CPU architecture: 8
CPU variant	: 0x1
CPU part	: 0xd05
CPU revision	: 0

processor	: 2
BogoMIPS	: 48.00
Features	: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp
CPU implementer	: 0x41
CPU architecture: 8
CPU variant	: 0x1
CPU part	: 0xd05
CPU revision	: 0

processor	: 3
BogoMIPS	: 48.00
Features	: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp
CPU implementer	: 0x41
CPU architecture: 8
CPU variant	: 0x1
CPU part	: 0xd05
CPU revision	: 0

Serial		: 2b0c100001200d000010373043575050
model name	: Amlogic S905X3 rev c
Hardware	: Amlogic
Revision	: 0400

CoreELEC:~ # df -h
Filesystem                Size      Used Available Use% Mounted on
devtmpfs                  1.9G      4.0K      1.9G   0% /dev
/dev/CE_FLASH           511.0M    212.8M    298.2M  42% /flash
/dev/loop0              193.5M    193.5M         0 100% /
/dev/CE_STORAGE          28.0G      1.7G     26.2G   6% /storage
tmpfs                     1.9G         0      1.9G   0% /dev/shm
tmpfs                     1.9G      7.7M      1.9G   0% /run
tmpfs                     1.9G         0      1.9G   0% /sys/fs/cgroup
tmpfs                     1.9G     16.0K      1.9G   0% /var
tmpfs                     1.9G         0      1.9G   0% /tmp
CoreELEC:~ # ls -l /sys/block/
total 0
lrwxrwxrwx    1 root     root             0 Nov 11 13:31 loop0 -> ../devices/virtual/block/loop0
lrwxrwxrwx    1 root     root             0 Nov 11 13:31 loop1 -> ../devices/virtual/block/loop1
lrwxrwxrwx    1 root     root             0 Nov 11 13:31 loop2 -> ../devices/virtual/block/loop2
lrwxrwxrwx    1 root     root             0 Nov 11 13:31 loop3 -> ../devices/virtual/block/loop3
lrwxrwxrwx    1 root     root             0 Nov 11 13:31 loop4 -> ../devices/virtual/block/loop4
lrwxrwxrwx    1 root     root             0 Nov 11 13:31 loop5 -> ../devices/virtual/block/loop5
lrwxrwxrwx    1 root     root             0 Nov 11 13:31 loop6 -> ../devices/virtual/block/loop6
lrwxrwxrwx    1 root     root             0 Nov 11 13:31 loop7 -> ../devices/virtual/block/loop7
lrwxrwxrwx    1 root     root             0 Jan  1  2015 mmcblk0 -> ../devices/platform/ffe07000.emmc/mmc_host/emmc/emmc:0001/block/mmcblk0
lrwxrwxrwx    1 root     root             0 Nov 11 13:31 mmcblk0boot0 -> ../devices/platform/ffe07000.emmc/mmc_host/emmc/emmc:0001/block/mmcblk0/mmcblk0boot0
lrwxrwxrwx    1 root     root             0 Nov 11 13:31 mmcblk0boot1 -> ../devices/platform/ffe07000.emmc/mmc_host/emmc/emmc:0001/block/mmcblk0/mmcblk0boot1
lrwxrwxrwx    1 root     root             0 Nov 11 13:31 mmcblk0rpmb -> ../devices/platform/ffe07000.emmc/mmc_host/emmc/emmc:0001/block/mmcblk0/mmcblk0rpmb
CoreELEC:~ # mount
devtmpfs on /dev type devtmpfs (rw,relatime,size=1957344k,nr_inodes=489336,mode=755)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
/dev/CE_FLASH on /flash type vfat (ro,noatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,errors=remount-ro)
/dev/loop0 on / type squashfs (ro,relatime)
/dev/CE_STORAGE on /storage type ext4 (rw,noatime,data=ordered)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,nodev,mode=755)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
cgroup2 on /sys/fs/cgroup/unified type cgroup2 (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,name=systemd)
bpf on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/debug type cgroup (rw,nosuid,nodev,noexec,relatime,debug)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)
mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /var type tmpfs (rw,relatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev)
configfs on /sys/kernel/config type configfs (rw,nosuid,nodev,noexec,relatime)

CoreELEC:~ # ls -l /dev/ | paste
http://ix.io/2DM3

CoreELEC:~ # dmesg|paste
http://ix.io/2DM4

You won’t get any help for starting from emmc cause installtointernal will not be supported here.

That’s the “half” truth. It’s ceemmc used, not installtointernal. But correct the device isn’t official supported and tested by CoreELEC.

I looked into the dmesg and it’s not the eMMC:

[    5.866761@3] [0] release decoder
[   12.473281@0] meson6-dwmac ff3f0000.ethernet eth0: fail to init PTP.

Here you loose for whatever reason 7 seconds.

Please boot from eMMC. After booting inset uSD or USB stick. Run ceemmc and make a copy of the internal install to the external boot media. When done boot from the external media and make a dmesg|paste again please.

Can I do this on the nightly version? I installed it during testing and it stays that way.

Sure, it the same “delay” happen it does not matter.
Nightly is good.

Please also dump you Android dtb:

dd if=/dev/dtb | gzip > /storage/downloads/dtb.img.gz

I’ll have to restore Android. I’ll take care of it tomorrow.

You don’t need to restore it to dump /dev/dtb, it’s still available after ceemmc install.

Ok. I have.
DTB:
dtb.img.gz (255.4 KB)

Last nightly running cemmc -x:

Starting CoreELEC eMMC installation tool...

System is not supported: sm1_s905x3_4g_1gbit!

There is NO official support by Team CoreELEC
if you continue to run this tool!
Continue? [y]: y

eMMC size: 0x000748000000 [32GB]

Existing CoreELEC installation found on eMMC

[1] Make a copy of current CoreELEC installation on eMMC to current used SD or USB device

Please choose one option? [1]: 1

Searching external SD or USB device...
Found external SD or USB device: mmcblk1
	/dev/mmcblk1: PTUUID="211d02ae" PTTYPE="dos"
	/dev/mmcblk1p1: LABEL="Karta" UUID="080ea624-b30f-4137-8f76-3784bc003128" TYPE="ext4" PARTUUID="211d02ae-01"

External SD or USB device size: 0x0003a4c00000 [16GB]

Used space of '/flash': 223MB
Used space of '/storage': 1476MB

Warning!
ALL existing data on external SD or USB device will be lost!
Press enter to abort!
Continue? [y]: y

Starting to format the new 'COREELEC' partition...
mkfs.fat 4.1 (2017-01-24)

Starting to format the new 'STORAGE' partition...
mke2fs 1.45.3 (14-Jul-2019)
Creating filesystem with 3688448 4k blocks and 923888 inodes
Filesystem UUID: 585658d0-b589-498d-b942-6f820c621aa7
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   

Starting copying of data from eMMC!
Please do NOT interrupt this progress till it's finished!

Copy all data from '/flash' to '/media/COREELEC'
        223.42M 100%   65.07MB/s    0:00:03 (xfr#69, to-chk=0/81) 

Syncthing, please wait...
Stopping Kodi before start of copy process!

Starting copying of data from eMMC!
Please do NOT interrupt this progress till it's finished!

Copy all data from '/storage' to '/media/STORAGE'
          1.48G  99%   11.75MB/s    0:01:59 (xfr#16055, to-chk=0/18122)   

Syncthing, please wait...
Start Kodi again to have a user interface!

Success!


You can now reboot the device to use your boot media (SD or USB)!

After restarting dmesg | paste

http://ix.io/2G3v

Boot from Coreelec splash screen to Kodi ~ 23s

I checked you dmesg and it looks like a linear error in the booting time. So it looks like the eMMC speed is lower then your uSD.

You can confirm this by trying to write/read a test file on /storage:

CoreELEC:~ # echo 3 > /proc/sys/vm/drop_caches
CoreELEC:~ # dd if=/dev/zero of=test.speed bs=1M count=1024
1024+0 records in
1024+0 records out
1073741824 bytes (1.0GB) copied, 13.235369 seconds, 77.4MB/s
CoreELEC:~ # echo 3 > /proc/sys/vm/drop_caches
CoreELEC:~ # dd if=test.speed of=/dev/null bs=1M
1024+0 records in
1024+0 records out
1073741824 bytes (1.0GB) copied, 12.030407 seconds, 85.1MB/s
CoreELEC:~ # rm -rf test.speed

Boot from eMMC and perform this 5 commands. Then boot from uSD/USB and do the test again.

Hm…
Boot from microSD (Toshiba Exceria 16GB hc1 u1)

CoreELEC:~ # echo 3 > /proc/sys/vm/drop_caches
CoreELEC:~ # dd if=/dev/zero of=test.speed bs=1M count=1024
1024+0 records in
1024+0 records out
1073741824 bytes (1.0GB) copied, 32.391434 seconds, 31.6MB/s
CoreELEC:~ # echo 3 > /proc/sys/vm/drop_caches
CoreELEC:~ # dd if=test.speed of=/dev/null bs=1M
1024+0 records in
1024+0 records out
1073741824 bytes (1.0GB) copied, 45.170558 seconds, 22.7MB/s

Boot from eMMC

CoreELEC:~/.update # echo 3 > /proc/sys/vm/drop_caches
CoreELEC:~/.update # dd if=/dev/zero of=test.speed bs=1M count=1024
1024+0 records in
1024+0 records out
1073741824 bytes (1.0GB) copied, 6.964405 seconds, 147.0MB/s
CoreELEC:~/.update # echo 3 > /proc/sys/vm/drop_caches
CoreELEC:~/.update # dd if=test.speed of=/dev/null bs=1M
1024+0 records in
1024+0 records out
1073741824 bytes (1.0GB) copied, 3.232152 seconds, 316.8MB/s

I would expect the other way :slight_smile:
Then I don’t know the reason why booting from eMMC is slower then from uSD. The transfer speed is better but boot slower!?

Well, that’s what surprises me too …
I checked this before, before starting the thread, but just forgot to include it in the logs.

Well. Let it be. I practically do not run the box anyway, it is always on. But I thought that I could improve and it would be better for others.

Maybe analyzing startup gives you a hint, see:

Bingo! 18.518 s

kodi.target @21.595s
└─kodi-aml-hdmimonitor.service @21.594s
  └─kodi.service @20.649s +940ms
    └─smp-affinity.service @20.550s +94ms
      └─graphical.target @20.539s
        └─multi-user.target @20.360s
          └─avahi-daemon.service @20.359s
            └─network.target @20.353s
              └─iptables.service @1.833s +18.518s
                └─basic.target @1.653s
                  └─sockets.target @1.653s
                    └─lircd.socket @1.653s
                      └─sysinit.target @1.651s
                        └─systemd-udevd.service @1.600s +51ms
                          └─add-entropy.service @614ms +234ms
                            └─systemd-tmpfiles-setup.service @583ms +27ms
                              └─systemd-journal-flush.service @546ms +30ms
                                └─systemd-journald.service @378ms +164ms
                                  └─machine-id.service @342ms +31ms
                                    └─systemd-journald.socket @139ms
systemctl status iptables

iptables.service - IPTABLES Packet Filtering
   Loaded: loaded (/usr/lib/systemd/system/iptables.service; disabled; vendor preset: disabled)
   Active: active (exited) since Tue 2020-12-01 22:15:07 CET; 6min ago
  Process: 3599 ExecStart=/usr/lib/coreelec/iptables_helper enable (code=exited, status=0/SUCCESS)
 Main PID: 3599 (code=exited, status=0/SUCCESS)

Dec 01 22:14:49 CoreELEC systemd[1]: Starting IPTABLES Packet Filtering...
Dec 01 22:15:07 CoreELEC systemd[1]: Started IPTABLES Packet Filtering.

But … after a dozen or so reinstallations to eMMC it is a bit better - the boot takes about 25-30 seconds, not 40 seconds.

Ok - after disabling firewall i Coreelec settings:

kodi.target @7.645s
└─kodi-aml-hdmimonitor.service @7.644s
  └─kodi.service @5.821s +1.817s
    └─smp-affinity.service @5.709s +106ms
      └─graphical.target @5.691s
        └─multi-user.target @5.499s
          └─sshd.service @1.718s +3.778s
            └─basic.target @1.686s
              └─sockets.target @1.685s
                └─lircd.socket @1.685s
                  └─sysinit.target @1.684s
                    └─systemd-udevd.service @1.633s +50ms
                      └─add-entropy.service @642ms +265ms
                        └─systemd-tmpfiles-setup.service @604ms +34ms
                          └─systemd-journal-flush.service @576ms +25ms
                            └─systemd-journald.service @428ms +144ms
                              └─machine-id.service @380ms +38ms
                                └─systemd-journald.socket @139ms
                                  └─system.slice @124ms
                                    └─-.slice @124ms

but it’s still 30 sec from coreelec splash to kodi…

Then it’s likely some HW init time which delays availability (not startup) of kodi.
But this is a question to the experts here…

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.