How to update CoreELEC on internal memory eMMC on NG boxes
Only for this system!!!
The upgrade process is the same as the system running on the original SD.
The downloaded update.tar file should be in the /storage/.update directory.
Only .tar format supported, no img.and img.gz.
It is also possible to run the update-eemsystem command on SSH.
update-eemcystem kernel only updates kernel.
The update works from stable to nightly nightly to nightly nightly to stable.
The installer does the following:
- Download emmc.tar-gz for the platform.
- Unpack and copy system files into place.
- Replaces the kernel, saves the original.
To download and run the installer:
wget http://www.emerson.nhely.hu/wp-content/uploads/2019/11/emmc_update.sh_.gz -O /storage/emmc_update.sh.gz
gunzip emmc_update.sh.gz
chmod +x emmc_update.sh
mount -n --bind /var/media/COREELEC /flash
./emmc_update.sh
How the update process works (update-eemcystem):
- Unpack CoreELEC-Amlogic-xyz .tar file.
- SOC tipe check (NG or Old)
- Kernel image extraction init replacement in ramdisk. (unpackbootimg)
- Kernel image assembly, copying into place. (mkbootimg)
- Backing up kernel.img to kernel.img.old
- Upgrading rootfs with rsync except for exclude list. (/usr/lib/coreelec/exclude.lst)
- dtb, aml_autoscrypt, etc. update with /usr/share/bootloader/update.sh.
- Reboot