Execute tftpput command for uploading files to a server and validate its
size & CRC32.
Signed-off-by: Love Kumar
---
Changes in v2:
- Add marking for cmd_tftpput config
---
test/py/tests/test_net.py | 72 +++
1 file changed, 72 insertions(+)
diff --g
Abort the dhcp request in the middle by pressing ctrl + c on u-boot
prompt and validate the abort status.
Signed-off-by: Love Kumar
---
Changes in v2:
- Mark CMD_MII command dependency
---
test/py/tests/test_net.py | 45 +++
1 file changed, 45 insertions
Execute "time ", and validate that it gives the approximately
the correct amount of command execution time.
Signed-off-by: Love Kumar
---
test/py/tests/test_sleep.py | 20
1 file changed, 20 insertions(+)
diff --git a/test/py/tests/test_sleep.py b/tes
Execute "time ", and validate that it gives the approximately
the correct amount of command execution time.
Signed-off-by: Love Kumar
---
Changes in v2:
- Used @pytest.mark.buildconfigspec('')
---
test/py/tests/test_sleep.py | 18 ++
1 file changed, 18 inser
Execute tftpput command for uploading files to a server and validate its
size & CRC32.
Signed-off-by: Love Kumar
---
test/py/tests/test_net.py | 69 +++
1 file changed, 69 insertions(+)
diff --git a/test/py/tests/test_net.py b/test/py/tests/test_net.py
i
Abort the dhcp request in the middle by pressing ctrl + c on u-boot
prompt and validate the abort status.
Signed-off-by: Love Kumar
---
test/py/tests/test_net.py | 44 +++
1 file changed, 44 insertions(+)
diff --git a/test/py/tests/test_net.py b/test/py
Execute the 'pxe get' command to download a pxe configuration file from
the TFTP server and validate its interpretation.
Signed-off-by: Love Kumar
---
test/py/tests/test_net.py | 66 +++
1 file changed, 66 insertions(+)
diff --git a/test/py/tests/t
Add below test cases for mii commands:
mii_info -To display MII PHY info
mii_list - To list MII devices
mii_set_device - To set MII device
mii_read - To reads register from MII PHY address
mii_dump - To display data from MII PHY address
Signed-off-by: Love Kumar
---
Changes in v2:
- Get MII
Add below test cases for mdio commands:
mdio_list - To list MDIO buses
mdio_read - To read PHY's register at .
mdio_write - To write PHY's register at .
Signed-off-by: Love Kumar
---
test/py/tests/test_mdio.py | 79 ++
1 file changed, 79 insertions(
Add below test cases for mii commands:
mii_info -To display MII PHY info
mii_list - To list MII devices
mii_set_device - To set MII device
mii_read - To reads register from MII PHY address
mii_dump - To display data from MII PHY address
Signed-off-by: Love Kumar
---
Changes in v2:
- Get MII
Add below test cases for i2c commands:
i2c_bus - To show i2c bus info,
i2c_dev - To set or show the current bus,
i2c_probe - To probe the i2c device,
i2c_eeprom - To test i2c eeprom device,
i2c_probe_all_buses - To list down all the buses and probes it
Signed-off-by: Love Kumar
---
Changes in v2
.
This test relies on boardenv_* containing configuration values including
the parameter 'pattern'. tftpboot/pxe boot cases boots the Linux till the
boot log pattern value is matched. For example, if the parameter
'pattern' is defined as 'login:', it will boot till logi
.
This test relies on boardenv_* containing configuration values including
the parameter 'pattern'. tftpboot/pxe boot cases boots the Linux till the
boot log pattern value is matched. For example, if the parameter
'pattern' is defined as 'login:', it will boot till logi
Add test cases for sf commands to verify various SPI flash operations
such as erase, write and read. It also adds qspi lock unlock cases.
This test relies on boardenv_* configurations to run it for different
SPI flash family such as single SPI, QSPI, and OSPI.
Signed-off-by: Love Kumar
Add the following memory tests:
memtest_negative - To test mtest command by providing incorrect inputs
memtest_ddr - To test memory write-read-comparision for DDR memory
Signed-off-by: Love Kumar
---
test/py/tests/test_memtest.py | 68 +++
1 file changed, 68
.
Signed-off-by: Love Kumar
---
test/py/tests/test_net_boot.py | 371 +
1 file changed, 371 insertions(+)
create mode 100644 test/py/tests/test_net_boot.py
diff --git a/test/py/tests/test_net_boot.py b/test/py/tests/test_net_boot.py
new file mode 100644
index
Add test cases for bootstage command to print the bootstage report, to
stash the data into memory and to unstash the data from memory.
Signed-off-by: Love Kumar
---
test/py/tests/test_bootstage.py | 67 +
1 file changed, 67 insertions(+)
create mode 100644 test
Add a test for reset commands which performs resetting of CPU, It does
COLD reset by default and WARM reset with -w option.
Signed-off-by: Love Kumar
---
test/py/tests/test_reset.py | 50 +
1 file changed, 50 insertions(+)
create mode 100644 test/py/tests
Add test case for saveenv command in non-JTAG bootmode which saves the
u-boot environment variables in persistent storage.
Signed-off-by: Love Kumar
---
test/py/tests/test_saveenv.py | 125 ++
1 file changed, 125 insertions(+)
create mode 100644 test/py/tests
.
This test relies on boardenv_* containing configuration values including
the parameter 'pattern'. tftpboot/pxe boot cases boots the Linux till the
boot log pattern value is matched. For example, if the parameter
'pattern' is defined as 'login:', it will boot till logi
Add testcases for loading RPU applications in split and lockstep mode
including the negative one for AMD's ZynqMP SoC.
Signed-off-by: Love Kumar
---
test/py/tests/test_zynqmp_rpu.py | 208 +++
1 file changed, 208 insertions(+)
create mode 100644 test/py/
-by: Love Kumar
---
test/py/tests/test_gpio.py | 90 ++
1 file changed, 90 insertions(+)
diff --git a/test/py/tests/test_gpio.py b/test/py/tests/test_gpio.py
index 0af186f23602..3e16e6365743 100644
--- a/test/py/tests/test_gpio.py
+++ b/test/py/tests
Add test cases to verify the different type of secure boot images loaded
at DDR location for AMD's ZynqMP SoC. It also adds tests authentication
and decryption functionality using AES and RSA features for Zynq.
Signed-off-by: Love Kumar
---
test/py/tests/test_zynq_secure.py
Add the test cases for mmc commands to test its various functionality
such as mmc list, dev, info, rescan, part, ls, load, and save. It also
adds different file systems cases such as fat32, ext2 and ext4.
Signed-off-by: Love Kumar
---
test/py/tests/test_mmc.py | 671
Add the test cases for usb commands to test its various functionality
such as start, stop, reset, info, tree, storage, dev, part, ls, load,
and save. It also adds different file systems cases such as fat32, ext2
and ext4.
Signed-off-by: Love Kumar
---
test/py/tests/test_usb.py | 626
Add tests for nand commands to test various NAND flash operations such
as erase, write and read.
Signed-off-by: Love Kumar
---
test/py/tests/test_nand.py | 201 +
1 file changed, 201 insertions(+)
create mode 100644 test/py/tests/test_nand.py
diff --git a
Add test cases for sf commands to verify various SPI flash operations
such as erase, write and read. It also adds qspi lock unlock cases.
This test relies on boardenv_* configurations to run it for different
SPI flash family such as single SPI, QSPI, and OSPI.
Signed-off-by: Love Kumar
---
test
Add a following test cases for scsi commands:
scsi_reset - To reset SCSI controller
scsi_info - To show available SCSI devices
scsi_scan - To (re-)scan SCSI bus
scsi_device - To show or set surrent device
scsi_part - To print partition table of selected SCSI device
Signed-off-by: Love Kumar
Abort the dhcp request in the middle by pressing ctrl + c on u-boot
prompt and validate the abort status.
Signed-off-by: Love Kumar
---
Changes in v2:
- Mark CMD_MII command dependency
Changes in v3:
- Skip the test if PHY device not present
Changes in v4:
- Setup the network configuration
Execute tftpput command for uploading files to a server and validate its
size & CRC32.
Signed-off-by: Love Kumar
---
Changes in v2:
- Add marking for cmd_tftpput config
Chnages in v3:
- Add filename to upload as part of env file
---
test/py/tests/test_net.py
Abort the dhcp request in the middle by pressing ctrl + c on u-boot
prompt and validate the abort status.
Signed-off-by: Love Kumar
---
Changes in v2:
- Mark CMD_MII command dependency
Changes in v3:
- Skip the test if PHY device not present
---
test/py/tests/test_net.py | 47
Add below test cases for i2c commands:
i2c_bus - To show i2c bus info,
i2c_dev - To set or show the current bus,
i2c_probe - To probe the i2c device,
i2c_eeprom - To test i2c eeprom device,
i2c_probe_all_buses - To list down all the buses and probes it
Signed-off-by: Love Kumar
---
test/py
Add below test cases for mii commands:
mii_info -To display MII PHY info
mii_list - To list MII devices
mii_set_device - To set MII device
mii_read - To reads register from MII PHY address
mii_dump - To display data from MII PHY address
Signed-off-by: Love Kumar
---
test/py/tests/test_mii.py
Add below test cases for i2c commands:
i2c_bus - To show i2c bus info,
i2c_dev - To set or show the current bus,
i2c_probe - To probe the i2c device,
i2c_eeprom - To test i2c eeprom device,
i2c_probe_all_buses - To list down all the buses and probes it
Signed-off-by: Love Kumar
---
Changes in v2
Abort the dhcp request in the middle by pressing ctrl + c on u-boot
prompt and validate the abort status.
Signed-off-by: Love Kumar
---
Changes in v2:
- Mark CMD_MII command dependency
Changes in v3:
- Skip the test if PHY device not present
Changes in v4:
- Setup the network configuration
.
This test relies on boardenv_* containing configuration values including
the parameter 'pattern'. tftpboot/pxe boot cases boots the Linux till the
boot log pattern value is matched. For example, if the parameter
'pattern' is defined as 'login:', it will boot till logi
On 04/05/24 1:48 am, Tom Rini wrote:
On Fri, May 03, 2024 at 05:39:46PM +0530, Love Kumar wrote:
Add tests for booting image using tftpboot/pxe boot commands, tftpboot
boot case loads the FIT image into DDR and boots using bootm command
whereas pxe boot cases downloads the pxe configuration
ERROR -2: can't get kernel image!')
with u_boot_console.enable_check(check_type, check_pattern):
u_boot_console.run_command('')
Signed-off-by: Love Kumar
---
test/py/u_boot_console_base.py | 44 ++
1 file changed, 44 insertions(+)
diff --git
.
This test relies on boardenv_* containing configuration values including
the parameter 'pattern'. tftpboot/pxe boot cases boots the Linux till the
boot log pattern value is matched. For example, if the parameter
'pattern' is defined as 'login:', it will boot till logi
= f.get('crc32', None)
@@ -295,6 +304,10 @@ def test_net_tftpboot(u_boot_console):
output = u_boot_console.run_command('crc32 $fileaddr $filesize')
assert expected_crc in output
+@pytest.mark.buildconfigspec("cmd_net_lwip")
+def test_net_tftpboot_lwip(u_boot_console):
+test_net_tftpboot(u_boot_console, True)
+
@pytest.mark.buildconfigspec('cmd_nfs')
def test_net_nfs(u_boot_console):
"""Test the nfs command.
Reviewed-by: Love Kumar
.
This test relies on boardenv_* containing configuration values including
the parameter 'pattern'. tftpboot/pxe boot cases boots the Linux till the
boot log pattern value is matched. For example, if the parameter
'pattern' is defined as 'login:', it will boot till logi
Add test case for saveenv command in non-JTAG bootmode which saves the
u-boot environment variables in persistent storage.
Signed-off-by: Love Kumar
---
Changes in v2:
- Set bootmode through boardenv if modeboot is not defined
---
test/py/tests/test_saveenv.py | 138
Add a test for reset commands which performs resetting of CPU, It does
COLD reset by default and WARM reset with -w option.
Signed-off-by: Love Kumar
---
Changes in v2:
- Set bootmode through boardenv if modeboot is not defined
---
test/py/tests/test_reset.py | 63
Add a test for reset commands which performs resetting of CPU, It does
COLD reset by default and WARM reset with -w option.
Signed-off-by: Love Kumar
---
Changes in v2:
- Set bootmode through boardenv if modeboot is not defined
Changes in v3:
- Fix the issue with bad pattern found on console
Add test case for saveenv command in non-JTAG bootmode which saves the
u-boot environment variables in persistent storage.
Signed-off-by: Love Kumar
---
Changes in v2:
- Set bootmode through boardenv if modeboot is not defined
Changes in v3:
- Fix the issue with bad patterns and escape
Hi,
On 11/03/24 2:11 pm, Angelo Dureghello wrote:
Hi,
jfyi,
reset support added in qemu
merged as commit d3c79c3974.
Regards,
angelo
The other issue was with echo commands:
=> echo $modeboot
$modeboot
=> echo $?
$?
Does HUSH shell is enabled by default for this?
Regards,
Love Kuma
Add test case for saveenv command in non-JTAG bootmode which saves the
u-boot environment variables in persistent storage.
Signed-off-by: Love Kumar
---
Changes in v2:
- Set bootmode through boardenv if modeboot is not defined
Changes in v3:
- Fix the issue with bad patterns and escape
Add a test for reset commands which performs resetting of CPU, It does
COLD reset by default and WARM reset with -w option.
Signed-off-by: Love Kumar
---
Changes in v2:
- Set bootmode through boardenv if modeboot is not defined
Changes in v3:
- Fix the issue with bad pattern found on console
00 0001
ZynqMP>
Regards,
Love Kumar
On 23/02/24 7:36 pm, Steffen Dirkwinkel wrote:
From: Steffen Dirkwinkel
Previously we were setting in tapdelay for SD1 every time even if SD0 was
requested.
The SD tapdelay settings are shifted by 16 bits between SD0 and SD1.
We can use that to make our
Add test cases for sf commands to verify various SPI flash operations
such as erase, write and read. It also adds qspi lock unlock cases.
This test relies on boardenv_* configurations to run it for different
SPI flash family such as single SPI, QSPI, and OSPI.
Signed-off-by: Love Kumar
versal2 refers as "Versal Gen 2" as a generic approved name so using
the same as u-boot prompt name for all versal2 defconfig
Signed-off-by: Love Kumar
---
configs/amd_versal2_mini_defconfig | 2 +-
configs/amd_versal2_mini_emmc_defconfig | 2 +-
configs/amd_versal2_mini_ospi_def
.
Signed-off-by: Tom Rini
---
It's possible we could solve this instead by getting addr / size again
from our environment file, and then also noting that order-wise the
unstash test follows the stash test. However, this felt more clean to
me.
Agree with this approach.
Reviewed-by: Love Kumar
Re
If erase/write/read size is 0 then it throws the mentioned error message
when debug message ie enabled as per "899fb5aa8becc159b1eb086d8828c4e8eb28f121"
, setting it to None as debug message is not enabled by default for
testing.
Signed-off-by: Love Kumar
---
test/py/tests/test_
If erase/write/read size is 0 then it throws the mentioned error message
when debug message ie enabled as per 899fb5aa8bec ("cmd: sf/nand: Print
and return failure when 0 length is passed"), setting it to None as
debug message is not enabled by default for testing.
Signed-off-by:
Currently, MMC test runs on default mmc modes, adding a provision to
support multiple mmc modes through user defined parameters.
Signed-off-by: Love Kumar
---
test/py/tests/test_mmc.py | 608 +-
1 file changed, 335 insertions(+), 273 deletions(-)
diff --git
'usb part' command shows the partition maps and shows the partition type
by displaying number such as 0c, 83 etc. Observed that ext2 and ext4
partitions shows the same number, i.e, 83, so, using the fstype command
to distiniguish between ext2 and ext4 partitions.
Signed-off-by:
'mmc part' command shows the partition maps and shows the partition type
by displaying number such as 0c, 83 etc. Observed that ext2 and ext4
partitions shows the same number, i.e, 83, so, using the fstype command
to distiniguish between ext2 and ext4 partitions.
Signed-off-by:
group(1), 16)
start = 0
Reviewed-by: Love Kumar
es would be appreciated.
Thanks for looking it.
We'll send the separate patch for the above.
Regards,
Love Kumar
trying to overwrite reserved memory'
+flash_ops(
+u_boot_console, 'read', start, size, res_area, 1, error_msg,
EXPECTED_READ
+ )
+
i = i + 1
Reviewed-by: Love Kumar
Rephrasing the error and warning messages to be more meaningful and
clear.
Signed-off-by: Love Kumar
---
test/py/tests/test_spi.py | 18 +-
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/test/py/tests/test_spi.py b/test/py/tests/test_spi.py
index 44e54738dd09
Update the tcminit value to string and number both as per commit
342ccba5586a ("arm64: zynqmp: Fix tcminit mode value based on argv") and
also adds negative cases based on invalid command sequences.
Signed-off-by: Love Kumar
---
test/py/tests/test_zynqmp_r
deletions(-)
---
base-commit: dc1859f8d2ac3faaa5e2e1d465ec4bd8980520a5
change-id: 20241120-topic-ufs-cleanup-23671e3fc9e9
Best regards,
Verified these changes on AMD platform (amd_versal2_virt_defconfig) and
didn't observe any issue with this series.
Tested-by: Love Kumar
Regards,
Love Kumar
ll the others.
I have a couple of names to suggest:
1) "ubintf"/"ub_interface" - As it interacts with U-Boot during testing
and acts as the primary interface.
2) "ubman"/"ub_manager" - As it manages multiple things in tests, not
only limited to console.
Regards,
Love Kumar
Regards,
Simon
115632 0 115632 1c3b0 u-boot.elf
With patch:
text data bss dec hex filename
0 128688 0 128688 1f6b0 u-boot.elf
Regards,
Love Kumar
--
2.43.0
Hi Ilias,
On 04/02/25 5:42 pm, Ilias Apalodimas wrote:
Hi Love,
On Tue, 4 Feb 2025 at 13:53, Love Kumar wrote:
Hi Ilias,
On 30/01/25 12:50 pm, Ilias Apalodimas wrote:
U-Boot maps all pages as RWX. Sadly it's not not 1990 anymore and we are
better off mapping binaries with p
SF: 16851552 bytes @ 0x0 Read: OK
=> => crc32 0x822000c8 0x1012260
crc32 for 822000c8 ... 83212327 ==> bf3e333c
=>
I haven't tried with mx25l25635e part but on other macronix part
(mx66u1g45g) - it was working on ZynqMP. Need to figure out if it is a
flash specific issue
mat string arguments to prevent the
error.
Fixes: a730947974e3 ("test/py: usb: Distinguish b/w ext2/ext4 partitions")
Signed-off-by: Andrew Goodbody
Reviewed-by: Love Kumar
Regards,
Love Kumar
---
test/py/tests/test_usb.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Update SPI negative tests to prevent SF command from overwriting the
reserved memory area.
Signed-off-by: Love Kumar
---
test/py/tests/test_spi.py | 29 +
1 file changed, 29 insertions(+)
diff --git a/test/py/tests/test_spi.py b/test/py/tests/test_spi.py
index
of a mix of bool and u8.
No functional change intended.
Signed-off-by: Marek Vasut
Verified it on AMD platforms and didn't observe any issue.
Tested-by: Love Kumar
Regards,
Love Kumar
---
NOTE: Compile tested only
---
Cc: Charlie Johnston
Cc: Michal Simek
Cc: Padmarao Begari
Cc: P
ration = f.get("iteration", 2)
timeout = f.get("timeout", 5)
-end = hex(int(start) + int(size))
+end = hex(int(start, 16) + int(size, 16))
return start, end, pattern, iteration, timeout
@pytest.mark.buildconfigspec("cmd_memtest")
Reviewed-by: Love Kumar
71 matches
Mail list logo