Chinaunix首页 | 论坛 | 博客
  • 博客访问: 4190614
  • 博文数量: 776
  • 博客积分: 13014
  • 博客等级: 上将
  • 技术积分: 10391
  • 用 户 组: 普通用户
  • 注册时间: 2010-02-22 17:00
文章分类

全部博文(776)

文章存档

2015年(55)

2014年(43)

2013年(147)

2012年(20)

2011年(82)

2010年(429)

分类: LINUX

2013-07-26 22:37:30

This document is old. Please refer to:  for updated version.

 The following steps are done on a regular computer instead of the pcDuino. The kernel is compiled on another computer and later used to install on pcDuino.

Ubuntu:

Install following packages using apt-get

$ sudo apt-get install build-essential git u-boot-tools texinfo texlive ccache zlib1g-dev gawk

$ sudo apt-get install bison flex gettext uuid-dev ia32-libs

 
Download the recommended linaro toolchain , (choose the “arm hf crosscompiler for Linux”)

$ tar jzxf  -C your-path

$ export PATH=$PATH:your-path/gcc-linaro-arm-linux-gnueabihf-xxx_linux/bin/

 

Get the source code

Git the sunxi-bsp source code:

$ git clone

 

Git the sunxi-linux source code:

$ cd kernel

$ make

The Makefile script will git the linux and uboot source code from and compile it.

The output file, a livesuitable image and a HW_pack will be in the output folder.


Q&A:

Q1:  Make failed.

Hint  : the linux-sunxi is not clean, suggest to call “make mrproper” first.

> As suggested:

Before compile, please clean the build files (now you are in the kernel folder).

$ rm build/sun4i_defconfig-linux/* -rf

$ cd linux-sunxi

$ make mrproper

$ cd ..

Q2: Build the uImage of linux kernel only.

 

$ make help

$ make linux

 

You can also get some help from the 

阅读(2586) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~