当前位置:网站首页>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
查看 内核版本
旧的
新的
边栏推荐
- Unity3D study notes 10 - texture array
- Key Points Estimation and Point Instance
- ROS2 series of knowledge (4): understand the concept of [service]
- Application of integrated stepper motor in UAV automatic airport
- The IDEA can't find or unable to load The main class or Module "*" must not contain The source root "*" The root already belongs to The Module "*"
- Fat interface in JQESAP system
- Four ways the Metaverse is changing the way humans work
- STK8321 I2C (Shengjia-accelerometer) example
- Luogu P3373: Segment tree
- 【元胞自动机】基于matlab界面聚合元胞自动机模拟【含Matlab源码 2004期】
猜你喜欢
随机推荐
ROS2系列知识(4): 理解【服务】的概念
ECCV2022 Workshop | 复杂环境中的多目标跟踪和分割
Beijing suddenly announced that yuan universe big news
IDEA无法识别module(module右下角没有蓝色小方块)
MYSQL关键字Explain解析
leetcode: 1648. Color ball with decreasing sales value [Boundary find by two points]
Flink 部署和提交job
Item 36: Specify std::launch::async if asynchronicity is essential.
VPGNet
元宇宙改变人类工作模式的四种方式
WeChat applet page syntax
Js replication
C字符串数组反转
机器学习初学者可以学哪些实战项目?
ROS2 series of knowledge (4): understand the concept of [service]
Soft Exam Senior System Architect Series: Basic Knowledge of System Development
2022 CSP-J1 CSP-S1 Round 1 Preliminary Competition Registration Guide
Google Earth Engine - Error resolution of Error: Image.clipToBoundsAndScale, argument 'input': Invalid type
Rasa 3.x Study Series - Rasa - Issues 4918 Study Notes
OSD read SAP CRM One Order application log way of optimization