制作内核镜像
请按照以下步骤制作内核镜像:
- 拉取内核代码:
$ git clone https://github.com/starfive-tech/VisionFive2.git
提示:- 更多操作信息请参见:https://github.com/starfive-tech/VisionFive2。
- 此步骤使用的Debian版本号为starfive-jh7110-VF2_515_v2.5.0-69
链接: https://debian.starfivetech.com/
对应的软件版本为VisionFive2 Software v2.5.0
链接:https://github.com/starfive-tech/VisionFive2/releases/tag/VF2_v2.5.0
- 编译代码:
- 进入到以下目录:
/VisionFive2/linux/arch/riscv/configs
- 使用以下文件覆盖starfive_visionfive2_defconfig。注: 下载此文件需要注册或登录RVspace。
- 在/VisionFive2/work/linux目录下运行脚本./build_kernel_vf2.sh注:
- 脚本下载地址:build_kernel_vf2.sh注: 下载此文件需要注册或登录RVspace。
- 需要把脚本文件的目标路径改成自己的文件路径。
- 脚本下载地址:build_kernel_vf2.sh
- 进入到以下目录:
- 确认编译后生成的文件:
- ./VisionFive2/work/boot路径下:
- config-5.15.0-starfive-dirty
- System.map-5.15.0-starfive-dirty
- vmlinuz-5.15.0-starfive-dirty
注: 为简化后续操作,重命名上述生成的文件为:- config-5.15.0-starfive
- System.map-5.15.0-starfive
- vmlinuz-5.15.0-starfive
- ./VisionFive2/work路径下:
- linux-headers-5.15.0-starfive_5.15.0-starfive-1_riscv64.deb
- linux-image-5.15.0-starfive_5.15.0-starfive-1_riscv64.deb
- linux-libc-dev_5.15.0-starfive-1_riscv64.deb
- ./VisionFive2/work/boot路径下: