Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
init hangs after 'Caching service dependencies'
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Sparc
View previous topic :: View next topic  
Author Message
ipif
n00b
n00b


Joined: 05 Mar 2009
Posts: 6

PostPosted: Wed Mar 18, 2009 9:46 am    Post subject: init hangs after 'Caching service dependencies' Reply with quote

Hi!

I'm still trying to get Gentoo working on my embedded sparc soc. I had to patch a lot including uclibc to get init at least working. But now it stops half on its way.

Code:

VFS: Mounted root (nfs filesystem).
Freeing unused kernel memory: 144k freed
INIT: version 2.86 booting

Gentoo Linux; http://www.gentoo.org/
 Copyright 1999-2007 Gentoo Foundation; Distributed under the GPLv2

 * Mounting proc at /proc ...                                             [ ok ]
 * Mounting sysfs at /sys ...                                             [ ok ]
 * Using existing device nodes in /dev ...                                [ ok ]
 * Mounting devpts at /dev/pts ...                                        [ ok ]
 * Remounting root filesystem read/write ...                              [ ok ]
FATAL: Could not load /lib/modules/2.6.21.1/modules.dep: No such file or directory
 * Checking all filesystems ...                                           [ ok ]
 * Mounting local filesystems ...                                         [ ok ]
 * Mounting misc binary format filesystem ...                             [ ok ]
 * Activating (possible) swap ...                                         [ ok ]
 * Your TIMEZONE in /etc/conf.d/clock is still set to Factory!
 * Setting system clock using the hardware clock [UTC] ...Jan  1 00:00:15 modprobe: FATAL: Could not load
/lib/modules/2.6.2y

Jan  1 00:00:15 modprobe: FATAL: Could not load /lib/modules/2.6.21.1/modules.dep: No such file or directory


 * Cannot access the Hardware Clock via any known method.
Use the --debug option to see the details of our search for an access method.Cannot access the Hardware Clock via any
known .
Use the --debug option to see the details of our search for an access method.
 * Failed to set clock You will need to set the clock yourself
Jan  1 00:00:15 modprobe: FATAL: Could not load /lib/modules/2.6.21.1/modules.dep: No such file or directory

Jan  1 00:00:15 modprobe: FATAL: Could not load /lib/modules/2.6.21.1/modules.dep: No such file or directory

                                                                          [ !! ]
 * Updating environment ...                                               [ ok ]
 * Cleaning /var/lock, /var/run ...                                       [ ok ]
 * Wiping /tmp directory ...                                              [ ok ]
 * Caching service dependencies ...                                       [ ok ]

Thats it, here it stops.

This is my emerge --info
Quote:

Portage 2.1.6.7 (!/usr/local/portage/profiles/uclibc/sparc, gcc-4.1.2, unavailable, 2.6.28-tuxonice-r1 x86_64)
=================================================================
System uname: Linux-2.6.28-tuxonice-r1-x86_64-AMD_Turion-tm-_64_X2_Mobile_Technology_TL-58-with-glibc2.2.5
Timestamp of tree: Mon, 09 Mar 2009 01:45:01 +0000
ccache version 2.4 [disabled]
app-shells/bash: 3.2_p39
dev-java/java-config: 1.3.7-r1, 2.1.6-r1
dev-lang/python: 2.5.2-r7
dev-python/pycrypto: 2.0.1-r8
dev-util/ccache: 2.4-r7
dev-util/cmake: 2.4.8
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox: 1.2.18.1-r2
sys-devel/autoconf: 2.13, 2.63
sys-devel/automake: 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils: 2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool: 1.5.26
virtual/os-headers: 2.6.27-r2
ACCEPT_KEYWORDS="sparc"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -msoft-float -mtune=v8 -mcpu=v8 -ggdb"
CHOST="sparc-softfloat-linux-uclibc"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe -msoft-float -mtune=v8 -mcpu=v8 -ggdb"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks fixpackages nodoc noinfo noman nostrip parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.uni-erlangen.de/pub/mirrors/gentoo/"
LANG="de_DE.UTF-8"
LC_ALL="de_DE.UTF-8"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/usr/sparc-softfloat-linux-uclibc/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="minimal sparc zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="uclibc" INPUT_DEVICES="keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="dummy fbdev v4l"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

The toolchain has been generated with crossdev.

Here is a list of packages I've installed so far:
Quote:

sys-libs/ncurses-5.6-r2
sys-libs/zlib-1.2.3-r1
sys-apps/sed-4.1.5-r1
sys-apps/findutils-4.4.0
sys-apps/grep-2.5.1a-r1
sys-apps/gawk-3.1.6
sys-fs/static-dev-0.1
sys-process/procps-3.2.7
sys-apps/sysvinit-2.86-r10
virtual/init-0
sys-apps/baselayout-1.12.11.1
sys-apps/module-init-tools-3.4
app-shells/bash-3.2_p39
sys-apps/coreutils-6.10-r2
sys-libs/readline-5.2_p13
sys-devel/gdb-6.8-r1
sys-libs/e2fsprogs-libs-1.41.3-r1
sys-apps/util-linux-2.14.1
sys-fs/e2fsprogs-1.41.3-r1


