Commit graph

111 commits

Author SHA1 Message Date
Ram Kumar D
94c5a1490b tools: add python3 compatible support on pack scripts
This patch updates the pack & pack-v2 scripts with python3
compatible support

Change-Id: I2bf9a1cb2dedbdae94355aed4078d9f792fc7ba9
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
2023-09-12 22:03:39 +05:30
Ram Kumar D
18f7f37a94 tools: pack: flash bootconfig only for non-apps image
Update pack script to flash bootconfig only for non-apps
image.

Change-Id: I85be15e48b4e4f3ed40826d0c395f2cc8e5d3f88
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
2023-09-12 15:33:43 +05:30
Ram Kumar D
68ae34c1e1 tools: packv1: added support to flash bootcfg based on RDP
This patch adds support to flash the bootconfig based on the
RDPs.

1. To flash bootconfig based on Multi-RDP
   add entry like below in all flash partition xmls

   for non-mmc flash partition:
   <img_name type="string" bootconfig_type="1">file1_name</img_name>
   <img_name type="string" bootconfig_type="2">file2_name</img_name>
   <img_name type="string" bootconfig_type="2">file3_name</img_name>

   for mmc flash partition:
   bootconfig_type_max="2"
   filename_img1="file1_name"
   filename_img2="file2_name"

   and specify which bootconfig to flash on each RDP by adding
   entry like below, in config xml under each RDP nodes.
   <bootconfig_type>1</bootconfig_type>

2. for single bootconfig case, there is no change.
   just add single entry like below in all flash partition xmls
   <img_name type="string">file_name</img_name>

Change-Id: I2ca4d2125c70a7f5176478b3de03b1f6fc98ce08
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
2023-08-31 17:31:40 +05:30
Ram Kumar D
0b4ee428fb tools: packv1: align indentation using reindent
Change-Id: I5194e20788a94d88121830ec63c4e8350bdb9387
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
2023-08-31 14:38:44 +05:30
Saahil Tomar
1acea54708 ipq9574: Add support for RDP467
RDP467 is same as AL02-C4 with PCIE0 enabled with
wkk support.

Change-Id: If6ba645b7c62a3320139a7c86e0b89ec525a0fb7
Signed-off-by: Saahil Tomar <quic_saahtoma@quicinc.com>
Signed-off-by: Hariharan K <quic_harihk@quicinc.com>
2023-07-24 03:06:22 -07:00
Saahil Tomar
f2ae718b2a arm: dts: ipq9574: Add AL05 & AL06 RDP support
This RDP is based on AL02-C4, with changes in ethernet for GPON enablement

Change-Id: Ic25d9009e685d8646564bda582305fbf1bce2be6
Signed-off-by: Saahil Tomar <quic_saahtoma@quicinc.com>
2023-06-09 10:27:54 +05:30
Linux Build Service Account
8a2e7c630f Merge "tools: pack: Waikiki V1 support removal" 2023-04-13 06:05:31 -07:00
Saahil Tomar
db31f148ec tools: pack: Add check constraint for CDT_1
This change checks if 0:CDT_1 partition exists and then flashes cdt.bin.
Previously, check existed only for 0:CDT. The change allows for creation
of single image with proper cdt_1 name and appends it to the single image.
With this, we can successfully use the CDT_1 alternate partition for images.

Change-Id: I100dc789b54805c699ba6f30d5cb1b74734b1bd9
Signed-off-by: Saahil Tomar <quic_saahtoma@quicinc.com>
2023-04-06 22:27:26 -07:00
Gurumoorthy Santhakumar
3dbe745100 pack_v2: pack: added soc_hw_version for IPQ5332 1.1
Change-Id: Ib2a156f1e75cc8fdf256b117328fcd80b280988b
Signed-off-by: Gurumoorthy Santhakumar <quic_gsanthak@quicinc.com>
2023-03-28 19:52:43 +05:30
Saahil Tomar
c544cb9693 tools: pack: Waikiki V1 support removal
This patch removes WKK V1 support. Alder + qcn9000 + qcn9224 Dual MAC V2
image will be used for all qcn9224 supported RDPs and they will have this FW
as WIFI_FW type 1.

