Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 143666 - sys-apps/baselayout-1.12.4-r2: boot issues w/ USB/coldplug
Summary: sys-apps/baselayout-1.12.4-r2: boot issues w/ USB/coldplug
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-12 06:24 UTC by Toralf Förster
Modified: 2006-08-13 08:59 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
kernel config (.config,35.05 KB, text/plain)
2006-08-13 02:15 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2006-08-12 06:24:46 UTC
Booting with the new baselayout (at home, no router, I connect to the internet using a DSL modem and rppppoek) and the following setting :
RC_COLDPLUG="no"
RC_NET_STRICT_CHECKING="no"

lets the boot process hang while starting cupsd. I have an USB printer attached to the 2nd USB port of my hinkpad T41. At this point the USB mouse is also not working. Fortunately I can login b/c kdm is started, no other login option is possible at this point.

With 
RC_NET_STRICT_CHECKING="none"

the eth0 network is not brought up - with old baselayout I got at least a static ip address at home.

here's the network config:

n22 /etc/conf.d # cat /etc/conf.d/net
# /etc/conf.d/net
#

config_eth0=(
        "dhcp"
        "192.168.0.254/24"
        )

dhcpcd_eth0="-t 6"
dhcp_eth0="nontp"

Setting
RC_COLDPLUG="yes"
I can boot my system without any obviously problems and have:
n22 /etc/conf.d # ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 00:0D:60:7B:2D:9B
          inet addr:192.168.0.254  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST NOTRAILERS RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3914 errors:0 dropped:0 overruns:0 frame:0
          TX packets:316 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:518995 (506.8 Kb)  TX bytes:39104 (38.1 Kb)
          Base address:0x8000 Memory:c0240000-c0260000


n22 /etc/conf.d # emerge --info
Portage 2.1-r2 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.3.6-r4, 2.6.17-gentoo-r4 i686)
=================================================================
System uname: 2.6.17-gentoo-r4 i686 Intel(R) Pentium(R) M processor 1700MHz
Gentoo Base System version 1.12.4
ccache version 2.3 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium-m -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=pentium-m -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="ftp://mirror.icis.pcz.pl/gentoo/ http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/"
LINGUAS="de en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="x86 X aac acpi alsa apache2 arts asf avi berkdb bitmap-fonts bzip2 clamav cli crypt css cups dlloader dri dvd emboss encode exif fam fastbuild ffmpeg foomaticdb fortran gd gdbm gif gpm gstreamer gtk gtk2 imlib ipv6 isdnlog jai java javascript jimi joystick jpeg kde libg++ libwww live logrotate mad mbox mikmod mmx mmxext motif mozsvg mp3 mpeg mysql ncurses nls nptl nsplugin ogg opengl oss pam pcre pdf pdflib perl png pppd python qt3 qt4 quicktime readline real reflection rtc rtsp samba sdl session slp snmp spell spl sse sse2 ssl subversion svg tcltk tcpd theora tiff truetype truetype-fonts type1-fonts udev unicode userlocales vorbis win32codecs xanim xml xorg xv xvid zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux linguas_de linguas_en userland_GNU video_cards_vga video_cards_radeon"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Toralf Förster gentoo-dev 2006-08-12 06:43:45 UTC
With the following setting the "old" working behaviour is restored:

tfoerste@n22 ~ $ grep -e ^RC_COLD -e ^RC_HOT -e ^RC_PL /etc/conf.d/rc
RC_HOTPLUG="yes"
RC_COLDPLUG="no"
RC_PLUG_SERVICES="!net.eth0"


During boot process I can see the message that net.eth0 is starting, after 6 seconds it DHCPCD times out and a static address is assigned to that adapter. After that the normal boot process continues (starting dnsmasq, apache2, snort, ....)
Comment 2 SpanKY gentoo-dev 2006-08-12 17:29:23 UTC
so what sort of kernel configuration do you have ?  are those things built as kernel modules ?
Comment 3 Toralf Förster gentoo-dev 2006-08-13 02:15:01 UTC
Created attachment 94113 [details]
kernel config

Right, built as much as possible as modules.
I attached my kernel config here.
Here are my init levels:

tfoerste@n22 ~ $ rc-status boot
Runlevel: boot
 modules                         [ started  ]
 checkroot                       [ started  ]
 rmnologin                       [ started  ]
 consolefont                     [ started  ]
 checkfs                         [ started  ]
 bootmisc                        [ started  ]
 hostname                        [ started  ]
 localmount                      [ started  ]
 net.lo                          [ started  ]
 coldplug                        [ started  ]
 serial                          [ started  ]
 keymaps                         [ started  ]
 urandom                         [ started  ]
 clock                           [ started  ]


tfoerste@n22 ~ $ rc-status default
Runlevel: default
 sshd                            [ started  ]
 local                           [ started  ]
 net.eth0                        [ started  ]
 xdm                             [ started  ]
 netmount                        [ stopped  ]
 vixie-cron                      [ started  ]
 syslog-ng                       [ started  ]
 mysql                           [ started  ]
 acpid                           [ started  ]
 smartd                          [ started  ]
 cupsd                           [ started  ]
 apache2                         [ started  ]
 klive                           [ started  ]
 alsasound                       [ started  ]
 dnetc                           [ started  ]
 kmyfirewall                     [ started  ]
 sendmail                        [ started  ]
 ntpd                            [ stopped  ]
 clamd                           [ started  ]
 dnsmasq                         [ started  ]
 lisa                            [ stopped  ]
 snort                           [ started  ]
Comment 4 SpanKY gentoo-dev 2006-08-13 07:47:50 UTC
so let me see ... you have devices hooked up at boot, you have coldplugging turned off, you have your kernel built as modules, and you're wondering why things arent working ?

the point of coldplugging is to detect all the devices you had plugged in already and load the modules for them
Comment 5 Toralf Förster gentoo-dev 2006-08-13 08:59:20 UTC
(In reply to comment #4)
> so let me see ... you have devices hooked up at boot, you have coldplugging
> turned off, you have your kernel built as modules, and you're wondering why
> things arent working ?

With the old baselayout I had
RC_COLDPLUG="no"
without any problems, that's why I used the same value for the new one.

> the point of coldplugging is to detect all the devices you had plugged in
> already and load the modules for them
Right, I've turned it on now.

My actual problem is to reproduce the behaviour that the boot process doesn't continue after cupsd. (Un)fortunatly it's currently working (I'm not happy about an issue which cannot be reproduced.

I'll close this bug until I can reproduce the hang on the boot process.