Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Bootchart does not boot
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
jordanwb
l33t
l33t


Joined: 10 Jul 2008
Posts: 642
Location: Ottawa, Canada

PostPosted: Fri Feb 13, 2009 7:37 pm    Post subject: Bootchart does not boot Reply with quote

I emerged boothcart and added "init=/sbin/bootchartd" to the kernel params like emerge told me, I rebooted and bootchart didn't start. The only mention of bootchart in dmesg is when it lists the kernel params. I'm using a Genkernel made kernel and initramfs.

Code:
default 1
timeout 10
splashimage=(hd1,0)/grub/splash.xpm.gz

title Gentoo Linux 2.6.28.4 - 64 bit
root (hd1,0)
kernel /kernel-genkernel-x86_64-2.6.28.4 root=/dev/ram0 real_root=/dev/mapper/system-gentoo64 dolvm quiet vga=0x31A
initrd /initramfs-genkernel-x86_64-2.6.28.4

title Gentoo Linux 2.6.28.4 - 64 bit - Bootchart
root (hd1,0)
kernel /kernel-genkernel-x86_64-2.6.28.4 root=/dev/ram0 real_root=/dev/mapper/system-gentoo64 dolvm quiet vga=0x31A init=/sbin/bootchartd
initrd /initramfs-genkernel-x86_64-2.6.28.4

title Windows XP Professional
rootnoverify (hd0,0)
makeactive
chainloader +1
Back to top
View user's profile Send private message
Gambit89
n00b
n00b


Joined: 28 Jan 2009
Posts: 22

PostPosted: Fri Feb 13, 2009 11:57 pm    Post subject: Reply with quote

You also have to set RC_BOOTCHART="yes" in /etc/conf.d/rc . Strangely enough, even though adding the init= to the kernel params is listed in the readme, bootchart still works without it...
Back to top
View user's profile Send private message
jordanwb
l33t
l33t


Joined: 10 Jul 2008
Posts: 642
Location: Ottawa, Canada

PostPosted: Sat Feb 14, 2009 1:42 am    Post subject: Reply with quote

I added that to the end of /etc/rc.conf (Using openRC) and rebooted. Bootchart still didn't start.
Back to top
View user's profile Send private message
Strowi
l33t
l33t


Joined: 19 Aug 2003
Posts: 656
Location: Bonn

PostPosted: Tue Feb 17, 2009 9:48 am    Post subject: Reply with quote

Hi,

i tried bootchart several weeks ago, but gave up after some time. All i could find out was that it is a problem with the initrd created by genkernel. the initrd created by genkernel automatically runs a defaults initrc ( or linuxrc) which is responsible for mounting the real_root etc...
As a result bootchart is not run. I tried by adding a couple of bootchart-related files to the initrd and added the option to genkerenl, but that didn't work as expected.
I guess i will have another try this week.
If you do not need the initrd (e.g. you are not using lvm or raid for root), you should be able to just boot without the initrd-line.

You also might want to take a look at the accoding ubuntu-packages if you are able enough, those might give you a hint which files to put into the initrd.
_________________
--
Linux & such ...
http://blog.hasnoname.de
Back to top
View user's profile Send private message
jordanwb
l33t
l33t


Joined: 10 Jul 2008
Posts: 642
Location: Ottawa, Canada

PostPosted: Tue Feb 17, 2009 2:38 pm    Post subject: Reply with quote

I have root on lvm. I can put in on my laptop, I don't have an initrd on there.

I just thought of something, I'm gonna go try it.

[Edit]Just what I thought. If you're using genkernel you need to use "real_init", not "init".

Now I need to figure out how to read the image.
Back to top
View user's profile Send private message
Letharion
Veteran
Veteran


Joined: 13 Jun 2005
Posts: 1344
Location: Sweden

PostPosted: Tue Feb 17, 2009 4:13 pm    Post subject: Reply with quote

jordanwb wrote:
I have root on lvm. I can put in on my laptop, I don't have an initrd on there.

I just thought of something, I'm gonna go try it.

[Edit]Just what I thought. If you're using genkernel you need to use "real_init", not "init".

Now I need to figure out how to read the image.


Let me know when you've figured it out, I wanna know ^^
Back to top
View user's profile Send private message
Strowi
l33t
l33t


Joined: 19 Aug 2003
Posts: 656
Location: Bonn

PostPosted: Tue Feb 17, 2009 9:44 pm    Post subject: Reply with quote

hi,

the initrd is a gzipped cpio archive, so you must
[code]
mv initrd initrd.gz
gunzip initrd.gz
and then extract the cpio ( http://cybertiggyr.com/gene/cpio-howto/ )
_________________
--
Linux & such ...
http://blog.hasnoname.de
Back to top
View user's profile Send private message
piponazo
Tux's lil' helper
Tux's lil' helper


Joined: 09 Feb 2008
Posts: 102
Location: Córdoba - Spain

PostPosted: Wed Aug 12, 2009 11:03 pm    Post subject: Reply with quote

Hi. I Have a similar problem but I haven't initrd because of I compiled my kernel manually. I have to say that before to upgrade to openrc bootchart inits correctly putting the variable RC_BOOTCHART="YES" in /etc/conf.d/rc. But now, whit openrc, I moved this variable to /etc/rc.conf and bootchart don't init.

Any suggestion?
_________________
La plaga tux! ;)
Back to top
View user's profile Send private message
Letharion
Veteran
Veteran


Joined: 13 Jun 2005
Posts: 1344
Location: Sweden

PostPosted: Thu Aug 13, 2009 6:42 am    Post subject: Reply with quote

Did you follow gambits advice in post #2?
Back to top
View user's profile Send private message
piponazo
Tux's lil' helper
Tux's lil' helper


Joined: 09 Feb 2008
Posts: 102
Location: Córdoba - Spain

PostPosted: Thu Aug 13, 2009 7:30 am    Post subject: Reply with quote

I've found a solution! When I booted the system with the init=... option in the grub, I saw some error message related with /mnt/ and I realized that I haven't this directory since I mount all my devices in /media. I tried to create the directory /mnt/ in my root partition and the next time I booted ... VOILÁ.

I seems more a bug with bootchart than a configuration error of mine , don't you think ?
_________________
La plaga tux! ;)


Last edited by piponazo on Thu Aug 13, 2009 8:43 am; edited 1 time in total
Back to top
View user's profile Send private message
Letharion
Veteran
Veteran


Joined: 13 Jun 2005
Posts: 1344
Location: Sweden

PostPosted: Thu Aug 13, 2009 8:02 am    Post subject: Reply with quote

If bootchart makes assumptions about where to find mounted stuff, then it might be a bug in bootchart, but it could also be a missing exported value that BC wants to read, or "by design".
Back to top
View user's profile Send private message
Strowi
l33t
l33t


Joined: 19 Aug 2003
Posts: 656
Location: Bonn

PostPosted: Thu Aug 13, 2009 8:21 am    Post subject: Reply with quote

hi,

i posted this somewhere else before, maybe on bugs.gentoo.org...
With genkernel you have to use real_init= instead of init=.
real_init is being executed after the pivot_root (change root from initrd to the harddisk).
_________________
--
Linux & such ...
http://blog.hasnoname.de
Back to top
View user's profile Send private message
piponazo
Tux's lil' helper
Tux's lil' helper


Joined: 09 Feb 2008
Posts: 102
Location: Córdoba - Spain

PostPosted: Sun Aug 16, 2009 6:20 pm    Post subject: Reply with quote

Some news about this subject ... I notice that some times, when I boot my system with bootchart (adding the appropriate line to grub), bootchart starts correctly but it doesn't stop when the system is loaded and it continues running. Once you run

Code:
sudo bootchartd stop


The execution is finalized and the chart is generated. There is some way to specify the moment in which it should stop ?.
_________________
La plaga tux! ;)
Back to top
View user's profile Send private message
leludo
n00b
n00b


Joined: 16 Jul 2008
Posts: 13
Location: Nantes, France

PostPosted: Wed Aug 26, 2009 8:21 am    Post subject: Stop bootchart Reply with quote

Hi,

Have a look at this for stopping bootchart automatically :
http://wiki.archlinux.org/index.php/Bootchart#Troubleshooting

ciao!
Back to top
View user's profile Send private message
piponazo
Tux's lil' helper
Tux's lil' helper


Joined: 09 Feb 2008
Posts: 102
Location: Córdoba - Spain

PostPosted: Tue Sep 01, 2009 6:17 pm    Post subject: Re: Stop bootchart Reply with quote

leludo wrote:
Hi,

Have a look at this for stopping bootchart automatically :
http://wiki.archlinux.org/index.php/Bootchart#Troubleshooting

ciao!


Thanks! This was the problem, i changed my login manager, but with GDM run correctly ;).
_________________
La plaga tux! ;)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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