CubieBoard中文论坛

 找回密码
 立即注册
搜索
热搜: unable
查看: 7099|回复: 0

Cubietruck Plus linux-sdk环境搭建以及系统固件编译步骤

[复制链接]
发表于 2017-6-15 16:14:52 | 显示全部楼层 |阅读模式
1. 硬件要求


• 容量大于 4G 的 TF 卡一张(也叫 micro SD 卡), 读卡器一个
• Cubietruck Plus 一台。
• 主机一台,推荐配置:Intel® CoreTM i5-3470 CPU @ 3.20GHz × 4 ,Memory 8G


2. 软件要求
• 主机操作系统:Ubuntu12.04 64bit
• 交叉编译环境


3. 交叉编译环境搭建


$sudo apt-get update
$sudo apt-get upgrade
$sudo apt-get install ia32-libs
$sudo apt-get install ncurses-dev
$sudo apt-get install texinfo texlive ccache zlib1g-dev gawk bison flex gettext uuid-dev
$sudo apt-get install build-essential git u-boot-tools uboot-mkimage
$sudo apt-get install binutils-arm-linux-gnueabihf gcc-arm-linux-gnueabi gcc-arm-linux-gnueabihf
cpp-arm-linux-gnueabihf
$ sudo apt-get install libusb-1.0-0 libusb-1.0-0-dev git wget fakeroot kernel-package zlib1g-dev
libncurses5-dev




4.源代码准备


Source Readme
=============

##clone Cubietruck Plus linux-sdk :

Build your work space
$ mkdir ct_plus-linux-sdk
$ cd ct_plus-linux-sdk

Get kernel source
$ git clone https://github.com/cubieboard/Cubietruck_Plus-kernel-source
$ mv Cubietruck_Plus-kernel-source linux-3.4 (master branch)

Get products
$ git clone https://github.com/cubieboard/Cubietruck_Plus-products
$ mv Cubietruck_Plus-kernel-source products (master branch)

Get tools
$ git clone https://github.com/cubieboard/Cubietruck_Plus-tools
$ mv Cubietruck_Plus-tools tools (master branch)

Get U-boot
$ git clone https://github.com/cubieboard/Cubietruck_Plus-binaries
$ mv Cubietruck_Plus-binaries binaries (master branch)

Get rootfs
$ git clone https://github.com/cubieboard/Cubietruck_Plus-rootfs
$ mv Cubietruck_Plus-rootfs rootfs (master branch)
This is a indexes to rootfs at: (Refet to README.md)



You should download the rootfs from 网盘地址,and move all file to "rootfs"

效果如下:

root@ubuntu12-dev-x64:~/ct_plus-linux-sdk# ls
binaries  linux-3.4  products  rootfs  tools

root@ubuntu12-dev-x64:~/ct_plus-linux-sdk/rootfs# ls
card_flash_rootfs-v1.0.tar.gz  linaro-desktop-trusty-14.04-v1.1.tar.gz  README.md

5.编译


插入tf卡,一定要先umount tf卡,然后开始编译。

##compilation:


$ cd ct_plus-linux-sdk
$ source tools/scripts/envsetup.sh
--------------------------------------------------------------------------------------------
Build sdcard image:
    1. tf card boot
    (1)cb_build_card_image (compile code to prepare cb_install_tfcard)
    (2)cb_part_install_tfcard dev_label [pack]
        dev_label:      sdb sdc sdd ...
        pack:           the parameter mean we will make a img for dd or win32writer
                cmd for example: cb_part_install_tfcard sdb pack
    (3)cb_install_tfcard  dev_label [pack]
        dev_label:      sdb sdc sdd ...
        pack:           the parameter mean we will make a img for dd or win32writer
                cmd for example: cb_install_tfcard sdb

    2. emmc card boot
    (1)cb_build_flash_card_image (compile code to prepare cb_install_flash_card)
    (2)cb_part_install_flash_card dev_label [pack]
        dev_label:      sdb sdc sdd ...
        pack:           the parameter mean we will make a img for dd or win32writer
                cmd for example: cb_part_install_flash_card sdb pack
    (3)cb_install_flash_card dev_label [pack]
               (install TF card to flash img to emmc)
        dev_label:      sdb sdc sdd ...
        pack:           the parameter mean we will make a img for dd or win32writer
        cmd for example: cb_install_flash_card sdb
---------------------------------------------------------------------------------------------


## More docs about Cubietruck Plus:
cubieboard5资料国内地址





我自己编译的固件






回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|粤ICP备13051116号|cubie.cc---深刻的嵌入式技术讨论社区

GMT+8, 2024-4-20 06:43 , Processed in 0.019487 second(s), 15 queries .

Powered by Discuz! X3.4

© 2001-2012 Comsenz Inc. | Style by Coxxs

返回顶部