GNUbie | 3 Mar 03:09
Picon

Re: A newbie question

Hello all,

Thank you to all who responded.

GNUbie

On Tue, Feb 26, 2008 at 11:09 PM, GNUbie <gnubie-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
Hello all,

Is there a way to freeze the versions of each packages you use to build your x86 Gentoo embedded system on your Gentoo build server? When I say freeze, I mean that there is a way to maintain a "stable" tree on your build system and all the upcoming updates will only be for bug fixes and security fixes.

Regards,

GNUbie

Janusz Syrytczyk | 5 Mar 09:36
Picon
Favicon

embedded stage update.

Hi,
I'm wondering if there is any chance (plan?) for embedded stages to get 
updated?

I mean those in standard directories of 
course: /experimental/x86/embedded/stages/*

Janusz
Ed Wildgoose | 5 Mar 11:15

Re: embedded stage update.

Janusz Syrytczyk wrote:
> Hi,
> I'm wondering if there is any chance (plan?) for embedded stages to get 
> updated?
>
> I mean those in standard directories of 
> course: /experimental/x86/embedded/stages/*
>
>   

Not exactly official, but I believe that you can get some newer stages here:

http://distributions.barfoo.org/gentoo/releases/x86/stages/uclibc/

These also include some hardened + uclibc stages, etc
Gareth McClean | 12 Mar 08:01
Picon

splash help


I'm stuck and I don't see what I am doing wrong.

I want a splash screen, so I emerged splash and the 'gentoo' theme. I configured a kernel and used genkernel
to perform the build for me.

I triple checked the kernel has the right framebuffer options, initrd contains the requested theme and I am
passing the parameters suggested by genkernel using grub.conf. Yet all that happens is the display
changes to a higher resolution mode, but no logo, just normal boot messages. 

A livecd does show a boot logo, so I know vesa modes are supported by the h/w platform.

Now I have read that two files 'splash_helper' and 'fbcondecor_helper' maybe required in /sbin on the
target system - can any one confirm if this is true?

If so I have another problem since 'splash_helper' does not exist anywhere on my build system (only a
splash_functions). This is why I just did not tried copying the files. 

Anyone have any thoughts?

G.

PS, everything is built from the current portage tree as of about two days ago.

Ned Ludd | 12 Mar 08:15
Picon
Favicon

Re: splash help


On Wed, 2008-03-12 at 07:01 +0000, Gareth McClean wrote:
> I'm stuck and I don't see what I am doing wrong.
> 
> I want a splash screen, so I emerged splash and the 'gentoo' theme. I configured a kernel and used genkernel
to perform the build for me.
> 
> I triple checked the kernel has the right framebuffer options, initrd contains the requested theme and I
am passing the parameters suggested by genkernel using grub.conf. Yet all that happens is the display
changes to a higher resolution mode, but no logo, just normal boot messages. 
> 
> A livecd does show a boot logo, so I know vesa modes are supported by the h/w platform.
> 
> 
> Now I have read that two files 'splash_helper' and 'fbcondecor_helper' maybe required in /sbin on the
target system - can any one confirm if this is true?
> 
> If so I have another problem since 'splash_helper' does not exist anywhere on my build system (only a
splash_functions). This is why I just did not tried copying the files. 
> 
> 
> Anyone have any thoughts?
> 
> 
> 
> G.
> 
> PS, everything is built from the current portage tree as of about two days ago.

Please don't hijack other peoples threads for reporting errors about
what appears has nothing to do with embedded.

Gareth McClean | 12 Mar 11:35
Picon

RE: splash help

Sorry I was not trying to hijack any thread and while I did not make it
clear, this is for a small embedded web appliance using a solid state drive,
geode processor, minimal memory, no keyboard/mouse/direct user interaction
and most importantly no moving parts.

The target OS has a very small footprint and has been built manually with
the exception of the kernel were I used genkernel simply to reduce
development time. I guess part of my question was did I strip something out
that is necessary.

Anyway I am sorry if I asked the question on the wrong list, I was just
frustrated last night (actually I still am!)

G.

-----Original Message-----
From: Ned Ludd [mailto:solar@...] 
Sent: 12 March 2008 07:15
To: gentoo-embedded@...
Subject: Re: [gentoo-embedded] splash help

<snip>

Please don't hijack other peoples threads for reporting errors about
what appears has nothing to do with embedded.

--

-- 
gentoo-embedded@... mailing list

Janusz Syrytczyk | 12 Mar 11:49
Picon
Favicon

Re: splash help

Wednesday 12 of March 2008 11:35:01 Gareth McClean napisaƂ(a):
> Sorry I was not trying to hijack any thread and while I did not make it
> clear, this is for a small embedded web appliance using a solid state
> drive, geode processor, minimal memory, no keyboard/mouse/direct user
> interaction and most importantly no moving parts.
>
> The target OS has a very small footprint and has been built manually with
> the exception of the kernel were I used genkernel simply to reduce
> development time. I guess part of my question was did I strip something out
> that is necessary.
>
> Anyway I am sorry if I asked the question on the wrong list, I was just
> frustrated last night (actually I still am!)

http://gentoo-wiki.com/Embedded_x86_Gentoo_%28live_CD_with_NTFS_write_support%29

here it is all about splash I needed. Actually, I remember that that part was 
quite ease, gotcha was when I had to switch on squashfs - then splash 
disappeared suddenly. Solution was obvious - files on initrd had to be the 
same also on squashfs.

--

-- 
Syrytczyk Janusz - Administrator serwerów
Centrum Informatyczne Uniwersytetu Opolskiego
Nr telefonu: +48 77 452-70-91
E-mail: jsyrytczyk@...
Marc Seil | 14 Mar 09:59
Picon

(cross) emerge to a remote fileystem

Hi,

First of all thanks for this valuable mailing list. It pushed us (some
colleagues and me) to select gentoo as the target distribution of choice
for a set of PC104 embedded systems we use. So far the passive reading
and the embedded gentoo handbook leaded to a bootable pc104 system with
gentoo on it. Nevertheless my passive reading could not solve some open
questions. I collected some ideas and would like to share them here. May
be someone can give me a hint or point me to a/some solution(s). I will
start with a sketch of the current set up of our embedded environment.

The target device is a PC104 with an x86 architecture (a via eden C3 [to
be more precise]). The compiling and development machine is a virtual
box image with gentoo. This virtual host is also an x86 architecture so
that real cross compiling is not necessary. The development host is
relying on a virtual machine to allow a deployment of the images across
different os host systems (linux, os x ...). So far the installation
worked well and the target system is booting without any errors. The
installation was quite straight forward. The target disk was attached to
the devel pc (with the virtual host) using an IDE2USB adapter. The disk
was mounted there to a custom directory /media/target. Through using the
portage variables ROOT and PORTAGE_CONFIG set to /media/target it was
possible to emerge all base and custom packages to the target hd. Here
the (cross) emerge command I used to install the different packages :

ROOT=/media/target PORTAGET_CONFIGROOT emerge --ask ..

By the way the portage (emerge) related configuration files (like
make.conf, make.profiles ....) where adjusted on the target device to
fit the needs of the PC104 system.

As conclusion it can be noted that this approach worked well, if the
target disk is mounted and attached localy to the development gentoo
system (the virtual machine). The emerge process and chroot operations
worked as presumed. But now. The idea was to mount the target disk from
the running target platform (PC104) into the virtual environment. The
mount process of choice was in my first try the user space filesystem
sshfs. Of course the target device was mounted as root to have
sufficient rights. Similar to the above described set up the target disk
was mounted to the directory /media/target. But contrary to the local
mounting facility (USB2IDE), emerge fails on the filesystem which was
mounted from a remote running system. The failure message I get is the
following:

* checking 14 files for package collisions
>>> Merging dev-libs/eventlog-0.2.5 to /media/target/
Traceback (most recent call last):
  File "/usr/bin/emerge", line 6971, in ?
    retval = emerge_main()
  File "/usr/bin/emerge", line 6965, in emerge_main
    myopts, myaction, myfiles, spinner)
  File "/usr/bin/emerge", line 6395, in action_build
    retval = mergetask.merge(pkglist, favorites, mtimedb)
  File "/usr/bin/emerge", line 3981, in merge
    return self._merge(mylist, favorites, mtimedb)
  File "/usr/bin/emerge", line 4259, in _merge
    prev_mtimes=ldpath_mtimes)
  File "/usr/lib/portage/pym/portage.py", line 4818, in doebuild
    vartree=vartree, prev_mtimes=prev_mtimes)
  File "/usr/lib/portage/pym/portage.py", line 5013, in merge
    mydbapi=mydbapi, prev_mtimes=prev_mtimes)
  File "/usr/lib/portage/pym/portage.py", line 9486, in merge
    mydbapi=mydbapi, prev_mtimes=prev_mtimes)
  File "/usr/lib/portage/pym/portage.py", line 9494, in _merge
    cleanup=cleanup, mydbapi=mydbapi, prev_mtimes=prev_mtimes)
  File "/usr/lib/portage/pym/portage.py", line 9032, in treewalk
    counter = self.vartree.dbapi.counter_tick(self.myroot,
mycpv=self.mycpv)
  File "/usr/lib/portage/pym/portage.py", line 6555, in counter_tick
    return self.counter_tick_core(myroot,incrementing=1,mycpv=mycpv)
  File "/usr/lib/portage/pym/portage.py", line 6631, in
counter_tick_core
    write_atomic(self._counter_path, str(counter))
  File "/usr/lib/portage/pym/portage_util.py", line 840, in write_atomic
    raise OperationNotPermitted(func_call)
portage_exception.OperationNotPermitted:
write_atomic('/media/target/var/cache/edb/counter')

I presume that the failure is due to this write_atomic operation (call).
With this in mind I collected some reflections and I would be glad if
they could be commented.

The mounted remote device can not be accessed in an exclusive way. I
presume that this is due to the fact that the target system is running
and the target OS will not allow this exclusive usage. This raises two
questions. 

1 - Is this due to the userspace filesystem (I think that this is quite
sure, otherwise a simple remote call could block the remote host.)

2 - Is there a filesystem or service to mount a filesystem an remotely
allow atomic operations on the filesystem. The only filesystem I know to
allow locking a remote file is NFS. Even if this somehow not an atomic
operation but at least it can lock a file for a defined process. Even if
this process is running on a remote machine. (I am not sure about this,
but this is some info which I have in an unstructured way in my brain)

3 - Should I take a look at the write operation and may be include an
option to replace the atomic operation? 

Any glue?

I will continue to dig for a solution. If I find one it will be posted
here if there is any interest on this topic.

by

Marc

###########################################

This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange.
For more information, connect to http://www.f-secure.com/
Peter Stuge | 14 Mar 16:09
Picon

Re: (cross) emerge to a remote fileystem

On Fri, Mar 14, 2008 at 09:59:40AM +0100, Marc Seil wrote:
> The idea was to mount the target disk from the running target
> platform (PC104) into the virtual environment.

Why?!

Maybe you would be better served by using catalyst to produce as many
system images as you like in as many places as you like without
needing to move a single disk around.

//Peter
Marc Seil | 14 Mar 20:31
Picon

Re: (cross) emerge to a remote fileystem

Hi Peter,

On Fri, 2008-03-14 at 16:09 +0100, Peter Stuge wrote:
> On Fri, Mar 14, 2008 at 09:59:40AM +0100, Marc Seil wrote:
> > The idea was to mount the target disk from the running target
> > platform (PC104) into the virtual environment.
> 
> Why?!
> 
> Maybe you would be better served by using catalyst to produce as many
> system images as you like in as many places as you like without
> needing to move a single disk around.
> 

I did not know the catalyst project so far. But I will give it a look.
Something I forgot to mention is, that the target pc104 systems do not
allow to boot from cdrom (not attached) or USB (only a dedicated USB
floppy drive). I still have to contact the manufacturer to get some
informations if a bios update could help in this case to boot from USB
(Pendrive or CDROM). 

Due to the fact that I can not boot from USB the idea to mount the
remote target filesystem seemed in my eyes a good alternative to limit
the interactions of attaching and detaching the ribbon cables,
especially during testing. 

Marc

> 
> //Peter

###########################################

This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange.
For more information, connect to http://www.f-secure.com/

Gmane