I am currently running pandora box 19.02 on my Xiaomi 3g which is running perfectly including the 2.4Ghz wifi. Unfortunately there is a lot of unneeded packages installed and default language is Chinese. So I removed everything which is not essential for the system and came up with a very slim and good working setup.
Now I am wondering how I could turn my setup into a flashable bin file?
Is there a way of getting a flashable bin file from the actual firmware running on your system?? I would really like to have it as a backup in case something goes wrong.
You can likely make the backups easilly; but since you don't know how the OEM setup image flashing, you probably need to restore the partitions like you backed them up - or by using TFTP to restore each one back to the original location.
An option may be to use an utility like binwalk as a comparison and reference tool to configure the backup files like an original BIN file from the manufacturer.
Personally, I believe it's safer to TFTP or use the same tools employed to backup the device.
Don't mean to piggy-back the OP, but I was wondering there was a router or an xDSL modem-router running an outdated version of Linux-based firmware, is it technically possible to "extract" the drivers form that firmware and have them included in a build of different firmware based on a newer kernel?
I'm not talking about redistributing that as it would likely violate license terms, but rather trying to understand how separable drivers are in an OEM firmware.
Use of any low-level tool to write data, especially across versions subjects the user to corruption of data, in some cases making the device perform poorly, lose function, or brick completely. Use of such tools is not recommended for users without a good understanding of the internals of their device, as well as the differences between hex and decimal numbers and arithmetic.
Depends on how the drivers are used. For GPL reasons, proprietary code is typically not compiled into the kernel, but used as a module or stand-alone callables (RIL in a cell phone, for example). These modules are plain files or linkable binaries. Firmware is typically a “blob” to the Linux world. They may be plain files, or stored in a file or on a partition at a known location.
for the ones of you that have like me massive problems with the mt76 drivers I recommend to look into the image builder of pandorabox, the firmware runs perfectly.
I know that the kernel is from ancient times but the performance is so much better, no hangs no low speeds and a very responsive internet connection via wifi!
I already thought to sell the router again but with this firmware it as actually usable!
There are newer MTK drivers available here and, perhaps, on master as well. I don't have an MTK device, so I haven't followed it too carefully, but one reference that I find through search is