Author Topic: Create New Image For Zaurus  (Read 9519 times)

BerndS

  • Jr. Member
  • **
  • Posts: 65
    • View Profile
Create New Image For Zaurus
« on: May 12, 2009, 01:46:36 pm »
Hi,

I've successfully installed the OpenEmbedded development environment and compiled an image using "bitbake opie-image"

Now I want to create my own image with some more packages -- can anybody point me to a documentation about how to do that?

Thanks

Bernd

utx

  • Full Member
  • ***
  • Posts: 135
    • View Profile
    • http://www.penguin.cz/~utx/zaurus/
Create New Image For Zaurus
« Reply #1 on: May 12, 2009, 05:36:28 pm »
Quote from: BerndS
Now I want to create my own image with some more packages -- can anybody point me to a documentation about how to do that?

Look at recipes/images. Most images consists from chain of tasks from recipes/tasks, ant these task recipes may contain another tasks or package recipes.

Why you need a special image? Isn't installation of a standard and installation of needed packages from feeds sufficient for you? Using standard image makes possible problems simpler to reproduce.

BerndS

  • Jr. Member
  • **
  • Posts: 65
    • View Profile
Create New Image For Zaurus
« Reply #2 on: May 13, 2009, 02:47:20 pm »
Hi,

Quote from: utx
Look at recipes/images. Most images consists from chain of tasks from recipes/tasks, ant these task recipes may contain another tasks or package recipes.

Hmm, what I did until now is:

create a new description in the image directory

cp  packages/images/opie-image.bb  packages/images/my-opie-image.bb

In my-opie-image.bb I added "task-my-opie" to the IMAGE_INSTALL variable:

IMAGE_INSTALL = "task-base-extended task-opie-base task-opie-base-applets \
          task-opie-base-inputmethods task-opie-base-apps \
          task-opie-base-settings task-opie-base-decorations \
          task-opie-base-styles task-opie-base-pim \
          task-opie-extra-settings \
          task-opie-bluetooth task-opie-irda \
                    task-my-opie"

Then I created the task file task-my-opie.task:

$ cat packages/tasks/task-my-opie.bb
DESCRIPTION = "My Tasks for OPIE"
SECTION = "opie/base"
LICENSE = "MIT"

PR = "r12"

inherit task

PROVIDES = "task-my-opie"

PACKAGES = "opie-tetrix opie-solitaire opie-sheet opie-rdesktop \
            opie-notes opie-notesapplet opie-keypebble opie-ftp \
            opie-embeddedkonsole opie-calculator opie-write opie-zsafe \
            qpdf2 opie-wellenreiter zuc \
            screen \
            ldd \
            apache2 \
            cvs \
            e2fsprogs \
            dosfstools \
            bzip2 \
            gzip \
            grep \
            kexec-tools \
            less \
            lsof \
            mc \
            nfs-utils \
            procps \
            nmap \
            qpe-nmap \
            rsync \
            tar \
            tcpdump \
            glibc-localedata-de-de+euro \
            tzdata-europe \
            glibc-binary-localedata-de-de \
            file \
            util-linux-swaponoff"


RDEPENDS_task-opie-everything := "${PACKAGES}"

PACKAGES += "task-my-opie"

#
# Dependencies
#

# Recommend both landscape and portrait backgrounds
#RRECOMMENDS_task-my-opie = ""


And did a

 bitbake my-opie-iamge

The result was a working image --but without my added apps ...

Quote
Why you need a special image? Isn't installation of a standard and installation of needed packages from feeds sufficient for you? Using standard image makes possible problems simpler to reproduce.

In principle that would be enough : I've some scripts to customize my OPIE environment after the installation (e.g. change config files & and add packages).

But unfortunately kexec-boot does not find the image on the internal ram anymore if I install all packages in one go . It does find the image on the internal ram if I install a small number of packages (about 5); reboot the Zaurus, install the next 5 packages , etc.

I don't know the reason for this behaviour (I already asked on the openembbeded mailing list but did not get a solution for the problem).

That's why I want to have a image that already contains my customizations.

regards

Bernd

utx

  • Full Member
  • ***
  • Posts: 135
    • View Profile
    • http://www.penguin.cz/~utx/zaurus/
Create New Image For Zaurus
« Reply #3 on: May 13, 2009, 04:27:02 pm »
Quote from: BerndS
In my-opie-image.bb I added "task-my-opie" to the IMAGE_INSTALL variable:

The result was a working image --but without my added apps ...
I guess that you need to to add task-my-opie to DEPENDS section as well. But I never customized the image.

Quote from: BerndS
Quote
Why you need a special image? Isn't installation of a standard and installation of needed packages from feeds sufficient for you? Using standard image makes possible problems simpler to reproduce.
But unfortunately kexec-boot does not find the image on the internal ram anymore if I install all packages in one go . It does find the image on the internal ram if I install a small number of packages (about 5); reboot the Zaurus, install the next 5 packages , etc.

I don't know the reason for this behaviour (I already asked on the openembbeded mailing list but did not get a solution for the problem).
It sounds like a problem either with JFFS2 filesystem or with kexecboot. But I know nothing about these two.

agosine

  • Full Member
  • ***
  • Posts: 123
    • View Profile
Create New Image For Zaurus
« Reply #4 on: June 11, 2009, 11:11:32 pm »
Hello Bernd.  Are you still working on compiling Opie?  I am trying to find a copy of 2008.1 and it seems compiling my own is the only way.  Any advice?
SL5500 running nothing.  Will not hold a charge.  =(
C1000 running Sharp ROM

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
Create New Image For Zaurus
« Reply #5 on: June 13, 2009, 08:00:16 am »
Build your own here (without OpenEmbedded):

http://amethyst.openembedded.net/~koen/narcissus/
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

BerndS

  • Jr. Member
  • **
  • Posts: 65
    • View Profile
Create New Image For Zaurus
« Reply #6 on: June 13, 2009, 08:31:34 am »
Hi,

Quote from: agosine
Hello Bernd.  Are you still working on compiling Opie?  I am trying to find a copy of 2008.1 and it seems compiling my own is the only way.  Any advice?

yes, more or less ... Unfortunately I always get an error if I try to create a new image for 2007.12 or 2008.1. So from time to time I refresh my development tree and do a bitbake opie-image to see if it now works . Until now it did not work

But at this time I do not have the time to investigate why it does not work.

regards

Bernd

agosine

  • Full Member
  • ***
  • Posts: 123
    • View Profile
Create New Image For Zaurus
« Reply #7 on: June 15, 2009, 05:09:22 pm »
Quote from: Capn_Fish
Build your own here (without OpenEmbedded):

http://amethyst.openembedded.net/~koen/narcissus/

I have tried it, but for some reason my Opie images always error out.  Have not spent enough time trying to figure out what I am missing.
SL5500 running nothing.  Will not hold a charge.  =(
C1000 running Sharp ROM