Commit graph

1026 commits

Author SHA1 Message Date
Simon Glass
aea4f25d69 image: Use constants for 'required' and 'key-name-hint'
These are used in multiple places so update them to use a shared #define.

Change-Id: I3cc304f04c56c9d1a22df46e68f601b5acd2b34e
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Philippe Reynes <philippe.reynes@softathome.com>
Signed-off-by: Md Sadre Alam <quic_mdalam@quicinc.com>
2022-11-24 00:57:41 -08:00
Simon Glass
f9b8402471 fit_check_sign: Allow selecting the configuration to verify
This tool always verifies the default configuration. It is useful to be
able to verify a specific one. Add a command-line flag for this and plumb
the logic through.

Change-Id: I6022af77965aa107e4693119ac1a0ab750d3fe24
Signed-off-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Md Sadre Alam <quic_mdalam@quicinc.com>
2022-11-24 00:57:32 -08:00
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
Rajkumar Ayyasamy
94dbaae51e pack_v2: use new xtract_n_flash command
xtract_n_flash $imgaddr $filename $partname

The above cmd can be used instead of below set of cmds

imxtract $imgaddr $filename
erase <offset> <size>
write <fileaddr> <offset> <filesize>

This patch also removes padding as it will be taken
care by the flash cmd itself

Change-Id: Id55d844103a97a6a621545e4d62d3da408ffa61c
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
Signed-off-by: Rajkumar Ayyasamy <quic_arajkuma@quicinc.com>
2022-09-25 22:06:20 -07:00
Kathiravan T
e5f29a66be pack_v2: remove the obselete code
Remove the following support

*) ipq806x / ipq40xx targets
*) nand-audio
*) LK image
*) IPQ807x + QCN9000

Change-Id: I595f868e5b99d481a2110c430c228c2d70112b1e
Signed-off-by: Kathiravan T <quic_kathirav@quicinc.com>
2022-09-20 11:14:52 +05:30
Kathiravan T
c6a4de6d00 pack_v2: remove the unwanted changes
Reverted the changes till the below commit
d84c9f230d ("tools: pack: add new option to select fw based on
machid")

Change-Id: I0578dd5014fbd1d4669065e0bff566c9fc899811
Signed-off-by: Kathiravan T <quic_kathirav@quicinc.com>
2022-09-19 15:39:12 +05:30
Kathiravan T
3f7ad2e752 pack_v2: add the snapshot of pack script
Add the snapshot as of below commit from win.coretech.1.0 branch
9e40b52661 ("tools: pack: Update pack script for IPQ9574")

Change-Id: Iebafae7f827a5ae8bb0b48ca9c899f2672f65fb3
Signed-off-by: Kathiravan T <quic_kathirav@quicinc.com>
2022-09-14 21:13:24 -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
Sandhya KS
564a735cdf sysupgrade : Enable support for APDP secure sysupgrade
Change-Id: I8d5c9b2287a7eb61ea6366506d32d35e35e15db9
Signed-off-by: Sandhya KS <quic_sandhyks@quicinc.com>
2022-04-26 13:08:42 +05:30
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
Selvam Sathappan Periakaruppan
7a087b1264 tools: sysupgrade: Populate kernel volume id dynamically
Change-Id: I29fb7de954fc7f855c49aea933c2adb7f1748f12
Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org>
2021-10-27 22:49:33 -07: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
Rajkumar Ayyasamy
b1bf73dfbf tools: add script to convert files in squashfs img to hex array
Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
Change-Id: I3aa88737f832713a3ab371310f56025e5da30287
2020-11-24 01:11:39 -08:00
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
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