Re: PC Engine APU.1D4 installation stopper.

2015-10-21 Thread Jonathan Gray
On Tue, Oct 20, 2015 at 02:12:35PM +0200, Mark Kettenis wrote:
> > > For i386/amd64 you have to tell boot you want serial output
> > > either at the boot prompt or via boot.conf.
> > > 
> > > stty com0 115200
> > > set tty com0
> > 
> > 
> > OpenBSD 5.8 (GENERIC.MP) #1236: Sun Aug 16 02:31:04 MDT 2015
> > dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> > RTC BIOS diagnostic error
> > ff
> > real mem = 4246003712 (4049MB)
> > avail mem = 4113428480 (3922MB)
> > mpath0 at root
> > scsibus0 at mpath0: 256 targets
> > mainbus0 at root
> > bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xdf16d820 (7 entries)
> > bios0: vendor coreboot version "4.0" date 09/08/2014
> > bios0: PC Engines APU
> > acpi0 at bios0: rev 0
> > acpi0: sleep states S0 S1 S3 S4 S5
> > acpi0: tables DSDT FACP SPCR HPET APIC HEST SSDT SSDT SSDT
> 
> Since the ACPI BIOS provides a SPCR table, we can actually tell that
> we're on a serial console.  Shouldn't be too difficult to add support
> to the kernel for this, although we'd probably miss the first part of
> the dmesg if we do that.  So a better place would be the bootloader,
> but then we'd have to add code to find and parse acpi tables there.
> And there might be space issues there.
> 

Interesting.  On a dell server from 2007 booted via glass console
the table is present with the address and baud set to 0.  I guess
that changes if I were to configure the bios to put the console
on serial.

On the other hand I have a machine from 2009 that only has serial
and there is no SPCR table "acpi0: tables DSDT FACP APIC MCFG HPET".

It seems there can be a DBGP/DBG2 table in some cases that indicates
if debug ports are available on serial/firewire/usb/network as well.

[028h 0040  12] Serial Port Register : [Generic Address Structure]
[028h 0040   1] Space ID : 00 [SystemMemory]
[029h 0041   1]Bit Width : 00
[02Ah 0042   1]   Bit Offset : 00
[02Bh 0043   1] Encoded Access Width : 00 [Undefined/Legacy]
[02Ch 0044   8]  Address : 

[034h 0052   1]   Interrupt Type : 03
[035h 0053   1]  PCAT-compatible IRQ : 04
[036h 0054   4]Interrupt : 0004
[03Ah 0058   1]Baud Rate : 00
[03Bh 0059   1]   Parity : 00
[03Ch 0060   1]Stop Bits : 01
[03Dh 0061   1] Flow Control : 02
[03Eh 0062   1]Terminal Type : 01
[04Ch 0076   1] Reserved : 00
[040h 0064   2]PCI Device ID : 
[042h 0066   2]PCI Vendor ID : 
[044h 0068   1]  PCI Bus : 00
[045h 0069   1]   PCI Device : 00
[046h 0070   1] PCI Function : 00
[047h 0071   4]PCI Flags : 
[04Bh 0075   1]  PCI Segment : 00
[04Ch 0076   4] Reserved : 



Re: PC Engine APU.1D4 installation stopper.

2015-10-20 Thread Mark Kettenis
> > For i386/amd64 you have to tell boot you want serial output
> > either at the boot prompt or via boot.conf.
> > 
> > stty com0 115200
> > set tty com0
> 
> 
> OpenBSD 5.8 (GENERIC.MP) #1236: Sun Aug 16 02:31:04 MDT 2015
> dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> RTC BIOS diagnostic error
> ff
> real mem = 4246003712 (4049MB)
> avail mem = 4113428480 (3922MB)
> mpath0 at root
> scsibus0 at mpath0: 256 targets
> mainbus0 at root
> bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xdf16d820 (7 entries)
> bios0: vendor coreboot version "4.0" date 09/08/2014
> bios0: PC Engines APU
> acpi0 at bios0: rev 0
> acpi0: sleep states S0 S1 S3 S4 S5
> acpi0: tables DSDT FACP SPCR HPET APIC HEST SSDT SSDT SSDT

Since the ACPI BIOS provides a SPCR table, we can actually tell that
we're on a serial console.  Shouldn't be too difficult to add support
to the kernel for this, although we'd probably miss the first part of
the dmesg if we do that.  So a better place would be the bootloader,
but then we'd have to add code to find and parse acpi tables there.
And there might be space issues there.



PC Engine APU.1D4 installation stopper.

2015-10-19 Thread Daniel Ouellet
Hi,

I am trying to load OpenBSD on this box and no matter what I try I end
up not being able too.

I did search and saw plenty that were successful and all. May be it's
the newer model.

APU.1D4?

Or is there any special truck?

I tried from usb flash drive, and even from a Sata drive inside a USB
hosing.

Could this may be use UEFI now?

I tried 5.7, 5.8 and still no go.

May be the only way to load it in there is via PXE- Boot?

And I saw the note as well about the bios for OpenBSD in case anyone
thought to say that. It is newer then April 2014 as recommended.

Here is where it block no matter what drives and version I tried.

Any clue stick would be greatly appreciated. I obviously must be
overlooking something stupid...

Daniel

=
USB Fash Drive
=
> PC Engines APU BIOS build date: Sep  8 2014
Total memory 4096 MB
AMD G-T40E Processor
CPU MHz=1000
USB MSC blksize=512 sectors=7897088
Press F10 key now for boot menu:
drive 0x000f2a60: PCHS=0/0/0 translation=lba LCHS=979/128/63 s=7897088
drive 0x000f2a90: PCHS=16383/16/63 translation=lba LCHS=1024/255/63
s=31277232
Booting from Hard Disk...
Using drive 0, partition 3.
Loading.
probing: pc0 com0 com1 mem[639K 3568M 496M a20=on]
disk: hd0+ hd1+*
>> OpenBSD/amd64 BOOT 3.28
boot>
booting hd0a:/bsd: 6707920+2128368+250888+0+598016
[97+561408+373901]=0xa228f8
entry point at 0x1000160 [7205c766, 3404, 24448b12, 62e0a304]

=
SATA Drive via USB adaptor
=

> PC Engines APU BIOS build date: Sep  8 2014
Total memory 4096 MB
AMD G-T40E Processor
CPU MHz=1000
USB MSC blksize=512 sectors=125045424
Press F10 key now for boot menu:
drive 0x000f2a60: PCHS=0/0/0 translation=lba LCHS=1024/255/63 s=125045424
drive 0x000f2a90: PCHS=16383/16/63 translation=lba LCHS=1024/255/63
s=31277232
Booting from Hard Disk...
Using drive 0, partition 3.
Loading.
probing: pc0 com0 com1 mem[639K 3568M 496M a20=on]
disk: hd0+ hd1+*
>> OpenBSD/amd64 BOOT 3.28
boot>
booting hd0a:/bsd:6741232+2129936+250888+0+598016
[97+563616+375372/]=0xa2c758
entry point at 0x1000160 [7205c766, 3404, 24448b12, f2e0a304]



Re: PC Engine APU.1D4 installation stopper.

2015-10-19 Thread Jonathan Gray
For i386/amd64 you have to tell boot you want serial output
either at the boot prompt or via boot.conf.

stty com0 115200
set tty com0

