当前位置:网站首页>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
查看 内核版本
旧的
新的
边栏推荐
- Google Earth Engine - Error resolution of Error: Image.clipToBoundsAndScale, argument 'input': Invalid type
- leetcode: 1648. Color ball with decreasing sales value [Boundary find by two points]
- Academicians of the two academies speak bluntly: Don't be superstitious about academicians
- By Value or By Reference
- Super like the keyboard made from zero, IT people love it
- 蓝图:杨辉三角排列
- RTL8762DK UART(二)
- Key Points Estimation and Point Instance
- 现代企业架构框架1
- 500 miles
猜你喜欢
VPGNet
Google Earth Engine - Error resolution of Error: Image.clipToBoundsAndScale, argument 'input': Invalid type
JVM面试题总结(持续更新中)
cmake入门学习笔记
MYSQL Index Analysis
Application of integrated stepper motor in UAV automatic airport
Device tree - conversion from dtb format to struct device node structure
RTL8762DK Lighting/LED (3)
ECCV2022 Workshop | 复杂环境中的多目标跟踪和分割
MYSQL master-slave replication
随机推荐
MYSQL query interception optimization analysis
ROS2系列知识(4): 理解【服务】的概念
内核的解压缩过程详解
You need to know the TCP wave four times
Unity3D study notes 10 - texture array
RTL8762DK PWM(七)
ROS2 series of knowledge (4): understand the concept of [service]
Inheritance and friend, static member relationship
leetcode: 1562. Find latest grouping of size M [simulation + endpoint record + range merge]
Summary of JVM interview questions (continuously updated)
OSF一分钟了解敏捷开发模式
VPGNet
Rasa 3.x 学习系列- Rasa - Issues 4918 学习笔记
ARM 交叉编译
sqlserver无法远程连接
Google engineer fired for claiming AI awareness: breach of nondisclosure agreement
Rasa 3.x Study Series - Rasa - Issues 4918 Study Notes
how to edit the table of contents of an epub ebook
链式编程、包、访问权限
gateway gateway cross domain