当前位置:网站首页>Replacing the Raspberry Pi Kernel
Replacing the Raspberry Pi Kernel
2022-08-01 01:34:00 【Ten Moo One Sword】
Find the appropriate kernel compilation package
1
unzip linux-rpi-5.15.y.zip
cd linux-rpi-5.15.y
2 First cross-compileLinuxInstall the required dependencies and cross-compilation tools on the host,如下
sudo apt install git bc bison flex libssl-dev make libc6-dev libncurses5-dev
3 树莓派安装的是32的内核,则安装32Bit of a cross-compilation toolchain:
注
通过在Pi里运行“file /sbin/busybox” or other executable program to see what the current kernel is32位还是64位的.如果是32位的,会显示如下32-bit 字段,否则为64位的
sudo apt install crossbuild-essential-armhf
4 利用git获取当前git仓库默认Pi的内核源码,如下所示:
git clone --depth=1 https://github.com/raspberrypi/linux
多试几次 compare cards
配置内核
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 (Raspberry Pi kernel boot file)
1 2 都有了 证明成功
挂载sd卡
1
lsblk:View identifiedTF卡设备节点
很重要
红圈的 Do not use this path 用 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 Then install the kernel module into SD中:
sudo env PATH=$PATH make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- INSTALL_MOD_PATH=/media/linux/rootfs modules_install
查看 内核版本
旧的
新的
边栏推荐
- Four ways the Metaverse is changing the way humans work
- Solve the problem that Excel opens very slowly after installing MySQL
- date command
- Blueprint: Yang Hui's Triangular Arrangement
- [Data analysis] Based on matlab GUI student achievement management system [including Matlab source code 1981]
- gateway gateway cross domain
- Chinese version of Pylint inspection rules
- July Bootcamp (Day 31) - Status Compression
- Introduction to machine learning how to?
- 机器学习初学者可以学哪些实战项目?
猜你喜欢
【密码学/密码分析】基于TMTO的密码分析方法
普通用户无法访问hgfs目录
Unity3D study notes 10 - texture array
leetcode:1648. 销售价值减少的颜色球【二分找边界】
RTL8762DK Lighting/LED (3)
STK8321 I2C(昇佳-加速度传感器)示例
Basic implementation of vector
Solve the problem that Excel opens very slowly after installing MySQL
MYSQL-批量插入数据
Data Middle Office Construction (VII): Data Asset Management
随机推荐
Fat interface in JQESAP system
IDEA调试
You need to know the TCP wave four times
Modern Enterprise Architecture Framework 1
sqlserver cannot connect remotely
Summary of MVCC
Cmake introductory study notes
Unity3D study notes 10 - texture array
Rasa 3.x 学习系列- Rasa - Issues 4898 学习笔记
RTL8762DK RTC (5)
How to get started with YOLO?How to implement your own training set?
The kernel of the decompression process steps
LeetCode每日一练 —— 环形链表问题(面试四连问)
如何编辑epub电子书的目录
MYSQL query interception optimization analysis
Flink 部署和提交job
Item 36: Specify std::launch::async if asynchronicity is essential.
MYSQL master-slave replication
ROS2 series of knowledge (4): understand the concept of [service]
【密码学/密码分析】基于TMTO的密码分析方法