These steps outline how to create a Samsung hardware pack.

You do not need these instructions if you are just creating a bootable SD card. To make a bootable SD card follow these instructions

For SMDKV310

For Origen

Dependencies

You need to make sure that the following packagaes are installed on your host machine.

# Install the following packages
$ sudo apt-get install fakeroot kernel-wedge ncurses-dev devscripts

Get the Code

Latest Code

# Clone the LT linux-linaro
$ git clone git://git.linaro.org/landing-teams/working/samsung/kernel.git

# Switch to the enabled branch, replace x with the version of kernel you would like
$ git checkout origin/enabled-3.x -b enabled-3.x

Release Code

# Clone the LT linux-linaro
$ git clone git://git.linaro.org/landing-teams/leb/samsung/kernel.git

# Switch to the enabled branch, replace x with the version of kernel you would like
$ git checkout origin/linux-release -b linux-release

Get the debian packaging files

For Origen

# To use the debian build tools you need to merge in the packaging branch
$ git merge origin/packaging-origen-3.x

For SMDK

This has been deprecated since version 2.6.39

# To use the debian build tools you need to merge in the packaging branch
$ git merge origin/packaging

Set Up Your Environment

If you're planning to sign any debs you'll need to add a few things to your environment. For example:

$ export DEBEMAIL='angus.ainslie@linaro.org'
$ export DEBFULLNAME='Angus Ainslie'

Populate the debian packaging rules

$ sudo fakeroot debian/rules clean

Build It

Select kernel depending on board types: Origen /SMDKV310

if you select right package on git above, you don't need to use the below command to change board/platform.

fakeroot debian/rules editconfigs

Please note that don't do "make menuconfig" , it will mess up

Compile

Assume that you have already set up PGP (Gnu PG) key into your system to sign final binary image, which is uploaded into Launchpad system.

To create a binary package thats suitable for add to a local hwpack.

sudo debuild -eCROSS_COMPILE=arm-linux-gnueabi- -b -aarmel -k<your key>

If you don't want to sign it replace "-k<your key>" with "-us -uc"

sudo debuild -eCROSS_COMPILE=arm-linux-gnueabi- -b -aarmel -us -uc

If you want to build with Linaro's Toolchain, then download it from here: https://android-build.linaro.org, after that, decompress it and set the CROSS_COMPILE prefix to the path of toolchain, e.g.,:

-eCROSS_COMPILE=/Path_of_Linaro_Toolchain/bin/arm-eabi-

You can now move up to the parent of this directory to find the newly created deb file:

$ cd ..
$ ls *.deb
linux-image-3.0-1000-origen_3.0-1000.0ubuntu+samsung<some number>_armel.deb

Command line example

please clickthe latest example of the command line to make debian package in Origen

ETC

Additional information about the debian packaging of a kernel can be found here :

Package Your Own Kernel

Get the hwpack Config

Replace YYYYMMDD with the correct date

Origen

$ wget http://snapshots.linaro.org/oneiric/lt-origen-oneiric/YYYYMMDD/0/config/hwpacks/linaro-lt-origen

SMDKV310

SMDK has been deprecated since version 2.6.39

$ wget http://snapshots.linaro.org/11.05-daily/linaro-hwpacks/lt-s5pv310/YYYYMMDD/0/config/hwpacks/linaro-lt-s5pv310

Linaro Image Tools

For Ubuntu build systems before Oneiric

You have to set up an SSH keyring and then install "bzr"

$ bzr branch lp:linaro-image-tools

For Ubuntu Oneiric build systems

# Add Linaro Tools PPA
$ sudo add-apt-repository ppa:linaro-maintainers/tools
$ sudo apt-get update

# Install required packages
$ sudo apt-get install linaro-image-tools

Now create the hwpack with:

### THIS IS FOR ORIGEN
$  linaro-image-tools/linaro-hwpack-create --local-deb linux-image-3.0-1000-origen_3.0-1000.0ubuntu+samsung<some_number>_armel.deb linaro-lt-origen 1

### THIS IS FOR SMDKV310 -- SMDKV310 support has been deprecated
$ linaro-image-tools/linaro-hwpack-create --local-deb linux-image-3.0-1000-s5pv310_3.0-1000.0ubuntu+samsung<some_number>_armel.deb linaro-s5pv310 1

Create a Bootable Image

Download your favorite root filesystem from:

You can now create a bootable MMC card from your hwpack with:

### THIS IS SAMPLE FOR ORIGEN, YOU CAN CHANGE ROOTFS
sudo ./linaro-image-tools/linaro-media-create --mmc /dev/sdb --dev origen --hwpack hwpack_linaro-lt-origen_1_armel_supported.tar.gz --binary alip-n-tar-20110725-0.tar.gz

### FOR SMDKV310
$ sudo ./linaro-media-create --mmc /dev/sd<x> --dev smdkv310 --hwpack hwpack_linaro-s5pv310_1_armel_supported.tar.gz --binary <the rootfs you downloaded>

More details can be found here.

Create a source package

To create a source package to be uploaded to a PPA. If you don't want to sign it replace "-k<your key>" with "-us -uc"

$ debuild -k<your key> -S -i -I

History

. 20/01/2012, Added example script to make debian


CategoryHowTo

Resources/HowTo/SamsungHardwarePack (last modified 2012-01-23 11:06:29)