Skip to contentSkip to conversation

Q: build/install gpe-image from dev branch

DISCUSSION Vladislav Grinchenko 2 participants 5 messages Jan 9, 2007 – Jan 10, 2007

lore
Share & tools
lore
#0 lore raw

Hi,

I successfully built 'gpe-image' target against development branch, 'org.openembedded.dev'. The $builddir/tmp/deploy/images holds the following files:

gpe-image-collie-20070108224738.rootfs.jffs2
gpe-image-collie-20070108224738.rootfs.tar.bz2
modules-2.6.18-collie.tgz
zImage-2.6.18-collie-20070108224738.bin

Q1: what controls the way zImage is built in terms of Xmemory/Ystorage ratio? I'd like 64-0, but I can't find how to set it.

Q2: How do I install modules-2.6.18-collie.tgz? I'm using 'altboot'. Do I need to copy it to my CF card along with zImage? Or, do I have to install it by hand to (I would imaging) /usr/lib/?

thanks,
-Vlad

#1 lore raw
Quoted 10 lines · Vladislav Grinchenko

Hi,

I successfully built 'gpe-image' target against development branch, 'org.openembedded.dev'. The $builddir/tmp/deploy/images holds the following files:

gpe-image-collie-20070108224738.rootfs.jffs2
gpe-image-collie-20070108224738.rootfs.tar.bz2
modules-2.6.18-collie.tgz
zImage-2.6.18-collie-20070108224738.bin

I don't think you'll have much fun with the 2.6 kernel on collie.

I suggest bitbake collie-kernels, that should build all memory / storage variants in one run.

Regards,

:M:

Signature · 1 line
Michael 'Mickey' Lauer | IT-Freelancer | http://www.vanille-media.de
#2 lore raw

Michael,

thanks for the reply.

In doing so, my build process aborts in attempt to build 'collie-kernel-24-8-2.4.18-rmk7-pxa3-embedix-r23' kernel (which I don't
need) with following:
---------------------------------
NOTE: package collie-kernel-24-8-2.4.18-rmk7-pxa3-embedix-r23: task
do_configure: completed
NOTE: package collie-kernel-24-8-2.4.18-rmk7-pxa3-embedix-r23: task
do_compile: started
ERROR: function do_compile failed
ERROR: log data follows (/stuff/tmp.dev/work/collie-linux/collie-kernel-24-8-2.4.18-rmk7-pxa3-embedix-r23/temp/log.do_compile.6906) | NOTE: make EMBEDIXRELEASE=-.dev-snapshot-20070109
include/linux/version.h CC=ccache arm-linux-gcc-2.95
LD=arm-linux-ld-2.11.2
| NOTE: make EMBEDIXRELEASE=-.dev-snapshot-20070109 dep CC=ccache
arm-linux-gcc-2.95 LD=arm-linux-ld-2.11.2
| gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o
scripts/mkdep scripts/mkdep.c

| rm -f include/asm-arm/arch include/asm-arm/proc
| (cd include/asm-arm; ln -sf arch-sa1100 arch; ln -sf proc-armv proc)
| make[1]: Entering directory
`/stuff/tmp.dev/work/collie-linux/collie-kernel-24-8-2.4.18-rmk7-pxa3-embedix-r23/linux/arch/arm/tools'
| /stuff/tmp.dev/work/collie-linux/collie-kernel-24-8-2.4.18-rmk7-pxa3-embedix-r23/linux/scripts/mkdep -D__KERNEL__ -I/stuff/tmp.dev/work/collie-linux/collie-kernel-24-8-2.4.18-rmk7-pxa3-embedix-r23/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -Os -mapcs -fno-strict-aliasing -fno-common -fno-common -pipe -mapcs-32 -march=armv4 -mtune=strongarm1100 -mshort-load-bytes -msoft-float  -- getconstants.c |\
|  sed s,getconstants.o,constants.h, > .depend
| make all
| make[2]: Entering directory

`/stuff/tmp.dev/work/collie-linux/collie-kernel-24-8-2.4.18-rmk7-pxa3-embedix-r23/linux/arch/arm/tools' | awk -f gen-mach-types mach-types

Quoted 1 line

/stuff/tmp.dev/work/collie-linux/collie-kernel-24-8-2.4.18-rmk7-pxa3-embedix-r23/linux/include/asm-arm/mach-types.h

| ccache arm-linux-gcc-2.95 -D__KERNEL__
-I/stuff/tmp.dev/work/collie-linux/collie-kernel-24-8-2.4.18-rmk7-pxa3-embedix-r23/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -Os -mapcs -fno-strict-aliasing -fno-common -fno-common -pipe -mapcs-32 -march=armv4 -mtune=strongarm1100 -mshort-load-bytes -msoft-float -S -o constants.h.tmp.1 getconstants.c

| arm-linux-gcc-2.95: No such file or directory
| make[2]: *** [constants.h] Error 1
| make[2]: Leaving directory

`/stuff/tmp.dev/work/collie-linux/collie-kernel-24-8-2.4.18-rmk7-pxa3-embedix-r23/linux/arch/arm/tools' | make[1]: *** [dep] Error 2
| make[1]: Leaving directory `/stuff/tmp.dev/work/collie-linux/collie-kernel-24-8-2.4.18-rmk7-pxa3-embedix-r23/linux/arch/arm/tools' | make: *** [archdep] Error 2
| FATAL: oe_runmake failed
NOTE: Task
failed: /stuff/tmp.dev/work/collie-linux/collie-kernel-24-8-2.4.18-rmk7-pxa3-embedix-r23/temp/log.do_compile.6906
NOTE: package collie-kernel-24-8-2.4.18-rmk7-pxa3-embedix-r23: task
do_compile: failed
ERROR: TaskFailed event exception, aborting
NOTE: package collie-kernel-24-8-2.4.18-rmk7-pxa3-embedix: failed
ERROR: Build of gpe-image failed
---------------------------------

