Rebuild instructions for amd64 systems

View: New views
6 Messages — Rating Filter:   Alert me  

Rebuild instructions for amd64 systems

by Richard Gehlbach :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I am installing FreeBSD 7.2 / amd64 on a new server (HP DL370 G6) with 2
quad Xeon processors and 16GB memory.  I have worked with the i386
versions since version 3.x, but this is the first server large enough to
need amd64.

I have been trying to determine the correct procedures for rebuilding
the world and kernel.  I have not been able to find a location that had
step by step instructions, similar to the handbook, for properly working
with the amd64 version.  Searches have turned up so many fragments of
what needs to be done, that I cannot feel confident trying to put the
pieces together.

I need instructions for the command line compile options, conf file
additions, and any special instructions.

If anyone can point me to some applicable links or some specific
instructions, it would be appreciated.

TIA
Richard

--
Richard D. Gehlbach                   Gehlbach Consulting Services
rdgehlba@...                 3321 Pepperhill Ct.
859.269.6658  Fax 859.266.7446        Lexington, KY  40502


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

Re: Rebuild instructions for amd64 systems

by Galactic_Dominator :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thu, Oct 29, 2009 at 10:52 PM, Richard Gehlbach <rdgehlba@...>wrote:

> I am installing FreeBSD 7.2 / amd64 on a new server (HP DL370 G6) with 2
> quad Xeon processors and 16GB memory.  I have worked with the i386 versions
> since version 3.x, but this is the first server large enough to need amd64.
>
> I have been trying to determine the correct procedures for rebuilding the
> world and kernel.  I have not been able to find a location that had step by
> step instructions, similar to the handbook, for properly working with the
> amd64 version.  Searches have turned up so many fragments of what needs to
> be done, that I cannot feel confident trying to put the pieces together.
>
> I need instructions for the command line compile options, conf file
> additions, and any special instructions.
>
> If anyone can point me to some applicable links or some specific
> instructions, it would be appreciated.
>
> TIA
> Richard
>

It is exactly the same procedure, cvsup/csup and build/installation
procedure.  This is assuming of course that amd64 is currently on the
system.



--
Adam Vande More
_______________________________________________
freebsd-questions@... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@..."

Re: Rebuild instructions for amd64 systems

by Matt Szubrycht-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Richard,

Kernel recompilation part of the handbook is fairly straightforward  
and should walk you through step-by-step without any snags: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-building.html
Just remember to use amd64 instead i386 in the examples @ the link  
above.  You will need full source tree to play with kernel (sysinstall  
to the rescue if you don't).

Disclaimer - the below worked for me multiple times and may or may not  
work for you.  If you decide to follow the steps outlined below and it  
breaks your box, spills your coffee or converts the datacenter into a  
recycling center, you are responsible for it and I cannot be held  
accountable in any way.  In other words - use at your own risk.



The way I do it (6.0-RELEASE) - at this point you must be root:

cd
mkdir kernels
cd /usr/src/sys/amd64/conf
cp GENERIC ~/kernels/GENERIC.ORIG
cp GENERIC NEWKERNEL

vim NEWKERNEL, search for
ident GENERIC
and change to NEWKERNEL

then, add the following line below all other 'options' lines:
options     PAE             # large memory (>4G) support

then, find and comment out these two lines to avoid a conflict with PAE:

device adv # Advansys SCSI adapters
device adw # Advansys wide SCSI adapters


I am not sure about the Advansys conflict in versions newer than 6.0.
A total of 4 lines to edit on of my stock 6.0-RELEASE GENERIC kernel.

Then:

cd /usr/src
make buildkernel KERNCONF=NEWKERNEL
if compiles, install:
make installkernel KERNCONF=NEWKERNEL

once that's done, reboot and you should see your new kernel



Here's a diff from my 6.0:

[root@banksy /usr/src/sys/i386/conf]# diff BANKSYPAE GENERIC
25c25
< ident BANKSYPAE
---
 > ident GENERIC
65c65
< options PAE # 2006-12-12 Large memory support matts@...
---
 >
96,97c96,97
< # conflicts with PAE device adv # Advansys SCSI adapters
< # conflicts with PAE device adw # Advansys wide SCSI adapters
---
 > device adv # Advansys SCSI adapters
 > device adw # Advansys wide SCSI adapters


Good luck.

Cheers,
Matthew Szubrycht


On Oct 29, 2009, at 8:52 PM, Richard Gehlbach wrote:

> I am installing FreeBSD 7.2 / amd64 on a new server (HP DL370 G6)  
> with 2 quad Xeon processors and 16GB memory.  I have worked with the  
> i386 versions since version 3.x, but this is the first server large  
> enough to need amd64.
>
> I have been trying to determine the correct procedures for  
> rebuilding the world and kernel.  I have not been able to find a  
> location that had step by step instructions, similar to the  
> handbook, for properly working with the amd64 version.  Searches  
> have turned up so many fragments of what needs to be done, that I  
> cannot feel confident trying to put the pieces together.
>
> I need instructions for the command line compile options, conf file  
> additions, and any special instructions.
>
> If anyone can point me to some applicable links or some specific  
> instructions, it would be appreciated.
>
> TIA
> Richard
>
> --
> Richard D. Gehlbach                   Gehlbach Consulting Services
> rdgehlba@...                 3321 Pepperhill Ct.
> 859.269.6658  Fax 859.266.7446        Lexington, KY  40502
>
>
> _______________________________________________
> freebsd-questions@... mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@...
> "

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

Re: Rebuild instructions for amd64 systems

by illoai@gmail.com :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

2009/10/29 Richard Gehlbach <rdgehlba@...>:

> I am installing FreeBSD 7.2 / amd64 on a new server (HP DL370 G6) with 2
> quad Xeon processors and 16GB memory.  I have worked with the i386 versions
> since version 3.x, but this is the first server large enough to need amd64.
>
> I have been trying to determine the correct procedures for rebuilding the
> world and kernel.  I have not been able to find a location that had step by
> step instructions, similar to the handbook, for properly working with the
> amd64 version.  Searches have turned up so many fragments of what needs to
> be done, that I cannot feel confident trying to put the pieces together.
>
> I need instructions for the command line compile options, conf file
> additions, and any special instructions.
>
> If anyone can point me to some applicable links or some specific
> instructions, it would be appreciated.

It's not that different in most ways.  From the forums and
this mailing list, the biggest "gotcha" seems to be that
HAMMER is the only valid setting for cpu in your kernconf.

Otherwise, the normal stuff from /usr/src/UPDATING applies
as with anything else.

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

Re: Rebuild instructions for amd64 systems

by Galactic_Dominator :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

>
>
> then, add the following line below all other 'options' lines:
> options     PAE             # large memory (>4G) support
>
> then, find and comment out these two lines to avoid a conflict with PAE:
>
> device adv              # Advansys SCSI adapters
> device  adw             # Advansys wide SCSI adapter
>
>
This is unnecessary and bad.  pae should be used on i386 for large memory
support, amd64 in some ways exists so you don't have to run pae which is a
considerable performance hit.  I'm surprised that actually works.

--
Adam Vande More
_______________________________________________
freebsd-questions@... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@..."

Re: Rebuild instructions for amd64 systems

by Henrik Hudson :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thu, 29 Oct 2009, Matt Szubrycht wrote:

> Hi Richard,
>
> then, add the following line below all other 'options' lines:
> options     PAE             # large memory (>4G) support

Yeah, don't use this if running an amd64 install. This is only meant
for x86 systems.

Henrik
--
Henrik Hudson
lists@...
-----------------------------------------
"God, root, what is difference?" Pitr; UF

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