User Tools

Site Tools


f1c_mainline

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
f1c_mainline [2021/02/08 23:25] – [准备环境] adminf1c_mainline [2025/10/14 06:22] (current) – external edit 127.0.0.1
Line 1: Line 1:
-=====Buildroot环境搭建和编译=====+=====Buildroot编译=====
  
-<WRAP group> +=====编译===== 
-<WRAP half column> +cd到源码目录然后调用defconfig,比如我这里源码目录是mpi-r 
-====Buildroot on Tiny200支持情况===+  cd ~/mpi-r
-=== 启动项: === +源码里做了三个defconfig,存放在源码的configs文件夹下,别是widora_mangopi_r1_defconfig  widora_mangopi_r2_defconfig  widora_mangopi_r3_defconfig。 
-  * SPI NOR Flash (W25Qxx..) +  make widora_mangopi_r3_defconfig 
-  * SPI NAND Flash (GD5F1GQ4UAxxG..) +make -j4是多线程编译式,后边的数字代表你计算机内核线程数。 
-  * MMC 0 (4-bit TF卡或芯片) +  make -j4 
-  * 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> +
-<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 +
-</WRAP> +
-</WRAP>+
  
 +编译完后,输出文件在 output/images/下:
 +  widora@Ubuntu:~/mpi-r$ ls output/images/*.img
 +  output/images/sysimage-nand.img  output/images/sysimage-nor.img  output/images/sysimage-sdcard.img
  
- +<wrap hi>注意</wrap>默认[[https://github.com/aodzip/buildroot-tiny200/blob/master/board/widora/mangopi/r3/devicetree/linux/devicetree.dts|dts]]编译出来的是nor版本,如需要nand版本,需要在55行后边加disabled 
- +  55        spi-max-frequency = <50000000>; 
- +  56        status = "disabled";
- +
- +
- +
- +
- +
-=====准备环境===== +
-===编译系统=== +
-Ubuntu 16~20 32/64位的真机或者虚拟机(不建议使用WSL,灵异问题较多)皆可已,尽量不要用root账户编译,先安装依赖: \\ +
-  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://github.com/aodzip/buildroot-tiny200 +
-  如果太慢就试用如下镜像地址 +
-  git clone https://github.com.cnpmjs.org/aodzip/buildroot-tiny200+
      
 +同时再将93行的注释掉
 +  93        //status = "disabled";
  
 +<wrap hi>此修改方法在20210209之前有效,接下来代码库会有个大的更新</wrap>
 +=====常用操作=====
 +===修改dts后,如何编译生效===
 +  rm ./output/images/*.dtb
 +  make linux-clean-for-rebuild
 +  make linux -j8
 +  make
  
-===加速编译,单独下载dl文件夹=== 
-链接: https://pan.baidu.com/s/16gUSVLKmv4EHBMEN9VA4iQ      提取码:uzly  
  
  
-=====编译===== 
-注意:make -j4是多线程编译方式,后边的数字代表你的计算机内核线程数。 
-  cd buildroot-tiny200/ 
-  make widora_tiny200_defconfig 
-  make -j4 
-  
-编译完后,输出文件在 output/images/下: 
-{{ ::20200906080232.jpg? |}} 
- 
-   
-=====常用操作===== 
-虽然做好了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命令可以通过make help打印出来:
   make clean   (清理编译输出文件)   make clean   (清理编译输出文件)
Line 110: Line 43:
   make -j4  (4线程编译)   make -j4  (4线程编译)
  
- 
- 
-===== 问题 ===== 
-一般这个步骤不会碰到什么问题,请到 sns.widora.io 论坛发帖交流 
  
f1c_mainline.1612826707.txt.gz · Last modified: (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki