tp link safeloader

This commit is contained in:
Meshing 2024-12-08 22:02:56 -08:00
parent a0238b689a
commit 2400e890b3
3 changed files with 122 additions and 18 deletions

View File

@ -10,3 +10,86 @@
-- More details:
--- https://forum.openwrt.org/t/r7500v2-ath10k-9980-netperf-observations-firmware-board-2-bin-files-and-other-wifi-issues/74153/3
--- https://forum.openwrt.org/t/ipq4019-adding-support-for-tp-link-deco-m9-plus/216594/56?u=meshing
## printenv from bootloader
```
baudrate=115200
ethact=eth0
flash_type=2
has_default_mac=1
machid=8010006
product_id=04D90200
product_language=US
product_name=M9Plus
product_ver=2.0
special_id=55530000
stderr=serial
stdin=serial
stdout=serial
tp_boot_idx=1
vendor_name=TP-Link
vendor_url=www.tp-link.com
```
cat /dev/mtd11 | strings
```
vendor_name:TP-Link
vendor_url:www.tp-link.com
product_name:M9Plus
product_type:HOMEWIFISYSTEM
language:US
product_ver:2.0.0
product_id:04D90200
special_id:55530000
hw_id:525A14109F40E47021B5AE2A329BAE66
oem_id:FBB6D4C1087810996D429AE2717869CE
country:US
key:AAAAB3NzaC1yc2EAAAADAQABAAAAQQCeYwFZQmXBDoZCYIlF94nsCgtZUBSjj5YrrAQeGYYXeDPuGn1p4ih5p+wZG14utsut15Fba55fk5RUWckdNdyDAAAAQAi/9nCcauul5kPfemXrnWp1SZg3BNTeV1D1UUrqZQ6BxoXvAyJ20seLyJSkVumnHy6i613qFcO3eo4EUG6/uHkAAAAhAOY20wkmRnlQpgKYjZPD9bFqWJ/3HseiZb17JIGih3EZAAAAIQCwIJjMpr6Pxl1d
U/FGDSJEh3CEp2foUvUuvUmciXvh+w==
gid:1ad4b09e-beb0-11e7-b722-50c7bf2a6709
dev_id:8019CE198512CD1818C8B938D506C2F61C71531B
v_id:81
v_id:81
vendor_name:TP-Link
vendor_url:www.tp-link.com
product_name:M9Plus
product_type:HOMEWIFISYSTEM
language:US
product_ver:2.0.0
product_id:04D90200
special_id:55530000
hw_id:525A14109F40E47021B5AE2A329BAE66
oem_id:FBB6D4C1087810996D429AE2717869CE
country:US
key:AAAAB3NzaC1yc2EAAAADAQABAAAAQQCeYwFZQmXBDoZCYIlF94nsCgtZUBSjj5YrrAQeGYYXeDPuGn1p4ih5p+wZG14utsut15Fba55fk5RUWckdNdyDAAAAQAi/9nCcauul5kPfemXrnWp1SZg3BNTeV1D1UUrqZQ6BxoXvAyJ20seLyJSkVumnHy6i613qFcO3eo4EUG6/uHkAAAAhAOY20wkmRnlQpgKYjZPD9bFqWJ/3HseiZb17JIGih3EZAAAAIQCwIJjMpr6Pxl1d
U/FGDSJEh3CEp2foUvUuvUmciXvh+w==
gid:1ad4b09e-beb0-11e7-b722-50c7bf2a6709
```
OEM shell
```
/tmp # cat /tmp/sysinfo/board_name
ap-dk07.1-c1
/tmp # cat /tmp/sysinfo/model
Qualcomm Technologies, Inc. IPQ40xx/AP-DK07.1-C1
/tmp #
```
```
/tmp # ubus call system board
{
"kernel": "3.14.77",
"hostname": "M9Plus",
"system": "ARMv7 Processor rev 5 (v7l)",
"model": "Qualcomm Technologies, Inc. IPQ40xx\/AP-DK07.1-C1",
"release": {
"distribution": "OpenWrt",
"version": "Chaos Calmer",
"revision": "unknown",
"codename": "chaos_calmer",
"target": "ipq806x\/generic",
"description": "OpenWrt Chaos Calmer 15.05.1"
}
}
/tmp #
```

View File

@ -6,9 +6,9 @@ PKG_NAME:=firmware-utils
PKG_RELEASE:=1
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL=$(PROJECT_GIT)/project/firmware-utils.git
PKG_SOURCE_URL=https://github.com/meshing-m/firmware-utils.git
PKG_SOURCE_DATE:=2024-10-16
PKG_SOURCE_VERSION:=88fbd52666e3b3f83ebab40f95b84f265824a729
PKG_SOURCE_VERSION:=2b5a634ab8acaa4ffa5e4a02fbf15ac8af950c1b
PKG_MIRROR_HASH:=4809421286257a91b2f29e79b7bbd0852a72c6e82169b340036cca5703881232
PKG_FLAGS:=nonshared

View File

@ -156,47 +156,47 @@
#address-cells = <1>;
#size-cells = <1>;
compatible = "fixed-partitions";
partition@0 {
partition@0 { //0
label = "0:SBL1";
reg = <0x00000000 0x000100000>;
read-only;
};
partition@100000 {
partition@100000 { //1
label = "0:MIBIB";
reg = <0x000100000 0x00100000>;
read-only;
};
partition@200000 {
partition@200000 { //2
label = "0:BOOTCONFIG";
reg = <0x000200000 0x000100000>;
read-only;
};
partition@300000 {
partition@300000 { //3
label = "0:QSEE";
reg = <0x000300000 0x000100000>;
read-only;
};
partition@400000 {
partition@400000 { //4
label = "0:CDT";
reg = <0x000400000 0x00080000>;
read-only;
};
partition@480000 {
partition@480000 { //5
label = "0:BOOTCONFIG1";
reg = <0x00480000 0x00080000>;
read-only;
};
partition@500000 {
partition@500000 { //6
label = "0:APPSBLENV";
reg = <0x000500000 0x00180000>;
read-only;
};
partition@680000 {
partition@680000 { //7
label = "0:APPSBL";
reg = <0x000680000 0x00200000>;
read-only;
};
partition@880000 {
partition@880000 { //8
label = "0:ART";
reg = <0x000880000 0x00080000>;
read-only;
@ -210,32 +210,53 @@
reg = <0x5000 0x2f20>;
};
};
partition@900000 {
partition@900000 { //9
label = "rootfs";
reg = <0x00900000 0x002d00000>;
read-only;
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_config_0: macaddr@0 {
reg = <0x8 0x6>;
};
};
partition@3600000 {
partition@3600000 { //10
label = "rootfs_1";
reg = <0x03600000 0x002d00000>;
read-only;
};
partition@6300000 {
partition@6300000 { //11
label = "factory_data";
reg = <0x06300000 0x00900000>;
read-only;
macaddr_config_0: macaddr@0 {
reg = <0x004c5830 0x6>;
};
partition@6c00000 {
};
partition@6c00000 { //12
label = "runtime_data";
reg = <0x06c00000 0x001100000>;
read-only;
};
partition@07d00000 { //13
label = "kernel";
reg = <0x07d00000 0x00345000>;
};
partition@8045000 { //14
label = "ubi_rootfs";
reg = <0x08045000 0x0118f000>;
};
partition@91d4000 { //15
label = "rootfs_data";
reg = <0x091d4000 0x015eb000>;
};
partition@a7c9000 { //16
label = "ubi_factory_data";
reg = <0x0a7c9000 0x005d0000>;
};
partition@adb9000 { //17
label = "ubi_runtime_data";
reg = <0x0adb9000 0x00d90000>;
};
};
};
};