ATB.: Freebsd-current kernel freezes

2013-09-28 Thread Juris Kaminskis


Juris Kaminskis juris.kamins...@gmail.com rakstīja:

Hi,

Yesterday i made:
Svn update
Make buildworld
Make buildkernel
Make installkernel

But when I reboot kernel freezes with last line pci1

I can only boot my previous freebsd9.2 kernel, already tried several times, so 
can you help me how to troubleshoot?
Tks
Juris
___
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

Freebsd-current kernel freezes

2013-09-27 Thread Juris Kaminskis
Hi,

Yesterday i made:
Svn update
Make buildworld
Make buildkernel
Make installkernel

But when I reboot kernel freezes with last line pci1

I can only boot my previous freebsd9.2 kernel, already tried several times, so 
can you help me how to troubleshoot?
Tks
Juris
___
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: Kernel Panic - Unix socket communication in kernel module

2013-08-23 Thread John Baldwin
On Monday, July 29, 2013 3:31:49 am varanasi sainath wrote:
 Hello,
 
 I am writing a kernel module in which I am trying to connect to a UNIX
 socket
 (UNIX domain sockets use the file system as their address name space).
 Kernel module (loadable) acts as a client and User mode program acts as
 server,
 I have loaded the module using kldload and communication between
 user and kernel module works fine,
 when I try to load the kernel module from loader.conf -
 auto load the kernel module at boot up leads to kernel panic
 as the file system is not ready and kern_connect fails.
 
 How to notify kernel module that File system is ready?
 (any specific event flags)
 
 Is there any specific location for Unix domain socket files?
 (currently created it under /root/soc/socket )
 
 Using MODULE_DEPEND Can I make the module dependent of file system?

You can register a hook for the 'mountroot' EVENTHANDLER event which
will fire after / is mounted.  (You could compare rootvnode against
NULL during module startup to determine if you should defer your
work to the EVENTHANDLER vs doing it right away.)  If you need to
wait for all local filesystems to be mounted, then you will need to
have some userland utility poke your module via a sysctl/ioctl/etc.
after the filesystems are mounted (you could use a custom rc.d script
for this).

-- 
John Baldwin
___
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: 9.2-RC1: Problem with Kernel

2013-08-13 Thread Walter Hurry
On Tue, 13 Aug 2013 05:14:52 +0200, Polytropon wrote:

 On Mon, 12 Aug 2013 21:01:14 + (UTC), Walter Hurry wrote:
 Sorry again. Anyway, I have it nailed down now. For anyone who is
 interested, the missing entry was:
 
 options ATA_CAM
 
 Correct. Line 84 and 264 have it commented out. This is the new method
 of talking to disk devices, similarly as the acd interface for optical
 media has been trans- formed into SCSI over ATA (ex device atapicam).
 So the disk drive has not been recognized by the kernel, therefore: No
 soup for you (i. e., no boot device). :-)

Thanks, Polytropon! I have changed the controller (this is a VM, 
remember) to which the (same) virtual hard drive is attached, from ISA to 
SATA and options ATA_CAM is no longer needed.

So I have learned a few things. Thanks again.


___
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: 9.2-RC1: Problem with Kernel

2013-08-12 Thread Walter Hurry
On Sun, 11 Aug 2013 22:47:36 +1000, Ian Smith wrote:

 In freebsd-questions Digest, Vol 479, Issue 8, Message: 10 On Sun, 11
 Aug 2013 09:43:57 + (UTC) Walter Hurry walterhu...@gmail.com
 wrote:
   On Sat, 10 Aug 2013 21:29:10 +0200, Polytropon wrote:
   
On Sat, 10 Aug 2013 19:04:29 + (UTC), Walter Hurry wrote:
This is 9.2-RC1 on amd64 (upgraded from 9.2-BETA1 by refetching
the source from releng/9.2 and rebuilding kernel and world).

The kernel compiles and runs fine using the supplied GENERIC, but
when I try to use my custom kenel config file, on reboot I get
this:

Mounting from ufs:/dev/ada0p2 failed with error 19

What module(s) have I missed?

Diff against the GENERIC kernel. Maybe device xhci?
What bootable media is listed when you type ? at the mountroot
prompt?
If GENERIC boots and your kernel doesn't, there should be a
significant difference regarding the config file's content. :-)
   
   Thanks for the reply. When I type ? at the mountroot prompt I get:
   
   List of GEOM managed disk devices:
   
   with nothing shown.
   
   After restoring the GENERIC kernel, the output from 'gpart list' is:
   
   Geom name: ada0
 [..]
   Consumers:
   1. Name: ada0
  Mediasize: 21474836480 (20G)
  Sectorsize: 512 Mode: r2w2e3
   
   (This is a small VirtualBox VM.)
   
   Kernel config is at http://paste2.org/h17Ih0PD
 
 Please Walter, it's not fair to make us do the work of figuring out what
 you've changed from GENERIC in that, when all you need to provide is:
 
 # diff -uw /path/to/GENERIC /path/to/YOURKERNEL
 
 More ideal for custom kernel configs - for just these occasions - is:
 
 include GENERIC ident YOURKERNEL # custom {no,}device and {no,}options
 statements
 
Sorry again. Anyway, I have it nailed down now. For anyone who is 
interested, the missing entry was:

options ATA_CAM


___
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: 9.2-RC1: Problem with Kernel

2013-08-12 Thread Polytropon
On Mon, 12 Aug 2013 21:01:14 + (UTC), Walter Hurry wrote:
 Sorry again. Anyway, I have it nailed down now. For anyone who is 
 interested, the missing entry was:
 
 options ATA_CAM

Correct. Line 84 and 264 have it commented out. This is
the new method of talking to disk devices, similarly
as the acd interface for optical media has been trans-
formed into SCSI over ATA (ex device atapicam). So
the disk drive has not been recognized by the kernel,
therefore: No soup for you (i. e., no boot device). :-)



-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
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: 9.2-RC1: Problem with Kernel

2013-08-11 Thread Walter Hurry
On Sat, 10 Aug 2013 21:29:10 +0200, Polytropon wrote:

 On Sat, 10 Aug 2013 19:04:29 + (UTC), Walter Hurry wrote:
 This is 9.2-RC1 on amd64 (upgraded from 9.2-BETA1 by refetching the
 source from releng/9.2 and rebuilding kernel and world).
 
 The kernel compiles and runs fine using the supplied GENERIC, but when
 I try to use my custom kenel config file, on reboot I get this:
 
 Mounting from ufs:/dev/ada0p2 failed with error 19
 
 What module(s) have I missed?
 
 Diff against the GENERIC kernel. Maybe device xhci?
 What bootable media is listed when you type ? at the mountroot prompt?
 If GENERIC boots and your kernel doesn't, there should be a significant
 difference regarding the config file's content. :-)

Thanks for the reply. When I type ? at the mountroot prompt I get:

List of GEOM managed disk devices:

with nothing shown.

After restoring the GENERIC kernel, the output from 'gpart list' is:

Geom name: ada0
modified: false
state: OK
fwheads: 16
fwsectors: 63
last: 41943006
first: 34
entries: 128
scheme: GPT
Providers:
1. Name: ada0p1
   Mediasize: 65536 (64k)
   Sectorsize: 512
   Stripesize: 0
   Stripeoffset: 17408
   Mode: r0w0e0
   rawuuid: c5ae2f8e-f5e1-11e2-92dd-08002755f0f7
   rawtype: 83bd6b9d-7f41-11dc-be0b-001560b84f0f
   label: (null)
   length: 65536
   offset: 17408
   type: freebsd-boot
   index: 1
   end: 161
   start: 34
2. Name: ada0p2
   Mediasize: 20401029120 (19G)
   Sectorsize: 512
   Stripesize: 0
   Stripeoffset: 82944
   Mode: r1w1e1
   rawuuid: c5ba5d2c-f5e1-11e2-92dd-08002755f0f7
   rawtype: 516e7cb6-6ecf-11d6-8ff8-00022d09712b
   label: (null)
   length: 20401029120
   offset: 82944
   type: freebsd-ufs
   index: 2
   end: 39845921
   start: 162
3. Name: ada0p3
   Mediasize: 1073707008 (1G)
   Sectorsize: 512
   Stripesize: 0
   Stripeoffset: 3221242880
   Mode: r1w1e0
   rawuuid: c5ccb46a-f5e1-11e2-92dd-08002755f0f7
   rawtype: 516e7cb5-6ecf-11d6-8ff8-00022d09712b
   label: (null)
   length: 1073707008
   offset: 20401112064
   type: freebsd-swap
   index: 3
   end: 41943005
   start: 39845922
Consumers:
1. Name: ada0
   Mediasize: 21474836480 (20G)
   Sectorsize: 512
   Mode: r2w2e3

(This is a small VirtualBox VM.)

Kernel config is at http://paste2.org/h17Ih0PD

___
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: 9.2-RC1: Problem with Kernel

2013-08-11 Thread Ian Smith
In freebsd-questions Digest, Vol 479, Issue 8, Message: 10
On Sun, 11 Aug 2013 09:43:57 + (UTC) Walter Hurry walterhu...@gmail.com 
wrote:
  On Sat, 10 Aug 2013 21:29:10 +0200, Polytropon wrote:
  
   On Sat, 10 Aug 2013 19:04:29 + (UTC), Walter Hurry wrote:
   This is 9.2-RC1 on amd64 (upgraded from 9.2-BETA1 by refetching the
   source from releng/9.2 and rebuilding kernel and world).
   
   The kernel compiles and runs fine using the supplied GENERIC, but when
   I try to use my custom kenel config file, on reboot I get this:
   
   Mounting from ufs:/dev/ada0p2 failed with error 19
   
   What module(s) have I missed?
   
   Diff against the GENERIC kernel. Maybe device xhci?
   What bootable media is listed when you type ? at the mountroot prompt?
   If GENERIC boots and your kernel doesn't, there should be a significant
   difference regarding the config file's content. :-)
  
  Thanks for the reply. When I type ? at the mountroot prompt I get:
  
  List of GEOM managed disk devices:
  
  with nothing shown.
  
  After restoring the GENERIC kernel, the output from 'gpart list' is:
  
  Geom name: ada0
[..]
  Consumers:
  1. Name: ada0
 Mediasize: 21474836480 (20G)
 Sectorsize: 512
 Mode: r2w2e3
  
  (This is a small VirtualBox VM.)
  
  Kernel config is at http://paste2.org/h17Ih0PD

Please Walter, it's not fair to make us do the work of figuring out what 
you've changed from GENERIC in that, when all you need to provide is:

# diff -uw /path/to/GENERIC /path/to/YOURKERNEL

More ideal for custom kernel configs - for just these occasions - is:

include GENERIC
ident YOURKERNEL
# custom {no,}device and {no,}options statements

cheers, Ian
___
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: 9.2-RC1: Problem with Kernel

2013-08-11 Thread Walter Hurry
On Sun, 11 Aug 2013 22:47:36 +1000, Ian Smith wrote:

 In freebsd-questions Digest, Vol 479, Issue 8, Message: 10 On Sun, 11
 Aug 2013 09:43:57 + (UTC) Walter Hurry walterhu...@gmail.com
 wrote:
   On Sat, 10 Aug 2013 21:29:10 +0200, Polytropon wrote:
   
On Sat, 10 Aug 2013 19:04:29 + (UTC), Walter Hurry wrote:
This is 9.2-RC1 on amd64 (upgraded from 9.2-BETA1 by refetching
the source from releng/9.2 and rebuilding kernel and world).

The kernel compiles and runs fine using the supplied GENERIC, but
when I try to use my custom kenel config file, on reboot I get
this:

Mounting from ufs:/dev/ada0p2 failed with error 19

What module(s) have I missed?

Diff against the GENERIC kernel. Maybe device xhci?
What bootable media is listed when you type ? at the mountroot
prompt?
If GENERIC boots and your kernel doesn't, there should be a
significant difference regarding the config file's content. :-)
   
   Thanks for the reply. When I type ? at the mountroot prompt I get:
   
   List of GEOM managed disk devices:
   
   with nothing shown.
   
   After restoring the GENERIC kernel, the output from 'gpart list' is:
   
   Geom name: ada0
 [..]
   Consumers:
   1. Name: ada0
  Mediasize: 21474836480 (20G)
  Sectorsize: 512 Mode: r2w2e3
   
   (This is a small VirtualBox VM.)
   
   Kernel config is at http://paste2.org/h17Ih0PD
 
 Please Walter, it's not fair to make us do the work of figuring out what
 you've changed from GENERIC in that, when all you need to provide is:
 
 # diff -uw /path/to/GENERIC /path/to/YOURKERNEL
 
 More ideal for custom kernel configs - for just these occasions - is:
 
 include GENERIC ident YOURKERNEL # custom {no,}device and {no,}options
 statements
 
Sorry. A diff wouldn't have helped much, as every line had changed due to 
my reformatting. Never mind, I'll work it out for myself by a process of 
elimination - and I'll post the answer here just in case anyone else is 
interested.


___
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


9.2-RC1: Problem with Kernel

2013-08-10 Thread Walter Hurry
This is 9.2-RC1 on amd64 (upgraded from 9.2-BETA1 by refetching the 
source from releng/9.2 and rebuilding kernel and world).

The kernel compiles and runs fine using the supplied GENERIC, but when I 
try to use my custom kenel config file, on reboot I get this:

Mounting from ufs:/dev/ada0p2 failed with error 19

What module(s) have I missed?

Thanks.

___
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: 9.2-RC1: Problem with Kernel

2013-08-10 Thread Polytropon
On Sat, 10 Aug 2013 19:04:29 + (UTC), Walter Hurry wrote:
 This is 9.2-RC1 on amd64 (upgraded from 9.2-BETA1 by refetching the 
 source from releng/9.2 and rebuilding kernel and world).
 
 The kernel compiles and runs fine using the supplied GENERIC, but when I 
 try to use my custom kenel config file, on reboot I get this:
 
 Mounting from ufs:/dev/ada0p2 failed with error 19
 
 What module(s) have I missed?

Diff against the GENERIC kernel. Maybe device xhci?
What bootable media is listed when you type ? at the
mountroot prompt? If GENERIC boots and your kernel
doesn't, there should be a significant difference
regarding the config file's content. :-)



-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
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: 9.2-RC1: Problem with Kernel

2013-08-10 Thread Warren Block

On Sat, 10 Aug 2013, Walter Hurry wrote:


This is 9.2-RC1 on amd64 (upgraded from 9.2-BETA1 by refetching the
source from releng/9.2 and rebuilding kernel and world).

The kernel compiles and runs fine using the supplied GENERIC, but when I
try to use my custom kenel config file, on reboot I get this:

Mounting from ufs:/dev/ada0p2 failed with error 19

What module(s) have I missed?


options GEOM_PART_GPT

But without information on what you removed, it's only a guess.
___
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


Kernel Panic - Unix socket communication in kernel module

2013-07-29 Thread varanasi sainath
Hello,

I am writing a kernel module in which I am trying to connect to a UNIX
socket
(UNIX domain sockets use the file system as their address name space).
Kernel module (loadable) acts as a client and User mode program acts as
server,
I have loaded the module using kldload and communication between
user and kernel module works fine,
when I try to load the kernel module from loader.conf -
auto load the kernel module at boot up leads to kernel panic
as the file system is not ready and kern_connect fails.

How to notify kernel module that File system is ready?
(any specific event flags)

Is there any specific location for Unix domain socket files?
(currently created it under /root/soc/socket )

Using MODULE_DEPEND Can I make the module dependent of file system?


Thanks.


*
*
___
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: Kernel Panic - Unix socket communication in kernel module

2013-07-29 Thread Frank Leonhardt

On 29/07/2013 08:31, varanasi sainath wrote:

Hello,

I am writing a kernel module in which I am trying to connect to a UNIX
socket
(UNIX domain sockets use the file system as their address name space).
Kernel module (loadable) acts as a client and User mode program acts as
server,
I have loaded the module using kldload and communication between
user and kernel module works fine,
when I try to load the kernel module from loader.conf -
auto load the kernel module at boot up leads to kernel panic
as the file system is not ready and kern_connect fails.

How to notify kernel module that File system is ready?
(any specific event flags)

Is there any specific location for Unix domain socket files?
(currently created it under /root/soc/socket )

Using MODULE_DEPEND Can I make the module dependent of file system?




I shall resist the obvious why question.

I'm assuming you're talking about a fifo here (aka named pipe, and 
occasionally called UNIX socket) rather than the BSD network socket 
interface. IIRC since 4.3BSD fifos have been implemented using sockets 
internally anyway.


