Skip to contentSkip to conversation

Xenomai on Gumstix

Xenomai-help [email protected] 3 participants 6 messages Jan 12, 2009 – Jan 13, 2009 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

Hi,

I'm a student and I work on a project to get Xenomai running on a gumstix platform. I'm using a Verdex board and OpenEmbedded as my development environment. Prior to re-flashing the board, I'm testing the RAM image with Qemu.

I've patched the kernel with Adeos. I followed the instruction of Xenomai 2.4.3 for a linux kernel 2.6.24.

I've been careful to run the command :
bitbake gumstix-kernel -c menuconfig
to force the copy of ~/gumstix/gumstix-oe/tmp/work/gumstix-custom-verdex-angstrom-linux-gnueabi/gumstix-kernel-2.6.24-r1/linux-2.6.24/.config to ~/gumstix/gumstix-oe/user.collection/packages/linux/gumstix-kernel-2.6.24/gumstix-custom-verdex/defconfig

Then, I tried to recompile the kernel source code (without that bitbake unpacked the archive of the previous version) bitbake gumstix-kernel -f -c compile

And create the new images
bitbake task-base-gumstix -c rebuild
bitbake gumstix-basic-image -c rebuild

I've made an image of RAM with the dd command to run in Qemu. But, when I'm trying to boot this image, the boot stop and said me :
Copying kernel to 0xa2000000 from 0x01f00000 (length 0x00100000)...done ## Booting image at a2000000 ...

    Image Name:   Angstrom/2.6.24/gumstix-custom-v
    Image Type:   ARM Linux Kernel Image (uncompressed)
    Data Size:    1124960 Bytes =  1.1 MB
    Load Address: a0008000
    Entry Point:  a0008000

OK

Starting kernel ...

ran out of input data

-- System halted

I've seen in previous threads the experience from Felipe Brandão Cavalcanti. This thread shows that it's possible to get an operational system on this platform. Can I hope some specific help ?

Best regards,

|=============================================================|
| BERRUER Sébastien        |                                  |
| 2 rue du Vieil Armand    | Tel : 06-76-35-29-55             |
| Studio 112               | Email : [email protected]     |
| 67100 STRASBOURG         |                                  |
|=============================================================|
#1 lore raw
Quoted 9 lines · [email protected] wrote:

Hi,

I'm a student and I work on a project to get Xenomai running on a gumstix platform. I'm using a Verdex board and OpenEmbedded as my development environment. Prior to re-flashing the board, I'm testing the RAM image with Qemu.

I've patched the kernel with Adeos. I followed the instruction of Xenomai 2.4.3 for a linux kernel 2.6.24.

Please use the latest version from the 2.4 (stable) branch: Xenomai 2.4.6.1.

Quoted 25 lines

I've been careful to run the command :
bitbake gumstix-kernel -c menuconfig
to force the copy of ~/gumstix/gumstix-oe/tmp/work/gumstix-custom-verdex-angstrom-linux-gnueabi/gumstix-kernel-2.6.24-r1/linux-2.6.24/.config to ~/gumstix/gumstix-oe/user.collection/packages/linux/gumstix-kernel-2.6.24/gumstix-custom-verdex/defconfig

Then, I tried to recompile the kernel source code (without that bitbake unpacked the archive of the previous version) bitbake gumstix-kernel -f -c compile

And create the new images
bitbake task-base-gumstix -c rebuild
bitbake gumstix-basic-image -c rebuild

I've made an image of RAM with the dd command to run in Qemu. But, when I'm trying to boot this image, the boot stop and said me :
Copying kernel to 0xa2000000 from 0x01f00000 (length 0x00100000)...done ## Booting image at a2000000 ...

     Image Name:   Angstrom/2.6.24/gumstix-custom-v
     Image Type:   ARM Linux Kernel Image (uncompressed)
     Data Size:    1124960 Bytes =  1.1 MB
     Load Address: a0008000
     Entry Point:  a0008000
Quoted 5 lines

OK

Starting kernel ...

ran out of input data

It looks like a memory layout issue, such as the bootloader not copying the kernel completely, or the places where the kernel is copied overlapping with something else like an initrd.

Signature · 1 line
                                                 Gilles.
#2 lore raw

Well, I did have a few issues with the initial kernel config - what I did to get the kernel working was to copy the original (i.e., the one that came with the Gumstix) defconfig file to the working directory (IIRC, ~/gumstix/gumstix-oe/tmp/work/....) as .config BEFORE running the command bitbake -c menuconfig gumstix-kernel. This will give you the default gumstix config to start off the kernel customization procedure.
After getting everything set up (including the removal of several features witch you might not really need - the kernel needs to be less than 1 Mb), I copied the new .config over to the defconfig file. Than I just went on to compile the kernel as usual (however, my bitbake recipe does have a few modifications to auto-patch adeos into the kernel).

BTW, keep in mind that you also need to install the xenomai userspace packages, that will take up around 7 Mb in your system.

I will be happy to help if you have any other specific questions - I have a fully custom gumstix distribution with Xenomai (it is a work in progress, but it does seem to work fine at the moment), with a working kernel and xenomai packages (stripped-out, no documentation, etc...) I would also be happy to receive any interesting info on this area (any new solutions, etc)
- not many people seem to be using the gumstix platform for real-time purposes, but it seems like an excellent choice. I do plan on organizing all of this information sooner or later on a webpage (the last step of my project involves porting the OROCOS plataform over to the XScale processor, and than getting it working on the gumstix - after thats done, I will document the entire process).

Hope this helps!
-Felipe Brandão Cavalcanti
LARA - Laboratory of Robotics and Automation Department of Electrical Engineering UnB - University of Brasília, Brazil
http://www.lara.unb.br/

Quoted 60 lines · Gilles Chanteperdrix
Quoted 9 lines · [email protected] wrote:

Hi,

I'm a student and I work on a project to get Xenomai running on a gumstix platform. I'm using a Verdex board and OpenEmbedded as my development environment. Prior to re-flashing the board, I'm testing the RAM image with Qemu.

I've patched the kernel with Adeos. I followed the instruction of Xenomai 2.4.3 for a linux kernel 2.6.24.

Please use the latest version from the 2.4 (stable) branch: Xenomai 2.4.6.1.

Quoted 5 lines

I've been careful to run the command :
bitbake gumstix-kernel -c menuconfig
to force the copy of

~/gumstix/gumstix-oe/tmp/work/gumstix-custom-verdex-angstrom-linux-gnueabi/gumstix-kernel-2.6.24-r1/linux-2.6.24/.config

Quoted 2 lines

to

~/gumstix/gumstix-oe/user.collection/packages/linux/gumstix-kernel-2.6.24/gumstix-custom-verdex/defconfig

Quoted 18 lines

Then, I tried to recompile the kernel source code (without that bitbake unpacked the archive of the previous version) bitbake gumstix-kernel -f -c compile

And create the new images
bitbake task-base-gumstix -c rebuild
bitbake gumstix-basic-image -c rebuild

I've made an image of RAM with the dd command to run in Qemu. But, when I'm trying to boot this image, the boot stop and said me :
Copying kernel to 0xa2000000 from 0x01f00000 (length 0x00100000)...done ## Booting image at a2000000 ...

     Image Name:   Angstrom/2.6.24/gumstix-custom-v
     Image Type:   ARM Linux Kernel Image (uncompressed)
     Data Size:    1124960 Bytes =  1.1 MB
     Load Address: a0008000
     Entry Point:  a0008000
Quoted 5 lines

OK

Starting kernel ...

ran out of input data

It looks like a memory layout issue, such as the bootloader not copying the kernel completely, or the places where the kernel is copied overlapping with something else like an initrd.

--
Gilles.

_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Signature · 4 lines
*º¤., ¸¸,.¤º*¨*¤., ¸¸,.¤º*¨*
Cavalkaf (aka Felipe) <[email protected]>
AIM: Cavalkaf | MSN: [email protected]
Check out <http://www.flickr.com/photos/rbcav2003/>
#3 lore raw
Quoted 3 lines · Felipe Brandão Cavalcanti

(...)
witch you might not really need - the kernel needs to be less than 1 Mb), I (...)

What is the point of imposing such a limit? The kernel itself has no such limit.

Signature · 1 line
                                                 Gilles.

A message that is not in the archive (sent off-list or not yet received): [email protected]

#5 lore raw

The Gumstix has a separate 1 Mb partition for the kernel - it has something to do with the bootloader and how it handles the kernel. I don't think anyone has bothered to make a custom version with a different partition scheme.

Quoted 13 lines · Gilles Chanteperdrix
Quoted 2 lines · Felipe Brandão Cavalcanti

(...)
witch you might not really need - the kernel needs to be less than 1 Mb),

I

Quoted 1 line

(...)

What is the point of imposing such a limit? The kernel itself has no such limit.

--
Gilles.

#6 lore raw
In reply to a message not in the archive
Quoted 4 lines · Felipe Brandão Cavalcanti

The Gumstix has a separate 1 Mb partition for the kernel - it has something to do with the bootloader and how it handles the kernel. I don't think anyone has bothered to make a custom version with a different partition scheme.

A 1mb limitation will become harder and harder, kernels are growing bigger.

Signature · 1 line
                                                 Gilles.