当前位置:网站首页>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 engineer fired for claiming AI awareness: breach of nondisclosure agreement
- ECCV2022 Workshop | Multi-Object Tracking and Segmentation in Complex Environments
- Euler system (euleros): upgrade Mysql
- OSF understands the agile development model in one minute
- Key Points Estimation and Point Instance
- Game Security 03: A Simple Explanation of Buffer Overflow Attacks
- 带wiringPi库在unbutu 编译 并且在树莓派运行
- Academicians of the two academies speak bluntly: Don't be superstitious about academicians
- 网关gateway跨域
- 设备树——dtb格式到struct device node结构体的转换
猜你喜欢

VPGNet

TCP协议详解

你需要知道的 TCP 四次挥手

MYSQL二阶段提交

WeChat applet page syntax

Euler system (euleros): upgrade Mysql

MYSQL query interception optimization analysis

MYSQL逻辑架构

设备树——dtb格式到struct device node结构体的转换
![[cellular automata] based on matlab interface aggregation cellular automata simulation [including Matlab source code 2004]](/img/7b/831998e19591ce8b90cfb2eefae0d4.png)
[cellular automata] based on matlab interface aggregation cellular automata simulation [including Matlab source code 2004]
随机推荐
MYSQL two-phase commit
两院院士直言:不要迷信院士
IDEA调试
[Data analysis] Based on matlab GUI student achievement management system [including Matlab source code 1981]
从设备树(dtb格式数据)中解析出bootargs
蓝图:杨辉三角排列
设备树——dtb格式到struct device node结构体的转换
MYSQL主从复制
SC7A20 (Silan Micro-Accelerometer) Example
内核的解压缩过程详解
gateway gateway cross domain
Solve the problem that Excel opens very slowly after installing MySQL
JS时间戳的意义是什么?知道sql会考虑加时间戳,JS的时间戳用于什么场景?
RTL8762DK RTC (5)
RTL8762DK uses DebugAnalyzer (four)
C字符串数组反转
YOLO怎么入门?怎么实现自己的训练集?
Daily practice of LeetCode - Circular linked list question (interview four consecutive questions)
IDEA debugging
Device tree - conversion from dtb format to struct device node structure