Where to put it? I tend to go for /tmp but somewhere in /var might make 
more sense for something that's always supposed to be there.


I don't know how to tell when the FS is ready but it will be when init 
runs, so you might like to try the sysctl variables. Knowing that init 
is always PID 1, the value of kern.lastpid should give a hint. There may 
be an official way of doing this properly.


You could always load the module from rc.local instead.

Regards, Frank.

P.S. You do know that an fd only relates to the kernel thread it's 
currently running in?


___
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


Adding kernel config options?

2013-07-01 Thread Ron Brown

Hi,

I am wondering how one would add support for additional options in the 
kernel configuration files. I have found the config(8) program and the 
related files '/sys/conf/file'  '/sys/conf/options', but am having 
trouble finding any documentation leading me beyond there. When I 
specify something like 'MY_OPTION opt_myopt.h' in the options file, how 
does this tie into my code?


Any help or direction to where I can find further information would be 
greatly appreciated!


Thanks,
- Ron



smime.p7s
Description: S/MIME Cryptographic Signature


installing a kernel under a custom location, not /boot/kernel?

2013-06-17 Thread Anton Shterenlikht
I think there is an option for this.
But I cannot find it under
9.5. Building and Installing a Custom Kernel
http://www.freebsd.org/doc/handbook/kernelconfig-building.html

I need to keep several kernels installed, not
just the current and the previous. How to achive this?

Thaknks

Anton
___
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: installing a kernel under a custom location, not /boot/kernel?

2013-06-17 Thread Adam Vande More
On Mon, Jun 17, 2013 at 7:13 AM, Anton Shterenlikht me...@bris.ac.ukwrote:

 I think there is an option for this.
 But I cannot find it under
 9.5. Building and Installing a Custom Kernel
 http://www.freebsd.org/doc/handbook/kernelconfig-building.html

 I need to keep several kernels installed, not
 just the current and the previous. How to achive this?


KODIR=/boot/testkernel

-- 
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


Re: installing a kernel under a custom location, not /boot/kernel?

2013-06-17 Thread Polytropon
On Mon, 17 Jun 2013 09:21:21 -0500, Adam Vande More wrote:
 On Mon, Jun 17, 2013 at 7:13 AM, Anton Shterenlikht me...@bris.ac.ukwrote:
 
  I think there is an option for this.
  But I cannot find it under
  9.5. Building and Installing a Custom Kernel
  http://www.freebsd.org/doc/handbook/kernelconfig-building.html
 
  I need to keep several kernels installed, not
  just the current and the previous. How to achive this?
 
 
 KODIR=/boot/testkernel

This parameter can be used to the make installkernel command,
for example in a workflow like this:

# make buildkernel KERNCONF=TESTKERNEL
# make installkernel KERNCONF=TESTKERNEL KODIR=/boot/testkernel

Plus the corresponding settings in /boot/loader.conf:

kernel=testkernel
bootfile=/boot/testkernel/kernel
kernel_options=foo bar blah

See /boot/defaults/loader.conf for details.

For booting test kernels, you might also find the nextboot command
very helpful; read man nextboot for more inspiration.



-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
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


Fatal trap 12: page fault while in kernel mode in FreeBSD 9.1

2013-06-11 Thread rab fulton
Hi, I recently upgraded from 9.0 to 9.1 and have scince been seeing a lot of 
system freezes. The system will sometimes freeze when I launch an application 
soon after startup. If it does not freeze soon after startup it tends to run 
fine for the rest of the day.
Full copy of core.txt @ http://pastebin.com/ezfAGGFL
--core.txt.0---
FreeBSD quadcore 9.1-RELEASE-p3 FreeBSD 9.1-RELEASE-p3 #0: Mon Apr 29 18:27:25 
UTC 2013 r...@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  
amd64

panic: page fault

GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type show copying to see the conditions.
There is absolutely no warranty for GDB.  Type show warranty for details.
This GDB was configured as amd64-marcel-freebsd...

Unread portion of the kernel message buffer:


Fatal trap 12: page fault while in kernel mode
cpuid = 0; apic id = 00
fault virtual address   = 0x8008
fault code  = supervisor read data, page not present
instruction pointer = 0x20:0x80976e19
stack pointer   = 0x28:0xff8235870630
frame pointer   = 0x28:0xff8235870660
code segment= base 0x0, limit 0xf, type 0x1b
= DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags= interrupt enabled, resume, IOPL = 0
current process = 1720 (mount_fusefs)
trap number = 12
panic: page fault
cpuid = 0
KDB: stack backtrace:
#0 0x809208d6 at kdb_backtrace+0x66
#1 0x808ea8ee at panic+0x1ce
#2 0x80bd8270 at trap_fatal+0x290
#3 0x80bd85ad at trap_pfault+0x1ed
#4 0x80bd8bce at trap+0x3ce
#5 0x80bc318f at calltrap+0x8
#6 0x8261a2f4 at fuse_mount+0x94
#7 0x80979371 at vfs_donmount+0x1081
#8 0x80979ad6 at sys_nmount+0x66
#9 0x80bd7b16 at amd64_syscall+0x546
#10 0x80bc3477 at Xfast_syscall+0xf7
Uptime: 4m32s
Dumping 545 out of 8156 MB:..3%..12%..21%..33%..42%..53%..62%..71%..83%..91%

...
(kgdb) #0  doadump (textdump=Variable textdump is not available.
) at pcpu.h:224
#1  0x808ea3d1 in kern_reboot (howto=260)
at /usr/src/sys/kern/kern_shutdown.c:448
#2  0x808ea8c7 in panic (fmt=0x1 Address 0x1 out of bounds)
at /usr/src/sys/kern/kern_shutdown.c:636
#3  0x80bd8270 in trap_fatal (frame=0xc, eva=Variable eva is not 
available.
)
at /usr/src/sys/amd64/amd64/trap.c:857
#4  0x80bd85ad in trap_pfault (frame=0xff8235870580, usermode=0)
at /usr/src/sys/amd64/amd64/trap.c:773
#5  0x80bd8bce in trap (frame=0xff8235870580)
at /usr/src/sys/amd64/amd64/trap.c:456
#6  0x80bc318f in calltrap ()
at /usr/src/sys/amd64/amd64/exception.S:228
#7  0x80976e19 in vfs_getopts (opts=0x8008, 
name=0x82621368 fspath, error=0xff82358707ac)
at /usr/src/sys/kern/vfs_mount.c:1516
#8  0x8261a2f4 in fuse_mount () from /usr/local/modules/fuse.ko
#9  0xfe000c6678e0 in ?? ()
#10 0xfe000c6678e0 in ?? ()
#11 0x00020202 in ?? ()
#12 0xfe022ffebaa8 in ?? ()
#13 0xfe000c6678e0 in ?? ()
#14 0x01020c6678e0 in ?? ()
#15 0x in ?? ()
#16 0xfe022ffea3a8 in ?? ()
#17 0x8119cb80 in see_other_uids ()
#18 0xff8235870700 in ?? ()
#19 0x808d598b in malloc_type_zone_allocated (mtp=0xfe000c6678e0, 
size=18446741874894338272, zindx=32776)
at /usr/src/sys/kern/kern_malloc.c:368
Previous frame inner to this frame (corrupt stack?)
(kgdb)
Any ideas?
thx   
___
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: custom kernel installation

2013-06-08 Thread Norman Khine
great, i managed to compile and install the custom kernel with IPFW kernel
support as discussed, thanks for your help!

i would like to optimise the kernel to be more specific to my hardware,
here is a breakdown of what i have:

https://gist.github.com/nkhine/fcbcbe36221dc39491f9

here is what is left in my kernel, is there anything else i should take out?

https://gist.github.com/nkhine/fcbcbe36221dc39491f9/revisions

any advice much appreciated

On Sat, Jun 8, 2013 at 2:38 AM, Polytropon free...@edvax.de wrote:

 On Sat, 8 Jun 2013 01:17:35 +0200, Norman Khine wrote:
  thanks for the quick reply

 You're welcome.



  On Sat, Jun 8, 2013 at 12:54 AM, Polytropon free...@edvax.de wrote:
 
   On Sat, 8 Jun 2013 00:37:02 +0200, Norman Khine wrote:
hello,
i have a dedicated server from OVH and have updated freebsd to 9.1
 and
   want
to enable IPFW in the kernel as this is not enabled.
  
   Why not use the module for this? For many years now, you
   do not need a custom kernel if you want to use IPFW (which
   _had_ to be compiled into the kernel in the past). Use
  
   # kldload ipfw.ko
  
 
  is it good idea to run this like this, would i have to do some settings,
 as
  i don't want to be locked out of the system?

 Depends on your requirements. The kernel module is just the
 firewall infrastructure, and the ipfw _binary_ will then
 control it. So it's probably a good idea to check your firewall
 settings (for example in /etc/ipfw.conf) to reflect _exactly_
 what you intend (e. g., _not_ disabling SSH).

 See man ipfw for details on the firewall configuration file.
 The system brings several preconfigured profiles. You can find
 them in /etc/defaults/rc.conf (the firewall_ settings group,
 especially open according to /etc/rc.firewall's comment
 header, or for example /etc/ipfw.conf, a file created on
 your own). Do not use closed. :-)

 Here's a short example, nothing magic:

 -f flush
 add allow   tcp from any to any ftp in recv xl0
 add allow   tcp from any to any ssh in recv xl0

 This is _one_ solution if you wanted to allow SSH and FTP
 via the xl0 interface. Depending on what IPFW defaults to
 (ALLOW or DENY), a different structure might apply. The
 configuration line

 add allow   ip  from any to any

 will allow everything.

 Dealing with kernel modules _might_ be a security issue if
 you define it to be one. For example, if you raise the syetem
 security level, you won't be able to load or unload kernel
 modules. In such a situation, only the functionality present
 in the kernel at boot time will be available. This if course
 requires a custom kernel as explained.

 Otherwise it's a good and comfortable idea to load IPFW as
 a kernel module. It can then be configured in the same way
 as a kernel-based firewall.



  yes i would like to see if i can compile a kernel on an OVH box for
 freebsd
  i have tried, but there is always something that fails :-( so i wanted
 the
  use the one by OVH and modify it for my use.

 For checking, you should first check if you can compile the
 GENERIC kernel that's provided by the OS sources:

 # cd /usr/src
 # make buildkernel KERNCONF=GENERIC

 If this works, you could install it and perform a reboot:

 # make installkernel KERNCONF=GENERIC
 # reboot

 Then if you have derived your own kernel configuration file,
 do the same with KERNCONF= and its name.



so i got the 9.1 sources and now in /usr/src/sys/amd64/conf i have a
GENERIC file, but this is too generic, besides i don't have access
 to the
physical box.
  
   This file is what the GENERIC kernel (distributed with the OS)
   has been generated from. Use it as a template for your own
   custom kernel.
  
 
  well, there was no /usr/src when the system arrived from OVH i downloaded
  this from freebsd ftp site. so i will need to update it to suit my system
  and i was just looking for a shortcut.

 If you have been using freebsd-update, it defaults to fetching
 the OS sources (it's the src item in the Components list
 of /etc/freebsd-update.conf. Your kernel and system sources
 _might_ now be more current than the version you're running.
 As I mentioned, it's neccessary to have world and kernel in
 sync. The use of freebsd-update should have properly taken
 care of this (e. g., updated world, GENERIC kernel, and the
 sources for the whole thing to the current version).





 --
 Polytropon
 Magdeburg, Germany
 Happy FreeBSD user since 4.0
 Andra moi ennepe, Mousa, ...




-- 
% .join( [ {'*':'@','^':'.'}.get(c,None) or chr(97+(ord(c)-83)%26) for
c in ,adym,*)uzq^zqf ] )
___
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


custom kernel installation

2013-06-07 Thread Norman Khine
hello,
i have a dedicated server from OVH and have updated freebsd to 9.1 and want
to enable IPFW in the kernel as this is not enabled.
the way i updated the system was to copy /boot/kernel.old to /boot/GENERIC
then followed ch25
http://www.freebsd.org/doc/en/books/handbook/updating-upgrading-freebsdupdate.htmlthis
went well and the system is up to date.

so i got the 9.1 sources and now in /usr/src/sys/amd64/conf i have a
GENERIC file, but this is too generic, besides i don't have access to the
physical box.

what will be the correct way to include the IPFW to existing /boot/kernel
is there a way to generate the GENERIC file from the existing loaded kernel?

this is what # dmesg brings up

http://pastebin.com/V8ZExNC8

do i need anything else?

any advice much appreciated

norman

-- 
% .join( [ {'*':'@','^':'.'}.get(c,None) or chr(97+(ord(c)-83)%26) for
c in ,adym,*)uzq^zqf ] )
___
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: custom kernel installation

2013-06-07 Thread Polytropon
On Sat, 8 Jun 2013 00:37:02 +0200, Norman Khine wrote:
 hello,
 i have a dedicated server from OVH and have updated freebsd to 9.1 and want
 to enable IPFW in the kernel as this is not enabled.

Why not use the module for this? For many years now, you
do not need a custom kernel if you want to use IPFW (which
_had_ to be compiled into the kernel in the past). Use

# kldload ipfw.ko

and maybe

# kldload ipfw_nat.ko

if it's just about having IPFW. Of course, if explicitely
having it _in_ the kernel is your objective, unread this
comment. :-)



 the way i updated the system was to copy /boot/kernel.old to /boot/GENERIC
 then followed ch25
 http://www.freebsd.org/doc/en/books/handbook/updating-upgrading-freebsdupdate.htmlthis
 went well and the system is up to date.

So you did freebsd-update to update to 9.1-RELEASE.



 so i got the 9.1 sources and now in /usr/src/sys/amd64/conf i have a
 GENERIC file, but this is too generic, besides i don't have access to the
 physical box.

This file is what the GENERIC kernel (distributed with the OS)
has been generated from. Use it as a template for your own
custom kernel.



 what will be the correct way to include the IPFW to existing /boot/kernel
 is there a way to generate the GENERIC file from the existing loaded kernel?

No, you can simply copy it and then make changes. For example:

# cd /usr/src/sys/amd64/conf
# cp GENERIC MYKERNEL
(or use any other descriptive name)
# vi MYKERNEL
(make changes as desired, then :wq)
# cd /usr/src
# make buildkernel KERNCONF=MYKERNEL
# make installkernel KERNCONF=MYKERNEL
# reboot

Keep in mind that kernel and world have to be in sync version-wise!

Regarding IPFW, you will probably add lines like the following:

options DUMMYNET
options IPFIREWALL
options IPFIREWALL_DEFAULT_TO_ACCEPT
options IPFIREWALL_VERBOSE
options IPFIREWALL_VERBOSE_LIMIT=500
options IPFILTER
options IPDIVERT

Of course you can also remove lines for hardware you don't have
in your box, like trimming the support for NICs or SCSI controllers
and the like. :-)






-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
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: custom kernel installation

2013-06-07 Thread Norman Khine
thanks for the quick reply


On Sat, Jun 8, 2013 at 12:54 AM, Polytropon free...@edvax.de wrote:

 On Sat, 8 Jun 2013 00:37:02 +0200, Norman Khine wrote:
  hello,
  i have a dedicated server from OVH and have updated freebsd to 9.1 and
 want
  to enable IPFW in the kernel as this is not enabled.

 Why not use the module for this? For many years now, you
 do not need a custom kernel if you want to use IPFW (which
 _had_ to be compiled into the kernel in the past). Use

 # kldload ipfw.ko


is it good idea to run this like this, would i have to do some settings, as
i don't want to be locked out of the system?



 and maybe

 # kldload ipfw_nat.ko

 if it's just about having IPFW. Of course, if explicitely
 having it _in_ the kernel is your objective, unread this
 comment. :-)


