Re: Default labeling and space for rebuilding the kernel.

2010-04-01 Thread Leon Meßner
On Wed, Mar 31, 2010 at 08:34:59AM -0400, Michael Powell wrote:
> Leon Meßner wrote:
> 
> > Hi,
> > 
> > if one uses the default labeling with current installer it is not
> > possible to rebuild the kernel (GENERIC). It fails on installing the
> > wlan.ko.

> > /: write failed, filesystem is full
> > install: /boot/kernel/wlan.ko.symbols: No space left on device
> [snip]
> 
> There has been some discussion lately about possibly changing the defaults. 
> If you become faced with having to reinstall jot down your current partition 
> sizes and adjust manually making / larger.

On production machines i have some 2G. This was just an as fast as
possible installation.
 
> Since it is full, if you intend to try and recover it will entail deleting 
> something. This could get tricky, especially if the new 'kernel' space is 
> what filled up. This would presuppose that the kernel.old area was already 
> written out successfully. If the machine will not boot successfully with the 
> new kernel it is imperative that kernel.old still be healthy in order to 
> recover. However, if the new kernel does actually boot, with the result 
> being that some modules are missing you may be able to delete the kernel.old 
> in order to buy space. Messing around with this can potentially be 
> problematic, for obvious reasons. A strong 'YMMV' is indicated here.

I just went the easy way and moved the old kernel away from / . I
wouldn't have done so if this machine would be very critical though.

> If you can get past that, you may be able to mitigate the / being too small. 
> Place STRIP= -s into /etc/make.conf and WITHOUT_PROFILE= true into 
> /etc/src.conf. The con of this is that you lose some debugging ability. The 
> pro is new kernels will now fit. I have two servers set up this way at home, 
> and one uses 91MB while the other uses 93MB of space. The 91MB one only has 
> a / of 200MB total, and is nearly half empty. Allows for rebuilding and 
> installing a new kernel without running out of space.

Hm, never used this file. Looks like it was introduced in FBSD7
somewhere. Looks reasonable to split parameters for /usr/src into a
different file than /etc/make.conf

thanks,
Leon


pgpvRV7QIQqB5.pgp
Description: PGP signature


Re: Default labeling and space for rebuilding the kernel.

2010-03-31 Thread Michael Powell
Leon Meßner wrote:

> Hi,
> 
> if one uses the default labeling with current installer it is not
> possible to rebuild the kernel (GENERIC). It fails on installing the
> wlan.ko.
> 
> Isn't that wrong somehow ?
> 
> ===> wi (install)
> install -o root -g wheel -m 555   if_wi.ko /boot/kernel
> install -o root -g wheel -m 555   if_wi.ko.symbols /boot/kernel
> ===> wlan (install)
> install -o root -g wheel -m 555   wlan.ko /boot/kernel
> install -o root -g wheel -m 555   wlan.ko.symbols /boot/kernel
> 
> /: write failed, filesystem is full
> install: /boot/kernel/wlan.ko.symbols: No space left on device
[snip]

There has been some discussion lately about possibly changing the defaults. 
If you become faced with having to reinstall jot down your current partition 
sizes and adjust manually making / larger.

Since it is full, if you intend to try and recover it will entail deleting 
something. This could get tricky, especially if the new 'kernel' space is 
what filled up. This would presuppose that the kernel.old area was already 
written out successfully. If the machine will not boot successfully with the 
new kernel it is imperative that kernel.old still be healthy in order to 
recover. However, if the new kernel does actually boot, with the result 
being that some modules are missing you may be able to delete the kernel.old 
in order to buy space. Messing around with this can potentially be 
problematic, for obvious reasons. A strong 'YMMV' is indicated here.

If you can get past that, you may be able to mitigate the / being too small. 
Place STRIP= -s into /etc/make.conf and WITHOUT_PROFILE= true into 
/etc/src.conf. The con of this is that you lose some debugging ability. The 
pro is new kernels will now fit. I have two servers set up this way at home, 
and one uses 91MB while the other uses 93MB of space. The 91MB one only has 
a / of 200MB total, and is nearly half empty. Allows for rebuilding and 
installing a new kernel without running out of space.

-Mike



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Default labeling and space for rebuilding the kernel.

2010-03-31 Thread Leon Meßner
Hi,

if one uses the default labeling with current installer it is not
possible to rebuild the kernel (GENERIC). It fails on installing the wlan.ko.

Isn't that wrong somehow ?

===> wi (install)
install -o root -g wheel -m 555   if_wi.ko /boot/kernel
install -o root -g wheel -m 555   if_wi.ko.symbols /boot/kernel
===> wlan (install)
install -o root -g wheel -m 555   wlan.ko /boot/kernel
install -o root -g wheel -m 555   wlan.ko.symbols /boot/kernel

/: write failed, filesystem is full
install: /boot/kernel/wlan.ko.symbols: No space left on device
*** Error code 71

Stop in /usr/src/sys/modules/wlan.
*** Error code 1

regards,
Leon


pgp1J9IYK1Sgu.pgp
Description: PGP signature


Re: Rebuilding the Kernel

2003-09-16 Thread chael

If you just need to rebuild your kernel, edit the config file and do only
this command under /usr/src/ dir:

make buildkernel installkernel KERNCONF=yourkernel

That's all. :-P

> On Tue, 16 Sep 2003 15:19:20 -0500, Charles Howse <[EMAIL PROTECTED]>
> wrote:
>
> >> > So I can get it right in my head (now there's a challenge).
> >>  The correct
> >> > steps for building a custom kernel is:
> >> >
> >> >   1) update sources
> >> >   2) rm -rf /usr/obj/*
> >> >   3) make buildworld
> >> >   4) edit kernel config file
> >> >   5) make buildkernel
> >> >   6) make installkernel
> >> >   7) reboot
> >> >   8) make installworld
> >> >   9) mergemaster
> >> >
> >> > Many Thanks
> >> >
> >> > Mark.
> >>
> >> I believe that's mostly it, but there are smaller steps that may be
> >> important inbetween, like doing `chflags' on /usr/obj/*
> >> before removing
> >> the files - all this is in the manual, though.  The steps outlined
> >> above are in the handbook - in that order.  Take another look at the
> >> handbook and if you still have problem reply with specific issues.
> >
> > Here's a real good article.
> > http://bsdvault.net/sections.php?op=viewarticle&artid=21
>
> # cd /usr/obj
>
> # chflags -R noschg *
>
> # rm -rf *
>
> One other step between removing the old /usr/obj and making buildworld:
>
> # mergemaster -p
>
> Jud
> ___
> [EMAIL PROTECTED] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
"[EMAIL PROTECTED]"
>
>

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Rebuilding the Kernel

2003-09-16 Thread Jud
On Tue, 16 Sep 2003 15:19:20 -0500, Charles Howse <[EMAIL PROTECTED]> 
wrote:

> So I can get it right in my head (now there's a challenge).
 The correct
> steps for building a custom kernel is:
>
>   1) update sources
>   2) rm -rf /usr/obj/*
>   3) make buildworld
>   4) edit kernel config file
>   5) make buildkernel
>   6) make installkernel
>   7) reboot
>   8) make installworld
>   9) mergemaster
>
> Many Thanks
>
> Mark.
I believe that's mostly it, but there are smaller steps that may be
important inbetween, like doing `chflags' on /usr/obj/*
before removing
the files - all this is in the manual, though.  The steps outlined
above are in the handbook - in that order.  Take another look at the
handbook and if you still have problem reply with specific issues.
Here's a real good article.
http://bsdvault.net/sections.php?op=viewarticle&artid=21
# cd /usr/obj

# chflags -R noschg *

# rm -rf *

One other step between removing the old /usr/obj and making buildworld:

# mergemaster -p

Jud
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


RE: Rebuilding the Kernel

2003-09-16 Thread Charles Howse
> > So I can get it right in my head (now there's a challenge). 
>  The correct 
> > steps for building a custom kernel is:
> > 
> >   1) update sources
> >   2) rm -rf /usr/obj/*
> >   3) make buildworld
> >   4) edit kernel config file
> >   5) make buildkernel
> >   6) make installkernel
> >   7) reboot
> >   8) make installworld
> >   9) mergemaster
> > 
> > Many Thanks
> > 
> > Mark.
> 
> I believe that's mostly it, but there are smaller steps that may be
> important inbetween, like doing `chflags' on /usr/obj/* 
> before removing
> the files - all this is in the manual, though.  The steps outlined
> above are in the handbook - in that order.  Take another look at the
> handbook and if you still have problem reply with specific issues.

Here's a real good article.
http://bsdvault.net/sections.php?op=viewarticle&artid=21


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Rebuilding the Kernel

2003-09-16 Thread Nathan Kinkade
On Tue, Sep 16, 2003 at 06:32:19PM +, Mark Luxton wrote:
> Hi all,
> 
> So I can get it right in my head (now there's a challenge).  The correct 
> steps for building a custom kernel is:
> 
>   1) update sources
>   2) rm -rf /usr/obj/*
>   3) make buildworld
>   4) edit kernel config file
>   5) make buildkernel
>   6) make installkernel
>   7) reboot
>   8) make installworld
>   9) mergemaster
> 
> Many Thanks
> 
> Mark.

I believe that's mostly it, but there are smaller steps that may be
important inbetween, like doing `chflags' on /usr/obj/* before removing
the files - all this is in the manual, though.  The steps outlined
above are in the handbook - in that order.  Take another look at the
handbook and if you still have problem reply with specific issues.

Nathan
-- 
gpg --keyserver pgp.mit.edu --recv-keys D8527E49


pgp0.pgp
Description: PGP signature


Re: Rebuilding the Kernel

2003-09-16 Thread Mark Luxton
Hi all,

So I can get it right in my head (now there's a challenge).  The correct 
steps for building a custom kernel is:

  1) update sources
  2) rm -rf /usr/obj/*
  3) make buildworld
  4) edit kernel config file
  5) make buildkernel
  6) make installkernel
  7) reboot
  8) make installworld
  9) mergemaster
Many Thanks

Mark.

PS:  Sorry for sending it twice, I hit the wong button and it was sent 
before I had chance to finish.

Original Message Follows

On Tue, Sep 16, 2003 at 01:55:09AM +0200, Danny Pansters wrote:

> > Not sure about your specific error, but it doesn't appear that you
> > are following the directions in the correct order.  I think it should
> > look more like:
> >
> > 1) update sources
> > 2) make buildworld
> > 3) edit kernel config file
> > 4) make buildkernel
> > 5) make installkernel
> > 6) reboot
> > 7) rm -rf /usr/obj/*
> > 8) make installworld
> > 9) mergemaster
> >
> > I've left out some intervening steps, but I think that this is more
> > the correct order of operations.
> >
> > Nathan
>
> rm -rf /usr/obj/* before buildworld not after. Your new world is in
> there :)
>
> Dan
yes!, thanks Dan.  i jotted down the steps to quickly and put step 7 way
out of order.  thanks for pointing this out.
Nathan
--
gpg --keyserver pgp.mit.edu --recv-keys D8527E49
<< attach3 >>
_
Find a cheaper internet access deal - choose one to suit you. 
http://www.msn.co.uk/internetaccess

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Rebuilding the Kernel

2003-09-16 Thread Mark Luxton
Hi all,

So I can get it right in my head (no theres a challenge).  The correct steps 
for building a custom kernel is:

  1) update sources
7) rm -rf /usr/obj/*
  2) make buildworld
  3) edit kernel config file
  4) make buildkernel
  5) make installkernel
  6) reboot
  8) make installworld
  9) mergemaster
Original Message Follows

On Tue, Sep 16, 2003 at 01:55:09AM +0200, Danny Pansters wrote:

> > Not sure about your specific error, but it doesn't appear that you
> > are following the directions in the correct order.  I think it should
> > look more like:
> >
> > 1) update sources
> > 2) make buildworld
> > 3) edit kernel config file
> > 4) make buildkernel
> > 5) make installkernel
> > 6) reboot
> > 7) rm -rf /usr/obj/*
> > 8) make installworld
> > 9) mergemaster
> >
> > I've left out some intervening steps, but I think that this is more
> > the correct order of operations.
> >
> > Nathan
>
> rm -rf /usr/obj/* before buildworld not after. Your new world is in
> there :)
>
> Dan
yes!, thanks Dan.  i jotted down the steps to quickly and put step 7 way
out of order.  thanks for pointing this out.
Nathan
--
gpg --keyserver pgp.mit.edu --recv-keys D8527E49
<< attach3 >>
_
Get Hotmail on your mobile phone http://www.msn.co.uk/msnmobile
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Rebuilding the Kernel

2003-09-16 Thread Nathan Kinkade
On Tue, Sep 16, 2003 at 01:55:09AM +0200, Danny Pansters wrote:

> > Not sure about your specific error, but it doesn't appear that you
> > are following the directions in the correct order.  I think it should
> > look more like:
> >
> > 1) update sources
> > 2) make buildworld
> > 3) edit kernel config file
> > 4) make buildkernel
> > 5) make installkernel
> > 6) reboot
> > 7) rm -rf /usr/obj/*
> > 8) make installworld
> > 9) mergemaster
> >
> > I've left out some intervening steps, but I think that this is more
> > the correct order of operations.
> >
> > Nathan
> 
> rm -rf /usr/obj/* before buildworld not after. Your new world is in 
> there :)
> 
> Dan

yes!, thanks Dan.  i jotted down the steps to quickly and put step 7 way
out of order.  thanks for pointing this out.

Nathan
-- 
gpg --keyserver pgp.mit.edu --recv-keys D8527E49


pgp0.pgp
Description: PGP signature


Re: Rebuilding the Kernel

2003-09-16 Thread Mark Luxton
Hi Lowell,

Thanks for the reply.

I'm using FreeBSD 5.1 and I created the config file to use with CVSup from 
the Handbook.  Below is my config file:

*default tag=.
*default host=cvsup.uk.FreeBSD.org
*default prefix=/usr
*default base=/usr/local/etc/cvsup
*default release=cvs delete use-rel-suffix compress
src-all

Many thanks

Mark

Original Message Follows
"Mark Luxton" <[EMAIL PROTECTED]> writes:
> I'm new to FreeBSD and this is my first attempt at building a kernel.
>
> I would like to know if I am going about it the right way (and some
> help on an error message that appears).
>
> Below are the steps that I am currently taking.  I am following the
> steps in the Handbook (Cutting Edge & Building and Installing a custom
> Kernel).
>
> Run CVSup and updated my source tree
> Run make buildworld
> Run make installworld
> Copy GENERIC to MYKERNEL
> Edit MYKERNEL
> Run make buildkernel KERNCONF=MYKERNEL
> Run make installkernel KERNCONF=MYKERNEL
That's not the correct order -- you need to build and install the
kernel in between buildworld and installworld.  I don't think that's
problem in this case, though.
> Everything works fine upto make buildkernel.  If I run this, even on
> an uneditted copy of GENERIC, I get an error saying:
>
> make: don't know how to make uart_bus_pccard.c. Stop
> *** Error code 2 ***
Hmm.  That file doesn't exist on my (4.x, i.e., -STABLE) system.  What
version are you running, and what version did you cvsup?
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"
_
Use MSN Messenger to send music and pics to your friends 
http://www.msn.co.uk/messenger

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Rebuilding the Kernel

2003-09-15 Thread Lowell Gilbert
"Mark Luxton" <[EMAIL PROTECTED]> writes:

> I'm new to FreeBSD and this is my first attempt at building a kernel.
> 
> I would like to know if I am going about it the right way (and some
> help on an error message that appears).
> 
> Below are the steps that I am currently taking.  I am following the
> steps in the Handbook (Cutting Edge & Building and Installing a custom
> Kernel).
> 
> Run CVSup and updated my source tree
> Run make buildworld
> Run make installworld
> Copy GENERIC to MYKERNEL
> Edit MYKERNEL
> Run make buildkernel KERNCONF=MYKERNEL
> Run make installkernel KERNCONF=MYKERNEL

That's not the correct order -- you need to build and install the
kernel in between buildworld and installworld.  I don't think that's
problem in this case, though.

> Everything works fine upto make buildkernel.  If I run this, even on
> an uneditted copy of GENERIC, I get an error saying:
> 
> make: don't know how to make uart_bus_pccard.c. Stop
> *** Error code 2 ***

Hmm.  That file doesn't exist on my (4.x, i.e., -STABLE) system.  What
version are you running, and what version did you cvsup?

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Rebuilding the Kernel

2003-09-15 Thread Nathan Kinkade
On Mon, Sep 15, 2003 at 07:53:36PM +, Mark Luxton wrote:
> Hi all,
> 
> I'm new to FreeBSD and this is my first attempt at building a kernel.
> 
> I would like to know if I am going about it the right way (and some help on 
> an error message that appears).
> 
> Below are the steps that I am currently taking.  I am following the steps 
> in the Handbook (Cutting Edge & Building and Installing a custom Kernel).
> 
>Run CVSup and updated my source tree
>Run make buildworld
>Run make installworld
>Copy GENERIC to MYKERNEL
>Edit MYKERNEL
>Run make buildkernel KERNCONF=MYKERNEL
>Run make installkernel KERNCONF=MYKERNEL
> 
> Everything works fine upto make buildkernel.  If I run this, even on an 
> uneditted copy of GENERIC, I get an error saying:
> 
>make: don't know how to make uart_bus_pccard.c. Stop
>*** Error code 2 ***
> 
> I've entered the error into Google, but it returned no items and I'm at a 
> loss (which isn't difficult).
> 
> Any ideas on what it's talking about?
> 
> Thanks for your help
> 
> Mark

Not sure about your specific error, but it doesn't appear that you are
following the directions in the correct order.  I think it should look
more like:

1) update sources
2) make buildworld
3) edit kernel config file
4) make buildkernel
5) make installkernel
6) reboot
7) rm -rf /usr/obj/*
8) make installworld
9) mergemaster

I've left out some intervening steps, but I think that this is more the
correct order of operations.

Nathan
-- 
gpg --keyserver pgp.mit.edu --recv-keys D8527E49


pgp0.pgp
Description: PGP signature


Rebuilding the Kernel

2003-09-15 Thread Mark Luxton
Hi all,

I'm new to FreeBSD and this is my first attempt at building a kernel.

I would like to know if I am going about it the right way (and some help on 
an error message that appears).

Below are the steps that I am currently taking.  I am following the steps in 
the Handbook (Cutting Edge & Building and Installing a custom Kernel).

   Run CVSup and updated my source tree
   Run make buildworld
   Run make installworld
   Copy GENERIC to MYKERNEL
   Edit MYKERNEL
   Run make buildkernel KERNCONF=MYKERNEL
   Run make installkernel KERNCONF=MYKERNEL
Everything works fine upto make buildkernel.  If I run this, even on an 
uneditted copy of GENERIC, I get an error saying:

   make: don't know how to make uart_bus_pccard.c. Stop
   *** Error code 2 ***
I've entered the error into Google, but it returned no items and I'm at a 
loss (which isn't difficult).

Any ideas on what it's talking about?

Thanks for your help

Mark

_
On the move? Get Hotmail on your mobile phone http://www.msn.co.uk/msnmobile
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Rebuilding the kernel......

2003-07-20 Thread Don Croyle
Denis <[EMAIL PROTECTED]> writes:

> I add new line in MYKERNEL that is:
> devicepcm #For sounds!
> And kernel says that it syntax error. But why?

Could you give us a little less information?

When you want help with this sort of problem, it's a good idea to
include the version of FreeBSD that you're running, the kernel
configuration file and the actual error messages.  And when you last
updated your sources and if you've done a buildworld since then.
-- 
I've always wanted to be a dilettante, but I've never quite been ready
to make the commitment.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Rebuilding the kernel......

2003-07-19 Thread Denis
I add new line in MYKERNEL that is:
device  pcm #For sounds!
And kernel says that it syntax error. But why?

Denis Bolotnov.

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"