renode / renode

Renode - Antmicro's open source simulation and virtual development framework for complex embedded systems
https://renode.io
Other
1.56k stars 273 forks source link

icicle-kit boot image validation fails #430

Closed tfirchau closed 1 year ago

tfirchau commented 1 year ago

Description

When using a freshly downloaded version of renode portable 1.13.2, the icicle demo fails during validation of the boot image.

Expected behaviour

Upon starting the icicle demo with start @scripts/single-node/icicle-kit.resc, renode (version 1.13.1 in this case) will download the binaries and start outputting on uart0:

[0.224800] HSS_E51_Banner(): PolarFire(R) SoC Hart Software Services (HSS) - version 0.99.7
(c) Copyright 2017-2020 Microchip Corporation.
[0.225600] HSS_E51_Banner(): incorporating OpenSBI - version 0.6
(c) Copyright 2019-2020 Western Digital Corporation.
[0.225600] HSS_PrintBuildId(): Build ID: f3a5974a6962941668aba4dd6b82036020cc3d90
[0.225600] HSS_PrintToolVersions(): Built with the following tools: 
 - riscv64-unknown-linux-gnu-gcc (GCC) 9.2.0
 - GNU ld (GNU Binutils) 2.32
[0.226400] HSS_MemTestDDRFast(): DDR size is 1 GiB
Press a key to enter CLI, ESC to skip
Timeout in 1 seconds
..
[1.237600] HSS_TinyCLI_Parser(): CLI check timeout
[1.237600] IPI_QueuesInit(): Initializing IPI Queues (9000 bytes @ 8000e40)...
[1.237600] HSS_PMP_Init(): Initializing PMPs
[1.237600] HSS_BootInit(): Initializing Boot Image..
[1.238400] getBootImageFromMMC_(): Preparing to copy from MMC to DDR ...
[1.238400] getBootImageFromMMC_(): Attempting to read image header (1552 bytes) ...
[1.238400] GPT_ValidateHeader(): Validated GPT Header ...
[1.243200] GPT_ValidatePartitionEntries(): Validated GPT Partition Entries ...
[1.243200] copyBootImageToDDR_(): Copying 428120 bytes to 0xB0000000
[1.319200] copyBootImageToDDR_(): Calculated CRC32 of image in DDR is b1231060
[1.370400] HSS_BootInit():  boot image passed CRC
[1.370400] HSS_BootInit(): Boot image set name: "PolarFireSOC-HSS::/home/pzie/Antmicro/micro
semi/polarfire-soc-buildroot-sdk/work/u-boot-smode/u-boot.bin"
[1.371200] HSS_BootInit(): Boot Image registered...

In renode release 1.13.2.5472 validating the boot image fails:

icicle_issue (Sorry for attaching a screenshot, but I can't copy text in that version. See #429)

How to reproduce?

Download and unpack portable windows version. Start renode and execute start @scripts/single-node/icicle-kit.resc.

Environment

Please, provide the following information:

Additional Information

It works following the same steps in (portable) releases 1.13.0 and 1.13.1.

Do you plan to address this issue and file a PR?

No.

tfirchau commented 1 year ago

This problem does not occur in version 1.13.3 anymore.