OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

> Create New Image For Zaurus
BerndS
post May 12 2009, 09:46 AM
Post #1





Group: Members
Posts: 66
Joined: 26-September 04
Member No.: 4,770



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
Go to the top of the page
 
+Quote Post
 
Start new topic
Replies
utx
post May 12 2009, 01:36 PM
Post #2





Group: Members
Posts: 135
Joined: 27-June 05
From: Prague, Czech Republic, Europe
Member No.: 7,468



QUOTE(BerndS @ May 12 2009, 07:46 PM) *
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.
Go to the top of the page
 
+Quote Post
BerndS
post May 13 2009, 10:47 AM
Post #3





Group: Members
Posts: 66
Joined: 26-September 04
Member No.: 4,770



Hi,

QUOTE(utx @ May 12 2009, 09:36 PM) *
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

Go to the top of the page
 
+Quote Post
utx
post May 13 2009, 12:27 PM
Post #4





Group: Members
Posts: 135
Joined: 27-June 05
From: Prague, Czech Republic, Europe
Member No.: 7,468



QUOTE(BerndS @ May 13 2009, 08:47 PM) *
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(BerndS @ May 13 2009, 08:47 PM) *
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.
Go to the top of the page
 
+Quote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 22nd September 2014 - 12:12 AM