Re: NetBSD 7.02 on APU2 PcEngines

2016-12-14 Thread 76nemo76
On Mon, Dec 12, 2016 at 08:17:22PM +, co...@sdf.org wrote:
> On Mon, Dec 12, 2016 at 07:44:17PM +0100, 76nem...@gmx.ch wrote:
> > XHCI init on dev 00:10.0: regs @ 0xfeb22000, 4 ports, 32 slots, 32 byte 
> > contexts
> > XHCIextcap 0x1 @ feb22500
> > XHCIprotocol USB  3.00, 2 ports (offset 1), def 0
> > XHCIprotocol USB  2.00, 2 ports (offset 3), def 10
> > XHCIextcap 0xa @ feb22540
> ...
> 
> > boot device: 
> > root device: 
> 
> I've had the same from a lack of support for xhci on netbsd-7. current should 
> work..
> there are workarounds, but I'm not they'd be available on coreboot. I believe 
> what I used was disabling EHCI handoff and ACPI. undesirable, but it is a 
> desktop and I was using USB for input.
> Since this is not a desktop, I imagine you don't need USB to work super well 
> (it might work a little) after the install, so you can use a netbsd-current 
> installer and unpack just netbsd-7 stuff. you acn also mix: current kernel & 
> older userland, etc. if you wish.

Thanks for the info. By putting a SD card in a virtual machine (as the main 
disk), I was able
to install the full NetBSD distribution. The only small problem was the name of
devices ("ld0" on the APU, "sd0" on VM). After changing the name of device
in "/etc/fstab", the APU boots NetBSD flawlessly.

I will now install manually a minimal NetBSD on the internal disk to build a 
router
with NPF.

best regards,

Alan


Re: NetBSD 7.02 on APU2 PcEngines

2016-12-12 Thread 76nemo76
On Fri, Dec 09, 2016 at 10:56:30AM -0700, Swift Griggs wrote:
> 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.
Thank you for the idea. 
> 
> Can you do the install on another machine, install the custom kernel, then 
> swap-a-roo the drive back to the PCengines host?
> 
I have tried to do that but I was facing an other strange problem. I plan
to install NetBSD on an USB stick (while APU2 can boot from an USB stick)
but strangely the NetBSD installation program recognizes no USB stick (only
the main disk which is sata disk). The PC (except for an UEFI Bios with CSM 
mode) was quite
standard (Samsung P900 laptop).

Unfortunately it's not very easy to install NetBSD by moving the APU2 disk 
elsewhere. 
This disk is a mSATA disk and I have not too much devices to manipulate such 
disk. 
I should probably buy an external mSATA-USB enclosure but then I am not sure 
that the disk will be recognized by the installer when connected on an other PC.

Finally, I was able to install NetBSD on an USB stick, but I can't boot
on it. I get the same problem with the root device. It's not too surprising
since the problem seems to be related with USB. 

To install NetBSD on the disk I have configured the USB stick as the main disk 
of a virtual machine since
otherwise the stick is not recognised by the installation program.
> > 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.
> 
That's clear but I did not want to bother readers with a such long listing.
I will redo the installation and publish the results.
> > 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.
> 
Because the problem seems to arise when the root partition on CD
should be mounted. It is like if the CD is no more found (or seen).
I supposed that if the root partition is mounted remotely this problem
could disapear. However, it's more a hope than a certainty.
> > 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.
I have tried the 3 possibilities offered by installer: standard install, 
without ACPI,
without ACPI and SMP. Without any success.
 
Alan


Here is the log of BSD installation. First I have to boot a very small linux 
(tinyCore Linux)
just to let time to the CD to initialise. At the first boot after power on the 
APU2,
the CD is not seen by APU2.
--Log of BSD 
Install
PCEngines apu2
coreboot build 20160307
4080 MB ECC DRAM

SeaBIOS (version ?-20160307_153453-michael-desktop64)
Found mainboard PC Engines PCEngines apu2
multiboot: eax=0, ebx=0
boot order:
1: /pci@i0cf8/usb@10/usb-*@1
2: /pci@i0cf8/usb@10/usb-*@2
3: /pci@i0cf8/usb@10/usb-*@3
4: /pci@i0cf8/usb@10/usb-*@4
5: /pci@i0cf8/*@14,7
6: /pci@i0cf8/*@11/drive@0/disk@0
7: /pci@i0cf8/*@11/drive@1/disk@0
8: /rom@genroms/pxe.rom
9: pxen0
10: scon1
11: 
Found 21 PCI devices (max PCI bus is 03)
Copying SMBIOS entry point from 0xdffb7000 to 0x000f3110
Copying ACPI RSDP from 0xdffb8000 to 0x000f30e0
Copying MPTABLE from 0xdffdc000/dffdc010 to 0x000f2f30
Copying PIR from 0xdffdd000 to 0x000f2f00
Using pmtimer, ioport 0x818
Scan for VGA option rom
Running option rom at c000:0003

Google, Inc.
Serial Graphics Adapter 08/22/15
SGABIOS $Id: sgabios.S 8 2010-04-22 00:03:40Z nlaredo $ 
(wiv@coreboot-Virtual-Machine) Sat Aug 22 09:25:30 UTC 2015
Term: 173x48

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


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