[Splashy-devel] Initramfs bug understood

Tim Dijkstra newsuser at famdijkstra.org
Sat Sep 29 21:40:58 UTC 2007


On Sat, 29 Sep 2007 16:44:47 -0400
"Luis Mondesi" <lemsx1 at gmail.com> wrote:

> On 9/29/07, Tim Dijkstra <newsuser at famdijkstra.org> wrote:
> >
> > On Fri, 28 Sep 2007 16:49:00 -0400
> > "Luis Mondesi" <lemsx1 at gmail.com> wrote:
> >
> > > Elliot (from Rpath) made the patch they are using available to us. This
> > is a
> > > very simply 2 liner. I hope that this can help somebody out there get
> > around
> > > this problem.
> > >
> > > The other solution would be to switch to upstart ;-)
> >
> > IIRC, does have an option to not allocate a new VT. Can't we first
> > switch VT to 17 and then start libdirectfb?
> >
> > Could you maybe try that Luis?
> 
> 
> Yep. We tried that before. The problem is that  directfb does this:
> 
> 1. opens /dev/tty0 (hard coded) (see dfb_vt_initialize() in
> directfb-0.9.25.1/systems/fbdev/vt.c)
> 2. then it attempts to find a console available:  n = ioctl( dfb_vt->fd0,
> VT_OPENQRY, &dfb_vt->num );

But wouldn't the option
	[no-]vt-switch
              By  default  DirectFB  allocates  a  new  virtual  terminal  and
              switches to it.

Keep it from doing this. If not then it's a bug in directfb IMHO.

> 3. since we are launched from initramfs very early, tty2 is available and
> directfb attaches to that (I'd say even if you launch the process in a tty
> other than tty1, which seems to be the case now).

grts Tim
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/splashy-devel/attachments/20070929/3a5e062e/attachment.pgp 


More information about the Splashy-devel mailing list