[Android Software Development] elocnix:
Hello osmOsis & folks!

First of all, thanks a lot for this great collection of tools - it's a real eyeopener for noobs like me. Well, not a complete noob, but still....

With your 'cook tools' I finally managed to unpack boot.img for my device, but now I'm stuck again.

Dunno where to go next. :/

So... The device is Wiko Pulp 4G with Qualcomm MSM8916 Snapdragon 410, CPU Cortex A-53, GPU Adreno 306.

Android 5.1.1, kernel 3.10.49 updated on March 20th 2017.

Boot image file is extracted from official update which is (unfortunately) available only in .exe format, so I

extracted it on Win7 and did 'the magic' on Slackware64. Unpacked .img resides in two directories - /ramdisk and

/split_img, where the latter contains 'boot.img-dtb'. This one should be sufficient for extracting complete device tree, if I correctly understood all the HOWTO's and docs. Correct?

The problem is, I can't get the desired results with 'device-tree-compiler' (DTC). 'FATAL ERROR: Blob has incorrect magic number' is all I can get out of it. BTW, I followed procedure described in this article. There's a comment from user who had the same problem, but the documentation linked in answer is not available anymore. Anyway, it's far beyond my reach and current skills, so it would probably left me

head-spinning for days. :eek:

Would you take a look at boot.img yourself or at least point me to the right direction?

http://www.mediafire.com/file/a8na9sh2ezbaen9/boot.img

Here's a terminal output during unpacking...

root@darkstar:~/AIK-Linux# ./unpackimg.sh boot.img

Android Image Kitchen - UnpackImg Script
by osm0sis @ xda-developers

Supplied image: boot.img

Setting up work folders...

Image type: AOSP

Splitting image to "split_img/"...
BOARD_KERNEL_CMDLINE console=ttyHSL0,115200,n8 androidboot.console=ttyHSL0 androidboot.hardware=qcom user_debug=30 msm_rtb.filter=0x3F ehci-hcd.park=3 androidboot.bootdevice=7824900.sdhci lpm_levels.sleep_disabled=1
BOARD_KERNEL_BASE 80000000
BOARD_NAME
BOARD_PAGE_SIZE 2048
BOARD_KERNEL_OFFSET 00008000
BOARD_RAMDISK_OFFSET 01000000
BOARD_SECOND_OFFSET 00f00000
BOARD_TAGS_OFFSET 00000100
BOARD_DT_SIZE 8468480

Unpacking ramdisk to "ramdisk/"...

Compression used: gzip
2580 blocks

Done!

...and a 'catch' of content in directories if you/others want to take a peek:

root@darkstar:~/AIK-Linux/split_img# ls
boot.img-base boot.img-kerneloff boot.img-secondoff
boot.img-board boot.img-pagesize boot.img-tagsoff
boot.img-cmdline boot.img-ramdisk.cpio.gz boot.img-zImage
boot.img-dtb boot.img-ramdiskcomp
boot.img-imgtype boot.img-ramdiskoff

root@darkstar:~/AIK-Linux/ramdisk# ls
charger@ init.qcom.factory.rc* res/
data/ init.qcom.rc* sbin/
default.prop init.qcom.sh* seapp_contexts
dev/ init.qcom.syspart_fixup.sh* selinux_version
file_contexts init.qcom.usb.rc* sepolicy
fstab.qcom init.qcom.usb.sh* service_contexts
init* init.rc* sys/
init.class_main.sh* init.target.rc* system/
init.environ.rc* init.trace.rc* ueventd.qcom.rc
init.mdm.sh* init.usb.rc* ueventd.rc
init.qcom.bms.sh* init.zygote32.rc* verity_key
init.qcom.class_core.sh* proc/
init.qcom.early_boot.sh* property_contexts

Thanks and have a nice day hacking! :good: