当前位置:网站首页>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
查看 内核版本
旧的
新的
边栏推荐
- Simple vim configuration
- sqlserver无法远程连接
- Daily practice of LeetCode - Circular linked list question (interview four consecutive questions)
- Rasa 3.x 学习系列-使用查找表改进实体提取
- leetcode: 1648. Color ball with decreasing sales value [Boundary find by two points]
- Flink 部署和提交job
- Completely closed Chrome updated and in the top right corner of the tip
- RTL8762DK PWM(七)
- SC7A20(士兰微-加速度传感器)示例
- Solve the problem that Excel opens very slowly after installing MySQL
猜你喜欢
Google Earth Engine - Error resolution of Error: Image.clipToBoundsAndScale, argument 'input': Invalid type
Blueprint: Yang Hui's Triangular Arrangement
Key Points Estimation and Point Instance
声称AI存在意识,谷歌工程师遭解雇:违反保密协议
YOLO怎么入门?怎么实现自己的训练集?
你需要知道的 TCP 四次挥手
leetcode:1562. 查找大小为 M 的最新分组【模拟 + 端点记录 + 范围合并】
MYSQL Keyword Explain Analysis
IDEA调试
RTL8762DK PWM (seven)
随机推荐
MYSQL two-phase commit
ECCV2022 Workshop | Multi-Object Tracking and Segmentation in Complex Environments
VPGNet
How to get started with YOLO?How to implement your own training set?
date command
JQESAP系统里的胖接口Fat interface
北京突然宣布,元宇宙重大消息
Rasa 3.x 学习系列- Rasa - Issues 4918 学习笔记
MYSQL二阶段提交
Basic implementation of vector
MYSQL Classic Interview Questions
SC7A20 (Silan Micro-Accelerometer) Example
元宇宙改变人类工作模式的四种方式
Chain programming, packages, access
解决IDEA默认情况下新建文件时,右击,new,没有XML文件的问题
Item 36: Specify std::launch::async if asynchronicity is essential.
手写二叉查找树及测试
机器学习初学者可以学哪些实战项目?
Item 36: Specify std::launch::async if asynchronicity is essential.
Simple vim configuration