Re: A single-board computer for NetBSD

2016-12-09 Thread Martin Cermak
On  Tue  2016-12-06  21:38 , Martin Husemann wrote:
> On Tue, Dec 06, 2016 at 08:38:17PM +0100, Martin Cermak wrote:
> > On  Tue  2016-12-06  18:49 , co...@sdf.org wrote:
> > > I have the same. I did not replace the USB stick, and in the original 
> > > msdos
> > > partition I placed a netbsd.elf32 file in the same name as the linux 
> > > kernel
> > > was (it was 'vmlinux.64' or so).
> > 
> > That works for me, the kernel boots; how about the root
> > partition?  Did you reuse the existing ext2 partition?
> > Or did you do something else?
> 
> I would replace the ext2 partition with a ffs one (u-boot should not care
> about anything but the msdos one) and install onto that.
> 

Got it!

https://paste.fedoraproject.org/502816/32982214/

Thanks everyone,

Martin


Re: disklabel warnings

2016-12-09 Thread Patrick Welche
On Fri, Dec 09, 2016 at 05:20:39PM +, Patrick Welche wrote:
> Taking a disk which had /dev/zero written all over it
> 
> wd0: 298 GB, 620181 cyl, 16 head, 63 sec, 512 bytes/sect x 625142448 sectors
> 
> :pd#625142448:od#0:\
> 
> disklabel: partition d: partition extends past end of unit
> 
> how?

Answer: incorrect nc#

Sorry for the noise...

P


Re: NetBSD 7.02 on APU2 PcEngines

2016-12-09 Thread Swift Griggs

On Fri, 9 Dec 2016, 76nem...@gmx.ch wrote:
 Finally I have switched between the speed of 9600bps and 115200bps 
to install NetBSD 7.02 on APU2 from PCEngines.


Hi, Alan, I also have one of these little systems from PCEngines. I've 
been following your thread. It's been a few years since I've messed around 
with my little 500Mhz AMD-based PCEngines board, but I think my method to 
solve the issue you are having was to hard set the console and baud rate 
in a custom kernel.



From the GENERIC conf file:

#optionsCONSDEVNAME="\"com\"",CONADDR=0x2f8,CONSPEED=57600

If you uncomment that line and nail the baud rate, then use that kernel 
you should be good to go.


This is uncomfortable but it works. What doesn't work however is the 
installation itself. The kernel boots for a while and stops on root 
device.


Can you do the install on another machine, install the custom kernel, then 
swap-a-roo the drive back to the PCengines host?


I can type what I want (wm0, wm1 etc.) but the installation hangs 
(sometimes after a curious message about NFS mount).


If you could post how far it got and what you see, that'd help.

Any ideas? Do you think that an network boot and install will solve 
these problems?


Why would netbooting help. I'm curious why that idea occurs to you? I 
thought the issue was the baud rate on the serial port ? I guess you could 
use a custom boot kernel via PXE/TFTP/BOOTP etc.. That might work/help.


I have tried to boot from an USB2 CDROM and booting the ISO image from 
syslinux system but this change nothing.


Are you passing any custom boot parameters? Can you summarize the specific 
issue you are having? I can try to help, since I have one of these 
machines myself and have used it for all kinds of BSD projects.


-Swift


disklabel warnings

2016-12-09 Thread Patrick Welche
Taking a disk which had /dev/zero written all over it

wd0: 298 GB, 620181 cyl, 16 head, 63 sec, 512 bytes/sect x 625142448 sectors

:pd#625142448:od#0:\

disklabel: partition d: partition extends past end of unit

how?


Cheers,

Patrick


NetBSD 7.02 on APU2 PcEngines

2016-12-09 Thread 76nemo76
Hi All,
  Finally I have switched between the speed of 9600bps and 115200bps
to install NetBSD 7.02 on APU2 from PCEngines.

This is uncomfortable but it works. What doesn't work however is the
installation itself. The kernel boots for a while
and stops on root device. 

I have to type the root device (and then the dump device) with a choice 
between: wm0, wm1, wm2 and wd0[a-p].
It's more or less as if the CD rom is no more found (by booting on
an other PC it seems that, at the moment of the boot process, 
the root device is "cd0a" and the dump device is "cd0b").

I can type what I want (wm0, wm1 etc.) but the installation hangs (sometimes 
after a curious
message about NFS mount).

Any ideas? Do you think that an network boot and install will solve
these problems?

I have tried to boot from an USB2 CDROM and booting the ISO image
from syslinux system but this change nothing.


kind regards,

Alan


serial console install at 115200 bps

2016-12-09 Thread 76nemo76
Hi All,
  Almost all is alreay in subject. I plan to install NetBSD 7.02
