Commit graph

37603 commits

Author SHA1 Message Date
Linux Build Service Account
4d8fc753dc Merge "tools: pack_v2: limit the wifi fws based on profiles" 2024-03-25 03:12:25 -07:00
Linux Build Service Account
a6a13af5f4 Merge "board: qca: crashdump: add condition check for size" 2024-03-22 11:40:07 -07:00
Linux Build Service Account
7573271eb1 Merge "ipqsoc: Skip reset in crash dump path." 2024-03-22 08:41:12 -07:00
Ram Kumar D
ea1cdf6874 tools: pack_v2: limit the wifi fws based on profiles
This patch adds support in the pack_v2 script to limit
the wifi firmwares which packed into the single images
based on the profiles.

Add corresponding profile entry under each RDP
config in config.xml to restrict wifi fw images
packed into the single image.

Eg:
<profiles>256</profiles>
<profiles>512</profiles>
<profiles>512,256</profiles>

Note: No need add default profile in profiles tag.

Change-Id: I06667ec7ba31a2bbcb742fbd5319f0e30be193fc
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
2024-03-21 14:03:33 +05:30
Ram Kumar D
615200e1e8 tools: packv2: added support to flash bootcfg based on RDP
This patch adds support to flash the bootconfig based on the
RDPs.

1. To flash bootconfig based on Multi-RDP add entry like
   below in all flash partition xmls

   for non-mmc flash partition:
   <img_name type="string" bootconfig_type="1">file1_name</img_name>
   <img_name type="string" bootconfig_type="2">file2_name</img_name>
   <img_name type="string" bootconfig_type="3">file3_name</img_name>

   for mmc flash partition:
   bootconfig_type_max="2"
   filename_img1="file1_name"
   filename_img2="file2_name"

   and specify which bootconfig to flash on each RDP by adding
   entry like below, in config xml under each RDP nodes.
   <bootconfig_type>1</bootconfig_type>

2. for single bootconfig case, there is no change.
   just add single entry like below in all flash partition xmls
   <img_name type="string">file_name</img_name>

Change-Id: Id68c4f6f6c4cced493ac5130378897711e8cb9e4
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
2024-03-20 16:23:46 +05:30
Ram Kumar D
698f9adf4f board: qca: crashdump: add condition check for size
This patch add an conditional size boundary check to
make sure that the collected minidumps is within the
reserved memory region. If not, it throws failure
message and do reset.

Change-Id: I97c721f792350e83463f5dcff412785b8263bb4c
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
2024-03-19 16:53:24 +05:30
Linux Build Service Account
4568deeb3c Merge "board: bootqca: add null check for bootargs" 2024-03-18 05:43:09 -07:00
Gurumoorthy Santhakumar
cf2f0c3a97 ipqsoc: Skip reset in crash dump path.
Skip reset in crash dump path which give access to user
to perform secure authentication.

in crash path,
	bootipq cmd only authenticate kernel/rootfs.
	booting to kernel is restircted.

Enable CONFIG_SKIP_RESET to skip reset in crashdump path.

Change-Id: I28fdd4dc6475d4d26b20a87aa039cef165db1375
Signed-off-by: Gurumoorthy Santhakumar <quic_gsanthak@quicinc.com>
2024-03-18 12:37:20 +05:30
Linux Build Service Account
5c155dbba2 Merge "drivers: qseecom: Add new SCM call for AES 128 bytes context length" 2024-03-11 10:41:00 -07:00
Poovendhan Selvaraj
dae19193ab drivers: qseecom: Add new SCM call for AES 128 bytes context length
A new SCM has been added in TZ to support AES 128 byte context length.
Updated aes driver to add the same. Added new command as mentioned
below for 128 byte context length.
derive_aes_256_max_ctxt_key 0x2 0x20 0x41000000 0x80

Note: This new SCM call has been introduced since initial SCM call does not
derive keys the same way as Linux Fscrypt feature (128 byte context length)