Change-Id: I59ee0e50387d99bfb7f86d54fcee792f3f677048
Signed-off-by: Saahil Tomar <quic_saahtoma@quicinc.com>
2023-03-17 13:19:00 +05:30
Saahil Tomar
0110877a49 board: qca: ipq9574: Added support for RDP469 AL02-C17 variant
AL02-C17 is based on AL02-C4. This variant
enables PCie0 and PCie2.

Change-Id: I67aa500bd13ec661a43b17c4cbcd56c9a6db8abc
Signed-off-by: Saahil Tomar <quic_saahtoma@quicinc.com>
2023-02-23 11:43:39 +05:30
Rajkumar Ayyasamy
425d52cd85 ipq5332: avoid multiple machid for nand/mmc boot
added boot type based nand or emmc flash selection.
So machid based flash selection becomes obsolete.

Change-Id: I96fa43d31d23397fa249e02f62b905d6e4e67770
Signed-off-by: Rajkumar Ayyasamy <quic_arajkuma@quicinc.com>
2022-11-22 22:01:56 -08:00
Nitheesh Sekar
aa9fb4c4fb arm: dts: ipq9574: Add new board variant AP.AL02-C19
This patch adds support for new board variant AL02-C19.
This board variant consists of one internal radio,
Waikiki 5G in pci slot 0, Waikiki 6G in pci slot 2 and
SDX in pci slot 3.

Change-Id: I43e3b5890f6bd8f6d182e4c3acc540a89f9c4a34
Signed-off-by: Nitheesh Sekar <quic_nsekar@quicinc.com>
2022-11-15 21:45:05 -08:00
Hariharan K
727c6f32d0 arm: dts: ipq9574: Add new board variant AP.AL02-C18
Same as AP.AL02-C4 RDP, with support for 10G PHY or 10G fiber in UNIPHY0

Change-Id: Ic3935a2cdc0033ed4c7478ae14abd3cf61aef797
Signed-off-by: Hariharan K <quic_harihk@quicinc.com>
2022-10-03 02:05:28 -07:00
Praveenkumar I
9e40b52661 tools: pack: Update pack script for IPQ9574
This patch adds the following changes,

Machine ID check for qcn9224 V1 flashing which will help to
skip this FW flashing if WIFI_FW is 1.

Updated EMMC image append and flash script generation logic
to skip if filename_img<x> is not given inside wififw_type_max
range.

Increased the start activity string length to get the full
WIFI_FW image name in console during flashing.

Change-Id: Ica9552caa219cd1f4be9fa25a4e9a716b789ca48
Signed-off-by: Praveenkumar I <quic_ipkumar@quicinc.com>
2022-08-17 16:14:14 +05:30
Praveenkumar I
144fe5efd0 tools: pack: Set default qcn9224_version as 1
If detect_qcn9224 command is not supported in Uboot, qcn9224 V1
image will be flashed.

Change-Id: I36c3b7c5959b4736abe69d218cae2880c20cfad1
Signed-off-by: Praveenkumar I <quic_ipkumar@quicinc.com>
2022-08-10 03:19:32 -07:00
Praveenkumar I
724870b677 tools: pack: Update EMMC flash script generation
Change-Id: I26c50de5b94536d32b9c171ff348d8b8e40eb1cd
Signed-off-by: Praveenkumar I <quic_ipkumar@quicinc.com>
2022-08-08 17:16:19 -07:00
Praveenkumar I
899d455043 tools: pack: Flash QCN9224 V1 only if qcn9224_version present
Change-Id: Ic75da7f5666f6aacc2acefef7b9bb20d5f6e7120
Signed-off-by: Praveenkumar I <quic_ipkumar@quicinc.com>
2022-08-07 20:56:51 +05:30
Linux Build Service Account
4deef50189 Merge "tools: pack: Add support for QCN9224 V1 & V2 flashing" 2022-08-01 08:41:18 -07:00
Praveenkumar I
07af4cfed1 tools: pack: Add support for QCN9224 V1 & V2 flashing
From this change, by default QCN9224 V2 image will be
flashed. If QCN9224 version is V1, then V1 image will be
reflashed.

Change-Id: I205239e1ac4d8136272858aeca784553496e324a
Signed-off-by: Praveenkumar I <quic_ipkumar@quicinc.com>
2022-08-01 12:04:55 +05:30
Saahil Tomar
250dfbf658 arm64: dts: ipq9574: Add AL02-C15 & AL02-C16 RDP support
These RDP are based on AL02-C6

Change-Id: I58e5096e09aa2e3fc7bc4494ef91c2f158698977
Signed-off-by: Saahil Tomar <quic_saahtoma@quicinc.com>
2022-07-12 14:46:18 +05:30
Saahil Tomar
abdedad311 arm64: dts: ipq9574: Add AL03-C2 RDP support
This RDP is based on AL03-C1.
The extra feature are WK03.2 – 2G+5GL in Pcie 0 &
WK01.7 – 5GH+6G in Pcie 2.

Change-Id: Ic52c71e98e1a06acf36a825d23f1d184601d153a
Signed-off-by: Saahil Tomar <quic_saahtoma@quicinc.com>
2022-07-05 11:01:47 +05:30
Saahil Tomar
9b01c29b28 arm64: dts: ipq9574: Adding machine ID for WKK RDP
This change addressed the missing AL02_C10 and AL03_C1  machine ids
into pack script.

Change-Id: I77398cbcff8b19efd5550536f5b154f5f36d0638
Signed-off-by: Saahil Tomar <quic_saahtoma@quicinc.com>
2022-07-05 10:58:10 +05:30
Saahil Tomar
ccdbe416f5 arm64: dts: ipq9574: Add AL02-C14 RDP support
This RDP is based on AL02-C8

Change-Id: Ia7a7d128562c888bc7a0dcc6afffa36aef17d826
Signed-off-by: Saahil Tomar <quic_saahtoma@quicinc.com>
2022-06-29 11:31:41 +05:30
Saahil Tomar
6148a349bd arm64: dts: ipq9574: Add AL02-C13 RDP support
This RDP is based on AL02-C4.
The extra feature is QCN90xx on PCIE0

Change-Id: Ic153279dbe18daf9f602bf44f0bf7539f43ba5f8
Signed-off-by: Saahil Tomar <quic_saahtoma@quicinc.com>
2022-06-21 04:10:26 -07:00
Saahil Tomar
f1f8a39e27 arm64: dts: ipq9574: Add AL02-C12 RDP support
This RDP is based on AL02-C6.
The extra feature is W5GL-4 in Pcie 1.
In U-boot, RDP is based on AL02-C4 as Interface enablement
is same as AL02-C12.

Change-Id: If81b5950d02b47c021aea3d52fdf5feb3fcb7035
Signed-off-by: Saahil Tomar <quic_saahtoma@quicinc.com>
2022-06-13 21:42:58 -07:00
Praveenkumar I
a46496cfa5 ipq9574: tools: pack: Fix AL02-C11 machine id
Change-Id: I3d3aeb8f799774116225374a14e41b13717be73a
Signed-off-by: Praveenkumar I <quic_ipkumar@quicinc.com>
2022-06-08 11:19:38 +05:30
Praveenkumar I
b5d3586939 ipq9574: Add support for AP-AL02-C11
This is RDP is based on AL02-C4. The extra feature is Alder 2G.

Change-Id: I175938c886c0ebd8f39659ba28be2a946d5b7494
Signed-off-by: Praveenkumar I <quic_ipkumar@quicinc.com>
2022-06-07 17:43:09 +05:30
Timple Raj M
12275ca90c meta-tools: add IPQ5332 in pack.py
Change-Id: Ie4430127713f4a9a90852b7958d1643eed237a48
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2022-06-01 02:52:05 -07:00
Timple Raj M
b3a0e9fea7 pack: ipq9574: Enabled AP.AL02-C9 extended QCN9224 support
This patch packs the QCN9224 specific partition bin into single image