The thingy depends on arm-linux-gcc-2.95 which it couldn't find?

But all I wanted was a gpe-image! I didn't ask for the kernel. And if I did, I would have asked only for collie-kernel-64-0.

So, the question is how do I tell bitbake to build only a gpe-image? If it absolutely must build the kernel, then how do I select a specific kernel to build (rather then all of them)?

thanks,
--Vlad

Quoted 20 lines · Michael 'Mickey' Lauer
Quoted 10 lines · Vladislav Grinchenko

Hi,

I successfully built 'gpe-image' target against development branch, 'org.openembedded.dev'. The $builddir/tmp/deploy/images holds the following files:

gpe-image-collie-20070108224738.rootfs.jffs2
gpe-image-collie-20070108224738.rootfs.tar.bz2
modules-2.6.18-collie.tgz
zImage-2.6.18-collie-20070108224738.bin

I don't think you'll have much fun with the 2.6 kernel on collie.

I suggest bitbake collie-kernels, that should build all memory / storage variants in one run.

Regards,

:M:

#3 lore raw
Quoted 1 line

The thingy depends on arm-linux-gcc-2.95 which it couldn't find?

Please take a look at the OpenZaurus wiki and/or local.conf.sample.

Quoted 1 line

So, the question is how do I tell bitbake to build only a gpe-image?

An image is a combined entity that is tightly coupled to a kernel.

Regards,

:M:

Signature · 1 line
Michael 'Mickey' Lauer | IT-Freelancer | http://www.vanille-media.de
#4 lore raw

Michael,

thanks for the hint - of course, I overlooked a side note about gcc 2.95.3 toolchain on wiki!

That problem being solved, I still cannot complete 'gpe-image' build for dev branch for collie target. The build process chokes on building 'hostap-modules-0.4.7-r4' package - somehow the package insists on kernel version 2.6.18 (or it seems to be that way), but 'collie' as rightly pointed out only accepts linux 2.4.18.

Here is my local.conf
------------------------------------------------------------------
DL_DIR = "/stuff/sources" BBFILES="/stuff/org.openembedded.dev/packages/*/*.bb" BBMASK = ""
PREFERRED_PROVIDERS = "virtual/qte:qte virtual/libqpe:libqpe-opie" PREFERRED_PROVIDERS += " virtual/libsdl:libsdl-x11" ASSUME_PROVIDED += "virtual/arm-linux-gcc-2.95"
TMPDIR = /stuff/tmp.dev
MACHINE = "collie"
DISTRO="openzaurus-unstable"
IMAGE_FSTYPES = "jffs2 tar"
BBINCLUDELOGS = "yes"
------------------------------------------------------------------

and the last lines of the failed compilation:

------------------------------------------------------------------
NOTE: multiple providers are available (linux-rp, hostap-modules);
NOTE: consider defining a PREFERRED_PROVIDER to match runtime hostap-modules
NOTE: package module-init-tools-cross-3.2.2: started
...
NOTE: package module-init-tools-cross-3.2.2-r2: task do_build: completed
NOTE: package module-init-tools-cross-3.2.2: completed
...
NOTE: package linux-rp-2.6.18: started
NOTE: package linux-rp-2.6.18-r7: task do_fetch: started
...
NOTE: package linux-rp-2.6.18-r7: task do_package: started
<string>:4: RuntimeWarning: tmpnam is a potential security risk to your program
NOTE: the following files were installed but not shipped in any package:
NOTE: /boot/zImage-2.6.18
NOTE: package linux-rp-2.6.18-r7: task do_package: completed
NOTE: package linux-rp-2.6.18-r7: task do_package_write: started Packaged contents of kernel
into /stuff/tmp.dev/deploy/ipk/kernel_2.6.18-r7_collie.ipk
...
NOTE: Unpacking /stuff/sources/hostap-driver-0.4.7.tar.gz
to /stuff/tmp.dev/work/collie-linux/hostap-modules-0.4.7-r4/
NOTE: package hostap-modules-0.4.7-r4: task do_unpack: completed
NOTE: package hostap-modules-0.4.7-r4: task do_patch: started
NOTE: Applying patch 'kernel_updates.patch'
NOTE: package hostap-modules-0.4.7-r4: task do_patch: completed
NOTE: package hostap-modules-0.4.7-r4: task do_configure: started
NOTE: package hostap-modules-0.4.7-r4: task do_configure: completed
NOTE: package hostap-modules-0.4.7-r4: task do_compile: started
ERROR: function do_compile failed
ERROR: log data follows (/stuff/tmp.dev/work/collie-linux/hostap-modules-0.4.7-r4/temp/log.do_compile.18558) | NOTE: make -e MAKEFLAGS= KERNEL_PATH=/stuff/tmp.dev/staging/collie-linux/kernel KERNEL_SRC=/stuff/tmp.dev/staging/collie-linux/kernel KERNEL_VERSION=2.6.18 CC=ccache arm-linux-gcc LD=arm-linux-ld KERNEL_PATH=/stuff/tmp.dev/staging/collie-linux/kernel MAKE=make -e

| *** Can't build for 2.4 with a non-2.4 source!
| make: *** [2.4] Error 1
| FATAL: oe_runmake failed

------------------------------------------------------------------

So, should I exclude 'hostap-modules' somehow with PREFERRED_PROVIDER? And if so, what would be the syntax?

thanks in advance,
-Vlad

P.S. I promise to document my *journey* in OE world in a HOWTO for newbies like myself if I ever get gpe-image built successfully.