Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
What's new
4
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Menu
Open sidebar
mara
images_build_kit
Commits
08c49463
Commit
08c49463
authored
Dec 16, 2021
by
mara
Browse files
starfive: added support soc jh7100
parent
a60112b5
Changes
2
Hide whitespace changes
Inline
Side-by-side
config/sources/jh7100.conf
0 → 100644
View file @
08c49463
source
"$CWD/config/sources/starfive.inc"
||
exit
1
BOOT_LOADER_SOURCE
=
"https://github.com/starfive-tech/u-boot.git"
BOOT_LOADER_DIR
=
"u-boot-${SOCFAMILY}"
BOOT_LOADER_BRANCH
=
"JH7100_upstream::"
OPENSBI_SOURCE
=
"https://github.com/starfive-tech/opensbi.git"
OPENSBI_DIR
=
"opensbi-${SOCFAMILY}"
OPENSBI_BRANCH
=
"master::"
SECOND_BOOT_SOURCE
=
"https://github.com/starfive-tech/JH7100_secondBoot.git"
SECOND_BOOT_DIR
=
"second-boot-${SOCFAMILY}"
SECOND_BOOT_BRANCH
=
"starfive::"
DDRINIT_SOURCE
=
"https://github.com/starfive-tech/JH7100_ddrinit.git"
DDRINIT_DIR
=
"ddrinit-${SOCFAMILY}"
DDRINIT_BRANCH
=
"starfive::"
OPENSBI
=
"true"
OPENSBI_PLATFORM
=
"generic"
OPENSBI_BLOB
=
"fw_payload.bin"
IMAGE_OFFSET
=
69632
BOOT_LOADER_BIN
=
"u-boot.toc1.bin"
uboot_customization
()
{
:
}
config/sources/starfive.inc
0 → 100644
View file @
08c49463
INITRD_MODULES
=
"tun:btrfs:xfs"
SERIAL_CONSOLE_SPEED
=
115200
SERIAL_CONSOLE
=
ttyS0
IMAGE_OFFSET
=
2048
case
$KERNEL_SOURCE
in
legacy
)
LINUX_SOURCE
=
"https://github.com/starfive-tech/linux"
KERNEL_BRANCH
=
"visionfive::"
KERNEL_DIR
=
"linux-
$SOCFAMILY
-
$KERNEL_SOURCE
"
;;
next
)
LINUX_SOURCE
=
"https://github.com/starfive-tech/linux"
KERNEL_BRANCH
=
"visionfive::"
KERNEL_DIR
=
"linux-
$SOCFAMILY
-
$KERNEL_SOURCE
"
;;
esac
create_uboot
()
{
pushd
$SOURCE
/
$BOOT_LOADER_DIR
>>
$LOG
2
>&
1
||
(
message
"err"
"details"
&&
exit
1
)
||
exit
1
popd
>>
$LOG
2
>&
1
||
(
message
"err"
"details"
&&
exit
1
)
||
exit
1
}
write_uboot
()
{
# clear u-boot
dd
if
=/
dev
/
zero
of
=
$
1
bs
=
1
k
count
=
1023
seek
=
1
status
=
noxfer
>>
$LOG
2
>&
1
||
(
message
"err"
"details"
&&
exit
1
)
||
exit
1
message
""
"write"
"
$BOOT_LOADER_DIR
"
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment