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)
• 容量大于 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:
##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资料国内地址
$ 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
- Cubietruck Plus linux-sdk环境搭建以及系统固件编译步骤
- Cubietruck Plus 编译linaro-desktop-14.04卡启动固件和8192cu驱动步骤
- CubieTruck Debian搭建nodejs环境
- cubietruck如何搭建nfs环境
- CubieTruck Plus 使用tfcard刷系统linaro desktop 以及使用笔记
- linux 环境搭建步骤
- Linux下搭建ARM交叉编译环境的步骤
- Pixhawk开发环境搭建之PX4固件编译
- 搭建KLEE环境步骤以及注意事项
- Pixhawk原生固件Linux环境下编译
- [7688] Uboot编译环境搭建以及编译
- Android系统编译环境搭建
- raspberry 3b 64bit 系统安装,以及交叉编译环境、调试环境的搭建
- freescale-sdk linux移植一搭建编译环境脚本host-prepare.sh分析
- 嵌入式交叉编译开发环境的搭建步骤(arm-linux)
- linux交叉编译环境搭建
- linux Android 编译环境搭建
- U-BOOT编译环境的搭建及编译步骤
- CSS:readonly与disabled属性
- synchronized关键字
- 【数值计算】数值解析--二阶偏微分方程的3种基本形
- 数据结构-递归实现二叉树
- Cassandra 学习笔记
- Cubietruck Plus linux-sdk环境搭建以及系统固件编译步骤
- matlab专区--------------matlab里面如何保留小数特定位数
- java.lang.NoClassDefFoundError: org/objectweb/asm/CodeVisitor的解决方法
- linux编程常用头文件
- [m.t]--算法-求数组中最接近0的子序列
- GDI+ 使用指南(basic guiding of GDI plus )
- 76. Minimum Window Substring
- 完整篇:python+fiddler抓包写接口请求:其中有cookie值和session ,post请求,xml数据格式
- 运行hibernate时报错Unable to instantiate default tuplizer [org.hibernate.tuple.entity.PojoEntit