How to get kernel source code of free-BSD release 9.1

2013-05-19 Thread Chou, David J
Hi,

I  have created a virtual machine of PC-BSD release 9.1 64 bit in VMware Player 
Version 5.0.0 build-812388 based on PCBSD9.1-x64-DVD.iso downloaded from 
ftp://mirrors.isc.org/pub/pcbsd/9.1/amd64/PCBSD9.1-x64-DVD.iso , and setup 
network configuration and installed Firefox 20.0 by AppCafe, and configured the 
network setting in Preference-Advanced of Firefox, and I could  access 
Internet.

Now I need to build my own customized kernel, but there is no src subdirectory 
in /usr, so here is my question:

  1.  Is there any way to install kernel source when I create the  virtual 
machine from PCBSD9.1-x64-DVD.iso ?
  2.  Any BKM to get the kernel source after the Virtual Machine already 
created as my case now?

Thanks!

Regards,
David

___
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


Re: How to get kernel source code of free-BSD release 9.1

2013-05-19 Thread Michael Powell
Chou, David J wrote:

 Hi,
 
 I  have created a virtual machine of PC-BSD release 9.1 64 bit in VMware
 Player Version 5.0.0 build-812388 based on PCBSD9.1-x64-DVD.iso downloaded
 from ftp://mirrors.isc.org/pub/pcbsd/9.1/amd64/PCBSD9.1-x64-DVD.iso , and
 setup network configuration and installed Firefox 20.0 by AppCafe, and
 configured the network setting in Preference-Advanced of Firefox, and I
 could  access Internet.
 
 Now I need to build my own customized kernel, but there is no src
 subdirectory in /usr, so here is my question:
 
   1.  Is there any way to install kernel source when I create the  virtual
   machine from PCBSD9.1-x64-DVD.iso ?

Not sure about PCBSD as I haven't used it, but with regular FreeBSD I 
believe you can by selecting the appropriate package distribution group. 
Been a while since I've done an install, but even so the source will be the 
static RELEASE bits and not contain any security updates.

   2.  Any BKM to get the kernel source after the Virtual Machine already
   created as my case now?

Yes - install the devel/subversion port. Go ahead and create the src 
directory under /usr. Then do:

svn checkout svn://svn.freebsd.org/base/releng/9.1 /usr/src

Once having checked out you can then issue a svn update /usr/src command to 
pull in security updates as they become available over time.

There are also two US mirrors available such as:

svn checkout svn://svn0.us-east.freebsd.org/base/releng/9.1 /usr/src
svn checkout svn://svn0.us-west.freebsd.org/base/releng/9.1 /usr/src

I have used the us-east one. There is also a project underway to add in to 
base an 'svnup', similar in scope to how csup replaced cvsup to make it 
easier in the future.

I believe freebsd-update is also a possibility but I have no experience with 
it. At any rate, more details can be found in the Handbook.

-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


Re: How to get kernel source code of free-BSD release 9.1

2013-05-19 Thread Adam Vande More
On Sun, May 19, 2013 at 4:03 PM, Chou, David J david.j.c...@intel.com wrote:
 Hi,

 I  have created a virtual machine of PC-BSD release 9.1 64 bit in VMware 
 Player Version 5.0.0 build-812388 based on PCBSD9.1-x64-DVD.iso downloaded 
 from ftp://mirrors.isc.org/pub/pcbsd/9.1/amd64/PCBSD9.1-x64-DVD.iso , and 
 setup network configuration and installed Firefox 20.0 by AppCafe, and 
 configured the network setting in Preference-Advanced of Firefox, and I 
 could  access Internet.

 Now I need to build my own customized kernel, but there is no src 
 subdirectory in /usr, so here is my question:

   1.  Is there any way to install kernel source when I create the  virtual 
 machine from PCBSD9.1-x64-DVD.iso ?

 mount_cd9660 /dev/acd0 /mnt  tar -C / /mnt/usr/freebsd-dist/src.txz

   2.  Any BKM to get the kernel source after the Virtual Machine already 
 created as my case now?

fetch ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/9.1-RELEASE/src.txz





--
Adam Vande More
___
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


sysinstall cant seem to download the kernel source.

2012-02-17 Thread Brent Clark

Hiya

I seem to have this problem with sysinstall, whereby I cant seem to download 
the kernel source.

I tried following this example 
http://www.cyberciti.biz/faq/freebsd-install-kernel-source-code/

I use Install from an FTP server

The error message I get is Unable to transfer the sbase distribution from 
ftp://ftp.freebsd.org.;

Does anyone know of another way to get the kernel source.

Cvs or svn.


Regards
Brent

___
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


Re: sysinstall cant seem to download the kernel source.

2012-02-17 Thread Da Rock

On 02/17/12 19:31, Brent Clark wrote:

Hiya

I seem to have this problem with sysinstall, whereby I cant seem to 
download the kernel source.


I tried following this example 
http://www.cyberciti.biz/faq/freebsd-install-kernel-source-code/


I use Install from an FTP server

The error message I get is Unable to transfer the sbase distribution 
from ftp://ftp.freebsd.org.;


Does anyone know of another way to get the kernel source.

Cvs or svn.
A quick search of previous posts to this list should provide the answer 
you need. Try from last month I think :)

___
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


Re: sysinstall cant seem to download the kernel source.

2012-02-17 Thread RW
On Fri, 17 Feb 2012 11:31:39 +0200
Brent Clark wrote:

 I use Install from an FTP server
 
 The error message I get is Unable to transfer the sbase distribution
 from ftp://ftp.freebsd.org.;
 
 Does anyone know of another way to get the kernel source.

Get it with csup and be sure to set the correct tag in your supfile
(probably RELENG_9_0, for the 9.0 security branch or RELENG_9 for the
stable development branch). In the long term it's simplest and safest to
start from an empty src directory anyway.
___
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


Re: sysinstall cant seem to download the kernel source.

2012-02-17 Thread Warren Block

On Fri, 17 Feb 2012, Brent Clark wrote:

I seem to have this problem with sysinstall, whereby I cant seem to download 
the kernel source.


I tried following this example 
http://www.cyberciti.biz/faq/freebsd-install-kernel-source-code/


I use Install from an FTP server

The error message I get is Unable to transfer the sbase distribution from 
ftp://ftp.freebsd.org.;


Does anyone know of another way to get the kernel source.

Cvs or svn.


Depends on the version of FreeBSD.  For 9,
http://forums.freebsd.org/showthread.php?t=29172
___
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


Deleting the kernel source - just with #rm?

2009-10-04 Thread herbert langhans
Daemons,
a little question.

I just compiled a nice, slim kernel on my laptop, but I dont want to carry all 
the kernel sources around there.

Is it ok just to #rm the content of the /usr/src directory? And will I get it 
completely back from sysinstall or the FreeBSD-servers? Or is there a more 
elegant solution on FreeBSD?

Thanks!
herb langhans

-- 
sprachtraining langhans
herbert langhans, warschau
http://www.langhans.com.pl
herbert dot raimund at gmx dot net
+0048 603 341 441

___
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


Re: Deleting the kernel source - just with #rm?

2009-10-04 Thread andrew clarke
On Sun 2009-10-04 15:15:05 UTC+0200, herbert langhans (herbert.raim...@gmx.net) 
wrote:

 I just compiled a nice, slim kernel on my laptop, but I dont want to
 carry all the kernel sources around there.

 Is it ok just to #rm the content of the /usr/src directory? And will I
 get it completely back from sysinstall or the FreeBSD-servers? Or is
 there a more elegant solution on FreeBSD?

This should be fine.

Since you've built a custom kernel you may want to keep a copy of
your kernel build config (LINT) file, eg. /usr/src/sys/i386/conf/HOSTNAME.

Note that you can't use freebsd-update to patch a custom (non-GENERIC)
kernel.

You can restore the kernel source code by extracting the ssys.??
binaries (normally found in the /src/ directory, eg.
ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/7.2-RELEASE/src/ )
using install.sh (found in the same directory).  Probably also with
sysinstall, but I don't recall the steps to do that.

Regards
Andrew
___
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


Re: Deleting the kernel source - just with #rm?

2009-10-04 Thread herbert langhans
Thank you, Andrew,
clicketyclick - all source code gone now, and the config file is saved.

Can you please tell me about the issue with freebsd-update. Does it mean if I 
run:
#freebsd-update fetch
#freebsd-update install
- it will overwrite my self compiled kernel? Good to know indeed! 

Cheers
herb langhans


