树莓派开发(零)

整理资料

Posted by 婷 on July 21, 2024 本文总阅读量

简介

主要是官方的一些资料整理,记录在这里,方便自己后面查看

config.txt文件配置

https://www.raspberrypi.com/documentation/computers/config_txt.html#boot-options

image-20240720225620617

其中还提到如果想让板子用64位运行的一些注意事项

image-20240720225700827

还有串口使能的配置,这里的意思是romcode的串口输出,可以用uart_2ndstage去使能

image-20240720225812018

image-20240720230000123

还有kernel.img的命名规范

image-20240720220949101

kernel编译

https://www.raspberrypi.com/documentation/computers/linux_kernel.html#kernel

代码仓库

image-20240721004844235

编译方法

image-20240721004834108

如何合上主线的补丁

image-20240721004916680

电路图

https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#raspberry-pi-4-model-b

主要是电路原理图之类的

image-20240721005158903

修改eeprom代码

raspi4B有一块EEPROM来充当second_stage_bootloader(个人理解),官方也提供了更新的方法

https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#raspberry-pi-boot-eeprom

image-20240721005544111

bootcode串口输出

https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#bootcode-bin-uart-enable

image-20240721005645558

usb启动

https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#usb-boot-modes

https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#usb-mass-storage-boot

网络启动

https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#network-booting

nvme启动

https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#nvme-ssd-boot

gpio硬件图

https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#gpio-and-the-40-pin-header

image-20240721010043459

otp烧写

https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#one-time-programmable-settings

pcie

raspi5上才有pcie接口

https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#one-time-programmable-settings

spi

https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#one-time-programmable-settings

固件仓库

https://github.com/raspberrypi/firmware/tree/master/boot

官方文档资料

https://www.raspberrypi.com/documentation/microcontrollers/

image-20240720220559702