modules tutorial

2016-09-14 Thread Jan Danielsson
Hello,

   Is there something like
http://www.tldp.org/LDP/lkmpg/2.4/html/c147.htm but for NetBSD?

   /Jan


Re: Phoronix 8-way-BSD-install - NetBSD bombed

2016-09-14 Thread Andrei M.
You know, despite all 7.0 has been a HUGE improvement performance-wise
on my main laptop (it's the same one since 2010) compared to the 6.x
series and whatever was before.
I've just upgraded to 7.0.1, let's see how it works.

2016-09-14 18:17 GMT+03:00  :
> I feel that for home users, -current may be a good choice.
>
> netbsd 7.0 is entirely unusable on much of my hardware. desktop was
> extra bad. no USB3 means USB keyboard interrupts are lost or something,
> need to boot with ACPI disabled (disables hyperthreading), cannot install
> from USB, lack of graphical acceleration for nvidia cards means when
> running old Xorg it took 1 minute to run a command like 'su', new Xorg
> can handle until X is shut down once (all fixed in -current).
>


Re: kernel load failure

2016-09-14 Thread Martin Husemann
On Wed, Sep 14, 2016 at 11:12:17AM -0500, Patrick Welche wrote:
> I also tried tftp, and get stuck at the same value whether a kernel or
> its compressed version is used - would that rule out the pxe boot side
> of things? (FreeBSD iso served via its pxe boot from the same NetBSD
> server also worked.)

Can you show the output of "size netbsd" (for the uncompressed kernel)
and what value you get stuck at?

Also details from "readelf -e netbsd" might be interesting here.

Martin


Re: kernel load failure

2016-09-14 Thread Patrick Welche
On Wed, Sep 14, 2016 at 06:02:37PM +0200, Martin Husemann wrote:
> On Wed, Sep 14, 2016 at 10:57:26AM -0500, Patrick Welche wrote:
> > > 9872659+10907160+995816 [12773]=0x165da30
> > 
> > Thanks - do you know what those numbers refer to? (I get stuck in the
> > first one)
> 
> size /netbsd, those are the bytes loaded so far for text and data (and
> the size of bss, which is not loaded).
> 
> If NFS locks up like this often read/write sizes are too big for one
> of the network cards involved. Can we tune those for pxe boot somehow?

I also tried tftp, and get stuck at the same value whether a kernel or
its compressed version is used - would that rule out the pxe boot side
of things? (FreeBSD iso served via its pxe boot from the same NetBSD
server also worked.)

(Really flumoxed, as the kernel which is running on the laptop I'm
typing on currently doesn't load, yet they are very similar.)

Cheers,

Patrick


Re: kernel load failure

2016-09-14 Thread Martin Husemann
On Wed, Sep 14, 2016 at 10:57:26AM -0500, Patrick Welche wrote:
> > 9872659+10907160+995816 [12773]=0x165da30
> 
> Thanks - do you know what those numbers refer to? (I get stuck in the
> first one)

size /netbsd, those are the bytes loaded so far for text and data (and
the size of bss, which is not loaded).

If NFS locks up like this often read/write sizes are too big for one
of the network cards involved. Can we tune those for pxe boot somehow?

Martin


Re: kernel load failure

2016-09-14 Thread Patrick Welche
On Wed, Sep 14, 2016 at 05:52:55PM +0300, Andreas Gustafsson wrote:
> Patrick Welche wrote:
> > > pxeboot & INSTALL from
> > > 
> > > ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-7.0.1/amd64/
> > > 
> > > behave in the same way, but stops at 12120088
> 
> For what it's worth, I have an automated testing setup that netboots
> -current kernels using the -current pxeboot, and it's working.  Though
> it's loading the kernel over TFTP instead of NFS - perhaps that makes
> a difference.

In the 5.2.3 and 7.0.1 with INSTALL kernels, I used tftp, so I have
failure in both cases...

> Here's the log output from a successful boot for your reference:

> 9872659+10907160+995816 [12773]=0x165da30

Thanks - do you know what those numbers refer to? (I get stuck in the
first one)

Cheers,

Patrick


Re: Phoronix 8-way-BSD-install - NetBSD bombed

2016-09-14 Thread coypu
I feel that for home users, -current may be a good choice.

netbsd 7.0 is entirely unusable on much of my hardware. desktop was
extra bad. no USB3 means USB keyboard interrupts are lost or something,
need to boot with ACPI disabled (disables hyperthreading), cannot install
from USB, lack of graphical acceleration for nvidia cards means when
running old Xorg it took 1 minute to run a command like 'su', new Xorg
can handle until X is shut down once (all fixed in -current).

on linux drivers are written before a release, or right after. so
a typical user which has 2-3 year old hardware can afford to use LTS
kernel.
in netbsd, drivers only end up written after 2-3 developers get the
hardware, and they don't get it on release day. so this is a 2 year
delay in itself.

after this many users end up picking netbsd 7.0 release, not knowing it
is effectively like picking old ubuntu LTS, except with the additional
delay until developers (which are normal people and not companies)
obtain the hardware and get around to adding support.

it's USB3 now, tomorrow it will bbe that legacy boot can't boot NVMe
root and we have no UEFI bootloader yet (PR 51279), or no skylake
ethernet, etc.

the only thing a user with recent can do to bridge this gap is to use
-current. it may rarely be broken, thoguh.
If your hardware is unsupported, it's worth a try.



Re: kernel load failure

2016-09-14 Thread Andreas Gustafsson
Patrick Welche wrote:
> > pxeboot & INSTALL from
> > 
> > ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-7.0.1/amd64/
> > 
> > behave in the same way, but stops at 12120088

For what it's worth, I have an automated testing setup that netboots
-current kernels using the -current pxeboot, and it's working.  Though
it's loading the kernel over TFTP instead of NFS - perhaps that makes
a difference.

Here's the log output from a successful boot for your reference:

> NetBSD/x86 PXE boot, Revision 5.1 (from NetBSD 7.99.37)
>> Memory: 569/2873920 k
Press return to boot now, any other key for boot menu
booting netbsd - starting in 5 seconds.4 seconds.3 seconds.2 seconds.1 
seconds.0 seconds.0 seconds.
PXE BIOS Version 2.1
Using PCI device at bus 4 device 4 function 0
Ethernet address 00:1b:fc:9e:0f:b4
9872659+10907160+995816 [12773]=0x165da30
ksyms: Symbol table not found
ksyms: String table not found
ksyms: Perhaps the kernel is stripped?
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016
The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California.  All rights reserved.

NetBSD 7.99.37 (INSTALL) #0: Tue Sep 13 22:04:14 EEST 2016

-- 
Andreas Gustafsson, g...@gson.org