Change-Id: I300a6774dc570d459a14eca5702cd79398248fa5
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2022-05-29 23:59:00 -07:00
Karthick Shanmugham
c3b2411d98 pack: ipq9574: Extended QCN9224 support to all flash types
1. This patch packs the QCN9224 specific partition bin into single image
2. Flash MIBIB/GPT based on machid
3. Use flash offsets and size from selected partition table
4. In commit 3a52cc6de2523628698edece70c6abb663ba8369, above support were
   added for nand-2k & norplusnand-2k flash types and enabled for AL02-C4 alone,
   this patch extends the support to other flashes emmc, norplusemmc, nand-4k
   and norplusnand-4k.
5. Enabled for AL02-C4, AL02-C6, AL02-C7 and AL02-C8.

Change-Id: I68c0193b1fc133ce1ed434fa62502002dc501523
Signed-off-by: Karthick Shanmugham <quic_kartshan@quicinc.com>
2022-05-01 21:08:42 -07:00
Karthick Shanmugham
927b0e7881 pack: ipq9574: Add support for QCN9224 changes in single image
This patch packs the Al02-C4 specific system parition bin into single image,
flash mibib based on machid, use the offsets and size from the selected system
partition table

Change-Id: If645357c63c79c99a69f2b30dca31a387467fa5e
Signed-off-by: Karthick Shanmugham <quic_kartshan@quicinc.com>
2022-03-14 22:07:00 -07:00
Rajkumar Ayyasamy
cf43c5a299 tool: pack: add layout switch for sbl partition
This patch adds support for sbl partition layout switch on IPQ5018

Change-Id: I74e6f1175f36fd58497e049ed16a71d70d3e4b03
Signed-off-by: Rajkumar Ayyasamy <quic_arajkuma@quicinc.com>
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2022-02-14 21:41:12 -08:00
Rajkumar Ayyasamy
d84c9f230d tools: pack: add new option to select fw based on machid
IPQ5018 uses option qcn6122 to enable wifi fw selection.
This patch adds a new generic name 'multi_wifi_fw' to do
the same.

Change-Id: I6ca01e5c16537ea6d9f5e53f956d7e68566dc5ae
Signed-off-by: Rajkumar Ayyasamy <quic_arajkuma@quicinc.com>
2021-11-27 03:44:51 -08:00
Linux Build Service Account
29a1ce8b54 Merge "pack: add layout switch for sbl partition" 2021-11-15 21:38:19 -08:00
Rajkumar Ayyasamy
136ea5b085 pack: add layout switch for sbl partition
This patch adds support for sbl partition layout switch on IPQ9574

Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
(cherry picked from commit aa841af6f70823ec782b6efb0ba459f58068f9c6)
Signed-off-by: Praveenkumar I <quic_ipkumar@quicinc.com>

Change-Id: Idd950aef614a225c9cb6afd456967f53da6e4993
2021-10-22 19:23:58 +05:30
Kavin A
16ac7dde0e tools: pack: Parse partition check for 0:MIBIB
Change-Id: I2c4c3aeadd7ddb3b81d03c265a6e03ccf3a75dc6
Signed-off-by: Kavin A <kavia@codeaurora.org>
2021-10-19 22:47:19 -07:00
anusha
eed8fc7b0d Merge remote-tracking branch 'origin/win.coretech.1.0' into HEAD
Change-Id: I2893089a3b0ca91ea22d49417934f126398a6a58
Signed-off-by: anusha <anusharao@codeaurora.org>
2021-06-30 13:11:44 +05:30
anusha
4b9d8127e7 tools: pack: Parse partition filename based on 0:MIBIB entry
Change-Id: Ie1114112cde0e4cdac44e6fb0d4ecfc837094ebd
Signed-off-by: anusha <anusharao@codeaurora.org>
2021-04-15 00:00:39 -07:00
anusha
8486345b10 ipq9574: Add support for ipq9574 in pack.py
Change-Id: I4e460fda828235c7a6887d74c084a72d78cc022d
Signed-off-by: anusha <anusharao@codeaurora.org>
2021-03-18 00:40:30 -07:00
Manikanta Mylavarapu
5ddba484f3 pack: Remove flash wifi_fw command
'flash wifi_fw' command writes into flash based
on 'rootfs' partition offset. After sysupgrade,
flashing single image at u-boot write wifi firmware
into failsafe partitions because post sysupgarde
primary and failsafe partitions are swapped vice-versa.
Single image always boots with primary partitions, and
the wifi firmware flashed into failsafe partition won't
be loaded subsequently q6 will crash.

