Advertisement
muhammadrefa

split_bootimg

Sep 5th, 2015
487
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.31 KB | None | 0 0
  1. MerSDK bash-3.2$ split_bootimg out/target/product/falcon/boot.img
  2. Page size: 2048 (0x00000800)
  3. Kernel size: 4808144 (0x00495dd0)
  4. Kernel address: 32768 (0x00008000)
  5. Ramdisk size: 714634 (0x000ae78a)
  6. Ramdisk address: 16777216 (0x01000000)
  7. Second size: 0 (0x00000000)
  8. Board name:
  9. Command line: console=ttyHSL0,115200,n8 androidboot.console=ttyHSL0 androidboot.hardware=qcom user_debug=31 msm_rtb.filter=0x37 vmalloc=400M utags.blkdev=/dev/block/platform/msm_sdcc.1/by-name/utags
  10. Base is probably: 0x00000000 (assuming kernel_offset is 0x8000)
  11.  
  12.  
  13. To recreate the image (with --base 0x00 and specifying exact offsets):
  14. mkbootimg --cmdline 'console=ttyHSL0,115200,n8 androidboot.console=ttyHSL0 androidboot.hardware=qcom user_debug=31 msm_rtb.filter=0x37 vmalloc=400M utags.blkdev=/dev/block/platform/msm_sdcc.1/by-name/utags' --kernel boot.img-kernel --ramdisk boot.img-ramdisk.gz --base 0x00000000 --pagesize 2048 --kernel_offset 0x00008000 --ramdisk_offset 0x01000000 --second_offset 0x00f00000 --tags_offset 0x00000100 --board '' -o boot.img.duplicate
  15.  
  16.  
  17. Writing boot.img-kernel ... complete.
  18. Writing boot.img-ramdisk.gz ... complete.
  19. MerSDK bash-3.2$ split_bootimg out/target/product/falcon/hybris-boot.img
  20. Page size: 2048 (0x00000800)
  21. Kernel size: 4808144 (0x00495dd0)
  22. Kernel address: 32768 (0x00008000)
  23. Ramdisk size: 560987 (0x00088f5b)
  24. Ramdisk address: 16777216 (0x01000000)
  25. Second size: 0 (0x00000000)
  26. Board name:
  27. Command line: console=ttyHSL0,115200,n8 androidboot.console=ttyHSL0 androidboot.hardware=qcom user_debug=31 msm_rtb.filter=0x37 vmalloc=400M utags.blkdev=/dev/block/platform/msm_sdcc.1/by-name/utags
  28. Base is probably: 0x00000000 (assuming kernel_offset is 0x8000)
  29.  
  30.  
  31. To recreate the image (with --base 0x00 and specifying exact offsets):
  32. mkbootimg --cmdline 'console=ttyHSL0,115200,n8 androidboot.console=ttyHSL0 androidboot.hardware=qcom user_debug=31 msm_rtb.filter=0x37 vmalloc=400M utags.blkdev=/dev/block/platform/msm_sdcc.1/by-name/utags' --kernel hybris-boot.img-kernel --ramdisk hybris-boot.img-ramdisk.gz --base 0x00000000 --pagesize 2048 --kernel_offset 0x00008000 --ramdisk_offset 0x01000000 --second_offset 0x00f00000 --tags_offset 0x00000100 --board '' -o hybris-boot.img.duplicate
  33.  
  34.  
  35. Writing hybris-boot.img-kernel ... complete.
  36. Writing hybris-boot.img-ramdisk.gz ... complete.
  37. MerSDK bash-3.2$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement