Skip to content

Commit

Permalink
[Telink] Disable BOOT_USB_DFU and update tlsr9528a 2m/4m flash overlay
Browse files Browse the repository at this point in the history
Signed-off-by: pulin1103 <[email protected]>
  • Loading branch information
pulin1103 committed Jul 8, 2024
1 parent be26a8f commit 8c5a8f6
Show file tree
Hide file tree
Showing 3 changed files with 90 additions and 3 deletions.
4 changes: 2 additions & 2 deletions config/telink/app/bootloader_usb.conf
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@

# USB DFU configuration
CONFIG_USB_DFU_WILL_DETACH=n
CONFIG_BOOT_USB_DFU_GPIO=y
CONFIG_MCUBOOT_INDICATION_LED=y
CONFIG_BOOT_USB_DFU_GPIO=n
CONFIG_MCUBOOT_INDICATION_LED=n
1 change: 0 additions & 1 deletion src/platform/telink/tlsr9528a_2m_flash.overlay

This file was deleted.

44 changes: 44 additions & 0 deletions src/platform/telink/tlsr9528a_2m_flash.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
&flash {
reg = <0x20000000 0x200000>;

partitions {
/delete-node/ partition@0;
/delete-node/ partition@20000;
/delete-node/ partition@88000;
/delete-node/ partition@f0000;
/delete-node/ partition@f4000;
/delete-node/ partition@fe000;
boot_partition: partition@0 {
label = "mcuboot";
reg = <0x00000000 0x13000>;
};
slot0_partition: partition@13000 {
label = "image-0";
reg = <0x13000 0xec000>;
};
factory_partition: partition@ff000 {
label = "factory-data";
reg = <0xff000 0x1000>;
};
dac_keypair_partition: partition@100000 {
label = "dac-keypair";
reg = <0x100000 0x1000>; //store dac and key pair.
};
descriptor_partition: partition@101000 {
label = "sboot-descriptor";
reg = <0x101000 0x2000>;
};
storage_partition: partition@103000 {
label = "storage";
reg = <0x103000 0xf000>;
};
slot1_partition: partition@112000 {
label = "image-1";
reg = <0x112000 0xec000>;
};
vendor_partition: partition@1fe000 {
label = "vendor-data";
reg = <0x1fe000 0x2000>;
};
};
};
44 changes: 44 additions & 0 deletions src/platform/telink/tlsr9528a_4m_flash.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
&flash {
reg = <0x20000000 0x400000>;

partitions {
/delete-node/ partition@0;
/delete-node/ partition@20000;
/delete-node/ partition@88000;
/delete-node/ partition@f0000;
/delete-node/ partition@f4000;
/delete-node/ partition@fe000;
boot_partition: partition@0 {
label = "mcuboot";
reg = <0x00000000 0x13000>;
};
slot0_partition: partition@13000 {
label = "image-0";
reg = <0x13000 0x1ec000>;
};
factory_partition: partition@1ff000 {
label = "factory-data";
reg = <0x1ff000 0x1000>;
};
dac_keypair_partition: partition@200000 {
label = "dac-keypair";
reg = <0x200000 0x1000>; //store dac and key pair.
};
descriptor_partition: partition@201000 {
label = "sboot-descriptor";
reg = <0x201000 0x2000>;
};
storage_partition: partition@203000 {
label = "storage";
reg = <0x203000 0xf000>;
};
slot1_partition: partition@212000 {
label = "image-1";
reg = <0x212000 0x1ec000>;
};
vendor_partition: partition@3fe000 {
label = "vendor-data";
reg = <0x3fe000 0x2000>;
};
};
};

0 comments on commit 8c5a8f6

Please sign in to comment.