Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-embedded
Navigation:
Lists: gentoo-embedded: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-embedded@g.o
From: Marc Blumentritt <marc.blumentritt@...>
Subject: Re: baselayout-2, busybox and uclibc
Date: Sat, 13 Oct 2007 19:49:09 +0200
Hi,

I just wanted to report, how far I got and what problems I run into.

After adding some default /dev/ entries (especially console!) I managed
to boot into my system, but something went wild. To make a long story
short, if you want to mount into initramfs, you have to set correct
values for rootfs in fstab! In my case it looks like this:

# <fs> <mountpoint> <type> <opts>          <dump/pass>
/      /            tmpfs  noauto,noatime  0 0

Without noauto /etc/init.d/localmount will try to "remount" rootfs,
because it runs "mount -a". This results somehow in broken links, if
they point to a target, which has to be reached over "/", for example:
in /sbin is getty, which points to ../bin/busybox . To reach busybox,
you have to go over "/", which does not work with the broken remount of
rootfs! This breaks also the whole runlevel stuff, because files frim
/lib/.. try to use /etc/init.d/functions.sh .

After my first boot I realized that I had to create some dirs manually:
/proc, /sys and (of course) /root. Without /proc and /sys already in my
root file system, there were some error messages. I d'ont know, if it
would make sense to integrate these dirs (and perhaps /root) in
baselayout-2?

For device file creation I use the mdev script from Natanael's
alpine-baselayout (thanks for this!). I added the option, that it should
be started before every other script in boot to have all device files
ready. As far as I know, udev is done in sysinit of system. Perhaps rc
could look for mdev, if udev is not used?

Then there are some problems with certain boot scripts and busybox:

clock: There is the following message:
/sbin/hwclock: unrecognized option '--noadjfile'

-> busybox problem or other configuration of clock is required.

localmount: there is just thise message:
Segmentation fault
I don't know, where this comes from. Further investigation is required.

keymap and consolefont:
/lib/rcscripts/sh/runscript.sh: line 91:kbd_mode: not found
/bin/loadkeys not found

OK, missing kbd. Is it possible to set keymap in kernel? Or do I need
kbd? It brings in a lot of files (keymaps and consolefonts), which I do
not need! Can I just copy the required files from my uclibc-stage to the
embedded system?

net.eth0: I want to use udhcpc from busybox (set modules="udhcpc" in
net), but I get the following error:
/sbin/udhcpc: unrecognized option '--env'

-> busybox problem or other configuration of net is required.

If I set manually IP, I can use dropbear, but I have some problems with it:

1.) login: password of root is not recognized. Could be connected to
problem with keymap?

2.) Cannot use scp, because it is not there. How do I configure dropbear
to get scp? Or which would be even better support shfs? I looked into
the config file, but I'm not used to c config files. Can somebody give
me some advice?

OK, so far so good. System boots really fast! Only slow bios sucks.
Linux boots faster then bios needs to display grub.

When everything runs fine, I will add vdr stuff. The problem is, I will
not come around using X, because I need some hardware support for
watching mpeg2 stuff, which is only supported in X (at least at tv-out).

Regards,
Marc



-- 
gentoo-embedded@g.o mailing list


Replies:
Re: baselayout-2, busybox and uclibc
-- Marc Blumentritt
Re: baselayout-2, busybox and uclibc
-- Marc Blumentritt
Re: Re: baselayout-2, busybox and uclibc
-- Peter Stuge
References:
baselayout-2, busybox and uclibc
-- Marc Blumentritt
Navigation:
Lists: gentoo-embedded: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: Re: baselayout-2, busybox and uclibc
Next by thread:
Re: Re: baselayout-2, busybox and uclibc
Previous by date:
Re: Problem with powerpc-softfloat-linux-gnu
Next by date:
Re: Re: baselayout-2, busybox and uclibc


Updated Jun 17, 2009

Summary: Archive of the gentoo-embedded mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.