On Mon, Oct 05, 2009 at 12:37:37AM +1100, andrew clarke wrote:
 On Sun 2009-10-04 15:15:05 UTC+0200, herbert langhans 
 (herbert.raim...@gmx.net) wrote:
 
  I just compiled a nice, slim kernel on my laptop, but I dont want to
  carry all the kernel sources around there.
 
  Is it ok just to #rm the content of the /usr/src directory? And will I
  get it completely back from sysinstall or the FreeBSD-servers? Or is
  there a more elegant solution on FreeBSD?
 
 This should be fine.
 
 Since you've built a custom kernel you may want to keep a copy of
 your kernel build config (LINT) file, eg. /usr/src/sys/i386/conf/HOSTNAME.
 
 Note that you can't use freebsd-update to patch a custom (non-GENERIC)
 kernel.
 
 You can restore the kernel source code by extracting the ssys.??
 binaries (normally found in the /src/ directory, eg.
 ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/7.2-RELEASE/src/ )
 using install.sh (found in the same directory).  Probably also with
 sysinstall, but I don't recall the steps to do that.
 
 Regards
 Andrew
 ___
 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

-- 
sprachtraining langhans
herbert langhans, warschau
http://www.langhans.com.pl
herbert dot raimund at gmx dot net
+0048 603 341 441

___
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


Re: Deleting the kernel source - just with #rm?

2009-10-04 Thread andrew clarke
On Sun 2009-10-04 16:29:08 UTC+0200, herbert langhans (herbert.raim...@gmx.net) 
wrote:

 Can you please tell me about the issue with freebsd-update. Does it mean if I 
 run:
 #freebsd-update fetch
 #freebsd-update install
 - it will overwrite my self compiled kernel? Good to know indeed! 

No, I suspect freebsd-update will simply refuse to patch it.
___
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


Re: Deleting the kernel source - just with #rm?

2009-10-04 Thread Roland Smith
On Sun, Oct 04, 2009 at 03:15:05PM +0200, herbert langhans wrote:
 I just compiled a nice, slim kernel on my laptop, but I dont want to carry
 all the kernel sources around there.

Keep in mind that some ports (those that contain kernel modules) require the
kernel sources.

On my 7.2-RELEASE-p4 machine, /usr/src uses 495 MiB according to du(1). A
bzip2 compressed tar archive of /usr/src weighs in at 83 MiB.

If you are suffering from space constraints, consider doing a trimmed-down
buildworld (on an external disk or on another machine) as well. Using
src.conf(5) you can exclude a lot of stuff from the base system if you don't
need it.

Roland
-- 
R.F.Smith   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


pgpTsPsi2xAS5.pgp
Description: PGP signature


Re: Deleting the kernel source - just with #rm?

2009-10-04 Thread Robert Huff

Roland Smith writes:

   I just compiled a nice, slim kernel on my laptop, but I dont 
   want to carry all the kernel sources around there.
  
  Keep in mind that some ports (those that contain kernel modules)
  require the kernel sources.

And not just kernel modules.  The popular and useful
sysutils/lsof not only requires the source tree (or at least some
part of it), but requires the source match the running kernel.


Robert Huff


___
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


The kernel source?

2007-10-20 Thread Roberth Sjonøy
How do I get the kernel source for my kernel? I need it to install the
nvidia-driver from ports, and is there anything else I need to do to
make the kernel load the driver at startup?

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


Re: The kernel source?

2007-10-20 Thread Aryeh M. Friedman
Roberth Sjonøy wrote:
 How do I get the kernel source for my kernel? I need it to install the
 nvidia-driver from ports, and is there anything else I need to do to
 make the kernel load the driver at startup?

csup -h cvsup10.us.freebsd.org /usr/share/example/cvsup/standard-sub
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: The kernel source?

2007-10-20 Thread Peo Nilsson
On Sat, 2007-10-20 at 13:03 +, Aryeh M. Friedman wrote:
 Roberth Sjonøy wrote:
  How do I get the kernel source for my kernel? I need it to install the
  nvidia-driver from ports, and is there anything else I need to do to
  make the kernel load the driver at startup?

If the installation doesn't modify your /etc/X11/xorg.conf
you have to do this yourself.

*How* to modify it depends on *which* nvidia driver you install.
You can read the info here:
http://us.download.nvidia.com/freebsd/96.43.01/README/chapter-03-section-02.html


-- 
/Peo


signature.asc
Description: This is a digitally signed message part


Re: The kernel source?

2007-10-20 Thread Manolis Kiagias
Roberth Sjonøy wrote:
 How do I get the kernel source for my kernel? I need it to install the
 nvidia-driver from ports, and is there anything else I need to do to
 make the kernel load the driver at startup?

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


   
Generally speaking, just edit the /etc/X11/xorg.conf and change
reference Driver nv to Driver nvidia
To load the kernel module, type (as root) kldload nvidia
To make it load automatically at startup, edit /boot/loader.conf and add
line nvidia_load=YES

If you have not installed the kernel source when the system was
originally installed , you can do it now by running sysinstall again or
use csup as another poster said to download it.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Kernel source

