It would be nice to expose the Android file system in coreelec and symlink it to something like storage/emmc. That way the internal emmc could be used to store the databases and/or thumbnails and/or backups simply by symlinking the appropriate directories to storage/emmc. It would not even need to be the whole android filesystem a sub-directory could be created called .coreelec and that could be symlinked to storage/emmc.
Tested on Magicsee N5 MAX S905X2 box, very fast boot time, fast response in Kodi without any issue.
This procedure turns the box to a real standalone mp without the feeling of starting a computer.
This script mount android data partition on /tmp/data folder and create .coreelec folder.
Run script autostart.sh or create systemd service.
Only for NG box!
if [ ! -d $MNTDIR ] ; then
mkdir "$MNTDIR"
fi
losetup -f -o "$OFFSET" "$EMMCDEV"
mount -o noatime,nodiratime "$LOOPDEV" "$MNTDIR"
if [ ! -d $CEDIR ] ; then
mkdir $CEDIR
fi
Majk: if I good understand, this solution works for stable 9.2.0 version only. If you want other version (nightly builds), you need to patch the corresponding kernel image (so, it means auto update function doesn’t works)
Emerson: could you please provide description (source code) how to patch the original CE kernel?
thanks,
can you explain how to get access to android internal storage after use that second script? Nothing changed in here after run that test.sh script.
Hi,being a bit of a Linux novice …used to do updates/configs via winscp in Windows…
Didn’t work for me this time.
Did it all in linux,burnt image using 9.02 Offical,then put nightly off the 22nd on .
SSH into coreelec, copy over and run scripts .rebooted …now have 32gb for Coreelec storage as that was the size of the SD. SD back into Linux ,deleted STORAGE…not needed.
Attached USB 3 HDD ,set up shares
Scanned in library…which is super fast.
Was able to scan ,download and install addons at the same time . .not able to do that before!
Had the same issue when going back to normal resize. Not enough space on Android…reimaged box …took 20mins .
Its definitely worth doing ,very responsive and a lot more fluid .
Many thanks,very pleased …and I know alot more about Linux now
If you are talking about the test.sh I made from Emerson’s post the android partition is mounted at /tmp/data . You can either symlink it to storage or change MNTDIR="/tmp/data" to set where you want to mount to.