View previous topic :: View next topic |
Author |
Message |
schrepfler n00b
Joined: 01 Mar 2004 Posts: 56 Location: Bologna, Italy
|
Posted: Fri May 06, 2005 9:09 pm Post subject: installing bootchart |
|
|
Hi, how do I set-up bootchart? I have a genkernel based kernel so init is init=/linuxrc, I have tried the /sbin/bootchartd and modified the /etc/conf.d/rc file but I still can't make it start on boot (I can run it after login. Do I have to do something else?
title=Gentoo Linux 2.6.11-r7
root (hd0,0)
kernel /kernel-2.6.11-gentoo-r7 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/hda3 splash=silent
initrd /initrd-2.6.11-gentoo-r7
title=Gentoo Linux 2.6.11-r7-bootchart
root (hd0,0)
kernel /kernel-2.6.11-gentoo-r7 root=/dev/ram0 init=/sbin/bootchartd ramdisk=8192 real_root=/dev/hda3 splash=silent
initrd /initrd-2.6.11-gentoo-r7 |
|
Back to top |
|
|
quat Guru
Joined: 18 Sep 2004 Posts: 316
|
Posted: Fri May 06, 2005 9:40 pm Post subject: Re: installing bootchart |
|
|
sometimes you need to create the folder /var/log/bootchart.
I had to do it cos without it didnt start
hth _________________ a mind is like a parachute, it's better when it's open |
|
Back to top |
|
|
schrepfler n00b
Joined: 01 Mar 2004 Posts: 56 Location: Bologna, Italy
|
Posted: Fri May 06, 2005 9:58 pm Post subject: Re: installing bootchart |
|
|
quat wrote: | sometimes you need to create the folder /var/log/bootchart.
hth |
It's been there, it's not it. |
|
Back to top |
|
|
quat Guru
Joined: 18 Sep 2004 Posts: 316
|
Posted: Sat May 07, 2005 10:57 am Post subject: Re: installing bootchart |
|
|
schrepfler wrote: | It's been there, it's not it. | sorry but I don't get it do you have it or not? if you don't have it, bootchart cannot create .lock file and something else (don't remeber what). in this case create it.
of course the result will be in /var/log. _________________ a mind is like a parachute, it's better when it's open |
|
Back to top |
|
|
schrepfler n00b
Joined: 01 Mar 2004 Posts: 56 Location: Bologna, Italy
|
Posted: Sat May 07, 2005 4:35 pm Post subject: |
|
|
the directory /var/log/bootchart with a .keep file in it exists.
I found a bootchart.tgz file in my /var/log though but I think it's the one that I created when I ran /sbin/bootchartd start as the chart indicated services already started.
Thx for the interest. |
|
Back to top |
|
|
quat Guru
Joined: 18 Sep 2004 Posts: 316
|
Posted: Sat May 07, 2005 5:20 pm Post subject: |
|
|
ok let's start from the beginning. I did such things
1. emerge bootchart (there is an ebuild on bugs.gentoo.org I think)
2. add Code: | RC_USE_BOOTCHART="yes" | to /etc/conf.d/rc
3. add init=/sbin/bootchartd to grub
the only things which we have different is that I don't have initrd.
hth _________________ a mind is like a parachute, it's better when it's open |
|
Back to top |
|
|
schrepfler n00b
Joined: 01 Mar 2004 Posts: 56 Location: Bologna, Italy
|
Posted: Sat May 07, 2005 8:02 pm Post subject: |
|
|
Perhaps bootchart doesn't work well with genkernel kernels?
Can there be two init=/asdasd entires in the kernel param? is init=/linuxrc necessary? |
|
Back to top |
|
|
quat Guru
Joined: 18 Sep 2004 Posts: 316
|
Posted: Sat May 07, 2005 8:42 pm Post subject: |
|
|
schrepfler wrote: | Perhaps bootchart doesn't work well with genkernel kernels?
Can there be two init=/asdasd entires in the kernel param? is init=/linuxrc necessary? | maybe i'm wrong but AFAIK standard is init=/sbin/init. I don't think that it's possible to have two init=...
for example bootchart by default starts init. if you want to change it to e.g. initng but still to use bootchart, you need edit bootchart script (/sbin/bootchartd) and replace init by initng.
I don't know what are the differences between genkernel versions and manual versions cos I have never used genkernel.
just check if it is gonna boot without initrd and all other stuff i.e., put in grub such option Code: | title=Gentoo Rocks
root (hd0,0)
kernel /kernel-2.6.11-gentoo-r7 root=/dev/hda3 init=/sbin/bootchartd splash=silent |
_________________ a mind is like a parachute, it's better when it's open |
|
Back to top |
|
|
normen n00b
Joined: 19 Jul 2005 Posts: 8 Location: Oakland, CA
|
Posted: Thu Jul 21, 2005 3:49 pm Post subject: Re: installing bootchart |
|
|
schrepfler wrote: | Hi, how do I set-up bootchart? |
Has anyone ever found a solution for this? I recently installed initng and tried to get bootchart to work to see what is actually happening during boot, but I seem to have the same problem.
I emerged bootchart, added RC_USE_BOOTCHART="yes" to /etc/conf.d/rc, edited the bootchartd to start initng instead of init, and edited the grub.conf to show init=/sbin/bootchartd, yet upon boot, not initng is started, instead it seems to be defaulting to init. All there is in the /var/log/bootchart directory is an empty .keep file.
Right before init is executed, a brief message is displayed saying something like "/dev/null cannot be found". Looking at the bootchart code, this is where the tmpfs is mounted. It seems that the problem is there somewhere...
Any ideas? _________________ The manual said "Windows XP or better" ... so I used Linux. |
|
Back to top |
|
|
neuron Advocate
Joined: 28 May 2002 Posts: 2371
|
|
Back to top |
|
|
normen n00b
Joined: 19 Jul 2005 Posts: 8 Location: Oakland, CA
|
Posted: Thu Jul 21, 2005 6:40 pm Post subject: |
|
|
neuron wrote: | http://initng.thinktux.net/index.php/Documentation_making_a_bootchart
tried that? |
That was one of the first attempts I made. No joy whatsoever... _________________ The manual said "Windows XP or better" ... so I used Linux. |
|
Back to top |
|
|
normen n00b
Joined: 19 Jul 2005 Posts: 8 Location: Oakland, CA
|
Posted: Fri Jul 22, 2005 4:04 pm Post subject: |
|
|
I finally got it to work, and as usual, it was the most obvious that I overlooked. The script /sbin/bootchartd (or /sbin/bootchartdng) needs to be executable. _________________ The manual said "Windows XP or better" ... so I used Linux. |
|
Back to top |
|
|
tnt Veteran
Joined: 27 Feb 2004 Posts: 1222
|
Posted: Wed Jul 27, 2005 1:24 pm Post subject: |
|
|
Will bootchart be added in the portage someday? _________________ gentoo user |
|
Back to top |
|
|
bonbons Apprentice
Joined: 04 Sep 2004 Posts: 250
|
Posted: Wed Jul 27, 2005 1:46 pm Post subject: Re: installing bootchart |
|
|
schrepfler wrote: | Hi, how do I set-up bootchart? I have a genkernel based kernel so init is init=/linuxrc, I have tried the /sbin/bootchartd and modified the /etc/conf.d/rc file but I still can't make it start on boot (I can run it after login. Do I have to do something else?
title=Gentoo Linux 2.6.11-r7
root (hd0,0)
kernel /kernel-2.6.11-gentoo-r7 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/hda3 splash=silent
initrd /initrd-2.6.11-gentoo-r7
title=Gentoo Linux 2.6.11-r7-bootchart
root (hd0,0)
kernel /kernel-2.6.11-gentoo-r7 root=/dev/ram0 init=/sbin/bootchartd ramdisk=8192 real_root=/dev/hda3 splash=silent
initrd /initrd-2.6.11-gentoo-r7 | You will need to somehow add bootchartd to your initrd I guess... |
|
Back to top |
|
|
|