当前位置:网站首页>更换树莓派内核
更换树莓派内核
2022-08-01 01:21:00 【十年哞一剑】
找到合适的内核编译包
1
unzip linux-rpi-5.15.y.zip

cd linux-rpi-5.15.y
2 首先在交叉编译Linux主机上安装所需的依赖和交叉编译工具,如下
sudo apt install git bc bison flex libssl-dev make libc6-dev libncurses5-dev

3 树莓派安装的是32的内核,则安装32位的交叉编译工具链:
注
通过在Pi里运行“file /sbin/busybox” 或其他可执行程序可查看当前内核是32位还是64位的。如果是32位的,会显示如下32-bit 字段,否则为64位的
sudo apt install crossbuild-essential-armhf

4 利用git获取当前git仓库默认Pi的内核源码,如下所示:
git clone --depth=1 https://github.com/raspberrypi/linux

多试几次 比较卡的话
配置内核
32位的(树莓派)
1 cd linux
2 KERNEL=kernel7
3 make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- bcm2709_defconfig

权限不够
切换超级用户

编译内核
32位的(树莓派)
过程漫长 别退出
make -j4 ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- zImage modules dtbs



1 vmlinux 有了
2 cd arch/arm/boot
存 有zImage (树莓派内核启动文件)
1 2 都有了 证明成功
挂载sd卡
1
lsblk:查看识别到的TF卡设备节点

很重要
红圈的 不要这个路径 用 linux 替换
sudo mkdir /media/linux/rootfs -p
sudo mkdir /media/linux/boot -p
sudo mount /dev/sdb1 /media/linux/boot
sudo mount /dev/sdb2 /media/linux/rootfs
2 然后将内核模块安装到SD中:
sudo env PATH=$PATH make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- INSTALL_MOD_PATH=/media/linux/rootfs modules_install

查看 内核版本
旧的
新的
边栏推荐
- RTL8762DK 使用DebugAnalyzer(四)
- Key Points Estimation and Point Instance
- IDEA调试
- Classes and Objects: Medium
- Exam preparation plan
- Item 36: Specify std::launch::async if asynchronicity is essential.
- 修改Postman安装路径
- Soft Exam Senior System Architect Series: Basic Knowledge of System Development
- OSF understands the agile development model in one minute
- What is the meaning of JS timestamp?Know SQL will consider to add a timestamp, JS timestamp for the scene?
猜你喜欢

Daily practice of LeetCode - Circular linked list question (interview four consecutive questions)

RTL8762DK RTC (5)

解决IDEA默认情况下新建文件时,右击,new,没有XML文件的问题

MYSQL经典面试题

MYSQL logical architecture

Blueprint: Yang Hui's Triangular Arrangement

RTL8762DK WDG (six)

Google Earth Engine - Error resolution of Error: Image.clipToBoundsAndScale, argument 'input': Invalid type

【密码学/密码分析】基于TMTO的密码分析方法
![[AMEX] LGBM Optuna American Express Credit Card Fraud Contest kaggle](/img/64/55af53a3d9dc1162490d613fe8a436.png)
[AMEX] LGBM Optuna American Express Credit Card Fraud Contest kaggle
随机推荐
软考高级系统架构设计师系列之:信息系统基础知识
Detailed explanation of TCP protocol
SC7A20 (Silan Micro-Accelerometer) Example
设计消息队列存储消息数据的MySQL表格
网关gateway跨域
Introduction to the decision logic of WAASAP WebClient UI page labels
leetcode:1562. 查找大小为 M 的最新分组【模拟 + 端点记录 + 范围合并】
mySql data view
Introduction to machine learning how to?
Four ways the Metaverse is changing the way humans work
Js replication
By Value or By Reference
Web3.0: Building an NFT Market (1)
MYSQL Index Analysis
How to get started with YOLO?How to implement your own training set?
leetcode: 1562. Find latest grouping of size M [simulation + endpoint record + range merge]
What practical projects can machine learning beginners learn?
How is the tree structure of the device tree reflected?
C字符串数组反转
js 实现复制功能