Ubuntu16.04编译roc-rk3328-cc

本文档详细介绍了在Ubuntu16.04环境下,如何编译ROC-RK3328-CC的U-Boot、kernel以及Ubuntu根文件系统。首先,安装必要包,然后下载Linux SDK,接着配置并编译U-Boot和kernel。进一步,自定义内核配置,编译Ubuntu根文件系统,安装依赖并创建1000M的根文件系统映像。最后,通过chroot初始化,打包成out/system.img。参考链接提供完整步骤。
摘要由CSDN通过智能技术生成

安装以下包:

sudo apt-get install bc bison build-essential curl \
     device-tree-compiler dosfstools flex gcc-aarch64-linux-gnu \
     gcc-arm-linux-gnueabihf gdisk git gnupg gperf libc6-dev \
     libncurses5-dev libpython-dev libssl-dev libssl1.0.0 \
     lzop mtools parted repo swig tar zip

创建工程目录:

mkdir ~/proj/roc-rk3328-cc
cd ~/proj/roc-rk3328-cc

下载 Linux SDK:

# U-Boot
git clone -b roc-rk3328-cc https://github.com/FireflyTeam/u-boot
# Kernel
git clone -b roc-rk3328-cc https://github.com/FireflyTeam/kernel --depth=1
# Build
git clone -b debian https://github.com/FireflyTeam/build
# Rkbin
git clone -b master https://github.com/FireflyTeam/rkbin

开发板编译配置在:

build/board_configs.sh

编译 U-Boot:

./build/mk-uboot.sh roc-rk3328-cc

输出:

out/u-boot/
├── idbloader.img
├── rk3328_loader_ddr786_v1.0
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值