This patch resolves issue by using "ubi" command's instead
of "flash wifi_fw" command.

Signed-off-by: Manikanta Mylavarapu <mmanikan@codeaurora.org>
Change-Id: I9a89872ade5cbd753272e11fd15e7b8f06d4f92c
2021-03-18 08:17:15 +05:30
Pavithra Palanisamy
c8abb25330 pack: Modify QCN9100 to QCN6122 for Spruce
Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
Change-Id: Id39e432528603778d125ba69638b26bb7e74f41e
2020-12-29 20:45:50 -08:00
Pavithra Palanisamy
ddd63fb99d pack: Update section name for WIFIFW
This change is to update the section name for wififw
in single-image with the QCN IDs when multiple wififw
images get packed.

Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
Change-Id: I56ab611a127b9958c38737684d856c51fabf7cd2
2020-12-29 13:59:18 +05:30
Prasanna Kumar Thoorvas Samyrao Muralidharan
26cfdff7c1 tools: pack.py: Support ATF and tiny-nor single image
Change-Id: Ib3a132105d325f8f840a73811a2214a4bd8a618a
Signed-off-by: Prasanna Kumar Thoorvas Samyrao Muralidharan <ptsm@codeaurora.org>
2020-12-07 15:17:39 +05:30
Rajkumar Ayyasamy
940366ed72 tools: pack: make rootfs_data optional
rootfs_data partition is not required with the
latest fs tools OpenWRT package as the logical volume
inside the rootfs partition will be used for overlay
and it is removed from the parttion table. So making it
as optional

Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
Change-Id: Ia5489b714833548fd7f1aa4491c61eb70efdfdfa
2020-11-18 23:37:59 -08:00
Rajkumar Ayyasamy
8f22bd73ef tools: pack: make rootfs_data optional
rootfs_data partition is not required with the
latest fs tools OpenWRT package as the logical volume
inside the rootfs partition will be used for overlay
and it is removed from the parttion table. So making it
as optional

Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
Change-Id: Ia5489b714833548fd7f1aa4491c61eb70efdfdfa
2020-11-10 16:30:30 +05:30
Pavithra Palanisamy
f59f46b51d ipq5018: Flash wififw image specific to the RDP
This change adds support to pack different wifi firmware
images as listed in XML into single-images and flash wififw
image based on machid mapped with 'wififw_type' attribute
in config XML.

The partition XML files are generic flash layouts to be used
for any SP, so it contains wififw names for default(internal),
QCN9000 and QCN9100 supported SPs.

- For QCN9100 support, specify "--qcn9100" argument for
  LM256/LM512 profile builds.

- For 16M builds, the argument is not required as packing and
  flashing is based on image availability in ipq/ directory.

Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
Change-Id: I3e8dac6c0f916eeb0b4c7b5ffa04afcdab8821b9
2020-10-30 06:37:53 -07:00
Pavithra Palanisamy
b4d08cf1e8 pack: ipq5018: Add SOC HW version ID of 1.1 chip
Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
Change-Id: I44cc627fb5b6869a01d5ac369dd98b13f78090ca
2020-10-26 14:14:58 +05:30
Pavithra Palanisamy
6a381cf782 pack: Update bootldr1 filename based on Memory profile
Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
Change-Id: Ib40313860dda57f4e500ba465f9a89e64594e06d
2020-09-02 22:31:07 -07:00
Pavithra Palanisamy
cb505365ef Revert "ipq5018: Add support for ART partition recovery"
This reverts commit 1a58ecf32e.

Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
Change-Id: I2838f264785ae1de2d4cd6c25e7b34724d1b4cb5
2020-09-01 12:45:35 +05:30