简体   繁体   English

尝试在RISC-V Rocket芯片上移植Linux内核

[英]Trying to port Linux kernel on RISC-V Rocket chip

We have looked the u-boot support from www.denx.de webpage, but we could not able find support for RISC-V. 我们已经从www.denx.de网页上找到了u-boot支持,但是我们找不到对RISC-V的支持。 So where can we find the u-boot support for RISC-V chip. 因此,我们在哪里可以找到RISC-V芯片的u-boot支持。

The "www.lowrisc.org" web page says RISC-V should use BBL (Berkeley bootloader) for loading the Linux kernel. “ www.lowrisc.org”网页上说,RISC-V应该使用BBL(Berkeley引导程序)来加载Linux内核。 We are not clear about the process for developing the BBL based boot image, since it required FSBL (first stage bootloader) image development and the FSBL is associated to Vivado SDK. 我们尚不清楚基于BBL的启动映像的开发过程,因为它需要FSBL(第一阶段引导加载程序)映像开发,并且FSBL与Vivado SDK相关。

Note: Bootloader which we are looking for is not for simulation 注意:我们正在寻找的引导程序不是用于仿真

There is message in the mailing list from 14 Feb 2017 about u-boot for risc-v: https://groups.google.com/a/groups.riscv.org/forum/#!topic/sw-dev/j63wzz2ylY8 从2017年2月14日开始,邮件列表中有关于risc-v的u-boot的消息: https ://groups.google.com/a/groups.riscv.org/forum/#! topic/ sw-dev/j63wzz2ylY8

U-Boot port on RISC-V 32-bit is available on github. github上提供了RISC-V 32位的U-Boot端口。

https://github.com/Microsemi-SoC-IP/RISC-V_U-Boot https://github.com/Microsemi-SoC-IP/RISC-V_U-Boot

This repository contains the U-Boot port by Microsemi for RISC-V core on Smartfusion2 M2Sxxx devices. 该存储库包含Microsemi在Smartfusion2 M2Sxxx设备上用于RISC-V内核的U-Boot端口。 The Smartfusion2 M2S150 FPGA Advance Dev Kit is used for RISC-V U-Boot and the FPGA design available at RISCV-on-Microsemi-FPGA. Smartfusion2 M2S150 FPGA Advance Dev Kit用于RISC-V U型引导,并且在RISCV-on-Microsemi-FPGA上可用的FPGA设计。

The site of this project is https://github.com/Microsemi-SoC-IP/RISC-V_U-Boot 该项目的站点是https://github.com/Microsemi-SoC-IP/RISC-V_U-Boot

Development repository for RISC-V U-Boot on Microsemi FPGA Microsemi FPGA上的RISC-V U-Boot开发库

This repository contains the U-Boot created by Microsemi for RISC-V core on Smartfusion2 M2Sxxx devices. 该存储库包含Microsemi为Smartfusion2 M2Sxxx设备上的RISC-V内核创建的U引导。 The Smartfusion2 M2S150 FPGA Advance Dev Kit is used for RISC-V U-Boot and the FPGA design available at RISCV-on-Microsemi-FPGA. Smartfusion2 M2S150 FPGA Advance Dev Kit用于RISC-V U型引导,并且在RISCV-on-Microsemi-FPGA上可用的FPGA设计。

PS: FSBL is specific to Xilinx SoC "Zynq"; PS:FSBL专用于Xilinx SoC“ Zynq”; but BBL itself should be independent from FPGA vendor. 但BBL本身应独立于FPGA供应商。 Check also Untethered lowRISC : http://www.lowrisc.org/blog/2015/12/untethered-lowrisc-release/ http://www.lowrisc.org/docs/untether-v0.2/ . 另请检查不受限制的lowRISChttp : //www.lowrisc.org/blog/2015/12/untethered-lowrisc-release/ http://www.lowrisc.org/docs/untether-v0.2/ Second page has http://www.lowrisc.org/docs/untether-v0.2/bootload/ about boot process and BBL just should be copied to RAM by risc-v "first stage bootloader" ( $TOP/fpga/board/$FPGA_BOARD/examples/boot.c ) in case of Untethered (this is not FSBL of Zynq); 第二页包含有关引导过程的http://www.lowrisc.org/docs/untether-v0.2/bootload/ ,而risc-v “第一阶段引导程序”( $TOP/fpga/board/$FPGA_BOARD/examples/boot.c仅应将BBL复制到RAM。 $TOP/fpga/board/$FPGA_BOARD/examples/boot.c )(如果是不受限制的话)(这不是Zynq的FSBL); then risc-v "first stage bootloader" will do softreset to restart cpu from BBL which will load linux kernel. 然后risc-v “第一阶段引导程序”将执行softreset以从BBL重新启动cpu,这将加载linux内核。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM