Commit graph

52 commits

Author SHA1 Message Date
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
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
Linux Build Service Account
3eaa13f338 Merge "pack.py: Fixed missing '/' in the file path" 2019-01-31 11:06:36 -08:00
Gokul Sriram Palanisamy
ac4c2b0ec7 pack.py: Fixed missing '/' in the file path
Change-Id: Ifd781c6748987e531657567291933a124ed9a478
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2019-01-31 14:45:14 +05:30
speriaka
f6b5d2b5fd ipq6018: Add support for ipq6018 ARCH in pack.py.
Change-Id: I867162d366976b8ec29635ded425fd4f1936a3b3
Signed-off-by: speriaka <speriaka@codeaurora.org>
2019-01-30 00:48:45 -08:00
Gokul Sriram Palanisamy
ae79231f1e pack.py: Added Kernel image packing using skales
lkboot doesn't understand FIT image and requires
kernel image to be packed using skales.

Change-Id: I27d746b459571fe15f837f08196a219fb1fa9082
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2019-01-24 05:40:47 -08:00
Gokul Sriram Palanisamy
41eae48e0d pack.py: Updated to support lkboot single image
LK bootloader needs kernel image with a different
image header format. Hence, we need to pack the
single image with a custom kernel image.

Change-Id: I326fa92a72beace40f92753eac13b638705aeb14
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2019-01-24 05:38:11 -08:00
Pavithra Palanisamy
fb64e6ded8 ipq807x: Enable support to generate apps-only images.
Change-Id: I678d621be99d07321b05f34cfe626607785c882f
Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
2019-01-04 12:44:17 +05:30
Linux Build Service Account
1bde547522 Merge "pack.py: included lkboot in single image" 2018-12-31 13:04:35 -08:00
Gokul Sriram Palanisamy
7b83f68369 pack.py: included lkboot in single image
Added an additional option '--lk'.
With this option '--lk' included, pack script will
use lkboot.mbn instead of u-boot.mbn for APPSBL.

This option applies to 'emmc' only image.
Other flash types will discard this option.

Applies to ipq807x SoCs.

Change-Id: Id2b6f6946f66d26e1d6c9c1c5dcec0d0fb5d26a8
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2018-12-26 21:33:04 -08:00
Saravanan Jaganathan
93d70cd30f tools: pack: Choose nand-4k only for nand
nand-4k is auto picked only for nand and not for norplusnand.

Change-Id: Id78940ebebde7d8e814a8334d11b65f69ac1520e
Signed-off-by: Saravanan Jaganathan <sjaganat@codeaurora.org>
2018-12-26 16:56:55 +05:30
Pavithra Palanisamy
e3c24574bd ipq807x: Add support to pack nand single-image for 4K pagesized NAND
Change-Id: I247422b032076895102029482505ed8ef657fbf2
Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
2018-12-16 22:33:53 -08:00
Pavithra Palanisamy
bfb3a33102 ipq807x: Add support to use defined mkimage for creating U-boot image.
Change-Id: I61f9f3b5baeb9bfb854f7a48b6ccdb7d912fdca7
Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
2018-12-12 19:42:24 +05:30
Pavithra Palanisamy
640bab8ee8 ipq807x: Add support for "tiny-nor" flash type in single-image generation
Change-Id: I3c03233e8e9290fd8e601135afa7c5d421c29e71
Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
2018-12-06 10:54:21 +05:30
Pavithra Palanisamy
f29bf1f4bd ipq: Add support to pack wififw images on availability
This change adds "optional" property to avoid pack error
on unavailability of wififw version-specific binaries and
abort while flashing.

Change-Id: I7351e3e717f12b1e730db710b4364404d177768d
Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
2018-10-30 21:52:46 -07:00
Pavithra Palanisamy
06f249ac4c ipq807x: Modify flash script to flash V1 images in default case.
This change adds support to flash V1 images as if default version is 1,
if the soc version information are not supported in boot loader.

Change-Id: I7867ae3b26032215da45d2a97d61ea7398e152d9
Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
2018-09-11 13:17:44 +05:30
Pavithra Palanisamy
5a41b59a6d ipq807x: Modified pack script to name images based on version.
This change modifies the pack script to generate soc-version
specific names for images to be packed into single image.

Change-Id: Ic6406fe0fc164d8c6e7b2622c97915aac2afaac8
Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
2018-09-03 16:31:52 +05:30
Pavithra Palanisamy
e34f309ed1 ipq807x: Modify pack script to flash SoC-version specific binaries
Change-Id: I6903a732e83d716763f04c18ed45e54edb995783
Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
2018-08-31 21:50:16 +05:30
Pavithra Palanisamy
77ed38c1cd qca: Modify pack.py script
Add print statements to display the failure reason for flashing.

Change-Id: Ib355271bdef307f6a981b32738a1a4195dc979ec
Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
2018-02-22 18:03:48 +05:30
Venkat Raju Sana
2b68fba7af ipq807x: Add support for fail-safe boot on WIFI FW partition.
Change-Id: I82a541555298a589e6acf9a57d56304af441a0ce
Signed-off-by: Venkat Raju Sana <vrsana@codeaurora.org>
2018-01-04 04:28:28 -08:00
Saravanan Jaganathan
7d086407d3 tools: Added support for APSS only single images
Change-Id: I6dfce00e629a9e34e95a88d4031bb117c539aeab
Signed-off-by: Saravanan Jaganathan <sjaganat@codeaurora.org>
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2017-10-12 04:46:06 -07:00
Aditya Kumar Patra S
75bf44bef1 tools: Fixed rootfs partition name for norplusnand and emmc images
Change-Id: Ibb684dc288460f0d1e8719b093766d80f535db18
Signed-off-by: Aditya Kumar Patra S <apatr@codeaurora.org>
2017-07-12 17:22:10 +05:30
Aditya Kumar Patra S
d688553904 qca: tools: Modified pack.py to support new packing model
Change-Id: I8c97407cf6c8f9068f7945c488bd7c4857f8a5b1
Signed-off-by: Aditya Kumar Patra S <apatr@codeaurora.org>
2017-05-30 07:37:05 -07:00
Aditya Kumar Patra S
117caa3ffb Revert "qca: tools: Modified pack.py to support new single-image package"
This reverts commit b68f13eae8.

Change-Id: I8cabf4f636d4e5a69f656a2142ee78b5fa4630d0
Signed-off-by: Aditya Kumar Patra S <apatr@codeaurora.org>
2017-03-21 12:19:27 +05:30
Aditya Kumar Patra S
dc9ccafd96 qca: tools: Support for IPQ807x 64 bit mode in pack.py
1. User has to invoke the pack.py with mode(32 or 64) as the
third parameter.
2. If third parameter is empty, default 32 bit files will be
fetched to create single image.

Change-Id: I9aa589e88995b8f82cf6d39871f3db63235aa808
Signed-off-by: Aditya Kumar Patra S <apatr@codeaurora.org>
2017-03-16 05:15:27 -07:00