Commit graph

98 commits

Author SHA1 Message Date
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
Pavithra Palanisamy
9c56b17cf3 pack: ipq5018: Support multiple WIFIFW images
This update is to support packing multiple wifi firmware images
and flash respective fw image based on boards' machid which has
matching wififw type configured.

Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
Change-Id: Ic932e59ceae58dc432bed20aaeb51272216f06eb
2020-08-20 06:03:54 -07:00
Karthick Shanmugham
924c4932a5 tools: pack: Added Filename null check during memory specific image
Signed-off-by: Karthick Shanmugham <kartshan@codeaurora.org>
Change-Id: Ic61372ac9c69c6e951f86a70aaaa58b23010ccc2
2020-08-18 02:32:11 -07:00
Pavithra Palanisamy
a9dd4ea204 tools: pack: Added support for atf image generation
atf single image can be generated in existing framework
by using --atf option.
[Change by Gopinath Sekar<gsekar@qti.qualcomm.com>]

Change-Id: I9542a5b0e639f0ba3aa857a0b8e733bfdae0f0ab
Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
2020-08-14 11:11:11 +05:30
Linux Build Service Account
7b63c856b6 Merge "pack.py: Added soc_hw_version for HK v1.2 SoC" 2020-08-13 20:37:02 -07:00
Gokul Sriram Palanisamy
229ba2629f pack.py: Added soc_hw_version for HK v1.2 SoC
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
Change-Id: I2a8878f857d2a7ce1d534e187458712727006ae3
2020-08-13 20:44:16 +05:30
Pavithra Palanisamy
1a58ecf32e ipq5018: Add support for ART partition recovery
This patch adds support for recovering ART calibrated
data from older layout and copy to ART partition as per
newer flash layout[partition offset changed].

Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
Change-Id: Ie460754fc22f522e801336f6005056f31689734c
2020-08-13 17:49:38 +05:30
Karthick Shanmugham
d8f52ee940 tools: pack: Modified pack to choose memory specific files for packing
Since partition.xml files are platform specific, we can't
give memory specific file names for packing. With this change
we can give image name corresponds to each memory/profile.
When pack script is invoked with memory, this change will
check for the image name corresponds to particular memory and
include it for packing, otherwise it will use the default filename.

For giving mem specific files:
EMMC partition.xml: Add new attribute "filename_memXXX" to partition
Other than EMMC: Add new child element with "memory" attribute

Signed-off-by: Karthick Shanmugham <kartshan@codeaurora.org>
Change-Id: If5f0439d124a42c1e7bc3026eae342be2323dede
2020-08-12 03:43:04 -07:00
Gokul Sriram Palanisamy
235aaa20b5 pack.py: Added soc validation on image flashing
This change helps avoid flashing of unsupported
images resulting in bricking the board.

This change uses SOC_HW_VERSION to validate
soc version before flashing the image.

Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
Change-Id: I3c89d1d569b549eb981978c4cab4b095394b6879
2020-08-04 01:56:23 -07:00
Saravanan Jaganathan
dd897ce025 pack.py: Added machid validation on image flashing
This change helps avoid flashing of unsupported
images. preventing from board being bricked.

Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
Change-Id: I3b1ccfc76f40c3856de8fbb50131a2b329f6857d
2020-08-04 01:55:32 -07:00
Pavithra Palanisamy
e02b8309f3 pack: Add tiny-nor-debug flashtype
This patch adds 'tiny-nor-debug' as a flashtype to enable
single image packing for ipq5018 tiny-nor debug build.

Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
Change-Id: I4bd0119e2aeb5eb0229f040a0e22204c040a7649
2020-07-31 16:08:59 +05:30
Ram Chandra Jangir
ad5a716a38 tools: Add support to use ubi image name specified in partition xml file
This change adds support to use the ubi image names provided
in partition xml file and removes the hardcoded ubi image name
from pack script.
This will help pack script to generate any page-size(e.g. 4k)
based ubi images and generate the corresponding single images.

Signed-off-by: Ram Chandra Jangir <rjangir@codeaurora.org>
Change-Id: If07cc3251a23b32cf1b439b95d67588d70317c28
2020-07-13 18:20:45 +05:30
Balaji Prakash J
6e32f9b2d8 tools: pack: lk: add support for Linux-5.4 dtbs
dtb names are different in eggplant and fig branch due
to kernel version difference. Add support to handle
new dtb names of Linux-5.4

Change-Id: I4c2e17222d256796fe46d157472bf49807b2aadf
Signed-off-by: Balaji Prakash J <bjagadee@codeaurora.org>
2020-07-10 02:06:54 -07:00
Pavithra Palanisamy
9b019bff71 tools: Added support for BOOTLDR1 packing based on machid
Change by: Gopinath Sekar [gsekar@qti.qualcomm.com]

Change-Id: I87a3f5f6bbc0137f419ac48c28fd892f214d1198
Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
2020-06-25 22:03:35 -07:00