make ARCH=arm menuconfig #add bluethooth, etc.
time make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- 2>&1 | tee build.log(指定交叉编译工具链 log写入文件
)
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j16(-j16 16线程编译)
u-boot编译完成,linux内核编译完成,buildroot根文件系统编译完成
U-Boot 2017.01-rc2-00057-g32ab180-dirty (Oct 10 2018 - 22:51:48 +0800) inner Technology
CPU: Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM: 64 MiB
MMC: 0MMC: 0
*** Warning - bad CRC, using default environment
Setting up a 800x480 lcd console (overscan 0x0)
dotclock: 33000kHz = 33000kHz: (1 * 3MHz * 66) / 6
In: 1c28000
Out: serial@01c28000
Err: 0c28000
Net: No ethernet found.
starting USB...
No controllers found
Hit any key to stop autoboot: 0
reading zImage
3811656 bytes read in 203 ms (17.9 MiB/s)
reading sun8i-v3s-licheepi-zero-dock.dtb
9591 bytes read in 28 ms (334 KiB/s)
## Flattened Device Tree blob at 41800000
Device Tree to 42dfa000, end 42dff576 ... OK
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.00000version 4.10.15-licheepi-zero+ (zhang@zhang-virtual-machine) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.9) ) #20 SMP Tue Oct 9 17:56:19 CST 2018
[ 8/08Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[ 0.008فinstructions available: patching division code
[ 0.008Ydata cache, VIPT aliasing instruction cache
[ 0.000t:Machine model: Lichee Pi Zero with Dock
[ 8.08icy: Data cache writealloc
[ 0.0048mbedded 14 pages/cpu @c3dea000 s24716 r8192 d24436 u57344
[ 10{onelists in Zone order, mobility grouping on. Total pages: 15883
[ 0.00;ommand line: console=ttyS0,115200 panic=5 roo

本文介绍了如何在研一阶段初次接触并编译U-Boot、Linux内核以及buildroot根文件系统。通过使用`make ARCH=arm menuconfig`配置蓝牙等功能,并利用交叉编译工具链`arm-linux-gnueabihf-`,将编译过程的时间和输出记录到build.log中。最后使用`-j16`选项进行16线程并行编译,以加速构建过程。
最低0.47元/天 解锁文章
3746

被折叠的 条评论
为什么被折叠?



