当前位置:网站首页>Banana pie bpi-m5 toss record (3) -- compile BSP
Banana pie bpi-m5 toss record (3) -- compile BSP
2022-07-25 02:55:00 【Spend my whole life reading】
BPI Official bsp Still quite perfect , It includes u-boot、kernel、root file system And a complete tool chain, This article mainly records the compilation and replacement BSP The process of .
1 BSP The code download
Download the official BSP Code
git clone https://github.com/BPI-SINOVOIP/BPI-M5-bsp
git submodule update --init --recursive
The software package comes with toolchain, So there is no need to download and install any more ,toolchain be located toolchains Catalog ,cd Go to the catalogue and have a look :
[email protected]:~/code/BPI5/BSP/BPI-M5-bsp/toolchains$ ls -l
total 12
drwxrwxr-x 8 zhy zhy 4096 4 month 5 10:36 gcc-linaro-7.3.1-2018.05-x86_64_aarch64-linux-gnu
drwxrwxr-x 7 zhy zhy 4096 4 month 5 10:36 gcc-linaro-aarch64-none-elf-4.8-2013.11_linux
drwxrwxr-x 7 zhy zhy 4096 4 month 5 10:36 gcc-linaro-arm-none-eabi-4.8-2014.04_linux
[email protected]:~/code/BPI5/BSP/BPI-M5-bsp/toolchains$
You can see that there are two versions of toolchain, among 4.8 Version is used to compile u-boot Of ,7.3 Version is used to compile kernal Of .
2 BSP The code to compile
The compilation method is relatively simple , perform BSP The compilation steps of the root directory can :
./build.sh
give the result as follows , There are seven compilation options , Input 1 compile uboot 、kernel, Generate rootfs.
[email protected]:~/code/BPI5/BSP/BPI-M5-bsp$ ./build.sh
This tool support following building mode(s):
--------------------------------------------------------------------------------
1. Build all, uboot and kernel and pack to download images.
2. Build uboot only.
3. Build kernel only.
4. kernel configure.
5. Pack the builds to target download image, this step must execute after u-boot,
kernel and rootfs build out
6. Update local build to SD with BPI Image flashed
7. Clean all build.
--------------------------------------------------------------------------------
Please choose a mode(1-7):
After compiling, execute the script :
./build.sh
This choice 5, pack img, After packaging, execute the following command to compile kernal、uboot、rootfs Replace with SD In the card .
./build.sh 6
Press the prompt to enter SD The directory attached to the card is ok :
[email protected]:~/code/BPI5/BSP/BPI-M5-bsp$ ./build.sh 6
This tool support following building mode(s):
--------------------------------------------------------------------------------
1. Build all, uboot and kernel and pack to download images.
2. Build uboot only.
3. Build kernel only.
4. kernel configure.
5. Pack the builds to target download image, this step must execute after u-boot,
kernel and rootfs build out
6. Update local build to SD with BPI Image flashed
7. Clean all build.
--------------------------------------------------------------------------------
Now building...
scripts/mk_install_sd.sh
--------------------------------------------------------------------------------
1. M5/M2Pro
--------------------------------------------------------------------------------
Please choose a target to install(1-1): 1
Please type the SD device(/dev/sdX): /dev/mmcblk0
Note here SD The card must be flash Only after you have passed , in other words SD It needs to be burned in advance img, And make the development board start successfully , Not sure SD Whether the card is flash Yes, it can be used fdisk to glance at :
sudo fdisk -l
SD The card information is as follows , You can see /dev/mmcblk0 It is divided into two partitions , This stands for SD The card is flash Yes .
Disk /dev/mmcblk0: 29.7 GiB, 31914983424 bytes, 62333952 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xd7488a27
Device Boot Start End Sectors Size Id Type
/dev/mmcblk0p1 204800 729087 524288 256M c W95 FAT32 (LBA)
/dev/mmcblk0p2 729088 14940159 14211072 6.8G 83 Linux
If all operations are correct , The console will have the following log Output :
take SD Insert the card into the development board , When you power on, you can see the same successful startup .
边栏推荐
- Daily three questions 7.16
- Physical experiment simulation
- Generator set work arrangement problem code
- SQL Server 2022 installation
- Strategy mode, just read one article
- BGP introduction
- JS written test questions -- random numbers, array de duplication
- Map set learning
- Sequence diagram of UML diagram series
- Tp5.0 background admin access
猜你喜欢

Generator set work arrangement problem code

JS foundation -- JSON

Beginners must see the markdown User Guide

Pycharm writes SQLite statements without code prompts

Resolved (the latest version of selenium reported an error) attributeerror: module 'selenium webdriver‘ has no attribute ‘PhantomJS‘

Mgre.hdlc.ppp.chap.nat comprehensive experiment

JS written test question -- deep copy of object

Flink's study notes

Selenium framework operation steelth.min.js file hides browser fingerprint features

YouTube Download and (batch) Download
随机推荐
Download the jar package of jsqlparser and PageHelper
JS written test question -- browser kernel
Redis unauthorized access vulnerability recurrence (www.hetianlab.com)
UDP message structure and precautions
Common Oracle commands
Strategy mode, just read one article
Matlab for circular pit
Solve ''_ Xsrf 'argument missing from post
Vite dynamically loads static resource pictures, and fixes the 404 problem of pictures after packaging.
[jailhouse article] certify the uncertified rewards assessment of virtualization for mixed criticality
Concurrent programming day01
JS written test -- regular expression
Rotating frame target detection mmrotate v0.3.1 training hrsc2016 data set (II)
JS written test question -- realize the flat function of array
DOM node type
[C language] program compilation (preprocessing)
Review all frames before sum of SSM frames
English grammar_ Reflexive pronoun
Object.defineproperty use
Mgre.hdlc.ppp.chap.nat comprehensive experiment