This is the mod of the original CE 9.2.0 which runs on rootfs ext4 file system.
You can test it after few steps of an easy installation process. The procedure takes only a few minutes - depending on the size of your used storage folder.
The install script will
gather data of eMMC
count the appropriate partition address and size parameters and store them in local envs
check the free space original Android file system and resize the data partition
create new ext4 partition exclusively for CE
copy all the necessary files from storage to the new ext4 partition
This workaround will let both systems run from eMMC’s appropriate partition which are the halves of the original data partition. The installed and used CE system data will be copied to the new storage by the installer script.
The system will start from SD/USB as before but it is only for load and run the kernel from that.
The new system will not allow to update as usual.
Installation steps:
to install this mod you have to start CE from SD/USB as always.
download and copy the install-script and the modified kernel image to the Backup share of CE
login via SSH and type this 3 lines
cd backup
chmod +x install_ng_ext4.sh
./install_ng_ext4.sh
The whole procedure will run automatically and no user interaction need, after reboot the system will run on the ext4 partition.
More details on the Hungarian Prohardver forum (only Hungarian language pls)
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.