On Mon, Oct 19, 2015 at 10:34:15PM -0400, Daniel Ouellet wrote:
> Hi,
> 
> I am trying to load OpenBSD on this box and no matter what I try I end
> up not being able too.
> 
> I did search and saw plenty that were successful and all. May be it's
> the newer model.
> 
> APU.1D4?
> 
> Or is there any special truck?
> 
> I tried from usb flash drive, and even from a Sata drive inside a USB
> hosing.
> 
> Could this may be use UEFI now?
> 
> I tried 5.7, 5.8 and still no go.
> 
> May be the only way to load it in there is via PXE- Boot?
> 
> And I saw the note as well about the bios for OpenBSD in case anyone
> thought to say that. It is newer then April 2014 as recommended.
> 
> Here is where it block no matter what drives and version I tried.
> 
> Any clue stick would be greatly appreciated. I obviously must be
> overlooking something stupid...
> 
> Daniel
> 
> =
> USB Fash Drive
> =
> > PC Engines APU BIOS build date: Sep  8 2014
> Total memory 4096 MB
> AMD G-T40E Processor
> CPU MHz=1000
> USB MSC blksize=512 sectors=7897088
> Press F10 key now for boot menu:
> drive 0x000f2a60: PCHS=0/0/0 translation=lba LCHS=979/128/63 s=7897088
> drive 0x000f2a90: PCHS=16383/16/63 translation=lba LCHS=1024/255/63
> s=31277232
> Booting from Hard Disk...
> Using drive 0, partition 3.
> Loading.
> probing: pc0 com0 com1 mem[639K 3568M 496M a20=on]
> disk: hd0+ hd1+*
> >> OpenBSD/amd64 BOOT 3.28
> boot>
> booting hd0a:/bsd: 6707920+2128368+250888+0+598016
> [97+561408+373901]=0xa228f8
> entry point at 0x1000160 [7205c766, 3404, 24448b12, 62e0a304]
> 
> =
> SATA Drive via USB adaptor
> =
> 
> > PC Engines APU BIOS build date: Sep  8 2014
> Total memory 4096 MB
> AMD G-T40E Processor
> CPU MHz=1000
> USB MSC blksize=512 sectors=125045424
> Press F10 key now for boot menu:
> drive 0x000f2a60: PCHS=0/0/0 translation=lba LCHS=1024/255/63 s=125045424
> drive 0x000f2a90: PCHS=16383/16/63 translation=lba LCHS=1024/255/63
> s=31277232
> Booting from Hard Disk...
> Using drive 0, partition 3.
> Loading.
> probing: pc0 com0 com1 mem[639K 3568M 496M a20=on]
> disk: hd0+ hd1+*
> >> OpenBSD/amd64 BOOT 3.28
> boot>
> booting hd0a:/bsd:6741232+2129936+250888+0+598016
> [97+563616+375372/]=0xa2c758
> entry point at 0x1000160 [7205c766, 3404, 24448b12, f2e0a304]



Re: PC Engine APU.1D4 installation stopper.

2015-10-19 Thread Daniel Ouellet
On 10/19/15 11:52 PM, Jonathan Gray wrote:
> For i386/amd64 you have to tell boot you want serial output
> either at the boot prompt or via boot.conf.
> 
> stty com0 115200
> set tty com0

Well,

I knew it was something stupid I overlook! I need an other beer. Just
was to excited when I got the box and the brain farted...

Many thanks for the clue stick!

Now I can do the full install and here is the dmesg as a results finally
for it.

Daniel

