当前位置:网站首页>更换树莓派内核
更换树莓派内核
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

查看 内核版本
旧的
新的
边栏推荐
- 声称AI存在意识,谷歌工程师遭解雇:违反保密协议
- 微信小程序之小程序页面语法
- ECCV2022 Workshop | 复杂环境中的多目标跟踪和分割
- Classes and Objects: Medium
- sqlserver cannot connect remotely
- Web3.0:构建 NFT 市场(一)
- Game Security 03: A Simple Explanation of Buffer Overflow Attacks
- IDEA调试
- Team of Professor Chen Jianyu of Tsinghua University | Contact Safety Reinforcement Learning Framework Based on Contact-rich Robot Operation
- Design the message queue storage MySQL form of message data
猜你喜欢

VPGNet

RTL8762DK WDG(六)

Solve the problem that Excel opens very slowly after installing MySQL
![leetcode: 1562. Find latest grouping of size M [simulation + endpoint record + range merge]](/img/72/f52b5d3dcdb271f096c3e5108f0042.png)
leetcode: 1562. Find latest grouping of size M [simulation + endpoint record + range merge]

MYSQL主从复制

Modern Enterprise Architecture Framework 1

MYSQL Index Analysis

Game Security 03: A Simple Explanation of Buffer Overflow Attacks

Beijing suddenly announced that yuan universe big news

RTL8762DK uses DebugAnalyzer (four)
随机推荐
设计消息队列存储消息数据的MySQL表格
VPGNet
JVM面试题总结(持续更新中)
Detailed explanation of TCP protocol
Solve the problem that when IDEA creates a new file by default, right-click, new, there is no XML file
/usr/sbin/vmware-authdlauncher: error while loading shared libraries: libssl.so.1.0.2*Solution
MYSQL逻辑架构
欧拉系统(euleros):升级Mysql
RTL8762DK 点灯/LED(三)
sqlserver cannot connect remotely
高维高斯分布基础
VPGNet
Key Points Estimation and Point Instance
软考高级系统架构设计师系列之:信息系统基础知识
Euler system (euleros): upgrade Mysql
RTL8762DK WDG(六)
OSD读取SAP CRM One Order应用日志的优化方式
Luogu P3373: Segment tree
Chinese version of Pylint inspection rules
Basic implementation of vector