Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 06-07-2010, 06:28 PM   #1
LQ Newbie
Registered: Jun 2010
Posts: 2

Rep: Reputation: 0
glibc included inside initramfs causes reboot

I'm attempting to build a linux appliance. The main root file system will be the initramfs image.

I've got everything else working except for this problem. It seems as soon as I install the glibc 32-bit libraries in the initramfs image, during boot it will automatically reboot on me.

System software using:

binutils: 2.18
gcc: 4.2.4
glibc: 2.7
kernel: 2.6.24

Here is what happens when it boots:

1. Successful decompression of linux kernel
2. Now says "booting the kernel"
3. And then it reboots a few seconds later

If I remove the glibc libraries, the .so files, it will boot normally. For those wondering, no it doesn't even get to the point where I see [0.00000] on the side. It just reboots as if it has crashed. But why would including glibc cause that?

This is also a multilib system, so I need the 32-bit and 64-bit c libraries of glibc included.
Old 08-08-2010, 03:37 AM   #2
Registered: May 2001
Posts: 29,358
Blog Entries: 55

Rep: Reputation: 3545Reputation: 3545Reputation: 3545Reputation: 3545Reputation: 3545Reputation: 3545Reputation: 3545Reputation: 3545Reputation: 3545Reputation: 3545Reputation: 3545
Originally Posted by carlatpg View Post
I'm attempting to build a linux appliance. The main root file system will be the initramfs image.
Which HOWTO or what steps do you use to build yourself the initramfs image? And do you use any particular boot args? And does this happen with all Glibc versions? And how did you prep Glibc for living in the initramfs? And would you need Glibc at all or could using say Diet libc plus Busybox work for you? If none of this provides any clues then there may be two completely different approaches: either take a "known good" configuration from a Live CD of a distribution release that matches your requirements as closely as possible or use a remote kernel debugger in search for clues. The first may or may not provide you with a base image to work with, the second may take up more of your time than you would be willing to invest. If you go the debugger way and only have one machine at your disposal then it would be good to know that from Workstation 6.0 on VMWare supports debugging by adding a "debugStub.listen.guest64=1" to the guests configuration file (*.vmx) and attaching gdb to the port mentioned in boot up messages. You do need to rebuild the kernel to include symbols to aid debugging and you should read the GDB documentation

Old 08-09-2010, 12:49 PM   #3
LQ Newbie
Registered: Jun 2010
Posts: 2

Original Poster
Rep: Reputation: 0
Found the problem. Glibc has international language support but the kernel 2.6.24 does not have it integrated yet. The moment I moved to kernel it boots fine.

I did get it all working in using buildroot with an external toolchain Crosstool-NG that allowed me to select glibc.


crash, glibc, initramfs, reboot

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
problem installing glibc-2.3.2-4.80.i686, glibc-common-2.3.2-4.80.8.i386.rpm martianpackets Red Hat 8 05-01-2009 03:22 PM
glibc-compiling loves to make errors? ok, let me post mine here: glibc 2.9 me-$-on Linux From Scratch 7 04-11-2009 06:22 PM
can't reboot xen in slackware 12 after compiling glibc sysslack_linux Slackware 2 10-05-2007 05:10 PM
iptables inside client to inside host with outside DNS or IP - Help! linuxhelp2 Linux - Networking 1 10-15-2005 06:19 AM
Replacing glibc using linuxthreads for glibc using nptl (native positx thread library CestusGW Linux From Scratch 4 01-20-2005 07:26 AM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:07 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration