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

来源:互联网 发布:知乎用户数量一亿 编辑:程序博客网 时间:2024/06/05 08:14




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资料国内地址






我自己编译的cb5 linaro-desktop-hdmi-tfcard固件








0 0
原创粉丝点击