Skip to content

Instantly share code, notes, and snippets.

@shibajee
Created August 17, 2020 13:54
Show Gist options
  • Save shibajee/6812bab70dde591506e58ea215041544 to your computer and use it in GitHub Desktop.
Save shibajee/6812bab70dde591506e58ea215041544 to your computer and use it in GitHub Desktop.
For Openwrt:
partition@0 {
label = "u-boot";
reg = <0x0 0x30000>;
};
partition@30000 {
label = "config";
reg = <0x30000 0x10000>; (disable read-only for all so that u can update uboot/factory via web recovery)
};
factory: partition@40000 {
label = "factory";
reg = <0x40000 0x10000>;
};
partition@50000 {
compatible = "denx,uimage";
label = "firmware"; (******=whatever size left)
reg = <0x50000 0x******>;
};
For Padavan:
{
name: "Bootloader",
offset: 0x0,
size: 0x30000,
}, {
name: "Config",
offset: 0x30000,
size: 0x10000,
}, {
name: "Factory",
offset: 0x40000,
size: 0x10000,
}, {
name: "Firmware",
offset: 0x50000,
size: 0x******, (******=whatever size left)
}, {
name: "Storage",
offset: 0x######, (######=you know what it is, if you don't know stop messing with this project)
size: 0x20000,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment