Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Print DTB name #2

Closed
drebrez opened this issue Aug 11, 2017 · 3 comments
Closed

Print DTB name #2

drebrez opened this issue Aug 11, 2017 · 3 comments

Comments

@drebrez
Copy link
Contributor

drebrez commented Aug 11, 2017

I've added additional information to the output, the name of the DTB

example output:

Dumped dtbdump_01.dtb, start=6144 end=137216
>>> Qualcomm MSM 8610 CDP
Dumped dtbdump_02.dtb, start=137216 end=268288
>>> Qualcomm MSM 8610v2 CDP
Dumped dtbdump_03.dtb, start=268288 end=405504
>>> Qualcomm MSM 8610 MTP
Dumped dtbdump_04.dtb, start=405504 end=542720
>>> Qualcomm MSM 8610v2 MTP
Dumped dtbdump_05.dtb, start=542720 end=657408
>>> Qualcomm MSM 8610 Simulator
Dumped dtbdump_06.dtb, start=657408 end=813056
>>> Qualcomm MSM 8610 QRD
Dumped dtbdump_07.dtb, start=813056 end=968704
>>> Qualcomm MSM 8610 QRD v2
Dumped dtbdump_08.dtb, start=968704 end=1116160
>>> Qualcomm MSM 8610 QRD G6-U00
Dumped dtbdump_09.dtb, start=1116160 end=1263616
>>> Qualcomm MSM 8610 QRD G6-U00 v2
Dumped dtbdump_10.dtb, start=1263616 end=1398784
>>> Qualcomm MSM 8610 QRD mainboard
Dumped dtbdump_11.dtb, start=1398784 end=1533952
>>> Qualcomm MSM 8610 QRD mainboard v2

here the code I used: https://pastebin.com/XdVjFM4S

of course it should be improved, maybe also use the name in the filename

@drebrez
Copy link
Contributor Author

drebrez commented Aug 11, 2017

/tmp # extract-dtb boot.img-dtb -o boot-dtb
Dumped kernel, start=0 end=6144
Dumped dtbdump_01_Qualcomm_MSM_8610_CDP.dtb, start=6144 end=137216
Dumped dtbdump_02_Qualcomm_MSM_8610v2_CDP.dtb, start=137216 end=268288
Dumped dtbdump_03_Qualcomm_MSM_8610_MTP.dtb, start=268288 end=405504
Dumped dtbdump_04_Qualcomm_MSM_8610v2_MTP.dtb, start=405504 end=542720
Dumped dtbdump_05_Qualcomm_MSM_8610_Simulator.dtb, start=542720 end=657408
Dumped dtbdump_06_Qualcomm_MSM_8610_QRD.dtb, start=657408 end=813056
Dumped dtbdump_07_Qualcomm_MSM_8610_QRD_v2.dtb, start=813056 end=968704
Dumped dtbdump_08_Qualcomm_MSM_8610_QRD_G6-U00.dtb, start=968704 end=1116160
Dumped dtbdump_09_Qualcomm_MSM_8610_QRD_G6-U00_v2.dtb, start=1116160 end=1263616
Dumped dtbdump_10_Qualcomm_MSM_8610_QRD_mainboard.dtb, start=1263616 end=1398784
Dumped dtbdump_11_Qualcomm_MSM_8610_QRD_mainboard_v2.dtb, start=1398784 end=1533952
Dumped dtbdump_12_Qualcomm_MSM_8610_QRD_G630-U00_v2.dtb, start=1533952 end=1671168
Dumped dtbdump_13_Qualcomm_MSM_8610_QRD_G630-C00_v2.dtb, start=1671168 end=1808384
Dumped dtbdump_14_Qualcomm_MSM_8610_QRD_G620C.dtb, start=1808384 end=1951744
Dumped dtbdump_15_Qualcomm_MSM_8610_QRD_G620C_v2.dtb, start=1951744 end=2095104
Dumped dtbdump_16_Qualcomm_MSM_8610_QRD_G6-C00.dtb, start=2095104 end=2242560
Dumped dtbdump_17_Qualcomm_MSM_8610_QRD_G6-C00_v2.dtb, start=2242560 end=2390016
Dumped dtbdump_18_Qualcomm_MSM_8610_QRD_G620D_v2.dtb, start=2390016 end=2533376
Dumped dtbdump_19_Qualcomm_MSM_8610_QRD_G630-U10_v2.dtb, start=2533376 end=2670592
Dumped dtbdump_20_Qualcomm_MSM_8610_QRD_H870C_v2.dtb, start=2670592 end=2803712
Dumped dtbdump_21_Qualcomm_MSM_8610_QRD_G615-U10_v2.dtb, start=2803712 end=2942976
Dumped dtbdump_22_Qualcomm_MSM_8610_QRD_Y530-U00.dtb, start=2942976 end=3082240
Dumped dtbdump_23_Qualcomm_MSM_8610_QRD_Y530-U00_v2.dtb, start=3082240 end=3221504
Dumped dtbdump_24_Qualcomm_MSM_8610_QRD_G6-U251_v2.dtb, start=3221504 end=3368960
Dumped dtbdump_25_Qualcomm_MSM_8610_QRD_G630-U251_v2.dtb, start=3368960 end=3506176
Dumped dtbdump_26_Qualcomm_MSM_8610_QRD_G630-U20_v2.dtb, start=3506176 end=3643392
Dumped dtbdump_27_Qualcomm_MSM_8610_QRD_Y530-U051.dtb, start=3643392 end=3782656
Dumped dtbdump_28_Qualcomm_MSM_8610_QRD_Y530-U051_v2.dtb, start=3782656 end=3921920
Dumped dtbdump_29_Qualcomm_MSM_8610_QRD_G6-U10_v2.dtb, start=3921920 end=4069376
Dumped dtbdump_30_Qualcomm_MSM_8610_QRD_G6-U34_v2.dtb, start=4069376 end=4216832
Dumped dtbdump_31_Qualcomm_MSM_8610_QRD_G630-C10_v2.dtb, start=4216832 end=4354048
Dumped dtbdump_32_Qualcomm_MSM_8610_QRD_H871G_v2.dtb, start=4354048 end=4487168
Extracted 32 appended dtbs + kernel to boot-dtb

here the source code => https://pastebin.com/xBP7ZcTR

@PabloCastellano what you think about this?

@PabloCastellano
Copy link
Owner

Yeah, that's much better. I didn't know it was possible to know the name of the dtb.

Would you mind submitting a PR?

@PabloCastellano
Copy link
Owner

Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants