some upstream changes, new and updated cores
This commit is contained in:
parent
10c944a03b
commit
b51f4dcb34
40 changed files with 1922 additions and 225 deletions
35
src/ramdisk/readme.txt
Normal file
35
src/ramdisk/readme.txt
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
can't just hexedit a ramdisk.img because of the internal CRC checksum
|
||||
|
||||
make sure we have mkimage
|
||||
|
||||
apt update && apt install u-boot-tools
|
||||
|
||||
(the following steps are slow if performed in the shared workspace folder,
|
||||
move ramdisk.img somewhere above that directory to do the work, eg. ~)
|
||||
|
||||
strip the header from ramdisk.img
|
||||
|
||||
dd bs=1 skip=64 if=ramdisk.img of=ramdisk-no-header.img
|
||||
|
||||
unpack the image
|
||||
|
||||
mkdir ramdisk && cd ramdisk
|
||||
cpio -i --no-absolute-filenames < ../ramdisk-no-header.img
|
||||
|
||||
patch charger to use /misc/charging.png for _every_ charging image :sweat_smile:
|
||||
|
||||
sed -i 's,/res/images/%s.png,/misc/charging.png,' charger
|
||||
|
||||
pack it up and recreate the image
|
||||
|
||||
shopt -s dotglob
|
||||
find . | cpio -H newc -o > ../ramdisk.cpio
|
||||
mkimage -A arm -O linux -T ramdisk -n "Initial RAM Disk" -d ../ramdisk.cpio ../ramdisk.img.new
|
||||
|
||||
based on
|
||||
|
||||
https://boundarydevices.com/hacking-ram-disks/
|
||||
|
||||
---
|
||||
|
||||
if I decide to use this will need to copy charging.png and patched-ramdisk.img (as ramdisk.img) to /.system/rg35xx/dat
|
||||
Loading…
Add table
Add a link
Reference in a new issue