当前位置:网站首页>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
边栏推荐
- Charles+drony的APP抓包
- Three forms of multimedia technology commonly used in enterprise exhibition hall design
- PIP related commands
- App capture of charles+postern
- Continuous test (CT) practical experience sharing
- String type, constant type and container type of go language
- 2022-07-04 matlab读取视频帧并保存
- More than 10000 units were offline within ten days of listing, and the strength of Auchan Z6 products was highly praised
- 将模型的记忆保存下来!Meta&UC Berkeley提出MeMViT,建模时间支持比现有模型长30倍,计算量仅增加4.5%...
- 卖空、加印、保库存,东方甄选居然一个月在抖音卖了266万单书
猜你喜欢
磁盘存储链式的B树与B+树
6.关于jwt
企业展厅设计中常用的三种多媒体技术形式
Wireshark analyzes packet capture data * cap
Download, installation and development environment construction of "harmonyos" deveco
Comparison and selection of kubernetes Devops CD Tools
Introduction of common API for socket programming and code implementation of socket, select, poll, epoll high concurrency server model
完整的电商系统
DataSimba推出微信小程序,DataNuza接受全场景考验? | StartDT Hackathon
Tear the Nacos source code by hand (tear the client source code first)
随机推荐
String type, constant type and container type of go language
面试唯品会实习测试岗、抖音实习测试岗【真实投稿】
Kirk Borne的本周学习资源精选【点击标题直接下载】
Tear the Nacos source code by hand (tear the client source code first)
debian10系统问题总结
Comparison and selection of kubernetes Devops CD Tools
Rules for filling in volunteers for college entrance examination
Redis
PTA 1102 教超冠军卷
Unlike the relatively short-lived industrial chain of consumer Internet, the industrial chain of industrial Internet is quite long
2022年推荐免费在线接收短信平台(国内、国外)
我感觉被骗了,微信内测 “大小号” 功能,同一手机号可注册两个微信
低代码助力企业数字化转型会让程序员失业?
Learn to make dynamic line chart in 3 minutes!
Recommend free online SMS receiving platform in 2022 (domestic and foreign)
Nat address translation
你真的理解粘包与半包吗?3分钟搞懂它
小试牛刀之NunJucks模板引擎
Performance test process and plan
Charles+Postern的APP抓包