I'm using an adapted kernel 2.6.21.1 from snapgear.

Thank you very much,
-jan
Back to top
View user's profile Send private message
Bones McCracker
Veteran
Veteran


Joined: 14 Mar 2006
Posts: 1611
Location: U.S.A.

PostPosted: Wed Mar 25, 2009 4:30 am    Post subject: Reply with quote

When you built your kernel, did you do a 'make modules_install'? Check /lib/modules for a folder with the name of your kernel. It should have your modules in it.

If it's there, try this, and then reboot if complete successfully (should only take a second):
Code:
update-modules -f


If it's not there, cd to the kernel source directory and run make modules_install again.

if it's still not there, I'd inspect the scripts that came with your kernel and see where it's putting them.
Back to top
View user's profile Send private message
ipif
n00b
n00b


Joined: 05 Mar 2009
Posts: 6

PostPosted: Fri Mar 27, 2009 1:54 pm    Post subject: standard input: unable to perform all requested operations Reply with quote

I recompiled my kernel with everything built in and also made a modules_install. Additionally I enabled all debug options in the init-scripts I could find, and now another message appears at the end:
Code:
VFS: Mounted root (nfs filesystem).
Freeing unused kernel memory: 144k freed
INIT: version 2.86 booting
klogctl: Invalid argument

Gentoo Linux; http://www.gentoo.org/
 Copyright 1999-2007 Gentoo Foundation; Distributed under the GPLv2

Press I to enter interactive boot mode

 * Mounting proc at /proc ...                                             [ ok ]
 * Mounting sysfs at /sys ...                                             [ ok ]
 * Using existing device nodes in /dev ...                                [ ok ]
 * Mounting devpts at /dev/pts ...                                        [ ok ]
 * Remounting root filesystem read/write ...                              [ ok ]
 * Checking all filesystems ...                                           [ ok ]
 * Mounting local filesystems ...                                         [ ok ]
 * Mounting misc binary format filesystem ...                             [ ok ]
 * Activating (possible) swap ...                                         [ ok ]
 * Setting system clock using the hardware clock [Local Time] ...
 * Cannot access the Hardware Clock via any known method.
Use the --debug option to see the details of our search for an access method.Cannot access the Hardware Clock via any
known .
Use the --debug option to see the details of our search for an access method.
 * Failed to set clock You will need to set the clock yourself
                                                                          [ !! ]
 * Configuring kernel parameters ...                                      [ ok ]
 * Updating environment ...                                               [ ok ]
 * Cleaning /var/lock, /var/run ...                                       [ ok ]
 * Cleaning /tmp directory ...                                            [ ok ]
stty: standard input: unable to perform all requested operations

After this the serial console appears to be dead, but the system is still pingable.

-jan
Back to top
View user's profile Send private message
Bones McCracker
Veteran
Veteran


Joined: 14 Mar 2006
Posts: 1611
Location: U.S.A.

PostPosted: Fri Mar 27, 2009 5:48 pm    Post subject: Reply with quote

I don't think you should need to have everything built-in. I think you should be able to load modules. If you hadn't done 'make modules_install' the first time, you could probably modularize many kernel features. That will reduce the size of the kernel substantially.

The synchronization of the hardware clock to system clock requires that you have the hardware clock set up properly in the kernel. For that, and your other question regarding the tty, I'm going to have to let someone else respond who is familiar with sparc. (I am not. I just spotted your question as being unanswered and tried to help out.)

If nobody helps you out with this within a day or so, you might try creating another thread with a more specific question about one or both of these next problems (kernel options for hardware clock and tty). Sorry I couldn't be of more help.
Back to top
View user's profile Send private message
ipif
n00b
n00b


Joined: 05 Mar 2009
Posts: 6

PostPosted: Sun Mar 29, 2009 4:07 pm    Post subject: Reply with quote

Hi BoneKracker!

Thank you very much for your help.
As this is an embedded system I have no hardware clock. Hopefully this is not a problem.

-jan
Back to top
View user's profile Send private message
Bones McCracker
Veteran
Veteran


Joined: 14 Mar 2006
Posts: 1611
Location: U.S.A.

PostPosted: Sun Mar 29, 2009 4:22 pm    Post subject: Reply with quote

ipif wrote:
Hi BoneKracker!

Thank you very much for your help.
As this is an embedded system I have no hardware clock. Hopefully this is not a problem.

-jan

No, just make sure you have any hardware clock stuff disabled in the kernel, and in the initscript (I think it's disabled by default in the initscript).
/etc/conf.d/clock
Code:
CLOCK_SYSTOHC="no"

or, if you are using baselayout2/openrc (which is unlikely), it would be in:
/etc/conf.d/hwclock
Code:

clock_systohc="NO"


I hope somebody that knows sparc is reading this though, because I know squat about that architecture. :?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Sparc All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum