Hi Jose,

Can you try the following steps, but I am not sure if it does help to you.

$ unbootimg boot.img

$ mkdir ramdisk; mv boot.img-ramdisk.cpio.gz ramdisk; cd ramdisk;

$ gunzip -c boot.img-ramdisk.cpio.gz | cpio -i; rm boot.img-ramdisk.cpio.gz

Copy init.b2g.rc, init.rc to the correct location.

$ find . | cpio -o -H newc | gzip > ../boot.img-ramdisk.cpio.gz

$ cd ..; mkbootimg `cat boot.img-mk`

At the end, there will be a new boot.img with init.b2g.rc, init.rc 


--
Kai-Zhen Li (Seinlin)
Mozilla Taiwan

----- Original Message -----
From: "Jose Vidal" <[email protected]>
To: [email protected]
Sent: Tuesday, March 18, 2014 3:39:48 PM
Subject: [b2g] How to create boot.img

Hi everyone,

I have builded the image files:

boot.img
system.img
userdata.img
recovery.img

I'm using unmkbootimg to extract the files from boot.img.
When I extract the files from my boot.img I don't have the same files like 
boot.img from Hamachi.

My device is a fsl/arm2_6dq and the files inside the boot.img (after the build) 
are:  

data          
dev                 
proc            
sbin  
sys     
system  
init  
init.freescale.rc
ueventd.goldfish.rc
default.prop  
fstab.freescale  
init.goldfish.rc 
ueventd.rc

The files inside the boot.img from Hamachi device (downloaded from 
http://elsimpicuitico.wordpress.com/firefoxos/)  are:

boot.ver      
dev               
proc             
sbin               
sys              
system
init.qcom.class_core.sh  
init.qcom.syspart_fixup.sh  
ueventd.goldfish.rc
charger       
init              
init.qcom.class_main.sh  
init.qcom.usb.rc            
res     
ueventd.rc
custpack      
init.b2g.rc       
init.qcom.early_boot.sh  
init.qcom.usb.sh   
data          
init.goldfish.rc  
init.qcom.rc             
init.rc      
default.prop  
init.jrd.rc       
init.qcom.sh             
init.target.rc


How I can make to get the init.b2g.rc, init.rc inside the boot.img ?

I hope for your help.

Thanks in advance.


Best regards

jvidalsm
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to