f1c_mainline
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| f1c_mainline [2020/09/10 00:58] – [准备环境] mangogeek | f1c_mainline [2025/10/14 06:22] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | =====Buildroot环境搭建和编译===== | + | =====Buildroot编译===== |
| - | + | ||
| - | <WRAP group> | + | |
| - | <WRAP half column> | + | |
| - | ====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 | + | |
| - | </ | + | |
| - | <WRAP half column> | + | |
| - | ==== 应该正常工作但是没有经过测试==== | + | |
| - | 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 | + | |
| - | </ | + | |
| - | </ | + | |
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | =====准备环境===== | + | |
| - | ===编译系统=== | + | |
| - | Ubuntu 16~18 32/ | + | |
| - | sudo apt install wget unzip build-essential git bc swig libncurses5-dev libpython3-dev libssl-dev pkg-config zlib1g-dev libusb-dev libusb-1.0-0-dev python3-pip gawk | + | |
| - | + | ||
| - | 下载主线代码至用户文件夹: | + | |
| - | 不建议下载zip方式,因为以后还需要用git pull拉代码更新。建议点star和watch,代码有更新可随时收到邮件提醒。 | + | |
| - | cd ~/ | + | |
| - | git clone https:// | + | |
| - | 如果太慢就试用如下镜像地址 | + | |
| - | git clone https:// | + | |
| - | + | ||
| - | + | ||
| - | + | ||
| - | ===加速编译,单独下载dl文件夹=== | + | |
| - | 到群662381849共享里下载“buildroot-dl.zip”,然后解压后,将文件夹改名为" | + | |
| - | {{ :: | + | |
| =====编译===== | =====编译===== | ||
| - | 注意:make -j4是多线程编译方式,后边的数字代表你的计算机内核线程数。 | + | cd到源码目录,然后调用defconfig,比如我这里源码目录是mpi-r |
| - | cd buildroot-tiny200/ | + | cd ~/mpi-r/ |
| - | make widora_tiny200_defconfig | + | 现在源码里做了三个defconfig,存放在源码的configs文件夹下,分别是widora_mangopi_r1_defconfig |
| + | make widora_mangopi_r3_defconfig | ||
| + | make -j4是多线程编译方式,后边的数字代表你的计算机内核线程数。 | ||
| make -j4 | make -j4 | ||
| + | |||
| 编译完后,输出文件在 output/ | 编译完后,输出文件在 output/ | ||
| - | {{ :: | + | widora@Ubuntu:~/mpi-r$ ls output/ |
| + | output/ | ||
| + | <wrap hi> | ||
| + | 55 spi-max-frequency = < | ||
| + | 56 status = " | ||
| | | ||
| + | 同时再将93行的注释掉 | ||
| + | 93 //status = " | ||
| + | |||
| + | <wrap hi> | ||
| =====常用操作===== | =====常用操作===== | ||
| - | 虽然做好了defconfig,但也可以通过make menuconfig配置更多的软件包 | + | ===修改dts后,如何编译生效=== |
| - | make menuconfig | + | |
| - | + | | |
| - | Target options | + | |
| - | Build options | + | |
| - | | + | |
| - | System configuration | + | |
| - | Kernel | + | |
| - | Target packages | + | |
| - | Filesystem | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | 进入这个界面后,可以用“/ | + | |
| - | 所有被支持的make命令可以通过make help打印出来,常用的几个如下: | + | |
| + | |||
| + | ===配置菜单=== | ||
| + | 所有被支持的make命令可以通过make help打印出来: | ||
| make clean | make clean | ||
| make distclean | make distclean | ||
| Line 110: | Line 43: | ||
| make -j4 (4线程编译) | make -j4 (4线程编译) | ||
| - | |||
| - | |||
| - | ===== 问题 ===== | ||
| - | 一般这个步骤不会碰到什么问题,请到 sns.widora.io 论坛发帖交流 | ||
f1c_mainline.1599699532.txt.gz · Last modified: (external edit)