on a PCEngines APU2 computer (https://www.pcengines.ch/). Basically,
this machine is an AMD64 PC without graphic card but with
a serial console working only at 115200bps.

The installation image (boot-com.iso) works at 9600bps. I would know
if it is possible to change the speed of the serial console
during boot (on openBSD it is possible to pass
a command "stty com0 115200" and in FreeBSD to add a parameter
in ISO image to boot with a serial console at 115200).

It is impossible to change the speed of serial console in BIOS
of PCEngines APU.

Without a solution, I think the only possibility is to start
at 115200, then disconnect from serial console and reconnect at 9600.

This is not very confortable but perhaps doable.

Thanks for ideas and help.

Best regards

Alan


Howto use agr to aggregate VPN tunnels

2016-12-09 Thread BERTRAND Joël

Hello,

	I open a new thread as I have made some tests and I'm now pretty sure 
that issue I see comes from NetBSD.


	I'm able to use agr with two physical ethernet controllers. But I'm not 
able to obtain a running agr interface with two OpenVPN tunnels.
Maybe problem comes from NetBSD kernel, maybe from misconfiguration, I 
have no idea to fix it.


	I have created two OpenVPN tap tunnels between a server an a NetBSD 
workstation (DEC PWS500au running 7.99.43, but I have seen same issue 
with 7.0.2 on amd64). Both tunnels runs as expected.


I have removed inet/inet6 address from both tunnels :

tap0: flags=0x8802 mtu 1500
ec_capabilities=5
ec_enabled=0
address: f2:0b:a4:b2:cb:28
media: Ethernet autoselect
tap1: flags=0x8802 mtu 1500
ec_capabilities=5
ec_enabled=0
address: f2:0b:a4:e9:16:fe
media: Ethernet autoselect

and I have created agr0 (round robin):

agr0: flags=0xb843 
mtu 1500

agrport: tap0, flags=0x3
agrport: tap1, flags=0x3
address: f2:0b:a4:b2:cb:28
inet 192.168.100.2/24 broadcast 192.168.100.255 flags 0x0
inet6 fe80::f00b:a4ff:feb2:cb28%agr0/64 flags 0x2 
scopeid 0x6


I have checked that 192.168.100.0/24 route goes through agr0 :
Internet:
DestinationGatewayFlagsRefs  UseMtu 
Interface

defaultweierstrassUG  --  -L epic0
127/8  localhost  UGR --  33112L lo0
localhost  lo0UHl --  33112L lo0
192.168.0/24   link#3 U   --  -L epic0
einstein   link#3 UHl --  -L lo0
192.168.100/24 link#6 U   --  -L agr0
192.168.100.2  link#6 UHl --  -L lo0

If I try to ping 192.168.100.1 (server), kernel sends packets to agr0 :
einstein# tcpdump -i agr0 -p
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on agr0, link-type EN10MB (Ethernet), capture size 262144 bytes
10:34:25.250725 ARP, Request who-has 192.168.100.1 tell 192.168.100.2, 
length 28
10:34:26.253355 ARP, Request who-has 192.168.100.1 tell 192.168.100.2, 
length 28
10:34:27.252354 ARP, Request who-has 192.168.100.1 tell 192.168.100.2, 
length 28
10:34:28.253310 ARP, Request who-has 192.168.100.1 tell 192.168.100.2, 
length 28
10:34:29.252338 ARP, Request who-has 192.168.100.1 tell 192.168.100.2, 
length 28
10:34:30.252331 ARP, Request who-has 192.168.100.1 tell 192.168.100.2, 
length 28
10:34:31.256259 ARP, Request who-has 192.168.100.1 tell 192.168.100.2, 
length 28

^C
7 packets captured
7 packets received by filter
0 packets dropped by kernel

but no packet is sent by tap0 or tap1 :

tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on tap0, link-type EN10MB (Ethernet), capture size 262144 bytes
^C
0 packets captured
0 packets received by filter
0 packets dropped by kernel
einstein# tcpdump -i tap1 -p
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on tap1, link-type EN10MB (Ethernet), capture size 262144 bytes
^C
0 packets captured
0 packets received by filter
0 packets dropped by kernel

	In reception, when server tries to ping NetBSD client, tap0 and tap1 
receive ethernet packets, but these packets are never transmitted to agr0 !


einstein# tcpdump -i tap0 -p
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on tap0, link-type EN10MB (Ethernet), capture size 262144 bytes
10:45:53.866399 ARP, Request who-has 192.168.100.2 tell 192.168.100.1, 
length 28
10:45:55.914946 ARP, Request who-has 192.168.100.2 tell 192.168.100.1, 
length 28

...
einstein# tcpdump -i agr0 -p
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on agr0, link-type EN10MB (Ethernet), capture size 262144 bytes
^C
0 packets captured
0 packets received by filter
0 packets dropped by kernel

	I don't understand why there is no logical connection between tap0/tap1 
and agr0. Of course, I have verified that agr0 uses tap0 and tap1 as 
slave interfaces.


	The same configuration runs fine with two physical ethernet 
controllers. I have create agr1 that aggregates wm1 and wm2 (802.3ad):


agr1: flags=8843 mtu 1500
capabilities=7ff80
capabilities=7ff80
capabilities=7ff80
enabled=0
agrport: wm1, flags=0x3
agrport: wm2,