Signed-off-by: Poovendhan Selvaraj <quic_poovendh@quicinc.com>
Change-Id: Ie71fc0e9b3c0b0d01995745bb61cd2d82f07eb85
2024-03-11 15:03:14 +05:30
Ram Kumar D
d7c6d8dd31 board: qca: crashdump: add support save minidumps in nvmem
This patch enable the uboot to collec the minidump
by parsing the TLVs exposed by the kernel and store it
into the nvmem (Non volatile memory) either NAND / eMMC

To enable this feature,

setenv dump_minimal 1
setenv dump_to_nvmem "<partition_name>"

Change-Id: I2f2ed2ad2e8506957288052edaf5d6290ae787b7
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
2024-03-09 15:08:32 +05:30
Ram Kumar D
6187ef3200 board: qca: crashdump: update negative case print
Change-Id: Ic61c2ec7d0603795416d57f7fdca5b4069a01f7e
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
2024-03-09 15:08:17 +05:30
Timple Raj M
2bb41b0559 board: qca: arm: common: cmd_bootqca: Update config_selection sequence
Instead of updating the config_names in fdt_blob,
the config_names are maintained locally this avoids
the fdt_blob resizing

Change-Id: Ib1d6fecd973394363012564a8fc9e84d36fc7462
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2024-03-07 12:32:38 +05:30
Gurumoorthy Santhakumar
b3c88dd6b1 board: bootqca: add null check for bootargs
Change-Id: I5328f97ca6df52efeb60e6c0dddd1d84d1a5a039
Signed-off-by: Gurumoorthy Santhakumar <quic_gsanthak@quicinc.com>
2024-03-06 15:32:08 +05:30
Linux Build Service Account
d7746c960a Merge "cmd_aes : Increase Context length to 128 from 64 bytes" 2024-02-28 04:12:43 -08:00
Poovendhan Selvaraj
78d19e2dbb cmd_aes : Increase Context length to 128 from 64 bytes
Add support to increase context length if tz supports
128 bytes context length else fall back to old method.

Signed-off-by: Poovendhan Selvaraj <quic_poovendh@quicinc.com>
Change-Id: Ieded2c0139152e82011f792e91b875548fd29251
2024-02-27 16:25:20 +05:30
Ram Kumar D
1631a0664a board: qca: skip dumpfile if file size is zero
Change-Id: I09d291c5346a094be9156b6b4a05a23c7d698617
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
2024-02-22 15:51:07 +05:30
Linux Build Service Account
b8c0e50f54 Merge "board: qca: arm: add support to dump minidumps on memory" 2024-02-05 00:12:58 -08:00
Ram Kumar D
17f2872c6b board: qca: ipq5332: updated scope for the loop in PHY reset
The missing calibrace leads to an in-valid hardware access,
it in-turn causes silent reboot. So, added the calibrace to
define the scope for the loop statement.

Change-Id: I0c719798af35eb21a824ee6f570501dab720e241
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
2024-02-02 16:43:16 +05:30
Ram Kumar D
f53b5a7770 board: qca: arm: add support to dump minidumps on memory
This patch enables support to do minidump on DDR.
Enable this support by setting respective reserved mem address
in the env "dump_to_mem"

setenv dump_minimal 1
setenv dump_to_mem "<addr> <size>"
addr & size param should matches with respect to the kernel
reserved memory region.

setenv dump_to_mem "0x44000000 0x500000"

Change-Id: I3f98269d42eed1e6301ed76eb9d1bcdd82046d41
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
2024-01-31 16:13:00 +05:30
Linux Build Service Account
1e42f2b6b8 Merge "sysupgrade : fix UNINIT.STACK.MIGHT KW error" 2024-01-29 21:09:33 -08:00
Vijay Balaji
980dfed53b sysupgrade : fix UNINIT.STACK.MIGHT KW error
This change fixes the UNINIT.STACK.MIGHT KW issue
in sysupgrade code.

Change-Id: I70760b3ecd331218408ec92a09961f552dc6be24
Signed-off-by: Vijay Balaji <quic_vijbal@quicinc.com>
2024-01-25 06:17:33 -08:00
Linux Build Service Account
e34c5c9329 Merge "tools: add support to convert elf to mbn" 2024-01-24 11:41:02 -08:00
Linux Build Service Account
b34949f16c Merge "arm: dts: Add MI01.3-C3 dts support" 2024-01-23 12:08:55 -08:00
Ram Kumar D
2e0ccbbaa5 tools: add support to convert elf to mbn
Change-Id: I3caca1f0a7f7bea61ea29186fdb04becb8ef0b37
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
2024-01-23 11:02:18 +05:30
Saahil Tomar
c70ced3786 arm: dts: Add MI01.3-C3 dts support
This change adds MI01.3-C3 (RDP486) which is a derivative of RDP442

Change-Id: Ia19d7bf94962a52b76cc4556969c4ed1cd3706b6
Signed-off-by: Saahil Tomar <quic_saahtoma@quicinc.com>
2024-01-19 13:00:55 +05:30
Linux Build Service Account
3055b258f6 Merge "aes: Add aes 256 support for ipq5332 platform" 2024-01-16 01:10:58 -08:00
Poovendhan Selvaraj
e15df34ac8 aes: Add aes 256 support for ipq5332 platform
ipq5332 is a TME-L based platform in which before
encrypt/decrypt, we are required to derive a key
handle.

This patch adds support for the same.

Change-Id: I28b327611b62381542086d6d599c4a0195525aca
Signed-off-by: Poovendhan Selvaraj <quic_poovendh@quicinc.com>
2024-01-16 09:26:15 +05:30
Linux Build Service Account
367c8dbf32 Merge "sysupgrade-helper : Fix KW issues and warnings for sysupgrade" 2024-01-12 08:40:40 -08:00
Vijay Balaji
3f84414cde sysupgrade-helper : Fix KW issues and warnings for sysupgrade
Here we are adding support to fix several warnings and
NPD.FUNC.MUST, ABV.GENERAL, INCORRECT.ALLOC_SIZE KW issues
in sysupgrade source code.

Change-Id: If8053878696494c1425ebd20840d17d9c6a74524
Signed-off-by: Vijay Balaji <quic_vijbal@quicinc.com>
2024-01-11 13:12:58 +05:30
Timple Raj M
443a52e2cb ipq5332: Skip PCIe enumeration during the board_init
In Q6, we are seeing rare PCIe enumeration failure and suspecting
U-boot PCIe enumeration (Gen1) could impact. Hence skipping the PCIe
enumeration during the board_init based on CONFIG_IPQ_PCI_INIT_DEFER
config and added it after autoboot is stopped.

Change-Id: I79d0d0aef2eeea9bf49157f405a29f23b3c2239d
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2024-01-10 03:20:49 -08:00
Linux Build Service Account
a07ff15e2e Merge "board: qca: arm: ipq: config_name update" 2024-01-02 10:09:56 -08:00
Timple Raj M
371c067c14 drivers: mtd: spi: Add MX25U12832F SPI NOR device support
Change-Id: Ie8ee6c5a79fe6469b3c7688010ce33cac60ffc4a
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2023-12-28 17:41:58 +05:30
Hariharan K
0054e407fa board: qca: arm: ipq: config_name update
Updating the config_name parameter to
support openwrt backwards compatibility.

Change-Id: I129aad5df7e14bcf39d9f971a860b5884cde2667
Signed-off-by: Hariharan K <quic_harihk@quicinc.com>
2023-12-21 16:39:13 +05:30
Linux Build Service Account
32187e52f7 Merge "include: configs: remove unused config" 2023-12-21 00:12:39 -08:00
Ram Kumar D
26c428c064 include: configs: remove unused config
Change-Id: Ic0c412e6424b1da9b62ef8b31aed35307d011fd1
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
2023-12-20 16:34:14 +05:30
Linux Build Service Account
23045aca4b Merge "arch: arm: dts: update the config name for all IPQ6018, ipq5018 and ipq807x targets" 2023-12-18 13:10:46 -08:00
Ram Kumar D
0b102f4bdc board: qca: arm: load rootfs as per the elf hdr
During rootfs authentication, this following patch makes
the uboot will load rootfs at the load address mentioned
in the rootfs elf hdr which is present at the end of
kernel image.