===
$ dmesg
OpenBSD 5.8 (GENERIC.MP) #1236: Sun Aug 16 02:31:04 MDT 2015
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
RTC BIOS diagnostic error
ff
real mem = 4246003712 (4049MB)
avail mem = 4113428480 (3922MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xdf16d820 (7 entries)
bios0: vendor coreboot version "4.0" date 09/08/2014
bios0: PC Engines APU
acpi0 at bios0: rev 0
acpi0: sleep states S0 S1 S3 S4 S5
acpi0: tables DSDT FACP SPCR HPET APIC HEST SSDT SSDT SSDT
acpi0: wakeup devices AGPB(S4) HDMI(S4) PBR4(S4) PBR5(S4) PBR6(S4)
PBR7(S4) PE20(S4) PE21(S4) PE22(S4) PE23(S4) PIBR(S4) UOH1(S3) UOH2(S3)
UOH3(S3) UOH4(S3) UOH5(S3) [...]
acpitimer0 at acpi0: 3579545 Hz, 32 bits
acpihpet0 at acpi0: 14318180 Hz
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD G-T40E Processor, 1000.14 MHz
cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,SSSE3,CX16,POPCNT,NXE,MMXX,FFXSR,PAGE1GB,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,IBS,SKINIT,ITSC
cpu0: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 512KB
64b/line 16-way L2 cache
cpu0: 8 4MB entries fully associative
cpu0: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 199MHz
cpu0: mwait min=64, max=64, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: AMD G-T40E Processor, 1000.00 MHz
cpu1:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,SSSE3,CX16,POPCNT,NXE,MMXX,FFXSR,PAGE1GB,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,IBS,SKINIT,ITSC
cpu1: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 512KB
64b/line 16-way L2 cache
cpu1: 8 4MB entries fully associative
cpu1: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative
cpu1: smt 0, core 1, package 0
ioapic0 at mainbus0: apid 2 pa 0xfec0, version 21, 24 pins
acpiprt0 at acpi0: bus -1 (AGPB)
acpiprt1 at acpi0: bus -1 (HDMI)
acpiprt2 at acpi0: bus 1 (PBR4)
acpiprt3 at acpi0: bus 2 (PBR5)
acpiprt4 at acpi0: bus 3 (PBR6)
acpiprt5 at acpi0: bus -1 (PBR7)
acpiprt6 at acpi0: bus 5 (PE20)
acpiprt7 at acpi0: bus -1 (PE21)
acpiprt8 at acpi0: bus -1 (PE22)
acpiprt9 at acpi0: bus -1 (PE23)
acpiprt10 at acpi0: bus 0 (PCI0)
acpiprt11 at acpi0: bus 4 (PIBR)
acpicpu0 at acpi0: !C2(0@100 io@0x841), C1(@1 halt!), PSS
acpicpu1 at acpi0: !C2(0@100 io@0x841), C1(@1 halt!), PSS
acpibtn0 at acpi0: PWRB
cpu0: 1000 MHz: speeds: 1000 800 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "AMD AMD64 14h Host" rev 0x00
ppb0 at pci0 dev 4 function 0 "AMD AMD64 14h PCIE" rev 0x00: msi
pci1 at ppb0 bus 1
re0 at pci1 dev 0 function 0 "Realtek 8168" rev 0x06: RTL8168E/8111E
(0x2c00), msi, address 00:0d:b9:3e:d5:5c
rgephy0 at re0 phy 7: RTL8169S/8110S/8211 PHY, rev. 4
ppb1 at pci0 dev 5 function 0 "AMD AMD64 14h PCIE" rev 0x00: msi
pci2 at ppb1 bus 2
re1 at pci2 dev 0 function 0 "Realtek 8168" rev 0x06: RTL8168E/8111E
(0x2c00), msi, address 00:0d:b9:3e:d5:5d
rgephy1 at re1 phy 7: RTL8169S/8110S/8211 PHY, rev. 4
ppb2 at pci0 dev 6 function 0 "AMD AMD64 14h PCIE" rev 0x00: msi
pci3 at ppb2 bus 3
re2 at pci3 dev 0 function 0 "Realtek 8168" rev 0x06: RTL8168E/8111E
(0x2c00), msi, address 00:0d:b9:3e:d5:5e
rgephy2 at re2 phy 7: RTL8169S/8110S/8211 PHY, rev. 4
ahci0 at pci0 dev 17 function 0 "ATI SBx00 SATA" rev 0x40: apic 2 int
19, AHCI 1.2
ahci0: port 0: 6.0Gb/s
scsibus1 at ahci0: 32 targets
sd0 at scsibus1 targ 0 lun 0:  SCSI3 0/direct fixed
t10.ATA_SATA_SSD_466F07541B9400349537
sd0: 15272MB, 512 bytes/sector, 31277232 sectors, thin
ohci0 at pci0 dev 18 function 0 "ATI SB700 USB" rev 0x00: apic 2 int 18,
version 1.0, legacy support
ehci0 at pci0 dev 18 function 2 "ATI SB700 USB2" rev 0x00: apic 2 int 17
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "ATI EHCI root hub" rev 2.00/1.00 addr 1
ohci1 at pci0 dev 19 function 0 "ATI SB700 USB" rev 0x00: apic 2 int 18,
version 1.0, legacy support
ehci1 at pci0 dev 19 function 2 "ATI SB700 USB2" rev 0x00: apic 2 int 17
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 "ATI EHCI root hub" rev 2.00/1.00 addr 1
piixpm0 at pci0 dev 20 function 0