View previous topic :: View next topic |
Author |
Message |
jordanwb l33t
Joined: 10 Jul 2008 Posts: 642 Location: Ottawa, Canada
|
Posted: Fri Feb 13, 2009 7:37 pm Post subject: Bootchart does not boot |
|
|
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 |
|
|
Gambit89 n00b
Joined: 28 Jan 2009 Posts: 22
|
Posted: Fri Feb 13, 2009 11:57 pm Post subject: |
|
|
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 |
|
|
jordanwb l33t
Joined: 10 Jul 2008 Posts: 642 Location: Ottawa, Canada
|
Posted: Sat Feb 14, 2009 1:42 am Post subject: |
|
|
I added that to the end of /etc/rc.conf (Using openRC) and rebooted. Bootchart still didn't start. |
|
Back to top |
|
|
Strowi l33t
Joined: 19 Aug 2003 Posts: 656 Location: Bonn
|
Posted: Tue Feb 17, 2009 9:48 am Post subject: |
|
|
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 |
|
|
jordanwb l33t
Joined: 10 Jul 2008 Posts: 642 Location: Ottawa, Canada
|
Posted: Tue Feb 17, 2009 2:38 pm Post subject: |
|
|
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 |
|
|
Letharion Veteran
Joined: 13 Jun 2005 Posts: 1344 Location: Sweden
|
Posted: Tue Feb 17, 2009 4:13 pm Post subject: |
|
|
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 |
|
|
Strowi l33t
Joined: 19 Aug 2003 Posts: 656 Location: Bonn
|
|
Back to top |
|
|
piponazo Tux's lil' helper
Joined: 09 Feb 2008 Posts: 102 Location: Córdoba - Spain
|
Posted: Wed Aug 12, 2009 11:03 pm Post subject: |
|
|
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 |
|
|
Letharion Veteran
Joined: 13 Jun 2005 Posts: 1344 Location: Sweden
|
Posted: Thu Aug 13, 2009 6:42 am Post subject: |
|
|
Did you follow gambits advice in post #2? |
|
Back to top |
|
|
piponazo Tux's lil' helper
Joined: 09 Feb 2008 Posts: 102 Location: Córdoba - Spain
|
Posted: Thu Aug 13, 2009 7:30 am Post subject: |
|
|
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 |
|
|
Letharion Veteran
Joined: 13 Jun 2005 Posts: 1344 Location: Sweden
|
Posted: Thu Aug 13, 2009 8:02 am Post subject: |
|
|
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 |
|
|
Strowi l33t
Joined: 19 Aug 2003 Posts: 656 Location: Bonn
|
Posted: Thu Aug 13, 2009 8:21 am Post subject: |
|
|
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 |
|
|
piponazo Tux's lil' helper
Joined: 09 Feb 2008 Posts: 102 Location: Córdoba - Spain
|
Posted: Sun Aug 16, 2009 6:20 pm Post subject: |
|
|
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 |
|
|
leludo n00b
Joined: 16 Jul 2008 Posts: 13 Location: Nantes, France
|
|
Back to top |
|
|
piponazo Tux's lil' helper
Joined: 09 Feb 2008 Posts: 102 Location: Córdoba - Spain
|
Posted: Tue Sep 01, 2009 6:17 pm Post subject: Re: Stop bootchart |
|
|
Thanks! This was the problem, i changed my login manager, but with GDM run correctly . _________________ La plaga tux! |
|
Back to top |
|
|
|