• Home
  • pcDuino
  • WiKi
  • Store
  • Distributors
  • Home
  • pcDuino
  • WiKi
  • Store
  • Distributors
HomepcDuinopcDuino3 – build kernel on the device itself
Previous Next

pcDuino3 – build kernel on the device itself

Posted by: viulian , June 3, 2014

Introduction

To be able to build the kernel on the device you should already be familiar with building the kernel itself (so that if there unmet dependencies, or other errors, then you can fix them).

The base tutorial for this is specified here: http://www.pcduino.com/how-to-build-kernel-for-pcduino/ however, it is meant if you want to crosscompile the kernel on an i386 platform. However, I wanted to bypass having to copy the kernel images and so on, thus, I decided to build the kernel on the device itself.

This is doable if you already have the board configured to bood from the sdcard slot (otherwise the NAND speed will slow things down).

Step 1:

Makre sure you have all the dependencies required to build the kernel.

sudo apt-get install build-essential git u-boot-tools texinfo texlive ccache zlib1g-dev gawk bison flex gettext uuid-dev libusb-1.0 pkg-config

Step 2:

You have to download the kernel sources using the command:

git clone https://github.com/pcduino/kernel.git

Step 3:

Before issuing configure, we need to modify two files (at the time or writing, 1 June 2014):

Makefile

Please comment out the line:

...
# CROSS_COMPILE=arm-linux-gnueabihf-

Second script:

/scripts/mk_hwpack.sh

and replace

arm-linux-gnueabihf-strip

with

strip

directly.

Step 4:

./configure

answer pcDuino3 (or the other option if it suites you)

Step 5:

make

Observations:

There might be other unmet dependencies that you could encounter – since depending on the packages already installed on the board – you might have all dependencies already downloaded, or just some of them. The instructions are Step 1 will cover a lot of cases, however, in case you encounter errors – please create a new topic on the forum.

Good luck!

Tags: pcDuino

Share!
Tweet

viulian

About the author

Leave a Reply Cancel reply

You must be logged in to post a comment.

Category

  • Home
  • pcDuino
  • WiKi
  • Store
  • Distributors