Difference between revisions of "Dragonboard/APQ8060A"

From eLinux.org
Jump to: navigation, search
m
m
Line 28: Line 28:
 
<big><big>Get the code</big></big>
 
<big><big>Get the code</big></big>
  
As it stands this code is available from codeaurora and the master branch has issues to clone so just clone the msm-3.4 branch:
+
We are going to be relying on two trees, one from CAF and another one that is used for upstream development and is synched regularly to Linus. The goal is to get rid of the delta. There is an issue with the CAF git tree master branch so use the msm-3.4 branch.
  
 
:git clone git://codeaurora.org/quic/la/kernel/msm.git msm-3.4
 
:git clone git://codeaurora.org/quic/la/kernel/msm.git msm-3.4
 +
:git://git.kernel.org/pub/scm/linux/kernel/git/davidb/linux-msm.git
  
<big><big>Building</big></big>
+
The way to think about this:
 +
 
 +
* msm-3.4: things not upstream
 +
* linux-msm: target upstream -- you should be on the for-next branch
 +
 
 +
<big><big>Building msm-3.4</big></big>
 +
 
 +
:mkdir kobj
 +
:cp arch/arm/configs/msm8960_defconfig kobj/.config
 +
:make-arm menuconfig
 +
:make-arm -j 4
 +
 
 +
<big><big>Building linux-msm</big></big>
  
 
:mkdir kobj
 
:mkdir kobj
Line 38: Line 51:
 
:make-arm menuconfig
 
:make-arm menuconfig
 
:make-arm -j 4
 
:make-arm -j 4
 +
  
 
<big><big>Generating initial boot image</big></big>
 
<big><big>Generating initial boot image</big></big>
  
The APQ8060A will have shipped with an Android boot loader so you need to first get the kernel you built into a format it will like. This section will be expanded soon.
+
The APQ8060A will have shipped with an Android boot loader so you need to first get the kernel you built into a format it will like. This section will be expanded soon. Right now this is a placeholder for some more details to be added later.
 +
 
 +
* msm-3.4: package 8960
 +
* linux-msm: package 8960dt

Revision as of 00:44, 24 April 2013

APQ8060A Linux upstream work

This documentation is for folks who who want to work on ramping up linux upstream development based on APQ8060A. You'll need am armel toolchain installed. Below are documentation for Linux distributions.

Getting gcc-armel on Debian

Add this to your /etc/apt/sources.list:

deb http://www.emdebian.org/debian testing main

Then do

sudo apt-get update
sudo apt-get install gcc-4.4-base-armel-cross

Updating environment

Add to your .bashrc:

export CROSS_COMPILE=/usr/bin/arm-linux-gnueabi-

It would also help if you have a simple script called make-arm in your PATH somewhere that does this:

make ARCH=arm O=kobj $@


Get the code

We are going to be relying on two trees, one from CAF and another one that is used for upstream development and is synched regularly to Linus. The goal is to get rid of the delta. There is an issue with the CAF git tree master branch so use the msm-3.4 branch.

git clone git://codeaurora.org/quic/la/kernel/msm.git msm-3.4
git://git.kernel.org/pub/scm/linux/kernel/git/davidb/linux-msm.git

The way to think about this:

  • msm-3.4: things not upstream
  • linux-msm: target upstream -- you should be on the for-next branch

Building msm-3.4

mkdir kobj
cp arch/arm/configs/msm8960_defconfig kobj/.config
make-arm menuconfig
make-arm -j 4

Building linux-msm

mkdir kobj
cp arch/arm/configs/msm_defconfig kobj/.config
make-arm menuconfig
make-arm -j 4


Generating initial boot image

The APQ8060A will have shipped with an Android boot loader so you need to first get the kernel you built into a format it will like. This section will be expanded soon. Right now this is a placeholder for some more details to be added later.

  • msm-3.4: package 8960
  • linux-msm: package 8960dt