Commit graph

37617 commits

Author SHA1 Message Date
Gurumoorthy Santhakumar
14105dcb1a tools: pack.py: Add support to gen single image based on fl size
generate single image based on flash size

add option --flash_size  <flash size>

Change-Id: Ic3aab52b9b8b8fbd053e25dc0db7a924de9c375c
Signed-off-by: Gurumoorthy Santhakumar <quic_gsanthak@quicinc.com>
2024-05-09 09:25:34 +05:30
Gurumoorthy Santhakumar
6b4eed6dd5 tools: pack_v2: add support to generate 256M single image
add support to generate single image with 256M flash layout
for nand and norplusnand flash type.

Change-Id: Id78d5da70ba2b64cffc0bbd68e554197055cdddb
Signed-off-by: Gurumoorthy Santhakumar <quic_gsanthak@quicinc.com>
2024-04-30 15:42:41 +05:30
Ram Kumar D
18b9df54bf board: qca: skip setting dump2mem idenfier in failure case
Change-Id: I655c5c471180361dfcd7e2b07c8b79fe0597cf65
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
2024-04-24 12:11:38 +05:30
Linux Build Service Account
c520adb295 Merge "boot: cleanup edma before jump to kernel" 2024-04-22 09:12:11 -07:00
Ram Kumar D
c2c5de2497 drivers: net: ipq6018: enable qca8x8x switch support
This patch enables qca8x8x switch support on ipq6018.

Change-Id: I5e037071dad112558682255f99bac2adb2b411b5
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
2024-04-22 12:26:10 +05:30
Vandhiadevan Karunamoorthy
6a32b06516 boot: cleanup edma before jump to kernel
This changes clean and disable edma before
jumping to kernel.

Change-Id: I324a9b410fb94e1e01e63ad77c46b5129bc76e54
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2024-04-21 11:06:38 -07:00
Linux Build Service Account
cdc03c7d58 Merge "tools: pack_v2: update exception with respect to python3" 2024-04-17 08:11:14 -07:00
Ram Kumar D
1b1930dfa1 tools: pack_v2: update exception with respect to python3
This patch fixes the exceptions cases with respect to
python3.

Change-Id: I3b1264c0bb6a32e7e6ebb588dc6cd5fb43f357b2
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
2024-04-15 10:05:41 +05:30
Ram Kumar D
ef599b2d1b drivers: net: skip configuration if already configured
This patch skips uniphy configuration if it is already
configured with the requested mode.

Change-Id: I4aa1f249a5393881f83e35f3016259986085921c
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
2024-04-12 17:25:24 +05:30
Linux Build Service Account
065478fcfd Merge "tools: pack_v2: flash bootconfig only for non-apps image" 2024-04-04 06:41:13 -07:00
Sridharan S N
6a387e21dc arch: arm: dts: update the config name
Add config names with regex config- for mi01.12,
mi01.13 and mi04.3 rdps.

Change-Id: Ib09ecddc7ba76f9f479cc04b454b9a0ef033c8d9
Signed-off-by: Sridharan S N <quic_sridsn@quicinc.com>
2024-04-02 01:01:54 -07:00
Ram Kumar D
3717bbac92 tools: pack_v2: flash bootconfig only for non-apps image
Update pack_v2 script to flash bootconfig only for non-apps
image.

Change-Id: Iebc8f742b2e04f5950dfbce044f55b7f644c9846
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
2024-04-02 13:23:07 +05:30
Linux Build Service Account
86a40fee21 Merge "configs: ipq9574: enable compressed dump support" 2024-03-31 23:11:16 -07:00
Sridharan S N
6f024ac352 configs: ipq9574: enable compressed dump support
This patch enables CMD_ZIP and GZIP_COMPRESSED

Change-Id: Ice534ca96b284528494b651b58ac3dbba509a0a7
Signed-off-by: Sridharan S N <quic_sridsn@quicinc.com>
2024-03-27 22:51:49 -07:00
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