当前位置:网站首页>RISCV64
RISCV64
2022-07-07 18:55:00 【InfoQ】
install Linux Lab
# Use ordinary users to download Cloud Lab, Then choose linux-lab Warehouse :
git clone https://gitee.com/tinylab/cloud-lab.git
cd cloud-lab/
# start-up Linux Lab And log in to the experimental environment according to the user name and password printed on the console
tools/docker/run linux-lab
install qemu-system-riscv64
export QEMU_VERSION=5.0.0
wget https://download.qemu.org/qemu-${QEMU_VERSION}.tar.xz
tar xvJf qemu-${QEMU_VERSION}.tar.xz
cd qemu-${QEMU_VERSION}
./configure --target-list=riscv64-softmmu --prefix=/opt/qemu
make -j $(nproc)
sudo make install
sudo apt-get install libglib2.0-dev
sudo apt-get install libpixman-1-dev
Download the latest Linux Source code
wget -c https://mirrors.edge.kernel.org/pub/linux/kernel/v5.x/linux-5.18.9.tar.gz
tar xvf linux-5.18.9.tar.gz
cd linux-5.18.9
make ARCH=riscv CROSS_COMPILE=riscv64-linux-gnu- defconfig
make ARCH=riscv CROSS_COMPILE=riscv64-linux-gnu- -j $(nproc)
Download the latest BusyBox
wget -c https://www.busybox.net/downloads/busybox-1.35.0.tar.bz2
tar xvf busybox-1.35.0.tar.bz2
cd busybox-1.35.0
cd busybox
CROSS_COMPILE=riscv64-linux-gnu- make defconfig
CROSS_COMPILE=riscv64-linux-gnu- make -j $(nproc)
make ARCH=riscv CROSS_COMPILE=riscv64-linux-gnu- install
Make rootfs
cd _install
mkdir proc sys dev etc etc/init.d
ls
# bin dev etc linuxrc proc sbin sys usr
sudo mknod dev/console c 5 1
sudo mknod dev/ram b 1 0
cat etc/init.d/rcS
etc/init.d/rcS
#!bin/sh
mount -t proc none /proc
mount -t sysfs none /sys
/sbin/mdev -s
chmod +x etc/init.d/rcS
find -print0 | cpio -0oH newc | gzip -9 > ../rootfs.img
function
/opt/qemu/bin/qemu-system-riscv64 \
-nographic -machine virt \
-kernel linux-5.18.9/arch/riscv/boot/Image \
-initrd busybox-1.35.0/rootfs.img \
-bios fw_jump.elf \
-append "root=/dev/ram rdinit=/sbin/init"
uname
Reference resources
边栏推荐
- Will domestic software testing be biased
- 6.关于jwt
- [PaddleSeg源码阅读] PaddleSeg Validation 中添加 Boundary IoU的计算(1)——val.py文件细节提示
- 海量数据去重的hash,bitmap与布隆过滤器Bloom Filter
- 能同时做三个分割任务的模型,性能和效率优于MaskFormer!Meta&UIUC提出通用分割模型,性能优于任务特定模型!开源!...
- 线程池中的线程工厂
- Kirk Borne的本周学习资源精选【点击标题直接下载】
- Interview vipshop internship testing post, Tiktok internship testing post [true submission]
- What are the financial products in 2022? What are suitable for beginners?
- [paddleseg source code reading] add boundary IOU calculation in paddleseg validation (1) -- val.py file details tips
猜你喜欢
Comparison and selection of kubernetes Devops CD Tools
静态路由配置
能同时做三个分割任务的模型,性能和效率优于MaskFormer!Meta&UIUC提出通用分割模型,性能优于任务特定模型!开源!...
App capture of charles+drony
String type, constant type and container type of go language
Kubernetes DevOps CD工具对比选型
NAT地址转换
Summary of debian10 system problems
Tsinghua, Cambridge and UIC jointly launched the first Chinese fact verification data set: evidence-based, covering many fields such as medical society
Redis集群与扩展
随机推荐
Three forms of multimedia technology commonly used in enterprise exhibition hall design
我感觉被骗了,微信内测 “大小号” 功能,同一手机号可注册两个微信
同消费互联网的较为短暂的产业链不同,产业互联网的产业链是相当漫长的
Unlike the relatively short-lived industrial chain of consumer Internet, the industrial chain of industrial Internet is quite long
Reinforcement learning - learning notes 8 | Q-learning
[C language] string function
Static routing configuration
Cadre de validation des données Apache bval réutilisé
国内的软件测试会受到偏见吗
AI defeated mankind and designed a better economic mechanism
[demo] circular queue and conditional lock realize the communication between goroutines
Wireshark分析抓包数据*.cap
SQLite SQL exception near "with": syntax error
Introduction of common API for socket programming and code implementation of socket, select, poll, epoll high concurrency server model
2022-07-04 matlab读取视频帧并保存
Continuous test (CT) practical experience sharing
Discuss | frankly, why is it difficult to implement industrial AR applications?
CVPR 2022 - learning non target knowledge for semantic segmentation of small samples
Discuss | what preparations should be made before ar application is launched?
线程池的拒绝策略