在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):starfive-tech/linux开源软件地址(OpenSource Url):https://github.com/starfive-tech/linux开源编程语言(OpenSource Language):C 98.5%开源软件介绍(OpenSource Introduction):Linux kernel for StarFive's JH7100 RISC-V SoCWhat is this?The JH7100 is a Linux-capable dual-core 64bit RISC-V SoC and this tree is meant to collect all the in-development patches for running Linux on boards using this. So far there are two such boards and both are supported by this tree: The VisionFive boards aren't quite shipping yet, but you can already register interest and ask questions on the forum. About 300 BeagleV Starlight Beta boards were sent out to developers in April 2021 in preparation for an eventual BeagleV branded board using the updated JH7110 chip. The BeagleBoard organization has since cancelled that project though. Cross-compilingCross-compiling the Linux kernel is surprisingly easy since it doesn't depend on any (target) libraries and most distributions already have packages with a working cross-compiler. We'll also need a few other tools to build everything: # Debian/Ubuntu
sudo apt-get install libncurses-dev libssl-dev bc flex bison make gcc gcc-riscv64-linux-gnu
# Fedora
sudo dnf install ncurses-devel openssl openssl-devel bc flex bison make gcc gcc-riscv64-linux-gnu
# Archlinux
sudo pacman -S --needed ncurses openssl bc flex bison make gcc riscv64-linux-gnu-gcc The build system needs to know that we want to cross-compile a kernel for
RISC-V by setting First we need to configure the kernel though. Linux has a very extensive configuration system, but you can get a good baseline configuration for the boards using: make -j8 ARCH=riscv CROSS_COMPILE=riscv64-linux-gnu- visionfive_defconfig There is nothing magic about this configuration other than it has all the drivers enabled that are working for the hardware on the boards. In fact it has very little extra features enabled which is great for compile times, but you are very much encouraged to add additional drivers and configure your kernel further using make -j8 ARCH=riscv CROSS_COMPILE=riscv64-linux-gnu- nconfig Now compile the whole thing with
InstallingOnce the build has finished the resulting kernel can be found at arch/riscv/boot/Image You'll also need the matching device tree at arch/riscv/boot/dts/starfive/jh7100-starfive-visionfive-v1.dtb (If you have a Starlight board you should instead be using These two files should be copied to the boot partition on the SD card. In the
default Fedora image this is Now add the following entry to the
This assumes your root file system is at The StatusSoC
Board
ContributingIf you're working on cleaning up or upstreaming some of this or adding support for more of the SoC I'd very much like to incorporate it into this tree. Either send a pull request, mail or contact Esmil on IRC/Slack. Also think of this tree mostly as a collection of patches that will hopefully mature enough to be submitted upstream eventually. So expect regular rebases. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论