Commit graph

37639 commits

Author SHA1 Message Date
Gurumoorthy Santhakumar
2a96db3ac1 board: list_fuse: Changing AUTH_EN mask to 0x80 for IPQ9574
Change-Id: Ia540813f7dfb48f7858ba5466f780a30c936f3bc
Signed-off-by: Gurumoorthy Santhakumar <quic_gsanthak@quicinc.com>
2024-07-10 00:17:30 -07:00
Linux Build Service Account
8cd833e017 Merge "board: common: enable list fuse command for IPQ9574." 2024-07-02 09:37:53 -07:00
Gurumoorthy Santhakumar
a103e37bd1 board: common: enable list fuse command for IPQ9574.
cmd: 'list_fuse'
for ipq5332 list fuse cmd changed from
list_ipq5332_fuse to list_fuse.

Change-Id: I79fa89bd9499d13aad194d62d3e099e9d6051516
Signed-off-by: Gurumoorthy Santhakumar <quic_gsanthak@quicinc.com>
2024-06-28 04:33:08 -07:00
Hariharan K
fdec178034 board: ipq5332: dload register access update
These changes access TCSR register reading via SCM,
based on feature availability.
Reading will happen either via scm or legacy direct read.

Change-Id: Ia5eb97bce6677843ddea25ce767762e6fd831283
Signed-off-by: Hariharan K <quic_harihk@quicinc.com>
2024-06-27 05:29:59 -07:00
Linux Build Service Account
cb261702f3 Merge "board: crashdump: Enable TME log dump" 2024-06-25 00:09:13 -07:00
Gurumoorthy Santhakumar
6c77c480fe board: crashdump: Enable TME log dump
Change-Id: Ib19afb1ecc01170f046afa0e747074152215b243
Signed-off-by: Gurumoorthy Santhakumar <quic_gsanthak@quicinc.com>
(cherry picked from commit cb6fcfaf2f272c4fd01e1d06f0a6591a7edfb75f)
2024-06-24 02:41:28 -07:00
Gurumoorthy Santhakumar
ec48b47f5d tools: pack.py: add support to gen ipq807x single img for 256M flash
this change will support to generate single image for nand flash
with 256M size.

Change-Id: Iedd04e83be30e587e2024299b27abb1b739cef99
Signed-off-by: Gurumoorthy Santhakumar <quic_gsanthak@quicinc.com>
(cherry picked from commit e0b5cc3a29e01747daafa6664ffc7a6123a35e71)
2024-06-20 02:07:46 -07:00
Hariharan K
96b17b1392 cmd_aes: Add clear key support in u-boot
Adding support for clearing an existing
derived key.

Change-Id: I6e6c8718696aa7ae29cf9ec0429b9c90c074f62d
Signed-off-by: Hariharan K <quic_harihk@quicinc.com>
2024-06-18 21:01:20 -07:00
Timple Raj M
fc2a063d53 drivers: mtd: nand: fix to resolve compiler warnings
Change-Id: I0f7de357aa621ac3096859cdf6a25c05b043bcdb
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2024-06-13 22:14:26 -07:00
Saahil Tomar
be508059c0 tools: pack_v2: revert wifi_fw skip for RDP473 & RDP480
Change-Id: Ieda941d25df0b67a9ca9460ecd7cfbc0ee216e4f
Signed-off-by: Saahil Tomar <quic_saahtoma@quicinc.com>
(cherry picked from commit bc7713e26f)
2024-06-13 02:20:43 -07:00
Hariharan K
fdc05fd0ef drivers: mtd: nand: Updating part MX35UF2GE4AD
The MX35UF2GE4AD nand part has support for 8-bit ECC,
2Gb flash density and 128 bytes of OOB. Updating the
correct info in the nand id table.

Change-Id: I21f1bd0a897b92694040dc5908580c80a4b003da
Signed-off-by: Hariharan K <quic_harihk@quicinc.com>
(cherry picked from commit 2a156d089e)
2024-06-12 00:08:35 -07:00
Vandhiadevan Karunamoorthy
7c76321c8a configs: ipq5332: add tiny version 2 defconfig
This change is a duplicate version of a tiny profile
with an updated load address and smem layout

Change-Id: I16ceb46547382961e9e91a26af3862057093d3b2
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2024-05-31 11:23:41 +05:30
Linux Build Service Account
ffdeef81a5 Merge "arm: dts: ipq5332: Add mmc node in AP-MI04.1 and AP-MI04.3 RDP" 2024-05-25 04:40:08 -07:00
Ram Kumar D
280e3319b9 arch: arm: dts: add mi01.2 support on tiny profiles
Change-Id: I9326bc6b0007c4ccaabbe8cbce9718adf91a4b4a
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
2024-05-24 14:34:02 +05:30
Timple Raj M
610e459475 arm: dts: ipq5332: Add mmc node in AP-MI04.1 and AP-MI04.3 RDP
Change-Id: Ibfafa1e78dbd51cd864da592003765f3ef19ac1c
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2024-05-24 11:59:09 +05:30
Linux Build Service Account
114650d440 Merge "tools: Add image encryption script for aes xts mode" 2024-05-16 01:19:36 -07:00
Linux Build Service Account
9ecee09763 Merge "drivers: mtd: nand: Updating part MX35UF4GE4AD-Z4I" 2024-05-15 22:41:21 -07:00
Linux Build Service Account
80a81ef1a1 Merge "tools: pack.py: Add support to gen single image based on fl size" 2024-05-15 11:11:44 -07:00
Linux Build Service Account
295c1851b6 Merge "tools: pack_v2: add support to generate 256M single image" 2024-05-15 11:11:43 -07:00
Hariharan K
b7dd2c641e drivers: mtd: nand: Updating part MX35UF4GE4AD-Z4I
The MX35UF4GE4AD-Z4I part has 256 bytes of spare
size. Updating the correct info in the nand table.

Change-Id: Ic3c71d870db8f7e54d0aeb0de27e1812f0fdff7d
Signed-off-by: Hariharan K <quic_harihk@quicinc.com>
2024-05-13 23:34:28 +05:30
Md Sadre Alam
d7d9e7e465 tools: Add image encryption script for aes xts mode
Signed-off-by: Md Sadre Alam <quic_mdalam@quicinc.com>
Change-Id: I85048912f86272d061e4f50989c4a97a758aa3db
2024-05-09 16:38:20 +05:30
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
Timple Raj M
6e270602f8 board: qca: arm : ipq5332: Add config_name for AP-MI04.1-C2 RDP
This patch adds config_name for AP-MI04.1-C2 RDP to support
the OpenWrt version 23.05

Change-Id: I7198ad3a73fd8a58022a133cba9494d8af458566
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2024-04-30 14:24:44 +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