FreezingCold has quit [Read error: Operation timed out]
JochenKauz has joined #linux-rockchip
AstralixNB has joined #linux-rockchip
FreezingCold has joined #linux-rockchip
<akatik>
I'm trying to change boot.img.
<akatik>
I extract one from my device firmware (CX-818 on RK3066 chip).
<akatik>
I ungzip it and then gzip it again. New file become a few bytes smaller. Iritinal file was 2199527 bytes, after i ungzip it and gzip again, I got 2199348 bytes. Then I run:
<akatik>
1. First test.
<akatik>
It's gzipped cpio file.
<akatik>
./rkcrc -k boot.cpio.gz boot.img
<akatik>
Then I flash boot.img with windows RKAndroidTool.exe to 0x0000a000.
<akatik>
Device boot up and work well. Ok, I really change nothing.
<akatik>
2. Second test.
<akatik>
I run:
<akatik>
cpio -i < ../boot.cpio
<akatik>
I got filesystem. I change nothing, pack it back:
<akatik>
ups. large message throttled :(
<akatik>
I'm trying to change boot.img.
<akatik>
I extract one from my device firmware (CX-818 on RK3066 chip).
<akatik>
It's gzipped cpio file.
<akatik>
I ungzip it and then gzip it again. New file become a few bytes smaller. Initinal file was 2199527 bytes, after i ungzip it and gzip again, I got 2199348 bytes. Then I run:
<akatik>
./rkcrc -k boot.cpio.gz boot.img
<akatik>
Then I flash boot.img with windows RKAndroidTool.exe to 0x0000a000.
<akatik>
Device boot up and work well. Ok, I really change nothing.
<akatik>
Then I run:
<akatik>
cpio -i < ../boot.cpio
<akatik>
I got filesystem. I change nothing, pack it back:
<akatik>
Then I gzip it, run rkcrc, flash - and it did NOT boot.
<akatik>
Where am I wrong?
<akatik>
"find *" instead of "find ." give ne same order of files in cpio
<akatik>
cpio file size become a bit large. original cpio file size in firmware was 3758848 bytes. after i unpack it from cpio and then pack again, i got 3759104 bytes. is it ok?