yes i would like to see if i can compile a kernel on an OVH box for freebsd
i have tried, but there is always something that fails :-( so i wanted the
use the one by OVH and modify it for my use.




  the way i updated the system was to copy /boot/kernel.old to
 /boot/GENERIC
  then followed ch25
 
 http://www.freebsd.org/doc/en/books/handbook/updating-upgrading-freebsdupdate.htmlthis
  went well and the system is up to date.

 So you did freebsd-update to update to 9.1-RELEASE.


yes





  so i got the 9.1 sources and now in /usr/src/sys/amd64/conf i have a
  GENERIC file, but this is too generic, besides i don't have access to the
  physical box.

 This file is what the GENERIC kernel (distributed with the OS)
 has been generated from. Use it as a template for your own
 custom kernel.


well, there was no /usr/src when the system arrived from OVH i downloaded
this from freebsd ftp site. so i will need to update it to suit my system
and i was just looking for a shortcut.




  what will be the correct way to include the IPFW to existing /boot/kernel
  is there a way to generate the GENERIC file from the existing loaded
 kernel?

 No, you can simply copy it and then make changes. For example:

 # cd /usr/src/sys/amd64/conf
 # cp GENERIC MYKERNEL
 (or use any other descriptive name)
 # vi MYKERNEL
 (make changes as desired, then :wq)
 # cd /usr/src
 # make buildkernel KERNCONF=MYKERNEL
 # make installkernel KERNCONF=MYKERNEL
 # reboot

 Keep in mind that kernel and world have to be in sync version-wise!

 Regarding IPFW, you will probably add lines like the following:

 options DUMMYNET
 options IPFIREWALL
 options IPFIREWALL_DEFAULT_TO_ACCEPT
 options IPFIREWALL_VERBOSE
 options IPFIREWALL_VERBOSE_LIMIT=500
 options IPFILTER
 options IPDIVERT

 Of course you can also remove lines for hardware you don't have
 in your box, like trimming the support for NICs or SCSI controllers
 and the like. :-)






 --
 Polytropon
 Magdeburg, Germany
 Happy FreeBSD user since 4.0
 Andra moi ennepe, Mousa, ...




-- 
% .join( [ {'*':'@','^':'.'}.get(c,None) or chr(97+(ord(c)-83)%26) for
c in ,adym,*)uzq^zqf ] )
___
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: custom kernel installation

2013-06-07 Thread Polytropon
On Sat, 8 Jun 2013 01:17:35 +0200, Norman Khine wrote:
 thanks for the quick reply

You're welcome.



 On Sat, Jun 8, 2013 at 12:54 AM, Polytropon free...@edvax.de wrote:
 
  On Sat, 8 Jun 2013 00:37:02 +0200, Norman Khine wrote:
   hello,
   i have a dedicated server from OVH and have updated freebsd to 9.1 and
  want
   to enable IPFW in the kernel as this is not enabled.
 
  Why not use the module for this? For many years now, you
  do not need a custom kernel if you want to use IPFW (which
  _had_ to be compiled into the kernel in the past). Use
 
  # kldload ipfw.ko
 
 
 is it good idea to run this like this, would i have to do some settings, as
 i don't want to be locked out of the system?

Depends on your requirements. The kernel module is just the
firewall infrastructure, and the ipfw _binary_ will then
control it. So it's probably a good idea to check your firewall
settings (for example in /etc/ipfw.conf) to reflect _exactly_
what you intend (e. g., _not_ disabling SSH).

See man ipfw for details on the firewall configuration file.
The system brings several preconfigured profiles. You can find
them in /etc/defaults/rc.conf (the firewall_ settings group,
especially open according to /etc/rc.firewall's comment
header, or for example /etc/ipfw.conf, a file created on
your own). Do not use closed. :-)

Here's a short example, nothing magic:

-f flush
add allow   tcp from any to any ftp in recv xl0
add allow   tcp from any to any ssh in recv xl0

This is _one_ solution if you wanted to allow SSH and FTP
via the xl0 interface. Depending on what IPFW defaults to
(ALLOW or DENY), a different structure might apply. The
configuration line

add allow   ip  from any to any

will allow everything.

Dealing with kernel modules _might_ be a security issue if
you define it to be one. For example, if you raise the syetem
security level, you won't be able to load or unload kernel
modules. In such a situation, only the functionality present
in the kernel at boot time will be available. This if course
requires a custom kernel as explained.

Otherwise it's a good and comfortable idea to load IPFW as
a kernel module. It can then be configured in the same way
as a kernel-based firewall.



 yes i would like to see if i can compile a kernel on an OVH box for freebsd
 i have tried, but there is always something that fails :-( so i wanted the
 use the one by OVH and modify it for my use.

For checking, you should first check if you can compile the
GENERIC kernel that's provided by the OS sources:

# cd /usr/src
# make buildkernel KERNCONF=GENERIC

If this works, you could install it and perform a reboot:

# make installkernel KERNCONF=GENERIC
# reboot

Then if you have derived your own kernel configuration file,
do the same with KERNCONF= and its name.



   so i got the 9.1 sources and now in /usr/src/sys/amd64/conf i have a
   GENERIC file, but this is too generic, besides i don't have access to the
   physical box.
 
  This file is what the GENERIC kernel (distributed with the OS)
  has been generated from. Use it as a template for your own
  custom kernel.
 
 
 well, there was no /usr/src when the system arrived from OVH i downloaded
 this from freebsd ftp site. so i will need to update it to suit my system
 and i was just looking for a shortcut.

If you have been using freebsd-update, it defaults to fetching
the OS sources (it's the src item in the Components list
of /etc/freebsd-update.conf. Your kernel and system sources
_might_ now be more current than the version you're running.
As I mentioned, it's neccessary to have world and kernel in
sync. The use of freebsd-update should have properly taken
care of this (e. g., updated world, GENERIC kernel, and the
sources for the whole thing to the current version).





-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
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


ctl-alt-esc not taking me to kernel debugger

2013-06-06 Thread i2u2yn902
Is ctl-alt-esc working for others on 8.x  9.x?

See
http://forums.freebsd.org/showthread.php?t=40111
___
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


New kernel 9.1 informs me to report wbwd0 to FreeBSD

2013-05-31 Thread BBLister

Hi,

I upgraded to 9.1 ( 9.1-STABLE FreeBSD 9.1-STABLE #0 r251140: )  today and my 
dmesg kernel prints:

wbwd0: DevID 0x60 DevRev 0x12, please report this.
wbwd0: DevID 0x60 DevRev 0x12, please report this.
wbwd0: Unknown Winbond/Nuvoton model at port 0x2e-0x2f on isa0
wbwd0: Before watchdog attach: Watchdog enabled. Watchdog fired. Scaling by 1s, 
timer at 255 (=255s left). CRF5 0x00 CRF7 0xff


I am willing to provide any help necessary.

Regards,

BB
___
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


How can I unload/load modules that complied inside the kernel?

2013-05-29 Thread Alex Liptsin
Hello.

I am using FreeBSD9.1

[root@h-qa-033 ~]# uname -a
FreeBSD h-qa-033 9.1-RELEASE FreeBSD 9.1-RELEASE #0: Tue May 28 11:26:45 IDT 
2013 root@h-qa-033:/usr/obj/lab/odeds/freebsd/9.1.0/sys/MYKERNEL  amd64

OFED and IB support are compiled in kernel.


1.  How can I unload/load modules that complied inside the kernel?


[root@h-qa-033 ~]# kldstat -v | grep mlx4 -B 5
Id Refs AddressSize Name
1   10 0x8020 13dcbf8  kernel (/boot/kernel/kernel)
Contains modules:
Id Name
420 mlxen
418 mlx4ib
419 mlx4

I want to unload/load mlx4ib.


2.  Is there any way to take it out of kernel and load manually?

Like if_lagg for example:

[root@h-qa-033 ~]# kldstat
Id Refs AddressSize Name
1   10 0x8020 13dcbf8  kernel
31 0x81812000 2197 if_mos.ko
41 0x81815000 690a if_lagg.ko

Thanks a lot.
Alex.

___
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 can I unload/load modules that complied inside the kernel?

2013-05-29 Thread Olivier Nicole
 [root@h-qa-033 ~]# uname -a
 FreeBSD h-qa-033 9.1-RELEASE FreeBSD 9.1-RELEASE #0: Tue May 28 11:26:45 IDT 
 2013 root@h-qa-033:/usr/obj/lab/odeds/freebsd/9.1.0/sys/MYKERNEL  amd64
 
 OFED and IB support are compiled in kernel.
 
 
 1.  How can I unload/load modules that complied inside the kernel?

kldload and kldunload should be what you are looking for.

Olivier 
___
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 can I unload/load modules that complied inside the kernel?

2013-05-29 Thread Julian H. Stacey
Hi, Reference:
 From: Olivier Nicole olivier.nic...@cs.ait.ac.th 
 Date: Wed, 29 May 2013 17:54:59 +0700 (ICT) 

Olivier Nicole wrote:
  [root@h-qa-033 ~]# uname -a
  FreeBSD h-qa-033 9.1-RELEASE FreeBSD 9.1-RELEASE #0: Tue May 28 11:26:45 
  IDT 2013 root@h-qa-033:/usr/obj/lab/odeds/freebsd/9.1.0/sys/MYKERNEL  
  amd64
  
  OFED and IB support are compiled in kernel.
  
  
  1.  How can I unload/load modules that complied inside the kernel?
 
 kldload and kldunload should be what you are looking for.

[Unless things have got more flexible] I dont believe you can
unload/load modules that complied inside the kernel.  I think you
need to compile a new kernel without the modules you want to toggle
on  off, Then you can use kldload and kldunload.

Cheers,
Julian
-- 
Julian Stacey, BSD Unix Linux C Sys Eng Consultant, Munich http://berklix.com
 Reply below not above, like a play script.  Indent old text with  .
 Send plain text.  No quoted-printable, HTML, base64, multipart/alternative.
___
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


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


Re: Compiling a lean kernel of 9.1 p3

2013-05-18 Thread Lowell Gilbert
Tommy Pham tommy...@gmail.com writes:

 On Wed, May 15, 2013 at 10:43 AM, Tommy Pham tommy...@gmail.com wrote:

 Hi everyone,

 I installed 9.1 from DVD with src only and did 'freebsd-update fetch
 install'.  Then I proceed to compile the lean kernel.  I'm unable to
 compile a lean (no SCSI, RAID, sound, USB, Firewire, NICs) kernel of 9.1 p3
 and without lib32 support.  I only needed SATA disk and em NIC support.
  The kernel compiled without errors.  However, on boot, it freezes after
 the menu screen.  My make.conf only have added (from default
 /usr/share/examples/etc):

 KERNCONF=custom
 CPUTYPE=?opteron

 I have no problem booting from GENERIC built kernel and buildworld with
 that make.conf.   Could someone please tell me how can I troubleshoot this?

 TIA,
 Tommy


 Hi again,

 I said that wrong... I meant that I was able to compile OK but unable to
 boot with a lean kernel.  I was able to boot buildworld and buildkernel of
 GENERIC.

The way to do this is to use a binary search. Start with a working
(GENERIC) kernel, then add half your changes in. If it fails, then you
know the problem is in the set of changes that you included. If it
works, the problem is in the set of changes you didn't include. It's a
little more complicated because there may well be a dependency, where
two options need to both be included or left out, but I'm sure you get
the idea.

Alternatively, you could include kernel debugging and see where the CPU
is executing after the hang. But this requires more programming knowledge.
___
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


Compiling a lean kernel of 9.1 p3

2013-05-15 Thread Tommy Pham
Hi everyone,

I installed 9.1 from DVD with src only and did 'freebsd-update fetch
install'.  Then I proceed to compile the lean kernel.  I'm unable to
compile a lean (no SCSI, RAID, sound, USB, Firewire, NICs) kernel of 9.1 p3
and without lib32 support.  I only needed SATA disk and em NIC support.
 The kernel compiled without errors.  However, on boot, it freezes after
the menu screen.  My make.conf only have added (from default
/usr/share/examples/etc):

KERNCONF=custom
CPUTYPE=?opteron

I have no problem booting from GENERIC built kernel and buildworld with
that make.conf.   Could someone please tell me how can I troubleshoot this?

TIA,
Tommy
___
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: Compiling a lean kernel of 9.1 p3

2013-05-15 Thread Tommy Pham
On Wed, May 15, 2013 at 10:43 AM, Tommy Pham tommy...@gmail.com wrote:

 Hi everyone,

 I installed 9.1 from DVD with src only and did 'freebsd-update fetch
 install'.  Then I proceed to compile the lean kernel.  I'm unable to
 compile a lean (no SCSI, RAID, sound, USB, Firewire, NICs) kernel of 9.1 p3
 and without lib32 support.  I only needed SATA disk and em NIC support.
  The kernel compiled without errors.  However, on boot, it freezes after
 the menu screen.  My make.conf only have added (from default
 /usr/share/examples/etc):

 KERNCONF=custom
 CPUTYPE=?opteron

 I have no problem booting from GENERIC built kernel and buildworld with
 that make.conf.   Could someone please tell me how can I troubleshoot this?

 TIA,
 Tommy


Hi again,

I said that wrong... I meant that I was able to compile OK but unable to
boot with a lean kernel.  I was able to boot buildworld and buildkernel of
GENERIC.

Thanks again,
Tommy
___
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


freebsd-update and /boot/kernel/linker.hints

2013-05-13 Thread Wolfgang Riegler
Hi,

since last freebsd-update fetch install I always get this message after 
freebsd-update fetch:

The following files will be updated as part of updating to 9.1-RELEASE-p3:
/boot/kernel/linker.hints

but freebsd-update install doesn't install anything.


Is there something wrong with my system or is this a bug in freebsd-update?


kind regards

Wolfgang
___
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: freebsd-update and /boot/kernel/linker.hints

2013-05-13 Thread Stephan Schindel
On Mon, May 13, 2013 at 11:22:41AM +0200, Wolfgang Riegler wrote:
 Hi,
 
 since last freebsd-update fetch install I always get this message after 
 freebsd-update fetch:
 
 The following files will be updated as part of updating to 9.1-RELEASE-p3:
 /boot/kernel/linker.hints
 
 but freebsd-update install doesn't install anything.
 
 
 Is there something wrong with my system or is this a bug in freebsd-update?
 
 
 kind regards
 
 Wolfgang
 ___
 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

My guess is that there is something wrong with freebsd-update. There is
another thread here one the mailing list. And here is another thread at
BSDForen.de I have started:

http://www.bsdforen.de/showthread.php?p=251220#post251220

I am experiencing the same issue. I am no BSD-expert, but what I found
strange is that if you compile your own GENERIC kernel+modules the
freebsd-update tool tries to update the nfsd.ko module which would
indeed result in a different checksum for nfsd.ko + a different
linker.hints.


signature.asc
Description: Digital signature


VIMAGE in GENERIC kernel

2013-05-09 Thread b...@todoo.biz
Hi, 

I just wanted to know if there were any plans to have VIMAGE function / 
features included in GENERIC kernels sometimes soon ? 


Sincerely yours. 


«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§

BSD - BSD - BSD - BSD - BSD - BSD - BSD - BSD -

«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§

PGP ID -- 0x1BA3C2FD

___
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: VIMAGE in GENERIC kernel

2013-05-09 Thread markham breitbach
   I was talking with BZ about this a few months ago, and it does not look
   terribly likely to happen any time soon, although I am still willing to
   pay good money for anyone willing and able to fix the problems with it.
   ---
   [1]Markham Breitbach
   Network Operations
   SSi   People, Ideas, Technology
   - - - - - - - - - - - - - - - - - - - - -
   +1 867 669 7500 work
   +1 867 669 7510 fax
   [2]markham_breitb...@ssimicro.com
   [3]www.ssimicro.com
   356B Old Airport Road
   Yellowknife , NT X1A 3T4
   Canada
   - - - - - - - - - - - - - - - - - - - - -
   Visit some of our other networks
   [4]www.qiniq.com  [5]www.airware.ca
   On 13-05-09 3:50 PM, [6]b...@todoo.biz wrote:

Hi,

I just wanted to know if there were any plans to have VIMAGE function / features
 included in GENERIC kernels sometimes soon ?


Sincerely yours.


�?���?���?���?���?���?���?���?���?���?���?���?��

BSD - BSD - BSD - BSD - BSD - BSD - BSD - BSD -

�?���?���?���?���?���?���?���?���?���?���?���?��

PGP ID -- 0x1BA3C2FD

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

References

   1. http://www.ssimicro.com/
   2. mailto:markham_breitb...@ssimicro.com
   3. http://www.ssimicro.com/
   4. http://www.qiniq.com/
   5. http://www.airware.ca/
   6. mailto:b...@todoo.biz
   7. mailto:freebsd-questions@freebsd.org
   8. http://lists.freebsd.org/mailman/listinfo/freebsd-questions
   9. mailto:freebsd-questions-unsubscr...@freebsd.org
___
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: Kernel Modules Documentation?

2013-05-07 Thread Walter Hurry
On Wed, 01 May 2013 20:33:21 -0700, Mehmet Erol Sanliturk wrote:

 Text file .
 
 Thank you very much .

OK. Sorry for the delay.
It's at http://pastebin.com/wvxQRD9w

___
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: Kernel Modules Documentation?

2013-05-07 Thread Mehmet Erol Sanliturk
On Tue, May 7, 2013 at 10:53 AM, Walter Hurry walterhu...@gmail.com wrote:

 On Wed, 01 May 2013 20:33:21 -0700, Mehmet Erol Sanliturk wrote:

  Text file .
 
  Thank you very much .

 OK. Sorry for the delay.
 It's at http://pastebin.com/wvxQRD9w



Thank you really .


Access to PasteBin  from Turkey is  PROHIBITED .

I am sorry .

Thank you very much .

Mehmet Erol Sanliturk
___
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: Kernel Modules Documentation?

2013-05-07 Thread Walter Hurry
On Tue, 07 May 2013 11:16:50 -0700, Mehmet Erol Sanliturk wrote:

 On Tue, May 7, 2013 at 10:53 AM, Walter Hurry walterhu...@gmail.com
 wrote:
 
 Access to PasteBin  from Turkey is  PROHIBITED .

Oh. Try this then:
https://dl.dropboxusercontent.com/u/6106778/kernel_modules.txt

___
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: Kernel Modules Documentation?

2013-05-07 Thread Mehmet Erol Sanliturk
On Tue, May 7, 2013 at 1:07 PM, Walter Hurry walterhu...@gmail.com wrote:

 On Tue, 07 May 2013 11:16:50 -0700, Mehmet Erol Sanliturk wrote:

  On Tue, May 7, 2013 at 10:53 AM, Walter Hurry walterhu...@gmail.com
  wrote:
 
  Access to PasteBin  from Turkey is  PROHIBITED .

 Oh. Try this then:
 https://dl.dropboxusercontent.com/u/6106778/kernel_modules.txt




The text has been saved successfully .

Thank you very much .

Mehmet Erol Sanliturk
___
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: Kernel Modules Documentation?

2013-05-01 Thread Walter Hurry
On Tue, 30 Apr 2013 10:07:13 -0400, ill...@gmail.com wrote:

 On 30 April 2013 09:39, Walter Hurry walterhu...@gmail.com wrote:
 
 FreeBSD 9.1 on amd64.

 I have a list of about 220 kernel modules and would like to find out
 what they do, or are for (none has a man page). I suspect that many of
 them are drivers for particular devices.

 Is there any resource or documentation available?

 Thanks.

 P.S. Here are the first few:
 ahc_eisa ahc_isa ahc_pci alias_cuseeme


 Yes, the modules names aren't always exactly the man page name. 
 Stubborn  inventive use of apropos  locate ( reading through stuff in
 /usr/src/sys/modules/ ) can help, but not everything is obvious.
 
 ahc(4) covers the first few.
 
 libalias(3) appears to be the only thing to even parenthetically
 mentions cuseeme (NB I didn't run grep over the whole dang filesystem,
 though).
 
 Most of the if_something are under something(4).
 
 For the geom_blahblah, see if it's covered by something mentioned in the
 SEE ALSO sexion of geom(8) or geom(4).

Thanks to all for the pointers. With a little digging around, I have 
managed to reduce the 220 to zero, and now have all 643 (9.1 on amd64) 
briefly documented.

___
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: Kernel Modules Documentation?

2013-05-01 Thread Mehmet Erol Sanliturk
On Wed, May 1, 2013 at 12:14 PM, Walter Hurry walterhu...@gmail.com wrote:

 On Tue, 30 Apr 2013 10:07:13 -0400, ill...@gmail.com wrote:

  On 30 April 2013 09:39, Walter Hurry walterhu...@gmail.com wrote:
 
  FreeBSD 9.1 on amd64.
 
  I have a list of about 220 kernel modules and would like to find out
  what they do, or are for (none has a man page). I suspect that many of
  them are drivers for particular devices.
 
  Is there any resource or documentation available?
 
  Thanks.
 
  P.S. Here are the first few:
  ahc_eisa ahc_isa ahc_pci alias_cuseeme
 
 
  Yes, the modules names aren't always exactly the man page name.
  Stubborn  inventive use of apropos  locate ( reading through stuff in
  /usr/src/sys/modules/ ) can help, but not everything is obvious.
 
  ahc(4) covers the first few.
 
  libalias(3) appears to be the only thing to even parenthetically
  mentions cuseeme (NB I didn't run grep over the whole dang filesystem,
  though).
 
  Most of the if_something are under something(4).
 
  For the geom_blahblah, see if it's covered by something mentioned in the
  SEE ALSO sexion of geom(8) or geom(4).

 Thanks to all for the pointers. With a little digging around, I have
 managed to reduce the 220 to zero, and now have all 643 (9.1 on amd64)
 briefly documented.




If there is a list of them ,
is it possible to post that list to share it ?

I think , it will be very useful as a reference .

Thank you very much .

Mehmet Erol Sanliturk
___
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: Kernel Modules Documentation?

2013-05-01 Thread doug



On Wed, 1 May 2013, Mehmet Erol Sanliturk wrote:


On Wed, May 1, 2013 at 12:14 PM, Walter Hurry walterhu...@gmail.com wrote:


On Tue, 30 Apr 2013 10:07:13 -0400, ill...@gmail.com wrote:


On 30 April 2013 09:39, Walter Hurry walterhu...@gmail.com wrote:


FreeBSD 9.1 on amd64.

I have a list of about 220 kernel modules and would like to find out
what they do, or are for (none has a man page). I suspect that many of
them are drivers for particular devices.

Is there any resource or documentation available?


fxr.watson.org is a kernel source cross ref
___
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: Kernel Modules Documentation?

2013-05-01 Thread Walter Hurry
On Wed, 01 May 2013 12:57:26 -0700, Mehmet Erol Sanliturk wrote:

 On Wed, May 1, 2013 at 12:14 PM, Walter Hurry walterhu...@gmail.com
 wrote:
 
 On Tue, 30 Apr 2013 10:07:13 -0400, ill...@gmail.com wrote:

  On 30 April 2013 09:39, Walter Hurry walterhu...@gmail.com wrote:
 
  FreeBSD 9.1 on amd64.
 
  I have a list of about 220 kernel modules and would like to find out
  what they do, or are for (none has a man page). I suspect that many
  of them are drivers for particular devices.
 
  Is there any resource or documentation available?
 
  Thanks.
 
  P.S. Here are the first few:
  ahc_eisa ahc_isa ahc_pci alias_cuseeme
 
 
  Yes, the modules names aren't always exactly the man page name.
  Stubborn  inventive use of apropos  locate ( reading through stuff
  in /usr/src/sys/modules/ ) can help, but not everything is obvious.
 
  ahc(4) covers the first few.
 
  libalias(3) appears to be the only thing to even parenthetically
  mentions cuseeme (NB I didn't run grep over the whole dang
  filesystem, though).
 
  Most of the if_something are under something(4).
 
  For the geom_blahblah, see if it's covered by something mentioned in
  the SEE ALSO sexion of geom(8) or geom(4).

 Thanks to all for the pointers. With a little digging around, I have
 managed to reduce the 220 to zero, and now have all 643 (9.1 on amd64)
 briefly documented.



 
 If there is a list of them ,
 is it possible to post that list to share it ?
 
 I think , it will be very useful as a reference .

Well, it's far from perfect but yes, I can put it somewhere for download. 
How would you like it? CSV? Spreadsheet, Text file?


___
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: Kernel Modules Documentation?

2013-05-01 Thread Walter Hurry
On Wed, 01 May 2013 18:31:47 -0400, doug wrote:

 On Wed, 1 May 2013, Mehmet Erol Sanliturk wrote:
 
 On Wed, May 1, 2013 at 12:14 PM, Walter Hurry walterhu...@gmail.com
 wrote:

 On Tue, 30 Apr 2013 10:07:13 -0400, ill...@gmail.com wrote:

 On 30 April 2013 09:39, Walter Hurry walterhu...@gmail.com wrote:

 FreeBSD 9.1 on amd64.

 I have a list of about 220 kernel modules and would like to find out
 what they do, or are for (none has a man page). I suspect that many
 of them are drivers for particular devices.

 Is there any resource or documentation available?
 
 fxr.watson.org is a kernel source cross ref

Indeed. fxr.watson.org was most helpful.

___
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: Kernel Modules Documentation?

2013-05-01 Thread Mehmet Erol Sanliturk
On Wed, May 1, 2013 at 4:21 PM, Walter Hurry walterhu...@gmail.com wrote:

 On Wed, 01 May 2013 12:57:26 -0700, Mehmet Erol Sanliturk wrote:

  On Wed, May 1, 2013 at 12:14 PM, Walter Hurry walterhu...@gmail.com
  wrote:
 
  On Tue, 30 Apr 2013 10:07:13 -0400, ill...@gmail.com wrote:
 
   On 30 April 2013 09:39, Walter Hurry walterhu...@gmail.com wrote:
  
   FreeBSD 9.1 on amd64.
  
   I have a list of about 220 kernel modules and would like to find out
   what they do, or are for (none has a man page). I suspect that many
   of them are drivers for particular devices.
  
   Is there any resource or documentation available?
  
   Thanks.
  
   P.S. Here are the first few:
   ahc_eisa ahc_isa ahc_pci alias_cuseeme
  
  
   Yes, the modules names aren't always exactly the man page name.
   Stubborn  inventive use of apropos  locate ( reading through stuff
   in /usr/src/sys/modules/ ) can help, but not everything is obvious.
  
   ahc(4) covers the first few.
  
   libalias(3) appears to be the only thing to even parenthetically
   mentions cuseeme (NB I didn't run grep over the whole dang
   filesystem, though).
  
   Most of the if_something are under something(4).
  
   For the geom_blahblah, see if it's covered by something mentioned in
   the SEE ALSO sexion of geom(8) or geom(4).
 
  Thanks to all for the pointers. With a little digging around, I have
  managed to reduce the 220 to zero, and now have all 643 (9.1 on amd64)
  briefly documented.
 
 
 
 
  If there is a list of them ,
  is it possible to post that list to share it ?
 
  I think , it will be very useful as a reference .

 Well, it's far from perfect but yes, I can put it somewhere for download.
 How would you like it? CSV? Spreadsheet, Text file?



Text file .

Thank you very much .

Mehmet Erol Sanliturk
___
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


Kernel Modules Documentation?

2013-04-30 Thread Walter Hurry
FreeBSD 9.1 on amd64.

I have a list of about 220 kernel modules and would like to find out what 
they do, or are for (none has a man page). I suspect that many of them 
are drivers for particular devices.

Is there any resource or documentation available?

Thanks.

P.S. Here are the first few:
ahc_eisa
ahc_isa
ahc_pci
alias_cuseeme



___
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: Kernel Modules Documentation?

2013-04-30 Thread ill...@gmail.com
On 30 April 2013 09:39, Walter Hurry walterhu...@gmail.com wrote:

 FreeBSD 9.1 on amd64.

 I have a list of about 220 kernel modules and would like to find out what
 they do, or are for (none has a man page). I suspect that many of them
 are drivers for particular devices.

 Is there any resource or documentation available?

 Thanks.

 P.S. Here are the first few:
 ahc_eisa
 ahc_isa
 ahc_pci
 alias_cuseeme


Yes, the modules names aren't always exactly
the man page name.  Stubborn  inventive
use of apropos  locate ( reading through
stuff in /usr/src/sys/modules/ ) can help, but
not everything is obvious.

ahc(4) covers the first few.

libalias(3) appears to be the only thing to even
parenthetically mentions cuseeme (NB I didn't
run grep over the whole dang filesystem, though).

Most of the if_something are under something(4).

For the geom_blahblah, see if it's covered by something
mentioned in the SEE ALSO sexion of geom(8) or geom(4).

Good luck.

-- 
--
___
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: Kernel Modules Documentation?

2013-04-30 Thread Anton Shterenlikht

I have a list of about 220 kernel modules and would like to find out 
what 
they do, or are for (none has a man page). I suspect that many of them 
are drivers for particular devices.

Is there any resource or documentation available?

Thanks.

P.S. Here are the first few:
ahc_eisa
ahc_isa
ahc_pci
alias_cuseeme

See e.g. ahc(4).
However, what I do is:

makeoptions MODULES_OVERRIDE=geom/geom_part acl_nfs4

in the kernel config file, or include whichever
modules you use. This way you only build/install
what you actually need. On some boxes I don't
build any modules at all:

makeoptions MODULES_OVERRIDE=

Also, many drivers I build into the kernel,
because I use them all the time, so the extra
flexibility of modules is not required there.

Anton


___
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


Kernel Modules Documentation?

2013-04-30 Thread Robert Huff

Walter Hurry writes:

  I have a list of about 220 kernel modules and would like to find out what 
  they do, or are for (none has a man page). I suspect that many of them 
  are drivers for particular devices.

deleted

  ahc_eisa
  ahc_isa
  ahc_pci

Try man 4 ahc.


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


Re: Kernel Modules Documentation?

2013-04-30 Thread Robert Huff

kpn...@pobox.com writes:
   alias_cuseeme
  
  I don't know this one. Google?

CU-SeeMe is a video conferencing product; I have no idea what
this module does.


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


Re: Keeping FreeBSD with custom kernel up to date: freebsd-update no option?

2013-04-21 Thread andreas scherrer
Thank you, Polytropon.

I have (as far as I can tell) successfully upgraded to 9.1-RELEASE-p2
now. For this I moved /usr/src (SVN) out of the way and followed the
upgrade process described in 25.2.3.2 Performing the Upgrade in the
Handbook [1].

on 17.4.13 22:55  Polytropon said the following:
 On Wed, 17 Apr 2013 22:37:06 +0200, andreas scherrer wrote:
 For some reason I was under the impression that /usr/src/sys is not
 being updated by freebsd-update if I remove kernel from the
 Components directive in freebsd-update.conf. But I might be wrong (I
 will check).
 
 According to the documentation, /usr/src (and therefor the
 /usr/src/sys subtree) is part of the src component, not
 of kernel, so it should be updated properly.

OK. I will check if my /usr/src(/sys) ever changes now. I too think it
should.

 Maybe related to this: how does freebsd-update know what
 sources/binaries to get when I don't use the -r switch? Does it rely
 on /usr/src/sys/conf/newvers.sh?

That would still interest me (also see below).

 By following -RELEASE, freebsd-update will apply _that_ snapshot
 of the source tree and the prebuild world and kernel at the
 revision when X.Y-RELEASE-pZ has been verified, sloppily said.
 So it basically doesn't matter what sources you have on your
 machine (or even if you have any sources) as long as you're not
 going to compile anything. But because this is a requirement in
 your specific setting, freebsd-update will take care of that by
 having the src component on its list.

So how would I follow -RELEASE. Or how does freebsd-update what I want
to follow (see above)?
I don't want to, so this is an academic question...

And something else is bugging me: Is there a way I can contact someone
(Tom Rhodes?) about the outdated freebsd-update documentation
(concerning the custom kernel handling) in the Handbook (FreeBSD
Update [2])? Colin Percival's email is in the man page, would that be
the way to go? The Handbook states that Tom Rhodes wrote the
freebsd-update section but does not reveal an email address...


Kind regards
andreas

[1]
http://www.freebsd.org/doc/handbook/updating-upgrading-freebsdupdate.html
[2]
http://www.freebsd.org/doc/en/books/handbook/updating-upgrading-freebsdupdate.html
___
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: Keeping FreeBSD with custom kernel up to date: freebsd-update no option?

2013-04-17 Thread Alexandre
Hi Andreas and Polytropon,

In the case your are tracking -RELEASE branch, you can use freebsd-update
tool to apply binary security patches on your system and upgrade versions
(e.g. 9.0 to 9.1 or 9.x to 10.0 when available).
Freebsd-update tool apply binary updates to your system and GENERIC kernel.
Furthermore, this tool syncs sources (by default). So if you are using
custom kernel, you just have to rebuild and install your custom kernel.
It is recommended to not use SVN to update your system sources if you are
using freebsd-update tool to avoid troubles.

Regards,
Alexandre


On Tue, Apr 16, 2013 at 10:18 PM, Polytropon free...@edvax.de wrote:

 On Tue, 16 Apr 2013 21:38:16 +0200, andreas scherrer wrote:
  Dear FreeBSD savvies
 
  I am (still) struggling to understand how to keep my FreeBSD system up
  to date (world/system, not ports). I want to track RELEASE (not a
  development branch) and I want to receive security related updates. And
  I want to run a custom kernel.

 Without actually havint tested it, it seems that if you want
 to use freebsd-update (binary updating), you should note this:

 In /etc/freebsd-update.conf, you should have the line for what
 to update as Components src world.

 This should prevent overwriting of the kernel, but you need to
 compile your kernel and install it. The component src will
 make sure you have the proper kernel sources. I assume a custom
 kernel configuration file in /usr/src/sys/{i386|amd64}/conf/
 is _not_ being overwritten by freebsd-update.

 Use the -r option of freebsd-update to specify the correct
 release if required. It should follow -RELEASE-pN for the
 currentl patchlevel N (which you intend to follow) normally.



  From what I understand I cannot use freebsd-update in this case
  because it will invariably either overwrite my custom kernel (if I have
  Components kernel in the config file) or not update the kernel sources
  in /usr/src/sys (when I do not have Components kernel in the config
  file). See [1].

 As far as I read from man freebsd-update.conf, the src component
 will not exclude kernel sources; kernel refers to the kernel and
 the modules as binary stuff.

 This is the relevant text passage:

 The components are ``src''
 (source code), ``world'' (non-kernel binaries),
 and ``kernel''; the sub-components are the indi-
 vidual distribution sets generated as part of
 the release process (e.g., ``src/base'',
 ``src/sys'', ``world/base'', ``world/catpages'',
 ``kernel/smp'').  Note that prior to
 FreeBSD 6.1, the ``kernel'' component was dis-
 tributed as part of ``world/base''.

 So src will include src/sys which is the kernel sources you
 will need to build your custom kernel.



  This leaves me with the only possibility to use SVN to update /usr/src,
  right?

 No, but it might be the more advanced alternative, and it should
 work. Note that in _this_ case, you will also have to rebuild the
 world, so kernel and world are in sync after an update. Refer to
 the comment header of /usr/src/Makefile for the whole process that
 has to be performed after updating (or see in the Handbook: the
 section about updating by source).



  I have a copy of the SVN sources (for the outdated RELEASE-9.0.0
  but that's a different story), see below for svn info). As I
  understand [2] I cannot mix freebsd-update and SVN, right?

 It could cause trouble. Deciding for _one_ way should be better.



  So I can run svn update in /usr/src whenever I like. But what then? Do
  I need to rebuild the world and my custom kernel every time I run svn
  update (and there are some updates)?

 Yes, or better: As soon as it is required. This depends on _what_
 has been part of the update. For example, kernel updates _can_
 require updates of userland programs or libraries, but it's also
 possible that it's not the case. To be sure, rebuild.



  I'm on a low powered consumer
  device and it takes considerable amount of time to build the world and
  kernel (plus I still don't feel comfortable doing such tasks remotely).

 In this case, use freebsd-update as explained at the beginning of
 my message: Update components world and src, leave out kernel,
 the rebuild the kernel by source and install it. Then reboot.



  Is this really the way to do it or am I missing something?

 There are _several_ ways to do it. :-)



  There are quite some posts, websites and threads out there (see [3] or
  [4] for example) about this topic but (surprisingly?) I could not (yet)
  find a conclusive answer.

 This is because the answer depends on what you actually want to do
 (follow RELEASE, STABLE, CURRENT), and how you want to do it (binary,
 by source).




 --
 Polytropon
 Magdeburg, Germany
 Happy FreeBSD user since 4.0
 Andra moi ennepe, Mousa, ...
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions

Bad kernel with make -j?

2013-04-17 Thread Brett Glass

Everyone:

I've just had to resurrect a machine which apparently failed 
because the kernel was built with the make -j option.


As reported in the make(1) man page, the purpose of the -j option 
is to let the make program build multiple portions of a program 
concurrently on a machine with multiple CPUs. The idea is to make 
use of SMP to speed up the build process. Unfortunately, after 
updating a FreeBSD 9.0 system with freebsd-update (and seeing some 
changes that would affect the custom kernel the machine was 
running), I rebuilt the kernel using the -j5 option. (The machine 
has 2 cores and 4 threads, but threads block due to I/O as well as 
memory access. So, when it works properly, -j5 is the fastest option.)


The result was a kernel in which some compiled-in modules -- in 
particular, netgraph nodes -- weren't accessible. mpd5 began 
spewing odd messages, and VPN connections would not come up. I'd 
built the kernel with the NO_MODULES option, so the modules that 
were missing couldn't be loaded dynamically.


Rebuilding the kernel using a single-threaded make solved the problem.

Have others seen the same symptoms? I'd like to be able to do fast, 
multithreaded kernel builds, but will obviously have to avoid it if 
the resulting kernels are corrupted.


--Brett Glass

___
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: Keeping FreeBSD with custom kernel up to date: freebsd-update no option?

2013-04-17 Thread andreas scherrer
Thank you very much for your detailed answer!

on 16.4.13 22:18  Polytropon said the following:
 On Tue, 16 Apr 2013 21:38:16 +0200, andreas scherrer wrote:
 I am (still) struggling to understand how to keep my FreeBSD system up
 to date (world/system, not ports). I want to track RELEASE (not a
 development branch) and I want to receive security related updates. And
 I want to run a custom kernel.
 
 Without actually havint tested it, it seems that if you want
 to use freebsd-update (binary updating), you should note this:
 
 In /etc/freebsd-update.conf, you should have the line for what
 to update as Components src world.

That's what I thought (and currently have).

 This should prevent overwriting of the kernel, but you need to
 compile your kernel and install it. The component src will
 make sure you have the proper kernel sources. I assume a custom
 kernel configuration file in /usr/src/sys/{i386|amd64}/conf/
 is _not_ being overwritten by freebsd-update.

A custom kernel configuration file is *not* overwritten by
freebsd-update, I can confirm this. Of course I will have to compile and
install my custom kernel manually.

For some reason I was under the impression that /usr/src/sys is not
being updated by freebsd-update if I remove kernel from the
Components directive in freebsd-update.conf. But I might be wrong (I
will check).

Maybe related to this: how does freebsd-update know what
sources/binaries to get when I don't use the -r switch? Does it rely
on /usr/src/sys/conf/newvers.sh?

Could it be that I never saw a change to my kernel sources
(/usr/src/sys) because freebsd-update was tracking some static sources?

[snip]

 I'm on a low powered consumer
 device and it takes considerable amount of time to build the world and
 kernel (plus I still don't feel comfortable doing such tasks remotely).
 
 In this case, use freebsd-update as explained at the beginning of
 my message: Update components world and src, leave out kernel,
 the rebuild the kernel by source and install it. Then reboot.

That's what I am planning to do. Let's see.

As I currently have a checkout from SVN in /urs/src I need to get rid of
this. Can I just copy (read: move) back my previous /usr/src directory
and continue to use freebsd-update? I think this should work, right? I
am just not sure if freebsd-update still knows what sources/binaries
to track (see my previous comment about how freebsd-update knows what
source to use).


Cheers
andreas
___
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: Bad kernel with make -j?

2013-04-17 Thread andreas scherrer
on 17.4.13 21:18  Brett Glass said the following:
 I've just had to resurrect a machine which apparently failed because the
 kernel was built with the make -j option.

[snip]

 The result was a kernel in which some compiled-in modules -- in
 particular, netgraph nodes -- weren't accessible. mpd5 began spewing odd
 messages, and VPN connections would not come up. I'd built the kernel
 with the NO_MODULES option, so the modules that were missing couldn't be
 loaded dynamically.
 
 Rebuilding the kernel using a single-threaded make solved the problem.

I am not very experienced but I stumbled over the following note in
/usr/src/UPDATING before:

Avoid using make -j when upgrading.  While generally safe, there are
sometimes problems using -j to upgrade.  If your upgrade fails with
-j, please try again without -j.  From time to time in the past
there have been problems using -j with buildworld and/or
installworld.  This is especially true when upgrading between
distant versions (eg one that cross a major release boundary or
several minor releases, or when several months have passed on the
-current branch).

Maybe that's a hint?

 --Brett Glass
 
 ___
 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


Cheers
andreas
___
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: Keeping FreeBSD with custom kernel up to date: freebsd-update no option?

2013-04-17 Thread Polytropon
On Wed, 17 Apr 2013 22:37:06 +0200, andreas scherrer wrote:
 For some reason I was under the impression that /usr/src/sys is not
 being updated by freebsd-update if I remove kernel from the
 Components directive in freebsd-update.conf. But I might be wrong (I
 will check).

According to the documentation, /usr/src (and therefor the
/usr/src/sys subtree) is part of the src component, not
of kernel, so it should be updated properly.



 Maybe related to this: how does freebsd-update know what
 sources/binaries to get when I don't use the -r switch? Does it rely
 on /usr/src/sys/conf/newvers.sh?
 
 Could it be that I never saw a change to my kernel sources
 (/usr/src/sys) because freebsd-update was tracking some static sources?

Not neccessarily. For example, if only a userland program has
received a security update, and the kernel was kept the same,
no change would be done in /usr/src/sys. In this case, the
kernel version output (as seen by the uname program) would
not have changed.



 As I currently have a checkout from SVN in /urs/src I need to get rid of
 this. Can I just copy (read: move) back my previous /usr/src directory
 and continue to use freebsd-update?

You should not switch between both methods, it may cause problems.
The simplest way would be to

# mv /usr/src /usr/src.svn

and let freebsd-update populate the sources with the required
version. Note that it will install the world your (custom) kernel
will finally have to match, and so it should make sure you have
the correct revision of the sources to avoid a version conflict.

However, it's basically not a problem to use SVN to track -RELEASE,
but in this case, you should recompile world and kernel from that
sources, instead of relying on freebsd-update for a binary update
of the world only. But as you said you're only interested in a
custom kernel (which _requires_ building from source), you can
safely leave everything else to freebsd-update and don't use SVN.
(It would be a totally different thing if you would track -STABLE
or -CURRENT which is not possible with freebsd-update, and which
would _force_ you to build everything from source.)

By following -RELEASE, freebsd-update will apply _that_ snapshot
of the source tree and the prebuild world and kernel at the
revision when X.Y-RELEASE-pZ has been verified, sloppily said.
So it basically doesn't matter what sources you have on your
machine (or even if you have any sources) as long as you're not
going to compile anything. But because this is a requirement in
your specific setting, freebsd-update will take care of that by
having the src component on its list.




-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
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: 9-STABLE doesn't boot: can't load 'kernel'

2013-04-16 Thread J David
loader.conf was empty and there's no 4k gnops, geli, anything like that.
 This is a 100% normal install.

Although, since you mentioned 4k blocks, I did leave a gap between ada0p1
and ada0p2 to start the root partition on a 4k boundary.  (It's an SSD that
will almost never be written to once installed, so that might be a bit
silly, but it's a habit already.)

I decided to try this again without the gap, and that seems to have worked.
 I made it through install and partitioning and OS updating to 9-STABLE and
installing new boot blocks and it seems to have worked.  I even got it to
work with a ZFS root.

Here's the partition table I ended up with:

=   34  234441581  ada0  GPT  (111G)
 34990 1  freebsd-boot  (495k)
   1024  226051072 2  freebsd-zfs  (107G)
  2260520968389519 3  freebsd-swap  (4.0G)

I'm not sure why this would make a difference, but either it does or doing
it cleared out whatever else was wrong.  This box will be stress tested and
rebooted quite a bit in the next few days, so I will report back if it
comes unglued. :)

Thanks for the suggestion!
___
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


Keeping FreeBSD with custom kernel up to date: freebsd-update no option?

2013-04-16 Thread andreas scherrer
Dear FreeBSD savvies

I am (still) struggling to understand how to keep my FreeBSD system up
to date (world/system, not ports). I want to track RELEASE (not a
development branch) and I want to receive security related updates. And
I want to run a custom kernel.

From what I understand I cannot use freebsd-update in this case
because it will invariably either overwrite my custom kernel (if I have
Components kernel in the config file) or not update the kernel sources
in /usr/src/sys (when I do not have Components kernel in the config
file). See [1].

This leaves me with the only possibility to use SVN to update /usr/src,
right? I have a copy of the SVN sources (for the outdated RELEASE-9.0.0
but that's a different story), see below for svn info). As I
understand [2] I cannot mix freebsd-update and SVN, right?

So I can run svn update in /usr/src whenever I like. But what then? Do
I need to rebuild the world and my custom kernel every time I run svn
update (and there are some updates)? I'm on a low powered consumer
device and it takes considerable amount of time to build the world and
kernel (plus I still don't feel comfortable doing such tasks remotely).

Is this really the way to do it or am I missing something?

There are quite some posts, websites and threads out there (see [3] or
[4] for example) about this topic but (surprisingly?) I could not (yet)
find a conclusive answer.

Any hints, help, tutorials or corrections would be greatly appreciated.


Kind regards
andreas

[1]
http://lists.freebsd.org/pipermail/freebsd-questions/2013-January/247763.html
[2]
http://lists.freebsd.org/pipermail/freebsd-questions/2013-April/250461.html
[3] http://forums.freebsd.org/showthread.php?t=26140
[4] http://forums.freebsd.org/showthread.php?t=3

-
# svn info
Path: .
Working Copy Root Path: /usr/src
URL: https://svn0.us-east.freebsd.org/base/release/9.0.0
Repository Root: https://svn0.us-east.freebsd.org/base
Repository UUID: ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Revision: 248546
Node Kind: directory
Schedule: normal
Last Changed Author: kensmith
Last Changed Rev: 229307
Last Changed Date: 2012-01-02 19:59:55 +0100 (Mon, 02 Jan 2012)
-

Ps.: Is there a way I can contact someone (Tom Rhodes?) about the
outdated freebsd-update documentation (concerning the custom kernel
handling) in the Handbook (FreeBSD Update [5])?

[5]
http://www.freebsd.org/doc/en/books/handbook/updating-upgrading-freebsdupdate.html
___
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: Keeping FreeBSD with custom kernel up to date: freebsd-update no option?

2013-04-16 Thread Polytropon
On Tue, 16 Apr 2013 21:38:16 +0200, andreas scherrer wrote:
 Dear FreeBSD savvies
 
 I am (still) struggling to understand how to keep my FreeBSD system up
 to date (world/system, not ports). I want to track RELEASE (not a
 development branch) and I want to receive security related updates. And
 I want to run a custom kernel.

Without actually havint tested it, it seems that if you want
to use freebsd-update (binary updating), you should note this:

In /etc/freebsd-update.conf, you should have the line for what
to update as Components src world.

This should prevent overwriting of the kernel, but you need to
compile your kernel and install it. The component src will
make sure you have the proper kernel sources. I assume a custom
kernel configuration file in /usr/src/sys/{i386|amd64}/conf/
is _not_ being overwritten by freebsd-update.

Use the -r option of freebsd-update to specify the correct
release if required. It should follow -RELEASE-pN for the
currentl patchlevel N (which you intend to follow) normally.



 From what I understand I cannot use freebsd-update in this case
 because it will invariably either overwrite my custom kernel (if I have
 Components kernel in the config file) or not update the kernel sources
 in /usr/src/sys (when I do not have Components kernel in the config
 file). See [1].

As far as I read from man freebsd-update.conf, the src component
will not exclude kernel sources; kernel refers to the kernel and
the modules as binary stuff.

This is the relevant text passage:

The components are ``src''
(source code), ``world'' (non-kernel binaries),
and ``kernel''; the sub-components are the indi-
vidual distribution sets generated as part of
the release process (e.g., ``src/base'',
``src/sys'', ``world/base'', ``world/catpages'',
``kernel/smp'').  Note that prior to
FreeBSD 6.1, the ``kernel'' component was dis-
tributed as part of ``world/base''.

So src will include src/sys which is the kernel sources you
will need to build your custom kernel.



 This leaves me with the only possibility to use SVN to update /usr/src,
 right?

No, but it might be the more advanced alternative, and it should
work. Note that in _this_ case, you will also have to rebuild the
world, so kernel and world are in sync after an update. Refer to
the comment header of /usr/src/Makefile for the whole process that
has to be performed after updating (or see in the Handbook: the
section about updating by source).



 I have a copy of the SVN sources (for the outdated RELEASE-9.0.0
 but that's a different story), see below for svn info). As I
 understand [2] I cannot mix freebsd-update and SVN, right?

It could cause trouble. Deciding for _one_ way should be better.



 So I can run svn update in /usr/src whenever I like. But what then? Do
 I need to rebuild the world and my custom kernel every time I run svn
 update (and there are some updates)?

Yes, or better: As soon as it is required. This depends on _what_
has been part of the update. For example, kernel updates _can_
require updates of userland programs or libraries, but it's also
possible that it's not the case. To be sure, rebuild.



 I'm on a low powered consumer
 device and it takes considerable amount of time to build the world and
 kernel (plus I still don't feel comfortable doing such tasks remotely).

In this case, use freebsd-update as explained at the beginning of
my message: Update components world and src, leave out kernel,
the rebuild the kernel by source and install it. Then reboot.



 Is this really the way to do it or am I missing something?

There are _several_ ways to do it. :-)



 There are quite some posts, websites and threads out there (see [3] or
 [4] for example) about this topic but (surprisingly?) I could not (yet)
 find a conclusive answer.

This is because the answer depends on what you actually want to do
(follow RELEASE, STABLE, CURRENT), and how you want to do it (binary,
by source).




-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
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: 9-STABLE doesn't boot: can't load 'kernel'

2013-04-16 Thread Joshua Isom

On 4/16/2013 1:36 AM, J David wrote:

loader.conf was empty and there's no 4k gnops, geli, anything like that.
  This is a 100% normal install.

Although, since you mentioned 4k blocks, I did leave a gap between
ada0p1 and ada0p2 to start the root partition on a 4k boundary.  (It's
an SSD that will almost never be written to once installed, so that
might be a bit silly, but it's a habit already.)

I decided to try this again without the gap, and that seems to have
worked.  I made it through install and partitioning and OS updating to
9-STABLE and installing new boot blocks and it seems to have worked.  I
even got it to work with a ZFS root.

Here's the partition table I ended up with:

=   34  234441581  ada0  GPT  (111G)
  34990 1  freebsd-boot  (495k)
1024  226051072 2  freebsd-zfs  (107G)
   2260520968389519 3  freebsd-swap  (4.0G)

I'm not sure why this would make a difference, but either it does or
doing it cleared out whatever else was wrong.  This box will be stress
tested and rebooted quite a bit in the next few days, so I will report
back if it comes unglued. :)

Thanks for the suggestion!



I'd say file a bug report, since subtly hidden parts of the disk can be 
beneficial in the right circumstances.  That, and it should just work.


Does your drive report the blocks as 512 bytes or 4k?  If you're using 
zfs now, run `zdb | grep ashift` and it should list 12 if it's 4k. 
Otherwise, you can get a performance hit if the drive's 4k native.  Two 
of my drives are 4k native but report as 512b, so I had to trick zfs 
with gnop.

___
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


9-STABLE doesn't boot: can't load 'kernel'

2013-04-15 Thread J David
After installing 9.1-RELEASE amd64 on a system, it boots up fine.  If I
then build and install a new 9-STABLE kernel  world, reboots die in the
loader with:

can't load 'kernel'

This is a pretty straightforward system, one drive, not large (128GB SSD).
 GPT partitioned, gptboot boot code.  One UFS root partition to boot from,
a swap partition and, the rest for ZFS.

(At first I tried to do this system with root-on-ZFS but that also failed,
adding unable to load zpool by guid or similar before the can't load
'kernel' message.)

Once this happens, the disk is unbootable.  I can start from the install CD
and access the disk just fine, but even if I move kernel.old back to
kernel, it doesn't boot anymore.  Likewise, it doesn't matter if I
overwrite the boot code with gptboot  pmbr from the install CD or the new
ones from /boot after installworld.

The disk looks like:

# gpart show
= 34 234441581 ada0 GPT (111G)
34 222 1 freebsd-boot (111k)
256 1792 - free - (896k)
2048 8388608 2 freebsd-ufs (4.0G)
8390656 8388608 3 freebsd-swap (4.0G)
16779264 217662351 4 freebsd-zfs (103G)

In the loader:
BTX loader 1.00  BTX version is 1.02
Consoles: internal video/keyboard
BIOS drive C: is disk0
BIOS 621kB/2067924kB available memory

FreeBSD/x86 bootstrap loader, Revision 1.1
(root@builder, Mon Apr 15 09:14:38 UTC 2013)

can't load 'kernel'

Type '?' for a list of commands, 'help' for more detailed help.
OK show
[…]
currdev=disk0p2:
[…]
loaddev=disk0p2:
[…]
OK lsdev
cd devices:
disk devices:
   disk0: BIOS drive C:
pxe devices:
OK ls
open '/' failed: no such file or directory
OK help
Verbose help not available, use '?' to list commands

So it's getting the boot device right (disk0p2 / ada0p2), but can't see it
at all.

Does anyone know what might be wrong?

Thanks for any advice!
___
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: 9-STABLE doesn't boot: can't load 'kernel'

2013-04-15 Thread Joshua Isom
I can't recall, does the cd come with the btx loader?  Is it able to see 
the hard drive partitions and boot that way?


Did you put anything in loader.conf?  I'm guessing that if you're 
getting to /boot/loader but not any further, it's something wrong with 
the conf file.  If you're booting UFS, you might be safe just 
deleting/renaming the file.


And just for sanity's sake, you didn't try anything special with geom 
did you, such as 4k blocks, geli, etc?


On 4/15/2013 1:03 PM, J David wrote:

After installing 9.1-RELEASE amd64 on a system, it boots up fine.  If I
then build and install a new 9-STABLE kernel  world, reboots die in the
loader with:

can't load 'kernel'

This is a pretty straightforward system, one drive, not large (128GB SSD).
  GPT partitioned, gptboot boot code.  One UFS root partition to boot from,
a swap partition and, the rest for ZFS.

(At first I tried to do this system with root-on-ZFS but that also failed,
adding unable to load zpool by guid or similar before the can't load
'kernel' message.)

Once this happens, the disk is unbootable.  I can start from the install CD
and access the disk just fine, but even if I move kernel.old back to
kernel, it doesn't boot anymore.  Likewise, it doesn't matter if I
overwrite the boot code with gptboot  pmbr from the install CD or the new
ones from /boot after installworld.

The disk looks like:

# gpart show
= 34 234441581 ada0 GPT (111G)
34 222 1 freebsd-boot (111k)
256 1792 - free - (896k)
2048 8388608 2 freebsd-ufs (4.0G)
8390656 8388608 3 freebsd-swap (4.0G)
16779264 217662351 4 freebsd-zfs (103G)

In the loader:
BTX loader 1.00  BTX version is 1.02
Consoles: internal video/keyboard
BIOS drive C: is disk0
BIOS 621kB/2067924kB available memory

FreeBSD/x86 bootstrap loader, Revision 1.1
(root@builder, Mon Apr 15 09:14:38 UTC 2013)

can't load 'kernel'

Type '?' for a list of commands, 'help' for more detailed help.
OK show
[…]
currdev=disk0p2:
[…]
loaddev=disk0p2:
[…]
OK lsdev
cd devices:
disk devices:
disk0: BIOS drive C:
pxe devices:
OK ls
open '/' failed: no such file or directory
OK help
Verbose help not available, use '?' to list commands

So it's getting the boot device right (disk0p2 / ada0p2), but can't see it
at all.

Does anyone know what might be wrong?

Thanks for any advice!
___
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



___
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: use of the kernel and licensing

2013-04-01 Thread Joe

snip

How do you explain all the forks of UNIX each claiming their own 
copyright. They all provide the same concept, use the same names for 
their commands, use the same programming language, have a filesystem as 
their base. Just where is the line drawn between a fork and a rewrite?

___
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: use of the kernel and licensing

2013-04-01 Thread Erich Dollansky
Hi,

On Mon, 01 Apr 2013 10:26:15 -0400
Joe fb...@a1poweruser.com wrote:

 snip
 
 How do you explain all the forks of UNIX each claiming their own 
 copyright. They all provide the same concept, use the same names for 
 their commands, use the same programming language, have a filesystem
 as their base. Just where is the line drawn between a fork and a
 rewrite? 

just go back in history and find out why the ATT code in BSD was
rewritten.

Erich

___
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: use of the kernel and licensing

2013-04-01 Thread Steve O'Hara-Smith
On Mon, 01 Apr 2013 10:26:15 -0400
Joe fb...@a1poweruser.com wrote:

 snip
 
 How do you explain all the forks of UNIX each claiming their own 
 copyright.

Look very carefully at the copyrights involved, you will see
copyright attributions retained very carefully (see for example the
file /usr/src/COPYRIGHT in FreeBSD).

 They all provide the same concept, use the same names for 
 their commands, use the same programming language, have a filesystem as 
 their base.

These features are defined in open standards (POSIX and SUS) for
anyone who cares to implement them.

 Just where is the line drawn between a fork and a rewrite?

That's simple in essence, if it's written by taking a copy of the
code and modifying it then it's a fork (until and unless you can prove that
not one single line of the original code remains), if it's written from
scratch with no reference to the original code then it's a rewrite. I
suppose there are edge cases where a rewrite may include a portion taken
from the original (assuming compatible licensing), or where a fork has been
so heavily modified that little of the original remains.

-- 
Steve O'Hara-Smith st...@sohara.org
___
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: use of the kernel and licensing

2013-04-01 Thread Joshua Isom

On 4/1/2013 11:41 AM, kpn...@pobox.com wrote:

Copyright covers expressions of ideas. It does not cover the ideas themselves.
You can't copyright a concept, you can't copyright filesystems, and I
believe in the past few years a high court in the EU ruled that you can't
copyright a programming language. None of the things mentioned above are
covered by copyright.

Copyright would cover the implementations of these things. That's why it
was necessary to reimplement much of BSD.



Here's where it gets annoying, copyrights cover implementations, and 
patents can cover the ideas.  A lot of patents use an on a computer 
line to get it called an invention instead of an math equation.

___
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: use of the kernel and licensing

2013-03-31 Thread Joe

kpn...@pobox.com wrote:

On Sat, Mar 30, 2013 at 09:22:22AM -0400, Maikoda Sutter wrote:

If I use the kernel as a basis for my own system and modify the kernel
should I still maintain the licensing of the kernel bits, or could release
it under it's own license?

For example: I would like to rewrite the headers to be 100% POSIX compliant
and I do like the BSD license, however I was planning on releasing my whole
system under the Unlicense, I understand that certain headers and code that
I do not modify has to be released under the BSD license as that is the
original license of the code, however for headers or code that I modify can
I release it under the Unlicense (http://unlicense.org/)?

I do plan on giving credit where it is due and such to the wonderful
developers of FreeBSD and those that wrote the original code because
without you I would not be able to produce so rapidly that which I am
looking to produce I just would like clarification on the extent that I
would have to license things via the BSD license.


You cannot yourself change the license on code you do not hold the copyright
on. Period.

If you make changes and redistribute them then add your copyright notice
with license to the files. Do not remove the existing copyright notice(s)
and license(s).

You hold the copyright for stuff you wrote, but the original copyright
stays for the parts that did not come from you. Parts means any fraction
of a file from the whole file down to small amounts. You are allowed to
add restrictions (unless the existing license says you can't), but you are
not allowed to loosen the existing restrictions (unless the existing license
says you can). Also, it follows from the copyright that your license only
applies to the parts copyrighted by you.  The existing licenses are similar
in that they apply only to their parts of the file. All licenses must be
followed when the file is treated (copied, used, etc) as a whole.

Make sure your license isn't incompatible with the license that applies
to other parts of the same file. If that happens then how it will turn out
in court is anyone's guess. The file may not be usable by the public, or
the incompatible license terms added by you may be struck down, or a judge
could cook up something else. It can't be predicted in advance so just
don't even go there.

Giving credit where it is due is an important social convention, and I'm
glad to see that you aren't planning on doing anything unethical like
breaking it. But copyright comes from the law and thus must be obeyed even
if you wanted to break purely social conventions.

Read up on copyright, and when you do pay close attention to the reliability
of the source. The issue has become very political in the past 15 years
or so. Don't be badly advised by someone who has their own agenda. Most
people, to varying degrees, have their own agenda.

Finally, if money is at stake (directly or indirectly) I strongly advise
talking to a copyright lawyer in particular. That's just general advice.
Taking advice from random people online is not a good idea if any money
is involved, but I'd give the same advice to my best friend. The general
rule applies here as it does elsewhere: You get what you pay for.



Does one have to file legal paper work with the government to be issued 
a copyright on software?


Does any software not having a copyright statement or any license 
comments included in the source mean that it's public domain?



___
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: use of the kernel and licensing

2013-03-31 Thread Teske, Devin

On Mar 31, 2013, at 6:39 AM, Joe fb...@a1poweruser.com wrote:

 kpn...@pobox.com wrote:
 On Sat, Mar 30, 2013 at 09:22:22AM -0400, Maikoda Sutter wrote:
 If I use the kernel as a basis for my own system and modify the kernel
 should I still maintain the licensing of the kernel bits, or could release
 it under it's own license?
 
 For example: I would like to rewrite the headers to be 100% POSIX compliant
 and I do like the BSD license, however I was planning on releasing my whole
 system under the Unlicense, I understand that certain headers and code that
 I do not modify has to be released under the BSD license as that is the
 original license of the code, however for headers or code that I modify can
 I release it under the Unlicense (http://unlicense.org/)?
 
 I do plan on giving credit where it is due and such to the wonderful
 developers of FreeBSD and those that wrote the original code because
 without you I would not be able to produce so rapidly that which I am
 looking to produce I just would like clarification on the extent that I
 would have to license things via the BSD license.
 You cannot yourself change the license on code you do not hold the copyright
 on. Period.
 If you make changes and redistribute them then add your copyright notice
 with license to the files. Do not remove the existing copyright notice(s)
 and license(s).
 You hold the copyright for stuff you wrote, but the original copyright
 stays for the parts that did not come from you. Parts means any fraction
 of a file from the whole file down to small amounts. You are allowed to
 add restrictions (unless the existing license says you can't), but you are
 not allowed to loosen the existing restrictions (unless the existing license
 says you can). Also, it follows from the copyright that your license only
 applies to the parts copyrighted by you.  The existing licenses are similar
 in that they apply only to their parts of the file. All licenses must be
 followed when the file is treated (copied, used, etc) as a whole.
 Make sure your license isn't incompatible with the license that applies
 to other parts of the same file. If that happens then how it will turn out
 in court is anyone's guess. The file may not be usable by the public, or
 the incompatible license terms added by you may be struck down, or a judge
 could cook up something else. It can't be predicted in advance so just
 don't even go there.
 Giving credit where it is due is an important social convention, and I'm
 glad to see that you aren't planning on doing anything unethical like
 breaking it. But copyright comes from the law and thus must be obeyed even
 if you wanted to break purely social conventions.
 Read up on copyright, and when you do pay close attention to the reliability
 of the source. The issue has become very political in the past 15 years
 or so. Don't be badly advised by someone who has their own agenda. Most
 people, to varying degrees, have their own agenda.
 Finally, if money is at stake (directly or indirectly) I strongly advise
 talking to a copyright lawyer in particular. That's just general advice.
 Taking advice from random people online is not a good idea if any money
 is involved, but I'd give the same advice to my best friend. The general
 rule applies here as it does elsewhere: You get what you pay for.
 
 Does one have to file legal paper work with the government to be issued a 
 copyright on software?
 

No, copyrights are more like artists signing their work -- in a standardized 
way -- but every bit as legally binding.

They are first come priority in the court of law and if-ever disputed, often 
require correlative evidentiary proof to show true ownership (a notarized copy 
of the work mailed to yourself kept in an unopened envelope perhaps).


 Does any software not having a copyright statement or any license comments 
 included in the source mean that it's public domain?
 

Be careful here.

The answer to your question is NO.

If a work lacks a license in the source, it may be on the website. If you can't 
find a license, you must always contact the author(s) before forking something. 
If you can neither find the license nor the contact info, it's always best to 
assume it is not for reuse. Even the, if you used code that was from an unknown 
origin with no license and no author, you should indicate as such in the header 
of such source files.

Essentially what it boils down to, is that in the court of law (if someone 
indicts or brings a civil suit) you may have to account for the origin of every 
line -- so that's why:

1. If a file has an inline license (beerware, gpl, bsd, apple, or even one you 
make up all your own), it must stay there to mark the origins

2. If a file is lacking an inline license, it is often because the license is 
too long or unwieldy to embed and it is in a COPYING file distributed with the 
source code OR in a terms of agreement on the website (in which case you should 
download it and place

Re: use of the kernel and licensing

2013-03-31 Thread Polytropon
On Sun, 31 Mar 2013 09:39:29 -0400, Joe wrote:
 Does one have to file legal paper work with the government to be issued 
 a copyright on software?

With _which_ government? :-)

Basic understanding of copyright is: The stuff _you_ write
happens automatically under _your_ copyright, because you
are the creator. There is nothing you need to do to achieve
the copyright - it's yours by acting. At the moment you
write something like (C) Joe Sixpack 2012 it's set in
stone.

There might be other ways to prove (!) copyright, e. g. when
one of your files appears in someone else's work, but now
with the originator line saying (C) Nick Nosewhite 2013.
In case of a court trial which involves copyright, you can
prove from your CVS log of creation (or whatever source
management system or even file system you use) that _you_
have been writing that code, nobody else.



 Does any software not having a copyright statement or any license 
 comments included in the source mean that it's public domain?

I would assume this. Imagine a snippet of code with no author
mentioned in it (or in the source it comes from, or any file
it is accompanied by), how would you be able to conclude
something _else_ than this is public domain with _no_
copyright holder?



Note that copyright and license are two different things.
A skilled lawyer will be able to explain it more precisely
and show you how it applies for the jurisdiction you're
living in.



-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
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: use of the kernel and licensing

2013-03-31 Thread Michael Ross

On Sun, 31 Mar 2013 16:31:43 +0200, Polytropon free...@edvax.de wrote:


On Sun, 31 Mar 2013 09:39:29 -0400, Joe wrote:

Does one have to file legal paper work with the government to be issued
a copyright on software?


With _which_ government? :-)

Basic understanding of copyright is: The stuff _you_ write
happens automatically under _your_ copyright, because you
are the creator. There is nothing you need to do to achieve
the copyright - it's yours by acting. At the moment you
write something like (C) Joe Sixpack 2012 it's set in
stone.

There might be other ways to prove (!) copyright, e. g. when
one of your files appears in someone else's work, but now
with the originator line saying (C) Nick Nosewhite 2013.
In case of a court trial which involves copyright, you can
prove from your CVS log of creation (or whatever source
management system or even file system you use) that _you_
have been writing that code, nobody else.




Does any software not having a copyright statement or any license
comments included in the source mean that it's public domain?


I would assume this. Imagine a snippet of code with no author
mentioned in it (or in the source it comes from, or any file
it is accompanied by), how would you be able to conclude
something _else_ than this is public domain with _no_
copyright holder?


I think you are wrong here.

quoting http://en.wikipedia.org/wiki/Public_domain_software:
Under the Berne Convention, which most countries have signed, an author  
automatically obtains the exclusive copyright to anything they have  
written, and local law may similarly grant copyright, patent, or trademark  
rights by default. The Berne Convention also covers programs. Therefore, a  
program is automatically subject to a copyright, and if it is to be placed  
in the public domain, the author must explicitly disclaim the copyright  
and other rights on it in some way.


Note the wording explicitly disclaim.

While German law has something like a triviality threshold which may  
well apply to very small code snippets,

i'd say no included license by default means all rights reserved.


Regards,

Michael
___
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: use of the kernel and licensing

2013-03-31 Thread Polytropon
On Sun, 31 Mar 2013 16:43:27 +0200, Michael Ross wrote:
 On Sun, 31 Mar 2013 16:31:43 +0200, Polytropon free...@edvax.de wrote:
 
  On Sun, 31 Mar 2013 09:39:29 -0400, Joe wrote:
  Does one have to file legal paper work with the government to be issued
  a copyright on software?
 
  With _which_ government? :-)
 
  Basic understanding of copyright is: The stuff _you_ write
  happens automatically under _your_ copyright, because you
  are the creator. There is nothing you need to do to achieve
  the copyright - it's yours by acting. At the moment you
  write something like (C) Joe Sixpack 2012 it's set in
  stone.
 
  There might be other ways to prove (!) copyright, e. g. when
  one of your files appears in someone else's work, but now
  with the originator line saying (C) Nick Nosewhite 2013.
  In case of a court trial which involves copyright, you can
  prove from your CVS log of creation (or whatever source
  management system or even file system you use) that _you_
  have been writing that code, nobody else.
 
 
 
  Does any software not having a copyright statement or any license
  comments included in the source mean that it's public domain?
 
  I would assume this. Imagine a snippet of code with no author
  mentioned in it (or in the source it comes from, or any file
  it is accompanied by), how would you be able to conclude
  something _else_ than this is public domain with _no_
  copyright holder?
 
 I think you are wrong here.
 
 quoting http://en.wikipedia.org/wiki/Public_domain_software:
 Under the Berne Convention, which most countries have signed, an author  
 automatically obtains the exclusive copyright to anything they have  
 written, and local law may similarly grant copyright, patent, or trademark  
 rights by default. The Berne Convention also covers programs. Therefore, a  
 program is automatically subject to a copyright, and if it is to be placed  
 in the public domain, the author must explicitly disclaim the copyright  
 and other rights on it in some way.
 
 Note the wording explicitly disclaim.

This exactly expresses my interpretation, maybe I didn't find
the right words. Obtaining copyright is implicit (by creating
stuff), giving up copyright is an explicit act.

Copyright information and licensing statements don't have to
be neccessarily included in the file in question, they could
also be in a file coming with the file in question, such
as a LICENSE text file or AUTHORS, or in a manpage refering
to a specific program (even though it's quite common to place
that information at least as comments in source files). No
not finding this information in the source and therefor _assuming_
there is no copyright holder or no license (and therefor all
rights granted) is wrong.

An exception might actually be code snippets below the 'triviality
threshold' (as you mentioned is at least known in Germany) which
have been published anonymously. In this case, neither an author
or a license can be found, and in the absence of _both_, the
assumption of the snippet being in the public domain would at
least be undertandable. If it is _valid_ under all circumstances
and in all juristictions, that's a totally different questions,
to be answered by two lawyers with three opinions. :-)



 While German law has something like a triviality threshold which may  
 well apply to very small code snippets,
 i'd say no included license by default means all rights reserved.

As for licenses (copyright aside), this may very well be. If
no rights are explicitely granted (even the do whatever you
want right), it could be invalid to simply _assume_ such a
right.

The no license included approach, on the other hand, could
also show the authors attitude as I don't care, also a valid
standpoint...




-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
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


use of the kernel and licensing

2013-03-30 Thread Maikoda Sutter
If I use the kernel as a basis for my own system and modify the kernel
should I still maintain the licensing of the kernel bits, or could release
it under it's own license?

For example: I would like to rewrite the headers to be 100% POSIX compliant
and I do like the BSD license, however I was planning on releasing my whole
system under the Unlicense, I understand that certain headers and code that
I do not modify has to be released under the BSD license as that is the
original license of the code, however for headers or code that I modify can
I release it under the Unlicense (http://unlicense.org/)?

I do plan on giving credit where it is due and such to the wonderful
developers of FreeBSD and those that wrote the original code because
without you I would not be able to produce so rapidly that which I am
looking to produce I just would like clarification on the extent that I
would have to license things via the BSD license.

Respectively Yours,

Maikoda Raine
Arrogant Penguin Industries
___
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


kernel config file

2013-03-21 Thread Fbsd8
Back around 4.x there was a File that had all the available kernel 
compile options with their meanings as comments. On 9.1 I don't see that 
file any more. Where can I find that file that lists all the kernel 
compile options? The 9.1 NOTES file is not that file.


I have makeoptions NO_MODULES=yes statement in my kernel config file 
and the blanktime and warp_saver load modules don't get created.


I need the options statements for those items so I can compile then into 
the kernel.


Thanks



___
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: kernel config file

2013-03-21 Thread Chris Whitehouse

On 21/03/2013 19:54, Fbsd8 wrote:

Back around 4.x there was a File that had all the available kernel
compile options with their meanings as comments. On 9.1 I don't see that
file any more. Where can I find that file that lists all the kernel
compile options? The 9.1 NOTES file is not that file.

I have makeoptions NO_MODULES=yes statement in my kernel config file
and the blanktime and warp_saver load modules don't get created.

I need the options statements for those items so I can compile then into
the kernel.


Would it be /usr/src/sys/conf/NOTES ?

%grep warp_saver /usr/src/sys/conf/NOTES
device  warp_saver

And isn't blanktime set in rc.conf?

%grep blank /etc/defaults/rc.conf
blanktime=300 # blank time (in seconds) or NO to turn it off.


Chris


Thanks



___
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



___
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: kernel config file

2013-03-21 Thread Polytropon
On Thu, 21 Mar 2013 15:54:22 -0400, Fbsd8 wrote:
 Back around 4.x there was a File that had all the available kernel 
 compile options with their meanings as comments. On 9.1 I don't see that 
 file any more. Where can I find that file that lists all the kernel 
 compile options? The 9.1 NOTES file is not that file.

There are several files with such content. For architecture-
independent and general settings:

/usr/src/sys/conf/NOTES

For i386 or amd64 architecture, individual:

/usr/src/sys/i386/conf/NOTES
/usr/src/sys/amd64/conf/NOTES

Similarly, you'll find the DEFAULTS and GENERIC files helpful.



 I have makeoptions NO_MODULES=yes statement in my kernel config file 
 and the blanktime and warp_saver load modules don't get created.

Have a look at man src.conf for dealing with the creation
of modules.



 I need the options statements for those items so I can compile then into 
 the kernel.

If I remember correctly, you'll need device sc, device vga
and device splash for the splash screen and screen saver
support.

Also see /usr/src/sys/conf/NOTES where several savers are
listed with options like device warp_saver.



-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
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: Current Way To Update Sources Rebuild World/Kernel? -- SOLVED

2013-03-20 Thread Polytropon
On Tue, 19 Mar 2013 14:06:41 -0700, Drew Tomlinson wrote:
 Thanks for the replies.  Using freebsd-update seemed the simplest method 
 since it was already included.  Worked just fine for getting the 
 sources.

Probably in the future there will be a csup-equivalent
included with the OS, plus configuration templates that
can be used to do a source incorporation via SVN.



 And following the steps listed in comments in 
 /usr/src/Makefile worked for building and installing the sources.

I've relied on them for many years, and they seem to work
happily. :-)



-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
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: Current Way To Update Sources Rebuild World/Kernel? -- SOLVED

2013-03-19 Thread Drew Tomlinson

On 3/17/2013 3:16 PM, Polytropon wrote:

On Sun, 17 Mar 2013 15:07:35 -0700, Drew Tomlinson wrote:

I've been away for a while.  In the past, the proper way to update a
system was to grab current sources via cvsup and then rebuild world and
kernel.  But now I see cvsup is no longer supported.

Correct. The new way to obtain sources is via Subversion.
The OS will hopefully soon get a csup equivalent (svnup)
so you don't need to install a port with heavy dependencies.




The handbook talks
about freebsd-update.  I do not want binary upgrades but is this the
tool to replace cvsup to update sources?

Basically freebsd-update updates the system binarily, as you
said. But it can also be used to only update sources. In order
to do this, edit /etc/freebsd-update.conf to contain the line
Components src (means: you remove all the other components
such as world and kernel). Then you proceed to reinstall
from source as known.




How do I use it to replace the
old way that went something like this:

cvsup sources
make buildworld
make buildkernel
make installkernel
mergemaster
make installworld

(I'm not sure I have that in the exact proper order but it was something
like that).

The exact proper order can be found in the comment header of
/usr/src/Makefile. You should stick to that order to avoid
problems. Also see the corresponding handbook section.




So is freebsd-update what I need?

As explained above - or make yourself familiar with SVN, which
is the CVSup / csup replacement.




Is there a page that describes the
steps to accomplish this?

See man freebsd-update and the comments in /etc/freebsd-update.conf
for details. Also see the Handbook's section about updating.


Thanks for the replies.  Using freebsd-update seemed the simplest method 
since it was already included.  Worked just fine for getting the 
sources.  And following the steps listed in comments in 
/usr/src/Makefile worked for building and installing the sources.


Cheers,

Drew

--
Like card tricks?

Visit The Alchemist's Warehouse to
learn card magic secrets for free!

http://alchemistswarehouse.com


___
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: Current Way To Update Sources Rebuild World/Kernel?

2013-03-18 Thread Patrick Lamaiziere
Le Sun, 17 Mar 2013 15:07:35 -0700,
Drew Tomlinson d...@mykitchentable.net a écrit :

 I've been away for a while.  In the past, the proper way to update a 
 system was to grab current sources via cvsup and then rebuild world
 and kernel.  But now I see cvsup is no longer supported.  The
 handbook talks about freebsd-update.  I do not want binary upgrades
 but is this the tool to replace cvsup to update sources?  How do I
 use it to replace the old way that went something like this:
 
 cvsup sources
 make buildworld
 make buildkernel
 make installkernel
 mergemaster
 make installworld

Instead cvsup you have to use svn to retrieve the sources :
http://www.freebsd.org/doc/handbook/svn.html

The good way is (and was) mergemaster -p before make installworld and
mergemaster after.

regards
___
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: Current Way To Update Sources Rebuild World/Kernel?

2013-03-18 Thread Damien Fleuriot
On Mar 17, 2013 11:07 PM, Drew Tomlinson d...@mykitchentable.net wrote:

 I've been away for a while.  In the past, the proper way to update a
system was to grab current sources via cvsup and then rebuild world and
kernel.  But now I see cvsup is no longer supported.  The handbook talks
about freebsd-update.  I do not want binary upgrades but is this the tool
to replace cvsup to update sources?  How do I use it to replace the old way
that went something like this:

 cvsup sources
 make buildworld
 make buildkernel
 make installkernel
 mergemaster
 make installworld

 (I'm not sure I have that in the exact proper order but it was something
like that).

 So is freebsd-update what I need?  Is there a page that describes the
steps to accomplish this?

 Thanks,

 Drew


http://www.wonkity.com/~wblock/docs/html/stable.html

Buildworld
Buildkernel
Installkernel
Reboot
Mergemaster -p
Installworld
Mergemaster
Rebuild ports
Delete-old
Delete-old-libs
Delete-old-dirs

Less /usr/src/Makefile
___
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: Current Way To Update Sources Rebuild World/Kernel?

2013-03-17 Thread Polytropon
On Sun, 17 Mar 2013 15:07:35 -0700, Drew Tomlinson wrote:
 I've been away for a while.  In the past, the proper way to update a 
 system was to grab current sources via cvsup and then rebuild world and 
 kernel.  But now I see cvsup is no longer supported. 

Correct. The new way to obtain sources is via Subversion.
The OS will hopefully soon get a csup equivalent (svnup)
so you don't need to install a port with heavy dependencies.



 The handbook talks 
 about freebsd-update.  I do not want binary upgrades but is this the 
 tool to replace cvsup to update sources?

Basically freebsd-update updates the system binarily, as you
said. But it can also be used to only update sources. In order
to do this, edit /etc/freebsd-update.conf to contain the line
Components src (means: you remove all the other components
such as world and kernel). Then you proceed to reinstall
from source as known.



 How do I use it to replace the 
 old way that went something like this:
 
 cvsup sources
 make buildworld
 make buildkernel
 make installkernel
 mergemaster
 make installworld
 
 (I'm not sure I have that in the exact proper order but it was something 
 like that).

The exact proper order can be found in the comment header of
/usr/src/Makefile. You should stick to that order to avoid
problems. Also see the corresponding handbook section.



 So is freebsd-update what I need?

As explained above - or make yourself familiar with SVN, which
is the CVSup / csup replacement.



 Is there a page that describes the 
 steps to accomplish this?

See man freebsd-update and the comments in /etc/freebsd-update.conf
for details. Also see the Handbook's section about updating.




-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
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: linux program with kernel module

2013-03-15 Thread Ruben de Groot
On Thu, Mar 14, 2013 at 10:42:41PM +0100, Ralf Mardorf typed:
 On Thu, 2013-03-14 at 21:43 +0100, Istvan Gabor wrote:
  Can it run linux programs that have their own (linux) kernel module?
  If yes, how can I install such program, and how can I load the kernel 
  module?
  
  (If I know correctly nvidia drivers have their own kernel modules, and 
  FreeBSD can
  run linux nvidia drivers).
 
 Yesno.
 
 You need to compile kernel modules to fit to the version of FreeBSD or
 Linux.
 
 I also call user space FreeBSD and Linux, but it's _not_ correct to
 do it. FreeBSD is a kernel and Linux is a kernel, not the whole system
 is called Linux or FreeBSD and both kernels are available in different
 versions.

You're right about Linux (being only a kernel). Not so for FreeBSD. FreeBSD
is the name of the OS,, kernel plus userland. You can compare it to debian,
another (linux based) OS.

___
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: linux program with kernel module

2013-03-15 Thread Ralf Mardorf
On Fri, 2013-03-15 at 15:03 +, Ruben de Groot wrote:
 On Thu, Mar 14, 2013 at 10:42:41PM +0100, Ralf Mardorf typed:
  On Thu, 2013-03-14 at 21:43 +0100, Istvan Gabor wrote:
   Can it run linux programs that have their own (linux) kernel module?
   If yes, how can I install such program, and how can I load the kernel 
   module?
   
   (If I know correctly nvidia drivers have their own kernel modules, and 
   FreeBSD can
   run linux nvidia drivers).
  
  Yesno.
  
  You need to compile kernel modules to fit to the version of FreeBSD or
  Linux.
  
  I also call user space FreeBSD and Linux, but it's _not_ correct to
  do it. FreeBSD is a kernel and Linux is a kernel, not the whole system
  is called Linux or FreeBSD and both kernels are available in different
  versions.
 
 You're right about Linux (being only a kernel). Not so for FreeBSD. FreeBSD
 is the name of the OS,, kernel plus userland. You can compare it to debian,
 another (linux based) OS.

Ok, thanks :).

However, I also should be more precise about compiling modules.
It might be that somebody did build a package, that does provide a
kernel module for a special kernel version.

I don't have experiences with FreeBSD and for FreeBSD I anyway build
from the ports tree, so I have no idea about packages for FreeBSD, but I
suspect that it's as it is for most Linux distros.

Sometimes packages do provide modules for the current default kernel. So
on major Linux distros you usually can install VBox from a package and
it will come with the kernel modules for the packaged default kernel of
the distro.

___
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


linux program with kernel module

2013-03-14 Thread Istvan Gabor
Hello:

This might be a silly question but I would like to be sure.
FreeBSD can run linux programs with its linux compatibility module
(linuxulator).

Can it run linux programs that have their own (linux) kernel module?
If yes, how can I install such program, and how can I load the kernel module?

(If I know correctly nvidia drivers have their own kernel modules, and FreeBSD 
can
run linux nvidia drivers).

Thanks,

Istvan


___
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: linux program with kernel module

2013-03-14 Thread Ralf Mardorf
On Thu, 2013-03-14 at 21:43 +0100, Istvan Gabor wrote:
 Can it run linux programs that have their own (linux) kernel module?
 If yes, how can I install such program, and how can I load the kernel module?
 
 (If I know correctly nvidia drivers have their own kernel modules, and 
 FreeBSD can
 run linux nvidia drivers).

Yesno.

You need to compile kernel modules to fit to the version of FreeBSD or
Linux.

I also call user space FreeBSD and Linux, but it's _not_ correct to
do it. FreeBSD is a kernel and Linux is a kernel, not the whole system
is called Linux or FreeBSD and both kernels are available in different
versions.

To compile a module you need to install the kernel headers of the same
version as the kernel.

The module quasi is the driver.

___
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: Issue with building custom kernel

2013-03-14 Thread Andre Goree

On Wed, 13 Mar 2013 17:43:40 -0400, Damien Fleuriot m...@my.gd wrote:



On 13 Mar 2013, at 22:26, Andre Goree an...@drenet.info wrote:

I seem to be having trouble building my custom kernel.  I've removed  
several things that I believe were unnecessary, and added Linux  
support, but I don't think I'm missing anything that is very  
important.  Here is the last few lines of the build:


=== zlib (all)
/usr/local/libexec/ccache/world/cc -O2 -pipe -fno-strict-aliasing  
-Werror -D_KERNEL -DKLD_MODULE -nostdinc   -DHAVE_KERNEL_OPTION_HEADERS  
-include /usr/obj/usr/src/sys/BUILD130313/opt_global.h -I. -I@  
-I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100  
--param large-function-growth=1000 -fno-common -g  
-fno-omit-frame-pointer -I/usr/obj/usr/src/sys/BUILD130313   
-mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float   
-fno-asynchronous-unwind-tables -ffreestanding -fstack-protector  
-std=iso9899:1999 -fstack-protector -Wall -Wredundant-decls  
-Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes  
-Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointer-sign  
-fformat-extensions  -Wmissing-include-dirs -fdiagnostics-show-option
-c /usr/src/sys/modules/zlib/../../net/zlib.c

ld  -d -warn-common -r -d -o zlib.ko.debug zlib.o
: export_syms
awk -f /usr/src/sys/conf/kmod_syms.awk zlib.ko.debug  export_syms |  
xargs -J% objcopy % zlib.ko.debug

objcopy --only-keep-debug zlib.ko.debug zlib.ko.symbols
objcopy --strip-debug --add-gnu-debuglink=zlib.ko.symbols zlib.ko.debug  
zlib.ko

1 error
*** [buildkernel] Error code 2
1 error
*** [buildkernel] Error code 2
1 error

Here is my KERNCONF:
http://www.drenet.net/BUILD130313

I've also created a diff of what's missing from my configuration  
compared to GENERIC:

http://www.drenet.net/kern_diff.txt

Thanks in advance for any guidance you can provide!

--
Andre Goree
an...@drenet.info
___
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


Nothing in your diff shocks me.

Wanna re SVN up your sources, rebuild your kernel-toolchain and try  
again ?


Hmmm, just tried that, and still get the same result.  Seems I'll need to  
resort to trial-and-error at this point -- or just add Linux support to  
GENERIC, remove firewire, fdc and RAID controllers and call it a day :p


Thanks for looking over the diff!

--
Andre Goree
an...@drenet.info
___
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


Issue with building custom kernel

2013-03-13 Thread Andre Goree
I seem to be having trouble building my custom kernel.  I've removed  
several things that I believe were unnecessary, and added Linux support,  
but I don't think I'm missing anything that is very important.  Here is  
the last few lines of the build:


=== zlib (all)
/usr/local/libexec/ccache/world/cc -O2 -pipe -fno-strict-aliasing -Werror  
-D_KERNEL -DKLD_MODULE -nostdinc   -DHAVE_KERNEL_OPTION_HEADERS -include  
/usr/obj/usr/src/sys/BUILD130313/opt_global.h -I. -I@ -I@/contrib/altq  
-finline-limit=8000 --param inline-unit-growth=100 --param  
large-function-growth=1000 -fno-common -g -fno-omit-frame-pointer  
-I/usr/obj/usr/src/sys/BUILD130313  -mcmodel=kernel -mno-red-zone -mno-mmx  
-mno-sse -msoft-float  -fno-asynchronous-unwind-tables -ffreestanding  
-fstack-protector -std=iso9899:1999 -fstack-protector -Wall  
-Wredundant-decls -Wnested-externs -Wstrict-prototypes   
-Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef  
-Wno-pointer-sign -fformat-extensions  -Wmissing-include-dirs  
-fdiagnostics-show-option   -c /usr/src/sys/modules/zlib/../../net/zlib.c

ld  -d -warn-common -r -d -o zlib.ko.debug zlib.o
: export_syms
awk -f /usr/src/sys/conf/kmod_syms.awk zlib.ko.debug  export_syms | xargs  
-J% objcopy % zlib.ko.debug

objcopy --only-keep-debug zlib.ko.debug zlib.ko.symbols
objcopy --strip-debug --add-gnu-debuglink=zlib.ko.symbols zlib.ko.debug  
zlib.ko

1 error
*** [buildkernel] Error code 2
1 error
*** [buildkernel] Error code 2
1 error

Here is my KERNCONF:
http://www.drenet.net/BUILD130313

I've also created a diff of what's missing from my configuration compared  
to GENERIC:

http://www.drenet.net/kern_diff.txt

Thanks in advance for any guidance you can provide!

--
Andre Goree
an...@drenet.info
___
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: Issue with building custom kernel

2013-03-13 Thread Damien Fleuriot

On 13 Mar 2013, at 22:26, Andre Goree an...@drenet.info wrote:

 I seem to be having trouble building my custom kernel.  I've removed several 
 things that I believe were unnecessary, and added Linux support, but I don't 
 think I'm missing anything that is very important.  Here is the last few 
 lines of the build:
 
 === zlib (all)
 /usr/local/libexec/ccache/world/cc -O2 -pipe -fno-strict-aliasing -Werror 
 -D_KERNEL -DKLD_MODULE -nostdinc   -DHAVE_KERNEL_OPTION_HEADERS -include 
 /usr/obj/usr/src/sys/BUILD130313/opt_global.h -I. -I@ -I@/contrib/altq 
 -finline-limit=8000 --param inline-unit-growth=100 --param 
 large-function-growth=1000 -fno-common -g -fno-omit-frame-pointer 
 -I/usr/obj/usr/src/sys/BUILD130313  -mcmodel=kernel -mno-red-zone -mno-mmx 
 -mno-sse -msoft-float  -fno-asynchronous-unwind-tables -ffreestanding 
 -fstack-protector -std=iso9899:1999 -fstack-protector -Wall -Wredundant-decls 
 -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith 
 -Winline -Wcast-qual  -Wundef -Wno-pointer-sign -fformat-extensions  
 -Wmissing-include-dirs -fdiagnostics-show-option   -c 
 /usr/src/sys/modules/zlib/../../net/zlib.c
 ld  -d -warn-common -r -d -o zlib.ko.debug zlib.o
 : export_syms
 awk -f /usr/src/sys/conf/kmod_syms.awk zlib.ko.debug  export_syms | xargs -J% 
 objcopy % zlib.ko.debug
 objcopy --only-keep-debug zlib.ko.debug zlib.ko.symbols
 objcopy --strip-debug --add-gnu-debuglink=zlib.ko.symbols zlib.ko.debug 
 zlib.ko
 1 error
 *** [buildkernel] Error code 2
 1 error
 *** [buildkernel] Error code 2
 1 error
 
 Here is my KERNCONF:
 http://www.drenet.net/BUILD130313
 
 I've also created a diff of what's missing from my configuration compared to 
 GENERIC:
 http://www.drenet.net/kern_diff.txt
 
 Thanks in advance for any guidance you can provide!
 
 -- 
 Andre Goree
 an...@drenet.info
 ___
 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

Nothing in your diff shocks me.

Wanna re SVN up your sources, rebuild your kernel-toolchain and try again ?
___
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


Freebsd 9.1 kernel compile with Physical Address Extension

2013-03-12 Thread Justin Crawford

Hi,

I have been trying to compile the 9.1 kernel for an older system which 
has PAE support, unfortunately because -Werror is enabled, I cannot 
complete the compile (see warnings below). I am running a fresh install 
of FreeBSD 9.1-RELEASE. I can successfully compile the kernel without PAE.


Kernel config: http://pastebin.com/5mzQagKM

cc1: warnings being treated as errors
/usr/src/sys/cam/ctl/ctl_frontend_cam_sim.c: In function 'cfcs_datamove':
/usr/src/sys/cam/ctl/ctl_frontend_cam_sim.c:423: warning: cast from 
pointer to integer of different size [-Wpointer-to-int-cast]
/usr/src/sys/cam/ctl/ctl_frontend_cam_sim.c:449: warning: cast to 
pointer from integer of different size [-Wint-to-pointer-cast]

*** [ctl_frontend_cam_sim.o] Error code 1

I am new to the mailing lists (and mailing lists in general) so let me 
know if you need any more information.

Thanks
___
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: Can't build kernel

2013-02-24 Thread Andre Goree
On 02/23/2013 07:04 PM, ill...@gmail.com wrote:
 On 22 February 2013 18:56, Andre Goree an...@drenet.info wrote:
 
 cc1: warnings being treated as errors
 
 Need to set NO_WERROR perhaps?
 

Thanks for the suggestion, though it did not help.  This turned out to
be user error (i.e. a failed patch).  After erasing /usr/src and pulling
everything down again, I was able to rebuild without issue.  Thanks.

-- 
Andre Goree
an...@drenet.info



signature.asc
Description: OpenPGP digital signature


Re: Can't build kernel

2013-02-23 Thread ill...@gmail.com
On 22 February 2013 18:56, Andre Goree an...@drenet.info wrote:

 cc1: warnings being treated as errors

Need to set NO_WERROR perhaps?

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


Can't build kernel

2013-02-22 Thread Andre Goree
I'm running 8.3-STABLE (not sure if I should've posted this to freebsd-stable, 
please correct me if so).

I'm able to successfully buildworld after an svn up of /usr/src, however when 
I try to build my customer kernel, the build stops at the following:

/usr/local/libexec/ccache/world/cc -c -O2 -frename-registers -pipe -fno-
strict-aliasing  -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -
Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  
-Wundef -Wno-pointer-sign -fformat-extensions -nostdinc  -I. -I/usr/src/sys -
I/usr/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include 
opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --
param large-function-growth=1000  -fno-omit-frame-pointer -mcmodel=kernel -
mno-red-zone  -mfpmath=387 -mno-sse -mno-sse2 -mno-sse3 -mno-mmx -mno-3dnow  -
msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector -
Werror  /usr/src/sys/x86/x86/local_apic.c
cc1: warnings being treated as errors
/usr/src/sys/x86/x86/local_apic.c:166: warning: 'lapic_resume' declared 
'static' but never defined
*** Error code 1

Stop in /usr/obj/usr/src/sys/GENERIC.
*** Error code 1

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

Stop in /usr/src.


Here is my kernel configuration [1].  Any suggestions on how to get this built 
properly or otherwise troubleshoot?  I've also tried with GENERIC, which fails 
at the same exact spot.  Building without ccache also fails at the same exact 
spot :(  

Thanks in advance for any guidance you can provide.

[1]http://www.drenet.net/images/BUILD011313.txt

-- 
Andre Goree
an...@drenet.info
___
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: 9.1 kernel src only

2013-02-18 Thread David Demelier
You can do svn co svn://svn.freebsd.org/base/releng/9.1 /usr/src

Note that you need to install subversion before

Cheers


2013/2/16 Fbsd8 fb...@a1poweruser.com

 Before the install media format changed at 9.0, sysinstall had option to
 only install kernel source.

 Can I use 9.1 svn to just checkout the kernel src necessary to compile a
 custom kernel?

 If so, how would I code the svn command to make it happen?


 Thanks
 __**_
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/**mailman/listinfo/freebsd-**questionshttp://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-**
 unsubscr...@freebsd.org freebsd-questions-unsubscr...@freebsd.org




-- 
Demelier 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


9.1 kernel src only

2013-02-16 Thread Fbsd8
Before the install media format changed at 9.0, sysinstall had option to 
only install kernel source.


Can I use 9.1 svn to just checkout the kernel src necessary to compile a 
custom kernel?


If so, how would I code the svn command to make it happen?


Thanks
___
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: building custom kernel on -current: unknown option COMPAT_LINUX

2013-02-14 Thread John Baldwin
On Saturday, February 09, 2013 10:01:25 pm ill...@gmail.com wrote:
 On 9 February 2013 20:26, Anton Shterenlikht me...@bristol.ac.uk wrote:
 
 
  I removed COMPAT_LINUX, and only left
 
  options COMPAT_43
  options COMPAT_LINUX32
 
 
 From /usr/src/sys/amd64/conf/NOTES (9.1-RELEASE):
 
 # Enable Linux ABI emulation
 #XXX#optionsCOMPAT_LINUX
 
 # Enable 32-bit Linux ABI emulation (requires COMPAT_43 and
 COMPAT_FREEBSD32)
 options COMPAT_LINUX32
 
 I think I first ran up against this when I moved to 9.0 some
 time ago, but yes, amd64 uses a different kernel config
 option than i386 for linux compat.
 
 I tend to leave it as a module  load it if I perchance
 need it. This also allows rebuilding  reloading the
 modules without a reboot, should it need it.  The
 modules seems to build fine without having to
 fiddle about with kernel config jiggerypokey.

COMPAT_LINUX will work on amd64 eventually and will be used for 64-bit Linux 
binaries (COMPAT_LINUX32 is to run Linux/i386 binaries on FreeBSD/amd64).

-- 
John Baldwin
___
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


building custom kernel on -current: unknown option COMPAT_LINUX

2013-02-09 Thread Anton Shterenlikht
This is on amd64 r246552

I added

options COMPAT_43
options COMPAT_LINUX
options COMPAT_LINUX32

to the kernel config,
following sys/amd64/conf/NOTES

On buildkernel I get:

unknown option COMPAT_LINUX

What am I missing?

Thanks

Anton
___
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: building custom kernel on -current: unknown option COMPAT_LINUX

2013-02-09 Thread Polytropon
On Sun, 10 Feb 2013 00:18:06 GMT, Anton Shterenlikht wrote:
 This is on amd64 r246552
 
 I added
 
 options COMPAT_43
 options COMPAT_LINUX
 options COMPAT_LINUX32
 
 to the kernel config,
 following sys/amd64/conf/NOTES
 
 On buildkernel I get:
 
 unknown option COMPAT_LINUX
 
 What am I missing?

Do you also have those (from a working i386 system):

# Linux support
options COMPAT_LINUX# Enable Linux ABI emulation
options LINPROCFS   # Enable the linux-like proc 
filesystemsupport (requires COMPAT_LINUX and PSEUDOFS)
options LINSYSFS# Enable the linux-like sys filesystem 
support (requires COMPAT_LINUX and PSEUDOFS)
device  lindev
options COMPAT_AOUT # Enable i386 a.out binary support

(note PSEUDOFS is also needed)



-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
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


  1   2   3   4   5   6   7   8   9   10   >