当前位置:网站首页>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

查看 内核版本
旧的
新的
边栏推荐
- Design the message queue storage MySQL form of message data
- Rasa 3.x Learning Series - Using Lookup Tables to Improve Entity Extraction
- RTL8762DK PWM(七)
- Super like the keyboard made from zero, IT people love it
- leetcode: 1648. Color ball with decreasing sales value [Boundary find by two points]
- What practical projects can machine learning beginners learn?
- 内核的解压缩过程详解
- C字符串数组反转
- Google Earth Engine - Error resolution of Error: Image.clipToBoundsAndScale, argument 'input': Invalid type
- Daily practice of LeetCode - Circular linked list question (interview four consecutive questions)
猜你喜欢

IDEA debugging

解决安装MySQL后,Excel打开很慢的问题

Completely closed Chrome updated and in the top right corner of the tip

Google engineer fired for claiming AI awareness: breach of nondisclosure agreement

ROS2系列知识(4): 理解【服务】的概念

Summary of JVM interview questions (continuously updated)

RTL8762DK WDG(六)

你需要知道的 TCP 四次挥手

Flink 部署和提交job

【数据分析】基于matlab GUI学生成绩管理系统【含Matlab源码 1981期】
随机推荐
[cellular automata] based on matlab interface aggregation cellular automata simulation [including Matlab source code 2004]
js 实现复制功能
Solve the problem that Excel opens very slowly after installing MySQL
High dimensional Gaussian distribution basics
Soft Exam Senior System Architect Series: Basic Knowledge of System Development
你需要知道的 TCP 四次挥手
Blueprint: Yang Hui's Triangular Arrangement
IDEA 找不到或无法加载主类 或 Module “*“ must not contain source root “*“ The root already belongs to module “*“
Simple vim configuration
MYSQL查询截取优化分析
SC7A20(士兰微-加速度传感器)示例
链式编程、包、访问权限
Modify Postman installation path
[Data analysis] Based on matlab GUI student achievement management system [including Matlab source code 1981]
Item 36: Specify std::launch::async if asynchronicity is essential.
MYSQL事务
如何编辑epub电子书的目录
MYSQL Keyword Explain Analysis
July Bootcamp (Day 31) - Status Compression
500 miles