mirror of
https://github.com/NixOS/nixos-hardware
synced 2024-11-23 11:29:42 +01:00
starfive visionfive2: adjust opensbi build params to match u-boot doc
This commit is contained in:
parent
5bf829d72c
commit
db4589c6aa
1 changed files with 4 additions and 5 deletions
|
@ -1,14 +1,13 @@
|
||||||
{ opensbi, withPayload, withFDT }:
|
{ opensbi }:
|
||||||
|
|
||||||
(opensbi.override {
|
opensbi.overrideAttrs (attrs: {
|
||||||
inherit withPayload withFDT;
|
|
||||||
}).overrideAttrs (attrs: {
|
|
||||||
makeFlags = attrs.makeFlags ++ [
|
makeFlags = attrs.makeFlags ++ [
|
||||||
# opensbi generic platform default FW_TEXT_START is 0x80000000
|
# opensbi generic platform default FW_TEXT_START is 0x80000000
|
||||||
# For JH7110, need to specify the FW_TEXT_START to 0x40000000
|
# For JH7110, need to specify the FW_TEXT_START to 0x40000000
|
||||||
# Otherwise, the fw_payload.bin downloading via jtag will not run.
|
# Otherwise, the fw_payload.bin downloading via jtag will not run.
|
||||||
# https://github.com/starfive-tech/VisionFive2/blob/7733673d27052dc5a48f1cb1d060279dfa3f0241/Makefile#L274
|
# https://github.com/starfive-tech/VisionFive2/blob/7733673d27052dc5a48f1cb1d060279dfa3f0241/Makefile#L274
|
||||||
|
# Also matches u-boot documentation: https://docs.u-boot.org/en/latest/board/starfive/visionfive2.html
|
||||||
"FW_TEXT_START=0x40000000"
|
"FW_TEXT_START=0x40000000"
|
||||||
|
"FW_OPTIONS=0"
|
||||||
];
|
];
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue