This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |
| docs:techref:mtd [2021/10/06 14:35] – [Example (flash u-boot from OpenWrt)] gandalf | docs:techref:mtd [2023/03/04 18:00] (current) – typo openwart |
|---|
| </code> | </code> |
| |
| This patches the mtd source to include the "-static" optin when building the binary. This way the binary gets all dependent library-code embedded to make it run itself, as long as the correct CPU-target is used. The new binary can be extracted from the resulting package or just copied from ''build_dir/target-<ARCH>/linux-<TARGET>-<SUBTARGET>/mtd''. | This patches the mtd source to include the "-static" option when building the binary. This way the binary gets all dependent library-code embedded to make it run itself, as long as the correct CPU-target is used. The new binary can be extracted from the resulting package or just copied from ''build_dir/target-<ARCH>/linux-<TARGET>-<SUBTARGET>/mtd''. |
| |
| ===== Notes ===== | ===== Notes ===== |