I try to boot linux use coreboot. But I get some error.
--------------------------------------------------------------------------------
Jumping to boot code at 0000000090000000(0000000000000000)
CPU0: stack: 0000000080800000 - 0000000080801000, lowest used address 0000000080800004, stack used: 4092 bytes
Config string: ''
We don't have virtual memory...
OK, let's go
Got timer interrupt but found no timer.
--------------------------------------------------------------------------------
This is due to the inability to get configstring.


--------------------------------------------------------------------------------
const char *configstring(void)
{
uint32_t addr = *(uint32_t *)CONFIG_RISCV_CONFIGSTRING;
return (const char *)(uintptr_t)addr;
}
--------------------------------------------------------------------------------
The configstring implement by spike or other SOC?
If this is done through coreboot, maybe a global variable is more appropriate.
This avoids modifying the link script.




------------------

王翔

安全研究员

广州市腾御安信息科技有限公司

广州市天河区珠江新城华穗路406号保利克洛维二期中景A座1020-1024