[coreboot] riscv: How to implement configstring

王翔 merle at tya.email
Mon Jun 12 09:11:38 CEST 2017


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot/attachments/20170612/c259d7a9/attachment.html>


More information about the coreboot mailing list