S32G Linux BSP customization doc

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

S32G Linux BSP customization doc

S32G Linux BSP customization doc

This doc explain our Linux BSP driver and how to custom them. Contests as follows: include bsp30/32

目录
1 S32G Linux文档说明 ................................................. 2
2 创建S32G RDB2 Linux板级开发包编译环境 .............. 2
2.1 创建yocto编译环境: ................................................ 2
2.2 独立编译 ................................................................. 8
3 Device Tree ............................................................. 11
3.1 恩智浦的device Tree结构 ..................................... 11
3.2 device Tree的由来(no updates) ............................ 13
3.3 device Tree的基础与语法(no updates) ................. 15
3.4 device Tree的代码分析(no updates) .................... 37
4 恩智浦S32G BSP 包文件目录结构 .......................... 70
5 恩智浦Linux BSP的编译(no updates) ...................... 72
5.1 需要编译哪些文件 ................................................ 72
5.2 如何编译这些文件 ................................................ 73
5.3 如何链接为目标文件及链接顺序 ........................... 74
5.4 kernel Kconfig ...................................................... 76
6 恩智浦BSP的内核初始化过程(no updates) .............. 76
6.1 初始化的汇编代码 ................................................ 78
6.2 初始化的C代码 ..................................................... 82
6.3 init_machine ......................................................... 94
7 恩智浦BSP的内核定制 ............................................. 97
7.1 DDR修改 .............................................................. 98
7.2 IO管脚配置与Pinctrl驱动 .................................... 100
7.3 新板bringup ........................................................ 121
7.4 更改调试串口 ...................................................... 125
7.5 uSDHC设备定制(eMMC flash,SDcard, SDIOcard)
129
7.6 GPIO驱动 ........................................................... 137
7.7 GPIO_Key 驱动定制 .......................................... 145
7.8 GPIO_LED 驱动定制 ......................................... 150
7.9 芯片内thermal驱动 ............................................. 155
7.10 CAN接口驱动 ..................................................... 157
7.11 I2C及外设驱动 .................................................... 162
7.12 SPI与SPI Slave驱动 ........................................... 183
7.13 Watchdog test. ................................................... 190
7.14 汽车级以太网驱动定制 (未验证) (未完成) ........... 191

Labels (1)
Attachments
Comments

Hi @Johnli ,

    您好!

    在S32G和S32R的linux的相关文档中,只有单独编译ATF、Uboot、Linux Image的相关描述,唯独没有单独制作和烧录rootfs的描述。

    另外,在您分享的文档中,也有如下描述,这是不是意味着rootfs必须使用yocto生成。

aiweixin_0-1703233589102.png

    考虑到产品的应用场景及量产,rootfs的定制是必需的。有几个问题想请教下:

1、是否有rootfs的单独制作和烧录方法?

2、使用一张新的SD卡制作启动盘(目前看必须首先使用yocto生成的sdcard文件烧录,然后替换相关的文件),有没有其他方案制作启动盘,或者其他方式生成sdcard文件?

谢谢!

100% helpful (2/2)
Version history
Last update:
‎05-13-2022 03:07 AM
Updated by: