2024-01-01 03:43:10 +00:00
|
|
|
{ opensbi }:
|
2023-08-17 06:53:58 +00:00
|
|
|
|
2024-01-01 03:43:10 +00:00
|
|
|
opensbi.overrideAttrs (attrs: {
|
2023-08-17 06:53:58 +00:00
|
|
|
makeFlags = attrs.makeFlags ++ [
|
|
|
|
# opensbi generic platform default FW_TEXT_START is 0x80000000
|
|
|
|
# For JH7110, need to specify the FW_TEXT_START to 0x40000000
|
|
|
|
# Otherwise, the fw_payload.bin downloading via jtag will not run.
|
|
|
|
# https://github.com/starfive-tech/VisionFive2/blob/7733673d27052dc5a48f1cb1d060279dfa3f0241/Makefile#L274
|
2024-01-01 03:43:10 +00:00
|
|
|
# Also matches u-boot documentation: https://docs.u-boot.org/en/latest/board/starfive/visionfive2.html
|
2023-04-16 20:43:32 +00:00
|
|
|
"FW_TEXT_START=0x40000000"
|
2024-01-01 03:43:10 +00:00
|
|
|
"FW_OPTIONS=0"
|
2023-04-16 20:43:32 +00:00
|
|
|
];
|
2023-08-17 06:53:58 +00:00
|
|
|
})
|