Skip to content

[sw] BootROM default is SPI bootstrap#625

Closed
marnovandermaas wants to merge 1 commit into
lowRISC:mainfrom
marnovandermaas:bootrom_default
Closed

[sw] BootROM default is SPI bootstrap#625
marnovandermaas wants to merge 1 commit into
lowRISC:mainfrom
marnovandermaas:bootrom_default

Conversation

@marnovandermaas

@marnovandermaas marnovandermaas commented Jun 21, 2026

Copy link
Copy Markdown
Collaborator

This is a better default because on FPGA the LEDs will show activity when the bitstream is first flashed and both DRAM and SRAM are disabled.

Closes: #624

This is a better default because on FPGA the LEDs will show activity
when the bitstream is first flashed and both DRAM and SRAM are disabled.

Signed-off-by: Marno van der Maas <mvdmaas+git@lowrisc.org>
timer_init(boot_ctx.timer);
timer_enable_write(boot_ctx.timer, true);
if (bootstrap_requested(&boot_ctx)) {
if (bootstrap_requested(&boot_ctx) || !get_boot_addr(&boot_addr)) {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will break the opensbi flow in simulation because it doesn't have the magic number. We need to figure out a better solution.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what if we flash the LEDs inside the exception handler?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I agree that is a better solution!

@engdoreis engdoreis closed this Jun 22, 2026
@engdoreis engdoreis reopened this Jun 22, 2026
@engdoreis

Copy link
Copy Markdown
Collaborator

I'm sorry for accidentally closing the PR.

@marnovandermaas marnovandermaas marked this pull request as draft June 22, 2026 10:52
@marnovandermaas

marnovandermaas commented Jun 22, 2026

Copy link
Copy Markdown
Collaborator Author

Converted to draft as is breaks the OpenSBI flow on Verilator. @engdoreis is working on a better solution in the meantime.

@ziuziakowska

Copy link
Copy Markdown
Contributor

I'm not sure about this. The rationale for boot ROM defaulting to jumping straight to DRAM was to not need any host-side software to bypass Bootstrap mode in Verilator simulation - where binaries are loaded by backdoor instead. We also cannot test the presence of a magic number because the magic number is optional in case the next boot address should be different - e.g jumping into SRAM instead of the default DRAM, and this boot magic mechanism and SRAM tests is planned to be removed when #615 is merged (issue #514).

@marnovandermaas

Copy link
Copy Markdown
Collaborator Author

Closing in favour of github.com//pull/630

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Boot ROM blinks at start up

3 participants