"Das U-Boot" Source Tree
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

test/py: spi: prevent overwriting relocation memory

Update spi negative test case to prevent SF command
from overwriting relocation memory area.

Signed-off-by: Padmarao Begari <padmarao.begari@amd.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Love Kumar <love.kumar@amd.com>

authored by

Padmarao Begari and committed by
Tom Rini
57ea496c 62fe8706

+12
+12
test/py/tests/test_spi.py
··· 693 693 u_boot_console, 'read', offset, size, addr, 1, error_msg, EXPECTED_READ 694 694 ) 695 695 696 + # Read to relocation address 697 + output = u_boot_console.run_command('bdinfo') 698 + m = re.search('relocaddr\s*= (.+)', output) 699 + res_area = int(m.group(1), 16) 700 + 701 + start = 0 702 + size = 0x2000 703 + error_msg = 'ERROR: trying to overwrite reserved memory' 704 + flash_ops( 705 + u_boot_console, 'read', start, size, res_area, 1, error_msg, EXPECTED_READ 706 + ) 707 + 696 708 i = i + 1