Discussion:
Help building custom Kernel
(too old to reply)
Dave
2010-08-19 04:03:20 UTC
Permalink
Hello,
Ive been looking over the directions on how to build custom u-boot
xloader and kernel. Im able to build the u-boot and xloader how ever
when i try to build the kernel it always builds for the host machine.
ive saw some where that i have to set the compiler machine to Arm but
im not sure how to do that using the code sourcery pre-built
toolchain. any help would be apreciated. also if anyone could help
with trying to build a file system for the beagle board that would
also be aprecciated.

Thank you all,
Dave
--
You received this message because you are subscribed to the Google Groups "Beagle Board" group.
To post to this group, send email to beagleboard-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To unsubscribe from this group, send email to beagleboard+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit this group at http://groups.google.com/group/beagleboard?hl=en.
Maxim Podbereznyy
2010-08-19 05:32:03 UTC
Permalink
At Linux PC machine:

export OETREE="${HOME}/OE"
mkdir -p ${OETREE} && cd ${OETREE}
git clone git://git.openembedded.org/openembedded.git openembedded
cd openembedded
git checkout origin/stable/2009 -b stable/2009

cd ${OETREE}/openembedded
git pull

mkdir -p ${OETREE}/build/conf

cp ${OETREE}/openembedded/contrib/angstrom/local.conf ${OETREE}/build/conf/

Add a string to the end of the local.conf file:
MACHINE="beagleboard"

cd ${OETREE}
wget http://www.angstrom-distribution.org/files/source-me.txt
source source-me.txt

cd ${OETREE}/build
bitbake console-image
bitbake x11-image

The resulting files will be in the directory
"${OETREE}/angstrom-dev/deploy/glibc/images/beagleboard"
Need x-loader? bitbake x-loader

regards,
Max
Post by Dave
Hello,
Ive been looking over the directions on how to build custom u-boot
xloader and kernel. Im able to build the u-boot and xloader how ever
when i try to build the kernel it always builds for the host machine.
ive saw some where that i have to set the compiler machine to Arm but
im not sure how to do that using the code sourcery pre-built
toolchain. any help would be apreciated. also if anyone could help
with trying to build a file system for the beagle board that would
also be aprecciated.
Thank you all,
Dave
--
You received this message because you are subscribed to the Google Groups
"Beagle Board" group.
To unsubscribe from this group, send email to
.
For more options, visit this group at
http://groups.google.com/group/beagleboard?hl=en.
--
You received this message because you are subscribed to the Google Groups "Beagle Board" group.
To post to this group, send email to beagleboard-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To unsubscribe from this group, send email to beagleboard+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit this group at http://groups.google.com/group/beagleboard?hl=en.
Ricardo Salveti de Araujo
2010-08-19 06:29:07 UTC
Permalink
Post by Dave
Hello,
Ive been looking over the directions on how to build custom u-boot
xloader and kernel. Im able to build the u-boot and xloader how ever
when i try to build the kernel it always builds for the host machine.
ive saw some where that i have to set the compiler machine to Arm but
im not sure how to do that using the code sourcery pre-built
toolchain. any help would be apreciated. also if anyone could help
with trying to build a file system for the beagle board that would
also be aprecciated.
As you're already using the codesourcery cross compiler, you just need to use it
while building your kernel.

Example:
export PATH=$PATH:/path/to/your/codesourcery/toolchain/bin
make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- menuconfig
make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- uImage
or
make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- deb-pkg # to generate a deb file

Cheers,
--
Ricardo Salveti de Araujo
--
You received this message because you are subscribed to the Google Groups "Beagle Board" group.
To post to this group, send email to beagleboard-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To unsubscribe from this group, send email to beagleboard+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit this group at http://groups.google.com/group/beagleboard?hl=en.
Dave
2010-08-19 13:38:04 UTC
Permalink
Thank you Max for the quick reply. I was wondering if anyone knew how to
build a kernel from source files?

Dave
Post by Maxim Podbereznyy
export OETREE="${HOME}/OE"
mkdir -p ${OETREE} && cd ${OETREE}
git clone git://git.openembedded.org/openembedded.git openembedded
cd openembedded
git checkout origin/stable/2009 -b stable/2009
cd ${OETREE}/openembedded
git pull
mkdir -p ${OETREE}/build/conf
cp ${OETREE}/openembedded/contrib/angstrom/local.conf ${OETREE}/build/conf/
MACHINE="beagleboard"
cd ${OETREE}
wget http://www.angstrom-distribution.org/files/source-me.txt
source source-me.txt
cd ${OETREE}/build
bitbake console-image
bitbake x11-image
The resulting files will be in the directory
"${OETREE}/angstrom-dev/deploy/glibc/images/beagleboard"
Need x-loader? bitbake x-loader
regards,
Max
Hello,
Post by Dave
Ive been looking over the directions on how to build custom u-boot
xloader and kernel. Im able to build the u-boot and xloader how ever
when i try to build the kernel it always builds for the host machine.
ive saw some where that i have to set the compiler machine to Arm but
im not sure how to do that using the code sourcery pre-built
toolchain. any help would be apreciated. also if anyone could help
with trying to build a file system for the beagle board that would
also be aprecciated.
Thank you all,
Dave
--
You received this message because you are subscribed to the Google Groups
"Beagle Board" group.
To unsubscribe from this group, send email to
.
For more options, visit this group at
http://groups.google.com/group/beagleboard?hl=en.
--
You received this message because you are subscribed to the Google Groups
"Beagle Board" group.
To unsubscribe from this group, send email to
.
For more options, visit this group at
http://groups.google.com/group/beagleboard?hl=en.
--
You received this message because you are subscribed to the Google Groups "Beagle Board" group.
To post to this group, send email to beagleboard-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To unsubscribe from this group, send email to beagleboard+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit this group at http://groups.google.com/group/beagleboard?hl=en.
Maxim Podbereznyy
2010-08-19 14:07:46 UTC
Permalink
Dave,

there is a second part of instructions to build your custom Kernel. Just
follow my first mail to build the OE environment than comment the line
in $OETREE/build/conf/local.conf:
#INHERIT += " rm_work "

Now:
bitbake virtual/kernel -c clean; bitbake virtual/kernel

So in the directory
"$OETREE/angstrom-dev/work/beagleboard-angstrom-linux-gnueabi/linux-omap-2.6.29-r46/git"
you can find sources with all patches applied. Insert any changes and you
can compile the kernel with OE-toolchain. Just copy defconfig from the
directory a level upper and:

make ARCH=arm
CROSS_COMPILE=$OETREE/angstrom-dev/cross/armv7a/bin/arm-angstrom-linux-gnueabi-
menuconfig
make ARCH=arm
CROSS_COMPILE=$OETREE/angstrom-dev/cross/armv7a/bin/arm-angstrom-linux-gnueabi-
uImage
Post by Dave
Thank you Max for the quick reply. I was wondering if anyone knew how to
build a kernel from source files?
Dave
Post by Maxim Podbereznyy
export OETREE="${HOME}/OE"
mkdir -p ${OETREE} && cd ${OETREE}
git clone git://git.openembedded.org/openembedded.git openembedded
cd openembedded
git checkout origin/stable/2009 -b stable/2009
cd ${OETREE}/openembedded
git pull
mkdir -p ${OETREE}/build/conf
cp ${OETREE}/openembedded/contrib/angstrom/local.conf
${OETREE}/build/conf/
MACHINE="beagleboard"
cd ${OETREE}
wget http://www.angstrom-distribution.org/files/source-me.txt
source source-me.txt
cd ${OETREE}/build
bitbake console-image
bitbake x11-image
The resulting files will be in the directory
"${OETREE}/angstrom-dev/deploy/glibc/images/beagleboard"
Need x-loader? bitbake x-loader
regards,
Max
Hello,
Post by Dave
Ive been looking over the directions on how to build custom u-boot
xloader and kernel. Im able to build the u-boot and xloader how ever
when i try to build the kernel it always builds for the host machine.
ive saw some where that i have to set the compiler machine to Arm but
im not sure how to do that using the code sourcery pre-built
toolchain. any help would be apreciated. also if anyone could help
with trying to build a file system for the beagle board that would
also be aprecciated.
Thank you all,
Dave
--
You received this message because you are subscribed to the Google Groups
"Beagle Board" group.
To unsubscribe from this group, send email to
.
For more options, visit this group at
http://groups.google.com/group/beagleboard?hl=en.
--
You received this message because you are subscribed to the Google Groups
"Beagle Board" group.
To unsubscribe from this group, send email to
.
For more options, visit this group at
http://groups.google.com/group/beagleboard?hl=en.
--
You received this message because you are subscribed to the Google Groups
"Beagle Board" group.
To unsubscribe from this group, send email to
.
For more options, visit this group at
http://groups.google.com/group/beagleboard?hl=en.
--
You received this message because you are subscribed to the Google Groups "Beagle Board" group.
To post to this group, send email to beagleboard-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To unsubscribe from this group, send email to beagleboard+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit this group at http://groups.google.com/group/beagleboard?hl=en.
maciek wasiel
2010-08-19 15:21:21 UTC
Permalink
In the top Makefile of the kernel source tree make sure the following two
lines look like this:

ARCH ?= arm
CROSS_COMPILE ?= arm-none-linux-gnueabi-

You could also specify these as arguments to make.

Maciej
Post by Dave
Hello,
Ive been looking over the directions on how to build custom u-boot
xloader and kernel. Im able to build the u-boot and xloader how ever
when i try to build the kernel it always builds for the host machine.
ive saw some where that i have to set the compiler machine to Arm but
im not sure how to do that using the code sourcery pre-built
toolchain. any help would be apreciated. also if anyone could help
with trying to build a file system for the beagle board that would
also be aprecciated.
Thank you all,
Dave
--
You received this message because you are subscribed to the Google Groups
"Beagle Board" group.
To unsubscribe from this group, send email to
.
For more options, visit this group at
http://groups.google.com/group/beagleboard?hl=en.
--
You received this message because you are subscribed to the Google Groups "Beagle Board" group.
To post to this group, send email to beagleboard-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To unsubscribe from this group, send email to beagleboard+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit this group at http://groups.google.com/group/beagleboard?hl=en.
Continue reading on narkive:
Loading...