# BeagleBone **Repository Path**: fromyuhu/beagle-bone ## Basic Information - **Project Name**: BeagleBone - **Description**: BeagleBone 开发板 - **Primary Language**: C++ - **License**: EPL-1.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-10-10 - **Last Updated**: 2022-05-25 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # BeagleBone Black ## Clone ### 同步clone子仓库的代码 ``` git clone --recursive git@gitee.com:fromyuhu/beagle-bone.git ``` ### 确保同步了子模块的代码 ``` git pull --recurse-submodules git submodule update --init --recursive ``` ## Build ## 编译工具链安装 ```bash sudo apt install gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf # 运行如下脚本 arm-linux-gnueabihf-gcc -v # 输出: Using built-in specs. COLLECT_GCC=arm-linux-gnueabihf-gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc-cross/arm-linux-gnueabihf/9/lto-wrapper Target: arm-linux-gnueabihf Configured with: ../src/configure -v --with-pkgversion='Ubuntu 9.3.0-17ubuntu1~20.04' --with-bugurl=file:///usr/share/doc/gcc-9/README.Bugs --enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++,gm2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-9 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-libitm --disable-libquadmath --disable-libquadmath-support --enable-plugin --enable-default-pie --with-system-zlib --without-target-system-zlib --enable-libpth-m2 --enable-multiarch --enable-multilib --disable-sjlj-exceptions --with-arch=armv7-a --with-fpu=vfpv3-d16 --with-float=hard --with-mode=thumb --disable-werror --enable-multilib --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=arm-linux-gnueabihf --program-prefix=arm-linux-gnueabihf- --includedir=/usr/arm-linux-gnueabihf/include Thread model: posix gcc version 9.3.0 (Ubuntu 9.3.0-17ubuntu1~20.04) # 说明安装成功 ``` ### 自动编译 ```bash sudo ./bulid.sh ``` ### 手动编译 #### Cmake Parameters ```bash cmake -D ENV=[env] -D DEBUG=[ON/OFF] .. ``` #### Debug * cd BeagleBone * mkdir build * cd build * cmake -D ENV=company -D DEBUG=ON .. # or cmake -D ENV=home -D DEBUG=ON .. * make -j$(nproc) #### Release * cd BeagleBone * mkdir build * cd build * cmake -D ENV=company -D DEBUG=OFF .. # or cmake -D ENV=home -D DEBUG=ON .. * make -j$(nproc)