f1c_mainline
This is an old revision of the document!
Table of Contents
Buildroot编译
Buildroot on Tiny200支持情况
启动项:
- SPI NOR Flash (W25Qxx..)
- SPI NAND Flash (GD5F1GQ4UAxxG..)
- MMC 0 (4-bit TF卡或芯片)
- MMC 1 (1-bit TF芯片,雷龙)
U-Boot:
- Basic LCD
- GPIO Backlight
- USB Peripheral
- MTD Devices
Linux:
- Simple Peripheral: GPIO, SPI, UART, IIC, SDIO, PWM
- DMA Controller
- Audio Codec: Playback, Mic-IN
- USB: Peripheral Mode, Host Mode
- DVP Camera: OV2640, OV5640
- Display Engine: Frontend, Backend, TCON
应该正常工作但是没有经过测试
U-Boot 驱动:
- PWM Backlight
Linux 驱动:
- Audio Codec: FM-IN, Line-IN
- USB: OTG Mode
- IR Receiver
- Keypad ADC
正在开发中且部分功能可用
Linux 驱动:
- TV(CVBS) Encoder
- Touchscreen Sensor
- Cedar Video Engine
暂无计划支持
下方和其他没有提到的外设 Linux 驱动:
- TV(CVBS) Decoder
- Digital Audio
- DE-interlace
- RSB Bus
- OWA Bus
编译
cd到源码目录,然后调用defconfig,比如我这里源码目录是mpi-r
cd ~/mpi-r/
现在源码里做了三个defconfig,存放在源码的configs文件夹下,分别是widora_mangopi_r1_defconfig widora_mangopi_r2_defconfig widora_mangopi_r3_defconfig。
make widora_tiny200_defconfig
make -j4是多线程编译方式,后边的数字代表你的计算机内核线程数。
make -j4
常用操作
虽然做好了defconfig,但也可以通过make menuconfig配置更多的软件包
make menuconfig Target options --->选择目标板架构特性。 Build options --->配置编译选项。 Toolchain ---> 配置交叉工具链,使用buildroot工具链还是外部提供。 System configuration ---> Kernel ---> Target packages ---> Filesystem images ---> Bootloaders ---> Host utilities ---> Legacy config options --->
进入这个界面后,可以用“/”直接搜索想要的软件包。
所有被支持的make命令可以通过make help打印出来:
make clean (清理编译输出文件) make distclean (不仅清理编译输出,还清理dl目录以及config文件,慎用) make toolchain (编译一份适应目标cpu的工具链) make menuconfig (配置软件包菜单) make busybox-menuconfig (busybox软件包配置) make uboot-menuconfig (uboot软件包配置) make linux-menuconfig (linux软件包配置) make -j4 (4线程编译)
f1c_mainline.1612830090.txt.gz · Last modified: (external edit)

