[PROJECT] Flash Boot.img, ELF or SIN throught CWM recovery

Search This thread

dekefake

Senior Member
Oct 28, 2013
1,194
1,912
Orleans, France
Hi guys !

I'm currently searching a way to flash a kernel for unlocked bootloaders throught ClockWordMod Recovery.

First question :

Is it possible to mount the boot partition with a command inside the "updater-script" of a flashable zip file ?

Second question :

If we can mount this partition, is it possible to format it to write the content of a SIN or a ELF file, or a boot.img ?

My X10 USB port is dead ( the USB connector is snatched from the USB PCB board :( )

I'm currently on Achotjan's SDE v3 kernel for Jelly Bean roms. This kernel has a CWM

When i'm speeking about flashing kernels on CWM, i'm expecting to something like this :



ui_print(" ");
ui_print(" ");
ui_print(" ");
ui_print(" ");
ui_print(" ");
ui_print(" ");
ui_print(" ");
show_progress(1, 15);
ui_print(" *Mounting the kernel partition");
run_program("/sbin/mount", "/boot");
ui_print("Writing the kernel");
write_raw_img("boot.img", "/boot");
ui_print("You wrote a new page inside the X10 history :D enjoy the flashed kernel :p ");


I know this script is not executable, and it's just an example :p

Hope somebody will help me for it

Cheers
 
Last edited:

Top Liked Posts