Skip to content

Can't extract the dtb.img on google-blueline #33

Open
@phodina

Description

@phodina

Hi,
I've attempted to extract the dtb out of the boot.img for google-blueline. I've used the https://mirrorbits.lineageos.org/full/blueline/20230620/boot.img

But after running the following commands I get an error

$ tools/unpackbootimg.py boot.img
$ tools/unpackqcdt.py dt.img
Traceback (most recent call last):
  File "/home/cylon2p0/linux-mdss-dsi-panel-driver-generator/tools/unpackqcdt.py", line 34, in <module>
    magic, version, n = struct.unpack(HEADER_FORMAT, b[:HEADER_SIZE])
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
struct.error: unpack requires a buffer of 12 bytes

Could it be due to the fact google-blueline requires a special hack due to the implementation in the bootloader?
https://gitlab.com/postmarketOS/pmaports/-/merge_requests/3932/diffs?commit_id=152a7d398fa655a8a686c34654ea9370feef2c3f#2a69d86c24b94fa0c238d1653c5b9a03d14271d6

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions