当前位置:网站首页>RISCV64
RISCV64
2022-07-07 16:49:00 【InfoQ】
安装 Linux Lab
# 使用普通用户下载 Cloud Lab,然后再选择 linux-lab 仓库:
git clone https://gitee.com/tinylab/cloud-lab.git
cd cloud-lab/
# 启动 Linux Lab 并根据控制台上打印的用户名和密码登录实验环境
tools/docker/run linux-lab安装 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-dev下载最新的 Linux 源码
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)下载最新的 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制作 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.img运行
/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
参考
边栏推荐
- The live broadcast reservation channel is open! Unlock the secret of fast launching of audio and video applications
- Tips for this week 140: constants: safety idioms
- [network attack and defense principle and technology] Chapter 4: network scanning technology
- 标准ACL与扩展ACL
- Redis的发布与订阅
- How to clean when win11 C disk is full? Win11 method of cleaning C disk
- A few simple steps to teach you how to see the K-line diagram
- 海量数据去重的hash,bitmap与布隆过滤器Bloom Filter
- 你真的理解粘包与半包吗?3分钟搞懂它
- 2022年推荐免费在线接收短信平台(国内、国外)
猜你喜欢
随机推荐
idea彻底卸载安装及配置笔记
Recommend free online SMS receiving platform in 2022 (domestic and foreign)
面试唯品会实习测试岗、抖音实习测试岗【真实投稿】
DataSimba推出微信小程序,DataNuza接受全场景考验? | StartDT Hackathon
万字保姆级长文——Linkedin元数据管理平台Datahub离线安装指南
Win11C盘满了怎么清理?Win11清理C盘的方法
SQLite SQL exception near "with": syntax error
【塔望方法论】塔望3W消费战略 - U&A研究法
Download, installation and development environment construction of "harmonyos" deveco
伺服力矩控制模式下的力矩目标值(fTorque)计算
简单几步教你如何看k线图图解
强化学习-学习笔记8 | Q-learning
Thread pool and singleton mode and file operation
手撕Nacos源码(先撕客户端源码)
2022年理财产品的一般收益率是多少?
体总:安全有序恢复线下体育赛事,力争做到国内赛事应办尽办
Comparison and selection of kubernetes Devops CD Tools
『HarmonyOS』DevEco的下载安装与开发环境搭建
GSAP animation library
企业展厅设计中常用的三种多媒体技术形式




![学习open62541 --- [67] 添加自定义Enum并显示名字](/img/98/e5e25af90b3f98c2be11d7d21e5ea6.png)



