当前位置:网站首页>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-labinstall 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 installsudo apt-get install libglib2.0-devsudo apt-get install libpixman-1-devDownload 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- installMake 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/rcSetc/init.d/rcS#!bin/sh
mount -t proc none /proc
mount -t sysfs none /sys
/sbin/mdev -schmod +x etc/init.d/rcS
find -print0 | cpio -0oH newc | gzip -9 > ../rootfs.imgfunction
/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
边栏推荐
- How to clean when win11 C disk is full? Win11 method of cleaning C disk
- PHP面试题 foreach($arr as &$value)与foreach($arr as $value)的用法
- Disk storage chain B-tree and b+ tree
- Will low code help enterprises' digital transformation make programmers unemployed?
- Tsinghua, Cambridge and UIC jointly launched the first Chinese fact verification data set: evidence-based, covering many fields such as medical society
- 【Unity Shader】插入Pass实现模型遮挡X光透视效果
- 你真的理解粘包与半包吗?3分钟搞懂它
- Learn open62541 -- [67] add custom enum and display name
- coming! Gaussdb (for Cassandra) new features appear
- 2022年理财产品的一般收益率是多少?
猜你喜欢

Summary of debian10 system problems

RIP和OSPF的区别和配置命令

静态路由配置

Disk storage chain B-tree and b+ tree

单臂路由和三层交换的简单配置

链式二叉树的基本操作(C语言实现)

Using stored procedures, timers, triggers to solve data analysis problems

go语言的字符串类型、常量类型和容器类型

CVPR 2022丨学习用于小样本语义分割的非目标知识

Ten thousand words nanny level long article -- offline installation guide for datahub of LinkedIn metadata management platform
随机推荐
Some key points in the analysis of spot Silver
小程序中实现付款功能
Tsinghua, Cambridge and UIC jointly launched the first Chinese fact verification data set: evidence-based, covering many fields such as medical society
AntiSamy:防 XSS 攻击的一种解决方案使用教程
『HarmonyOS』DevEco的下载安装与开发环境搭建
Thread pool and singleton mode and file operation
PHP面试题 foreach($arr as &$value)与foreach($arr as $value)的用法
NAT地址转换
The live broadcast reservation channel is open! Unlock the secret of fast launching of audio and video applications
Kirk Borne的本周学习资源精选【点击标题直接下载】
RISCV64
通过 Play Integrity API 的 nonce 字段提高应用安全性
PTA 1102 教超冠军卷
不能忽略的现货白银短线操作小技巧
SQLite SQL exception near "with": syntax error
Tear the Nacos source code by hand (tear the client source code first)
Improve application security through nonce field of play integrity API
【剑指 Offer】59 - I. 滑动窗口的最大值
小试牛刀之NunJucks模板引擎
coming! Gaussdb (for Cassandra) new features appear