2007-04-04 Thread Robert Fitzpatrick
I have a 6.1 server that I need to install the source for recompiling
quotas support. It is at a remote location without the CD and when I try
FTP, it declares 6.1-SECURITY is not available on any ftp server. Is
there anywhere to download from?

-- 
Robert

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


Re: Kernel source

2007-04-04 Thread Derek Ragona

At 04:25 PM 4/4/2007, Robert Fitzpatrick wrote:

I have a 6.1 server that I need to install the source for recompiling
quotas support. It is at a remote location without the CD and when I try
FTP, it declares 6.1-SECURITY is not available on any ftp server. Is
there anywhere to download from?

--
Robert



Install
/usr/ports/net/cvsup-without-gui

Then cvsup to get the sources.

-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.

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


Re: Kernel source

2007-04-04 Thread [EMAIL PROTECTED]

On 04/04/07, Derek Ragona [EMAIL PROTECTED] wrote:

At 04:25 PM 4/4/2007, Robert Fitzpatrick wrote:
I have a 6.1 server that I need to install the source for recompiling
quotas support. It is at a remote location without the CD and when I try
FTP, it declares 6.1-SECURITY is not available on any ftp server. Is
there anywhere to download from?



Install
/usr/ports/net/cvsup-without-gui

Then cvsup to get the sources.

 -Derek


try net/csup first, since it does not have
the modula 3 dependance.
see

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/cvsup.html

and use RELENG_6_1

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


Re: which options/files/chunks of the kernel source define xpt_done and xpt_release?

2007-01-12 Thread Brian A. Seklecki


In general:

