[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: problem in making image.romfs with genromfs_elinux



Normally a copy of the jffs image is stored in
$EROOT/usr/etc/defaultfiles/
(the file jimage) so that it's possible to do a
factory default and restore the JFFS contents
if needed.

If you don't want that, edit packages/productimages/2MB/imgspec
and uncomment the rows I added ##### to below.

echo *** Working with flash2 ***
new flash2.img
new image.jffs
do jffs /mnt/flash
add image.jffs flash2.img
align flash2.img 0x50000
####new eroot/usr/etc/defaultfiles/jimage
####add image.jffs eroot/usr/etc/defaultfiles/jimage

NOTE: This will prevent you from doing a factory default
and restore settings to a known state unless you modify
$EROOT/usr/rc.d/rc.factorydefault to do it in some other way
(e.g. copy default versions of /etc/inittab and /etc/network/*
or something)

It will still not fit if you do "mkprod -o" ?

/Johan

----- Original Message -----
From: Prabhat Avasare <avasare@xxxxxxx.be>
To: <dev-etrax@xxxxxxx.com>
Sent: Tuesday, March 13, 2001 18:54
Subject: problem in making image.romfs with genromfs_elinux


> Hi!
>
> I am having a problem in making image.romfs
> with genromfs_elinux during mkprod. The problem
> is that image.romfs is also including /mnt/flash/*
> directories which ideally it should not.
>
> I am filling up /mnt/flash with some of my application
> programs before doing mkprod. My files/directories
> under /mnt/flash/ are copied in image.jffs(which is
> desired), but also in image.romfs. I checked up with
> romfs_meta.txt files.
>
> $EROOT % ls -l
> drwxr-xr-x  12 l2f      l2f          1024 Mar 13 18:17 ./
> drwxr-xr-x   5 l2f      l2f          1024 Mar 13 18:20 ../
> -rw-r--r--   1 l2f      l2f          2856 Mar 13 18:17 .1_5M128i.img
> -rw-r--r--   1 l2f      l2f          2477 Mar 13 18:17 .4_0M128i.img
> -rw-r--r--   1 l2f      l2f          3020 Mar 13 18:17 .500k128i.img
> drwxr-xr-x   3 l2f      l2f          2048 Mar 13 18:18 bin/
> drwxr-xr-x   2 l2f      l2f          1024 Mar 13 18:18 dev/
> lrwxrwxrwx   1 l2f      l2f            13 Mar 13 18:17 etc ->
mnt/flash/etc/
> drwxr-xr-x   4 l2f      l2f          1024 Mar 13 18:17 include/
> drwxr-xr-x   2 l2f      l2f          1024 Mar 13 18:18 lib/
> drwxr-xr-x   4 l2f      l2f          1024 Mar 13 17:04 man/
> drwxr-xr-x   3 l2f      l2f          1024 Mar 13 17:42 mnt/
> drwxr-xr-x   2 l2f      l2f          1024 Mar 13 17:04 proc/
> -rw-r--r--   1 l2f      l2f            46 Mar 13 18:18 romfs_meta.txt
> drwxr-xr-x   2 l2f      l2f          1024 Mar 13 18:17 sbin/
> drwxr-xr-x   2 l2f      l2f          1024 Mar 13 17:04 tmp/
> drwxr-xr-x   6 l2f      l2f          1024 Mar 13 17:42 usr/
> lrwxrwxrwx   1 l2f      l2f             7 Mar 13 18:17 var -> tmp/var
>
> $EROOT % cat romfs_meta.txt
> Ignore: lib.noopt
> Ignore: include
> Ignore: man
>
> $EROOT % cat mnt/romfs_meta.txt
> Ignorecontents: flash
>
> I think that image.romfs is managing to ignore $EROOT/include,
> but not $EROOT/mnt/flash/* Is there anything that I am missing
> in order to do so?
>
> How can I solve this problem? If I start putting things
> in /mnt/flash/, my image.romfs grows along with image.jffs
> making it difficult to fit things in a 2 MB image.
>
> I hope I am able to communicate the problem well.
>
> Best wishes,
> -- prabhat
>
> --
> Prabhat Avasare    IMEC (DESICS)          email: avasare@xxxxxxx.be
>                    Kapeldreef 75            Tel: +32-16-288123
>                    B3001 Leuven             Fax: +32-16-281515
>                    Belgium.
>