Originally Posted by trallala
Do I have to customize anything else or change the parameter (like skip or seek) for dd?
Don't change anything for dd. You need to inform Python that you've changed the zip file size. Python needs to know where the ROM partition will be on the disk (which is fine as it is) but also needs to know how big
your ROM is (which is what you've changed). So you need to alter makecafe.py. In that file, you'll see a line that says:
DEF_LENGTH = 20479778 # in bytes
where this number is the size (in bytes!) of your zip file. You'll notice that this is the size of the zip file of the standard ROM. Replace this number with the exact number of bytes of your new zip file. It doesn't matter. I tried a dozen different zip sizes and they all worked.
Note too I used only a very light zip compression. Using the maximum zip compression wouldn't let my device boot either.