$ egrep -ir xpt_done /usr/src/sys/*

~BAS

On Mon, 26 Jun 2006, Jim Stapleton wrote:


Thank you,

-Jim Stapleton

On 6/25/06, Dan Nelson [EMAIL PROTECTED] wrote:

In the last episode (Jun 25), Jim Stapleton said:
 I am trying to work on some stuff, and it references those functions,
 but I can't seem to find where they are in the kernel.

xpt_done and a lot of xpt_release_* functions are in /sys/cam/cam_xpt.c

--
Dan Nelson
[EMAIL PROTECTED]


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



l8*
-lava (Brian A. Seklecki - Pittsburgh, PA, USA)
   http://www.spiritual-machines.org/

...from back in the heady days when helpdesk meant nothing, diskquota
meant everything, and lives could be bought and sold for a couple of pages
of laser printout - and frequently were.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Kernel Source

2006-07-20 Thread irlow irlow
bash-2.05b# cd vmware3/
bash-2.05b# make install  make clean
===  vmware3-3.2.1.2242_13,1 kernel source files required.
*** Error code 1

Stop in /usr/ports/emulators/vmware3.
bash-2.05b# 

What should I do?

I don't know how to install a kernel source, specially that it's probably the 
kernel source of the linux base, because it runs emulated, just read the 
package-desc.

But I'd like to know where is the kernel source package of the freebsd in ports 
too...

thanks


-
 Yahoo! Acesso Grátis - Internet rápida e grátis. Instale o discador agora! 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Kernel Source

2006-07-20 Thread Nick Withers
On Thu, 20 Jul 2006 07:27:43 + (GMT)
irlow irlow [EMAIL PROTECTED] wrote:

 bash-2.05b# cd vmware3/
 bash-2.05b# make install  make clean
 ===  vmware3-3.2.1.2242_13,1 kernel source files required.
 *** Error code 1
 
 Stop in /usr/ports/emulators/vmware3.
 bash-2.05b# 
 
 What should I do?
 
 I don't know how to install a kernel source, specially that it's probably the 
 kernel source of the linux base, 

No, it's the FreeBSD kernel sources...

 because it runs emulated, just read the package-desc.

...just read /usr/ports/emulators/vmware3/Makefile :-)

 But I'd like to know where is the kernel source package of the freebsd in 
 ports too...

There ain't no FreeBSD kernel source package, or kernel source
port (or at least not that I'm aware of, and I wouldn't expect
there to be).

You will need to install the source files from the
appropriate FreeBSD installation media and / or from the 'net.
You can, for instance, use cvsup(1) to pull the FreeBSD kernel
sources for any particular revision (or indeed date / time)
down.

Please see
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/cvsup.html
for more information on using cvsup to update / obtain FreeBSD
kernel sources, but do also be aware that you're probably
better off installing the sources from the installation media
first, then updating them (if you feel this is necessary for
your particular version of FreeBSD) to avoid having to download
the whole lot.

 thanks

I have probably explained this a little too quickly, so please
feel free to ask if you'd like clarification.
-- 
Nick Withers
email: [EMAIL PROTECTED]
Web: http://www.nickwithers.com
Mobile: +61 414 397 446
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: which options/files/chunks of the kernel source define xpt_done and xpt_release?

2006-06-26 Thread Jim Stapleton

Thank you,

-Jim Stapleton

On 6/25/06, Dan Nelson [EMAIL PROTECTED] wrote:

In the last episode (Jun 25), Jim Stapleton said:
 I am trying to work on some stuff, and it references those functions,
 but I can't seem to find where they are in the kernel.

xpt_done and a lot of xpt_release_* functions are in /sys/cam/cam_xpt.c

--
Dan Nelson
[EMAIL PROTECTED]


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


which options/files/chunks of the kernel source define xpt_done and xpt_release?

2006-06-25 Thread Jim Stapleton

I am trying to work on some stuff, and it references those functions,
but I can't seem to find where they are in the kernel.

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


Re: which options/files/chunks of the kernel source define xpt_done and xpt_release?

2006-06-25 Thread Dan Nelson
In the last episode (Jun 25), Jim Stapleton said:
 I am trying to work on some stuff, and it references those functions,
 but I can't seem to find where they are in the kernel.

xpt_done and a lot of xpt_release_* functions are in /sys/cam/cam_xpt.c

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


Re: How to find system call in kernel source code?

2005-11-26 Thread Giorgos Keramidas
On 2005-11-25 21:09, David Kelly [EMAIL PROTECTED] wrote:
 The sendfile(2) function is apparently a kernel system call. I've
 find /usr/src -type f -exec grep -il sendfile {} \; and several
 variations yet not found where the code which performs sendfile() is
 located. Is system call 393. Guessing I'm just missing the dispatch
 table.

The default implementation of sendfile() is in the file:

src/sys/kern/uipc_syscalls.c

Look for '^sendfile' with grep(1).

The arguments of sendfile() are copied in a struct sendfile_args{} and
then passed to do_sendfile().  The definition of the sendfile_args
struct is in src/sys/sys/sysproto.h and it looks a bit scary with all
that padding and macro 'magic' going on around it.

 This is also related to P/R bin/89100. At least for me, RELENG_6
 fails to send files greater than 4 GB after a few hours or days on
 the disk. Freshly copied files work fine. No problem copying the file
 with cp. And md5 confirms the contents have not changed.

This sounds suspiciously like a 32-bit value overflowing somewhere :-/

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


How to find system call in kernel source code?

2005-11-25 Thread David Kelly
The sendfile(2) function is apparently a kernel system call. I've  
find /usr/src -type f -exec grep -il sendfile {} \; and several  
variations yet not found where the code which performs sendfile() is  
located. Is system call 393. Guessing I'm just missing the dispatch  
table.


This is also related to P/R bin/89100. At least for me, RELENG_6  
fails to send files greater than 4 GB after a few hours or days on  
the disk. Freshly copied files work fine. No problem copying the file  
with cp. And md5 confirms the contents have not changed.


Built a special ftpd with -g compiler flag. Am not good enough with  
gdb to breakpoint a forked child, which apparently ftpd -D does  
immediately. So sprinkled enough printf's to confirm sendfile() is  
coming up short, is restarted, and errs finally producing the  
premature EOF error message. Yet I've done enough that I'm  
confident the arguments are being passed properly and of sufficient  
size.


The files are between 4G and 8G and when the failure occurs the  
transfer is always filesize modulo 4G. Exactly as if a 4 byte length  
truncated. But strange in that it works on a new file today but  
doesn't after the file is a few hours or days old. Once a file is old  
enough to fail all files on that filesystem written before it also  
fail. Not related to timestamp as cp -p will repair the file  
temporarily.


No errors in /var/log/messages or dmesg. No errors manually launching  
fsck to check the filesystems. And everything but the sendfile()  
system call seems to work.


--
David Kelly N4HHE, [EMAIL PROTECTED]

Whom computers would destroy, they must first drive mad.

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


port/source snap the ports/kernel source

2005-11-23 Thread Huajian.Luo
Hi there,

After I upgrade my box to 6.0, I found that portsnap is currently
in the base system. I'm curious that why we need invent a tool that
just fetch the ports.tar.gz from mirror, while can not fetch the 
kernel source, while I can make it by wget the ports.tar.gz even behind
a firewall and extract it to the /usr/ports and update all softwares
by portupgrade.

What I wonder is that why there is no sourcesnap alike tools or why
there is no daily snapshots like src.tar.gz and sys.tar.gz that we can
use portsnap/wget to snap it to local disk. and the CVSup's drawbacks
have drew many users away from it.

What do you think of this?

Thanks,

--Huajian.

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


Re: port/source snap the ports/kernel source

2005-11-23 Thread Kris Kennaway
On Thu, Nov 24, 2005 at 10:59:13AM +0800, Huajian.Luo wrote:
 Hi there,
 
 After I upgrade my box to 6.0, I found that portsnap is currently
 in the base system. I'm curious that why we need invent a tool that
 just fetch the ports.tar.gz from mirror, while can not fetch the 
 kernel source, while I can make it by wget the ports.tar.gz even behind
 a firewall and extract it to the /usr/ports and update all softwares
 by portupgrade.
 
 What I wonder is that why there is no sourcesnap alike tools or why
 there is no daily snapshots like src.tar.gz and sys.tar.gz that we can
 use portsnap/wget to snap it to local disk. and the CVSup's drawbacks
 have drew many users away from it.

Well, there is.  First, you can download the source tree from the FTP
sites if you wanted to.  Secondly, freebsd update does binary
upgrades..it is the analogue of portsnap, but it doesn't download the
source for you to recompile, it directly updates the compiled binaries.

Kris

pgpln4DIkC6dK.pgp
Description: PGP signature


where are the missing libraries from the kernel source code

2005-09-20 Thread Alexandru Gabor
Hi,
I try to compile my system (make buildworld) for a kernel
recompilation after cvsup'ing the 5.3 stable sources (using src all
option in stable-supfile) and, after about 20 min I get this error:
--
ib/file/Magdir/mips  magic
cc -DHAVE_CONFIG_H -DCOMPILE_ONLY  -I/usr/src/lib/libmagic
-I/usr/src/lib/libmagic/../../contrib/file -o mkmagic
/usr/src/lib/libmagic/../../contrib/file/apprentice.c
/usr/src/lib/libmagic/../../contrib/file/funcs.c
/usr/src/lib/libmagic/../../contrib/file/magic.c
/usr/src/lib/libmagic/../../contrib/file/print.c
/usr/obj/usr/src/i386/usr/bin/ld: cannot find -lc
*** Error code 1

Stop in /usr/src/lib/libmagic.
*** Error code 1

Stop in /usr/src/lib.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
---
I checked this file/directory but, surprise-surprise, there is no such
directory.  Just to be sure I'll add the KERNCONF file to the mail:
---
#
# HOSSU -- kernel configuration file for FreeBSD/i386
#
# For more information on this file, please read the handbook section on
# Kernel Configuration Files:
#
#
http://www.FreeBSD.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-config.html
#
# The handbook is also available locally in /usr/share/doc/handbook
# if you've installed the doc distribution, otherwise always see the
# FreeBSD World Wide Web server (http://www.FreeBSD.org/) for the
# latest information.
#
# An exhaustive list of options and more detailed explanations of the
# device lines is also present in the ../../conf/NOTES and NOTES files.
# If you are in doubt as to the purpose or necessity of a line, check first
# in NOTES.
#
# $FreeBSD: src/sys/i386/conf/HOSSU,v 1.413.2.6.2.2 2004/10/24
18:02:52 scottl Exp $

machine i386
#cpuI486_CPU
#cpuI586_CPU
cpu I686_CPU
Iwdent  HOSSU

# To statically compile in device wiring instead of /boot/device.hints
#hints  GENERIC.hints # Default places to look for devices.

options SCHED_4BSD  # 4BSD scheduler
options INET# InterNETworking
options INET6   # IPv6 communications protocols
options IPFILTER
options IPFILTER_LOG
options IPFILTER_DEFAULT_BLOCK
options FFS # Berkeley Fast Filesystem
options SOFTUPDATES # Enable FFS soft updates support
options UFS_ACL # Support for access control lists
options UFS_DIRHASH # Improve performance on big directories
options MD_ROOT # MD is a potential root device
options NFSCLIENT   # Network Filesystem Client
options NFSSERVER   # Network Filesystem Server
options NFS_ROOT# NFS usable as /, requires NFSCLIENT
options MSDOSFS # MSDOS Filesystem
options CD9660  # ISO 9660 Filesystem
options PROCFS  # Process filesystem (requires PSEUDOFS)
options PSEUDOFS# Pseudo-filesystem framework
options CPU_FASTER_5X86_FPU
options CPU_SUSP_HLT
options GEOM_GPT# GUID Partition Tables.
options COMPAT_43   # Compatible with BSD 4.3 [KEEP THIS!]
options COMPAT_FREEBSD4 # Compatible with FreeBSD4
#optionsSCSI_DELAY=15000# Delay (in ms) before probing SCSI
options KTRACE  # ktrace(1) support
options SYSVSHM # SYSV-style shared memory
options SYSVMSG # SYSV-style message queues
options SYSVSEM # SYSV-style semaphores
options _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time 
extensions
options KBD_INSTALL_CDEV# install a CDEV entry in /dev
options AHC_REG_PRETTY_PRINT# Print register bitfields in debug
# output.  Adds ~128k to driver.
options AHD_REG_PRETTY_PRINT# Print register bitfields in debug
# output.  Adds ~215k to driver.
options ADAPTIVE_GIANT  # Giant mutex is adaptive.

device  apic# I/O APIC

# Bus support.  Do not remove isa, even if you have no isa slots
device  isa

#device eisa
device  pci

# Floppy drives
#Device fdc

# ATA and ATAPI devices
device  ata
device  atadisk # ATA disk drives
#device ataraid # ATA RAID drives
device  atapicd # ATAPI CDROM drives
#device atapifd # ATAPI floppy drives
#device atapist # ATAPI tape drives
options ATA_STATIC_ID   # Static device numbering

# SCSI Controllers

Re: where are the missing libraries from the kernel source code

2005-09-20 Thread Tobias Fendin

Alexandru Gabor wrote:

[snip]

Iwdent  HOSSU


[snip]


#device ppbus   # Parallel port bus (required)

[snip]

The Iwdent seems misspelled.
And the comment for ppbus says it's required, so I guess you should not 
remove it.



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


Re: where are the missing libraries from the kernel source code

2005-09-20 Thread Lowell Gilbert
Alexandru Gabor [EMAIL PROTECTED] writes:

 Hi,
 I try to compile my system (make buildworld) for a kernel
 recompilation after cvsup'ing the 5.3 stable sources (using src all
 option in stable-supfile) and, after about 20 min I get this error:
 --
 ib/file/Magdir/mips  magic
 cc -DHAVE_CONFIG_H -DCOMPILE_ONLY  -I/usr/src/lib/libmagic
 -I/usr/src/lib/libmagic/../../contrib/file -o mkmagic
 /usr/src/lib/libmagic/../../contrib/file/apprentice.c
 /usr/src/lib/libmagic/../../contrib/file/funcs.c
 /usr/src/lib/libmagic/../../contrib/file/magic.c
 /usr/src/lib/libmagic/../../contrib/file/print.c
 /usr/obj/usr/src/i386/usr/bin/ld: cannot find -lc
 *** Error code 1
 
 Stop in /usr/src/lib/libmagic.
 *** Error code 1
 
 Stop in /usr/src/lib.
 *** Error code 1
 
 Stop in /usr/src.
 *** Error code 1
 
 Stop in /usr/src.
 *** Error code 1
 
 Stop in /usr/src.
 *** Error code 1
 
 Stop in /usr/src.
 ---
 I checked this file/directory but, surprise-surprise, there is no such
 directory. 

There certainly should be.  You seem to have a supfile problem.

 Just to be sure I'll add the KERNCONF file to the mail:

You didn't do a buildkernel yet, did you?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: where do i get freebsd kernel source code only

2004-02-24 Thread Remko Lodder
use cvsup, or cvs to fetch it from the cvs servers worldwide.

a little search on the website;
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/anoncvs.html
resulted in that,

Hope this helps,

--

Kind regards,

Remko Lodder
Elvandar.org/DSINet.org
www.mostly-harmless.nl Dutch community for helping newcomers on the
hackerscene

mrtg.grunn.org Dutch mirror of MRTG

-Oorspronkelijk bericht-
Van: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Ashok Raj
Verzonden: dinsdag 24 februari 2004 7:45
Aan: [EMAIL PROTECTED]
Onderwerp: where do i get freebsd kernel source code only


hello,

  i am interested in looking at the source code of
freebsd. but i was unable to find only source code in
ur ftp sites. so i want to know the path from where i
can download only the source code of freebsd (without
installing freebsd).

regards,
ashok

__
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.
http://antispam.yahoo.com/tools
___
[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]


where do i get freebsd kernel source code only

2004-02-23 Thread Ashok Raj
hello,

  i am interested in looking at the source code of
freebsd. but i was unable to find only source code in
ur ftp sites. so i want to know the path from where i
can download only the source code of freebsd (without
installing freebsd).

regards,
ashok

__
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.
http://antispam.yahoo.com/tools
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: where do i get freebsd kernel source code only

2004-02-23 Thread Gautam Gopalakrishnan
On Mon, 23 Feb 2004 22:44:58 -0800 (PST), Ashok Raj
[EMAIL PROTECTED] wrote:

 hello,
 
   i am interested in looking at the source code of
 freebsd. but i was unable to find only source code in
 ur ftp sites. so i want to know the path from where i
 can download only the source code of freebsd (without
 installing freebsd).

You could download the entire directory and run install.sh.
/pub/FreeBSD/releases/i386/5.2-RELEASE/src


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


Can't 'make depend' when trying to build kernel source

2002-10-19 Thread Shawn Lussier
Hello all,

I've recently cvsupped my source tree to 4.7-R in anticipation of upgrades
to these systems. On one, in particular, I cannot rebuild the kernel --
when I run 'make depend', I get the following message:

cc -c -O -pipe -mcpu=pentiumpro -Wall -Wredundant-decls -Wnested-externs
-Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline
-Wcast-qual  -fformat-extensions -ansi  -nostdinc -I- -I. -I../..
-I../../../include -I../../contrib/ipfilter  -D_KERNEL -include
opt_global.h -elf  -mno-align-long-strings -mpreferred-stack-boundary=2
-ffreestanding ../../i386/i386/genassym.c

cc1: Invalid option `no-align-long-strings'

The system currently stands at version 4.3-R-p22, and the compiler is 'gcc
version 2.95.4 20020320 [FreeBSD]'. I have also tried building with gcc
3.2 to no avail (same message).

Can anyone provide some insight as to probable causes? I have never run
into this problem before. Any assistance is greatly appreciated.

-Shawn



To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Can't 'make depend' when trying to build kernel source

2002-10-19 Thread Kent Stewart


Shawn Lussier wrote:

Hello all,

I've recently cvsupped my source tree to 4.7-R in anticipation of upgrades
to these systems. On one, in particular, I cannot rebuild the kernel --
when I run 'make depend', I get the following message:

cc -c -O -pipe -mcpu=pentiumpro -Wall -Wredundant-decls -Wnested-externs
-Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline
-Wcast-qual  -fformat-extensions -ansi  -nostdinc -I- -I. -I../..
-I../../../include -I../../contrib/ipfilter  -D_KERNEL -include
opt_global.h -elf  -mno-align-long-strings -mpreferred-stack-boundary=2
-ffreestanding ../../i386/i386/genassym.c

cc1: Invalid option `no-align-long-strings'

The system currently stands at version 4.3-R-p22, and the compiler is 'gcc
version 2.95.4 20020320 [FreeBSD]'. I have also tried building with gcc
3.2 to no avail (same message).

Can anyone provide some insight as to probable causes? I have never run
into this problem before. Any assistance is greatly appreciated.




No buildworld first.

Kent

--
Kent Stewart
Richland, WA

http://users.owt.com/kstewart/index.html


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Can't 'make depend' when trying to build kernel source

2002-10-19 Thread Kent Stewart


Kent Stewart wrote:



Shawn Lussier wrote:


Hello all,

I've recently cvsupped my source tree to 4.7-R in anticipation of 
upgrades
to these systems. On one, in particular, I cannot rebuild the kernel --
when I run 'make depend', I get the following message:

cc -c -O -pipe -mcpu=pentiumpro -Wall -Wredundant-decls -Wnested-externs
-Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline
-Wcast-qual  -fformat-extensions -ansi  -nostdinc -I- -I. -I../..
-I../../../include -I../../contrib/ipfilter  -D_KERNEL -include
opt_global.h -elf  -mno-align-long-strings -mpreferred-stack-boundary=2
-ffreestanding ../../i386/i386/genassym.c

cc1: Invalid option `no-align-long-strings'

The system currently stands at version 4.3-R-p22, and the compiler is 
'gcc
version 2.95.4 20020320 [FreeBSD]'. I have also tried building with gcc
3.2 to no avail (same message).

Can anyone provide some insight as to probable causes? I have never run
into this problem before. Any assistance is greatly appreciated.



No buildworld first.


What I really intended to add was not doing a buildkernel after the 
buildworld. Make depend is not really a choice on upgrades like this. 
You will also have a number of users to add to master.passwd before 
the installworld will work. This is all covered in /usr/src/UPDATING.

Kent

--
Kent Stewart
Richland, WA

http://users.owt.com/kstewart/index.html


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message