Commit graph

75 commits

Author SHA1 Message Date
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
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
Gokul Sriram Palanisamy
e9aae6d127 ipq807x: Added golden PINE RDP support
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
Change-Id: If910fe9f6f221b39833156d0226435785173fbc8
2020-06-17 17:46:44 +05:30
Balaji Prakash J
688e6c086e tools: pack: add option to skip 4k nand images
In fig branch, 4k nand HLOS images are not generated yet.
In pack script, we are generating nand-4k and norplusnand-4k
images if nand and norplusnand flash type is selected.
So, added an option "--skip_4k_nand" to skip generating
4k nand single images.

Signed-off-by: Balaji Prakash J <bjagadee@codeaurora.org>
Change-Id: I487c3e7d150a7165a70e2a4e1c13581eeaa08bb1
2020-05-15 13:15:50 +05:30
Saravanan Jaganathan
e3cb69348b tools: pack: exit with error code when pack fails
change print to exit with error code so that we know
when an image packing fails

Change-Id: I55b791c226de1c6b2d40c4886a43b301c58aa644
Signed-off-by: Saravanan Jaganathan <sjaganat@codeaurora.org>
2020-05-04 22:01:47 -07:00
Gokul Sriram Palanisamy
72afd56aaf pack.py: Section and variable names made generic
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
Change-Id: I54ba0d7898445cfba5032bb6525f15b4a6888416
2020-04-14 21:48:31 -07:00
Gokul Sriram Palanisamy
ba5944287b pack.py: HK14: Added support to flash qcn9000 fw
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
Change-Id: I7c397d53281bce44607ca850662425cec9ce648a
2020-04-06 18:38:52 -07:00
Gokul Sriram Palanisamy
a52bcaf919 tools: pack: Removed nosmp bootargs
This allows Linux Kernel to use all
smp cores available.

Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
Change-Id: Id63c506d17eeb9cc15cc453adb89f77fa1cb4039
2020-03-16 21:39:06 +05:30
Rajkumar Ayyasamy
ddedefb9bb tools: pack: remove nand-audio flash type
Change-Id: I3bfd64c5061307de6a9e2014acb7c10cfedfd426
Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
2020-02-17 01:40:31 -08:00
Rajkumar Ayyasamy
4059457fec pack: ipq6018: add support for lk packing
Change-Id: I36b15d47e7f5b8f0426398dd51c188ac2e4bfece
Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
2020-01-14 11:34:40 +05:30
Pavithra Palanisamy
d180270132 pack: ipq807x: Add support for (HK10 + QCN90xx) changes in single-image
This change involves:
1. pack the hk10 specific system-partition binaries into single-image
2. flash the MIBIB partition based on the machid
3. update the offsets and sizes in the partiton table based on the
   selected system-partiton image.

Note: HK10 changes applicable to nand-2k and norplusnand-2k only.

Change-Id: I513e4ffc379ca9a7862e61dab7901f32d5aa9fe6
Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
2020-01-11 00:01:25 -08:00
Pavithra Palanisamy
766b714a45 pack: Add ubinizing support for ipq5018
Change-Id: I730827fde904c354c65b5aa5c9b31c015c22ccb0
Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
2019-10-17 04:10:09 -07:00
Pavithra Palanisamy
eae0db2a4a pack: Add support to pack ipq5018 single-images
Change-Id: I8dda94e43f478a5cf4de497b7dd4c25fa912c7fa
Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
2019-10-17 04:07:26 -07:00
Rajkumar Ayyasamy
a636319503 ipq6018: take ubinize from src path instead of current path
Change-Id: I6613f29d2c4b867b9232068c0849cd53a94d84fb
Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
2019-09-20 15:35:39 +05:30
Rajkumar Ayyasamy
789206700c ipq6018: ubinizing APPS images in pack script
Change-Id: I55418f6f041d65b7fde30381b49110ada934fb2c
Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
2019-09-12 22:39:04 -07:00
speriaka
e6dbd85747 Revert "tools: pack.py: ipq6018: Add support for NAND AC image"
This reverts commit 466666e8d3.

Change-Id: Icb705096f5edec0eefa7a9a68c89600b6b3f9d2d
Signed-off-by: speriaka <speriaka@codeaurora.org>
2019-09-11 23:53:34 -07:00
speriaka
466666e8d3 tools: pack.py: ipq6018: Add support for NAND AC image
Change-Id: Ia2810dacd9cd8f26427bab40340057a691fa960d
Signed-off-by: speriaka <speriaka@codeaurora.org>
2019-08-13 18:08:17 +05:30
speriaka
3f9a51ccb8 tools: ipq6018: Update nand-audio 2k image name
This patch updates the pack script to handle the
change required in nand-audio 2k single image name.

Change-Id: If15925e29e985bc4161a45666d6a67e17d76e93a
Signed-off-by: speriaka <speriaka@codeaurora.org>
2019-06-28 01:57:16 -07:00
Pavithra Palanisamy
7da84bb961 pack-tool: Fix process abort issue on image size irregularity
This change adds support to skip only the specific flash type's
single-image generation if the size of any of its image components
does not fit into layout size, instead of exiting entire pack
process of generating other single-images.

Change-Id: I68486abf5950c06bc4129eedfb38f069734eaf40
Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
2019-06-20 15:27:52 +05:30
speriaka
c7bd644365 tools: ipq6018: Add pack support for NAND audio image.
Change-Id: Ia754572e8eb6c09d0aafc46ff3ef92dfb4a5b099
Signed-off-by: speriaka <speriaka@codeaurora.org>
2019-06-18 21:38:55 -07:00
Pavithra Palanisamy
ccac2392f7 pack: Add support to pack CDTs based on specific memory profiles
Change-Id: I0de52b34ae0dbbc4971e8df48679a192ff1b1609
Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
2019-03-25 16:47:42 +05:30
Gokul Sriram Palanisamy
02f0b79baa pack.py: Updated base addr 64-bit kernelboot image
Change-Id: I48bcb258b42a8746e462cb27810d65300562a585
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2019-02-09 02:25:28 -08:00
Linux Build Service Account
c6c331646d Merge "pack: ipq807x: Enable norplusnand single-image for 4K pagesized NAND" 2019-02-08 09:06:32 -08:00
Pavithra Palanisamy
8bf2bc5bdf pack: ipq807x: Enable norplusnand single-image for 4K pagesized NAND
Change-Id: If3d2971d2edb9c2770cea8e0f3cefbc004a72241
Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
2019-02-04 15:55:56 +05:30
Gokul Sriram Palanisamy
c95c32e1dc pack.py Fixed kernelboot image file path
Change-Id: I15bc640c4d0df03e4b8f9372fedc39356327dd07
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2019-02-04 12:35:51 +05:30