[GSoC] Automatic Extraction of OpenWrt Firmware Image Metadata #1243
Replies: 7 comments 10 replies
-
|
Nobody has expressed interest in this, but I believe it's a low hanging fruit. I spent a good amount of time researching this and both feasibility and specs look pretty good to me, should not be hard to achieve. |
Beta Was this translation helpful? Give feedback.
-
|
Hi im interested in this, and I was researching about dealing with non sysupgrade images, have questions regarding that too and ill get back soon |
Beta Was this translation helpful? Give feedback.
-
|
@nemesifier While reading |
Beta Was this translation helpful? Give feedback.
-
|
since hardware.py is a static map of filename to board names, once fwtool extraction is done successfully, the long term plan is to keep it as fallback right? |
Beta Was this translation helpful? Give feedback.
-
|
when fwtool trailer scan fails (no embedded metadata), the extractor falls back to locating and parsing the DTB inside the raw binary using magic byte scanning (0xd00dfeed), decompressing the kernel if needed (gzip → lzma → xz → bz2 → lz4), and parsing model and compatible via pyFDT. From what ive tested so far, fdt is also reliable and does the job. and as the idea says, for images where both fwtool and DTB yield nothing (x86, armvirt), the image goes straight to failed requiring manual entry can i get your opinion on this? |
Beta Was this translation helpful? Give feedback.
-
|
please take a look at the prototype here
ill make the changes asap if there is anything that needs to improve |
Beta Was this translation helpful? Give feedback.
-
|
Hi @nemesifier @asmodehn, i can use downloads.openwrt.org directly for the prototype-level testing right? because currently downloads.openwisp.io only has ath79 in the firmware/ directory |
Beta Was this translation helpful? Give feedback.


Uh oh!
There was an error while loading. Please reload this page.
-
Official thread for this GSoC idea, ask questions and announce your interest here.
Beta Was this translation helpful? Give feedback.
All reactions