Change-Id: Iba9d31c72d01449b858b3866f38f369b67011cae
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
2023-12-14 16:03:29 +05:30
Atchaya R
1cb16c44de arch: arm: dts: update the config name for all IPQ6018, ipq5018 and ipq807x targets
Signed-off-by: Atchaya R <quic_ratchaya@quicinc.com>
Change-Id: Ib0c78de0e33ab40c927702da777764e300b581c7
2023-12-14 13:20:27 +05:30
Linux Build Service Account
ded4e73260 Merge "configs: ipq807x: Change CONFIG_IPQ_FDT_HIGH address" 2023-12-13 12:10:06 -08:00
Hariharan K
20640c2ea2 configs: ipq807x: Change CONFIG_IPQ_FDT_HIGH address
Changing the CONFIG_IPQ_FDT_HIGH address for ipq807x
platform to avoid the DT blob load address from
overlapping with the tzapp_data(0x4A300000) region.
The kernel created a 2MB readonly mapping of the
DT blob. Due to this the mapping will also extend
into the tzapp(0x4A400000) region, which is TZ
protected.

Hence changing the FDT high address to from 0x4a400000
to 0x4a200000 to avoid access violation issues.

Change-Id: I3283c0afdec8ab126ea109c7ca9184a9ea577f16
Signed-off-by: Hariharan K <quic_harihk@quicinc.com>
2023-12-12 01:55:33 -08:00
Linux Build Service Account
37f9e7e91d Merge "arch: arm: dts: Enable SPI NOR support for MI01.2" 2023-11-24 16:39:51 -08:00
Saahil Tomar
a91b6759b1 arch: arm: dts: Enable SPI NOR support for MI01.2
Change-Id: I3c823cde2dcde912169da878bba0569b5c9b088a
Signed-off-by: Saahil Tomar <quic_saahtoma@quicinc.com>
2023-11-23 22:25:12 -08:00
Linux Build Service Account
1dbf523fb6 Merge "qca: ipq: fix to correct wrong delay obtained from udelay function" 2023-11-21 12:40:24 -08:00
Linux Build Service Account
fa13b8f8c5 Merge "pci: pci_ipq: Fix pci_find_ipq_devices() to not check all PCIe hose" 2023-11-21 06:11:17 -08:00
Linux Build Service Account
483fd02deb Merge "arm: dts: Add MI01.13 (RDP480) dts support." 2023-11-21 03:12:02 -08:00
Praveenkumar I
a937a286fa pci: pci_ipq: Fix pci_find_ipq_devices() to not check all PCIe hose
Fix pci_find_ipq_devices(), which is checking all the PCIe hose from
the given ID and if searching device is not present, it moves till
the last PCIe hose and finds the device. This leads to duplicate
entries if unknown devices are also present. Instead it should
check only the selected PCIe hose and return success or failure.

Add QCN6432 in PCI device list so that list_pci command can show it.

Change-Id: I1fd1af9a760354f558680889dd5804abd6145dea
Signed-off-by: Praveenkumar I <quic_ipkumar@quicinc.com>
2023-11-20 20:39:35 +05:30
Timple Raj M
72d8ec613f qca: ipq: fix to correct wrong delay obtained from udelay function
If usec >= 224000 usec, then:
usec * GPT_FREQ_KHZ = 224000 * 19200 >= 0x100590000,
which is a 33 bits value

To fix this usec is typecasted to 64 bit
(unsigned long long)usec * GPT_FREQ_KHZ

Change-Id: Ib1642d39b0581d2c04c62e415a1fd2dfed47fff1
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2023-11-17 21:01:28 +05:30
Linux Build Service Account
e5277a298e Merge "arm: dts: Add MI01.12 (RDP479) dts support" 2023-11-16 12:10:22 -08:00
Linux Build Service Account
83c4348a55 Merge "ipqsoc: board: Add restriction for bootm and mw cmd" 2023-11-15 09:40:19 -08:00