[Q] How to pack correctly a zImage and a ramdisk for flashing via fastboot ?

Search This thread

ne0zone75

Senior Member
May 25, 2013
1,400
2,753
Hello,

I've recompiled the CyanogenMod 10.2 kernel for my TF300T with NFSv3 and CIFS support built into it. I have also a working ramdisk that i've unpacked from my own build of the CyanogenMod 10.2 ROM from CyanogenMod sources.

I've packed my zImage and the ramdisk using the following command line :
Code:
mkbootimg --cmdline 'no_console_suspend=1 console=null' --kernel my-zImage --ramdisk my-ramdisk-archive -o my-boot-image

And then i created a blob file from it :
Code:
blobpack my-blob LNX my-boot-image

Finally i've tried to flash it to my TF300T with fastboot :
Code:
fastboot flash staging my-blob

...the flash procedure output is as usual :
Code:
sending 'staging' (5550 KB)...
OKAY [  2.370s]
writing 'staging'...
OKAY [  1.964s]
finished. total time: 4.335s

... but the :
Code:
fasboot reboot

command just hangs !

I must then press the power button for some time to restart the device and when it's back alive, i'm still with the old kernel !

Please correct me if i am wrong but i think after searching over here and there over the Internet that i've inputed wrong parameters to the mkbootimg executable in order to generate my boot.img file ...

After reading carrefully with a 'not perfect' english this article : Unpack/repack boot.img/ramdisk for Android ... i've not understood how to get the correct parameters for mkbootimg ...



Any help will be greatly appreciated,

Thank You ;)
 

Graiden05

Senior Member
Sep 29, 2012
234
148
...the flash procedure output is as usual :
Code:
sending 'staging' (5550 KB)...
OKAY [  2.370s]
writing 'staging'...
OKAY [  1.964s]
finished. total time: 4.335s

... but the :
Code:
fasboot reboot

command just hangs !

I must then press the power button for some time to restart the device and when it's back alive, i'm still with the old kernel !
...

I'm pretty sure problem is not in command line arguments. I use androidroot blobtools + boottools for making blob and have same result before I read this. So You just need to put signature in the beginning of blob file:
Code:
echo -n "-SIGNED-BY-SIGNBLOB-" > blobtmp
dd if=/dev/zero bs=1 count=8 >> blobtmp
cat blob >> blobtmp
 
Last edited:
  • Like
Reactions: ne0zone75

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    ...the flash procedure output is as usual :
    Code:
    sending 'staging' (5550 KB)...
    OKAY [  2.370s]
    writing 'staging'...
    OKAY [  1.964s]
    finished. total time: 4.335s

    ... but the :
    Code:
    fasboot reboot

    command just hangs !

    I must then press the power button for some time to restart the device and when it's back alive, i'm still with the old kernel !
    ...

    I'm pretty sure problem is not in command line arguments. I use androidroot blobtools + boottools for making blob and have same result before I read this. So You just need to put signature in the beginning of blob file:
    Code:
    echo -n "-SIGNED-BY-SIGNBLOB-" > blobtmp
    dd if=/dev/zero bs=1 count=8 >> blobtmp
    cat blob >> blobtmp