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>
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
'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
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
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
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
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
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
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>
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
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
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
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
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
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
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>
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
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>
This allows Linux Kernel to use all
smp cores available.
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
Change-Id: Id63c506d17eeb9cc15cc453adb89f77fa1cb4039
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>
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>
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>