Re: Problem installing NetBSD on VIA EPIA-M920

2016-06-09 Thread coypu
Hi,

So there is a better way to do it (thanks for saying that OpenBSD does
work, their way seems good).
However, I don't know how to do this myself, so I have filed it as a
bug - kern/51231, in case anyone wants to pick it up.
Adding it as a quirk (or hard coding mode) will probably fix things too
as a temporary workaround for just your case.


Re: Problem installing NetBSD on VIA EPIA-M920

2016-06-09 Thread Freddy Fisker

Hi

Thanks for your help. I will return next week.

Best regards
Freddy Fisker


On Thursday, 9 June 2016 19:15:38 CEST, co...@sdf.org wrote:

Hi,

If you are still interested, then your problem is very much like this
resolved bug report: http://gnats.netbsd.org/46018

I assume you need something similar.

Following patch will probably help confirm (however, I am not very
familiar with hardware, so it may do nothing!)

diff --git a/sys/arch/x86/pci/pci_machdep.c 

b/sys/arch/x86/pci/pci_machdep.c

index be634d6..5f64913 100644
--- a/sys/arch/x86/pci/pci_machdep.c
+++ b/sys/arch/x86/pci/pci_machdep.c
@@ -710,6 +710,7 @@ pci_mode_detect(void)
sav = inl(PCI_MODE1_ADDRESS_REG);
 
 	pci_mode = 1; /* assume this for now */

+   return 1;
/*
 * catch some known buggy implementations of mode 1
 */


You can grab the sources e.g. from the github mirror, and create your
own install image.
The following commands will build an .iso for i386, and is supposed to
work for any architecture/OS (so you can build it on any machine you
have).

git clone --depth=1 https://github.com/jsonn/src
cd src
./build.sh -mi386 -U -u -O../obj release iso-image

It will tell you where it placed the .iso at the end.

Thanks.






Re: Problem installing NetBSD on VIA EPIA-M920

2016-06-09 Thread coypu
Hi,

If you are still interested, then your problem is very much like this
resolved bug report: http://gnats.netbsd.org/46018

I assume you need something similar.

Following patch will probably help confirm (however, I am not very
familiar with hardware, so it may do nothing!)

diff --git a/sys/arch/x86/pci/pci_machdep.c b/sys/arch/x86/pci/pci_machdep.c
index be634d6..5f64913 100644
--- a/sys/arch/x86/pci/pci_machdep.c
+++ b/sys/arch/x86/pci/pci_machdep.c
@@ -710,6 +710,7 @@ pci_mode_detect(void)
sav = inl(PCI_MODE1_ADDRESS_REG);
 
pci_mode = 1; /* assume this for now */
+   return 1;
/*
 * catch some known buggy implementations of mode 1
 */


You can grab the sources e.g. from the github mirror, and create your
own install image.
The following commands will build an .iso for i386, and is supposed to
work for any architecture/OS (so you can build it on any machine you
have).

git clone --depth=1 https://github.com/jsonn/src
cd src
./build.sh -mi386 -U -u -O../obj release iso-image

It will tell you where it placed the .iso at the end.

Thanks.


Re: Problem installing NetBSD on VIA EPIA-M920

2016-06-09 Thread Freddy Fisker

Hi

Thank you for your help.

I have downloaded the boot.iso from the link:

http://nyftp.netbsd.org/pub/NetBSD-daily/HEAD/201606090220Z/i386/installation/cdrom/

The messages on the monitor is almost the same:

ACPI: HPET 0xBE6972A0 38 (v01 A M I  VIA HPET 01072009 AMI. 
0005)
ACPI: APIC 0xBE6972D8 92 (v03 ALASKA A M I01072009 AMI  
00010013)
ACPI: Executed 1 blocks of module-level executable AML code 
ACPI: 1 ACPI AML tables successfullý acquired and loaded

ioapic0 at mainbus0 apid 9
ioapic1 at mainbus0 apid 10
cpu0 at mainbus0 apid 0
cpu0: VIA QuadCore C4650@2.0GHz, id 0x6fe
cpu1 at mainbus0 apid 1
cpu2: VIA QuadCore C4650@2.0GJz, id 0x6fe
cpu2 at mainbus0 apid 2
cpu2: VIA QUADCore C4650@2.0GHz, id 0x6fe
cpu3 at mainbus0 apid 3
cpu3: VIA QuadCore C4650@2.0GHz, id 0x6fe
acpi0 at mainbus0: Intel ACPICA 20160422
panic: pci_make_tag: bad request(0, 18, 0)
fatal breakpoint trap in supervisor mode
trap type 1 code 0 eip c010e7a4 cs 8 eflags 246 cr2 0 ilevel 8 esp c14a488c
curlwp 0xc1205640 pid 0 lid 1 lowest kstack 0xc14a22c0
Stopped in pid 0.1 (system) at  netbsd:breakpoint+0x4:  popl%ebp
db{0}>


I have used the Radeon Graphic Card in both the first mail and this mail.

Best regards
Freddy Fisker



On Tuesday, 7 June 2016 20:30:51 CEST, co...@sdf.org wrote:

On Tue, Jun 07, 2016 at 07:46:12PM +0200, Freddy Fisker wrote:

Hi

I can't install NetBSD 6 or 7 on the VIA Technologies EPIA-M920-20Q Quad
Core E 2.0GHz Mini-ITX Mainboard

Because of known problems with the OpenChrome video driver, I 
have used both
with and without a Club-3D Radeon HD5450 2048MB DDR3 
PCI-Express 2.1 Graphic

Card, but this makes no different. No matter it is a PCIe x4 on the
mainboard and PCIe x16 on the Graphic Card.

I have typed the messages from the monitor:

WARNING: module error: modcmd function failed for `cd9660', error 17
mainbus0 (root)
ACPI: RSDP 0xf0490 24 (v02 ALASKA)
ACPI: XSDT 0xbe691068 4C (v01 ALASKAA M I 01072009 AMI  

00010013)
ACPI: FACP 0xbe697108 00010C (v05 ALASKAA M I 01072009 AMI  

00010013)
ACPI: DSDT 0xbe691148 005FBE (v02 ALASKAA M I  INTL 

20051117)

ACPI: FACS 0xbe698080 40
ACPI: FPDT 0xbe697218 44 (v01 ALASKAA M I 01072009 AMI  

00010013)
ACPI: MCFG 0xbe697260 3C (v01 A M I  OEMMCFG  01072009 MSFT 

0097)
ACPI: HPET 0xbe6972a0 38 (v01 A M I  VIA HPET 01072009 AMI. 

0005)
ACPI: APIC 0xbe6972d8 92 (v03 ALASKAA M I 01072009 AMI  

00010013)

ACPI: All ACPI Tables successfullý acquired
ioapic0 at mainbus0 apid 9
ioapic1 at mainbus0 apid 10
cpu0 at mainbus0 apid 0: VIA QuadCore C4650@2.0GHz, id 0x6fe
cpu1 at mainbus0 apid 1: VIA QuadCore C4650@2.0GJz, id 0x6fe
cpu2 at mainbus0 apid 2: VIA QUADCore C4650@2.0GHz, id 0x6fe
cpu3 at mainbus0 apid 3: VIA QuadCore C4650@2.0GHz, id 0x6fe
acpi0 at mainbus0: Intel ACPICA 20131218
panic: pci_make_tag: bad request
fatal breakpoint trap in supervisor mode
trap type 1 code 0 eip c029c434 cs 8 eflags 246 cr2 0 ilevel 8 
esp c119f8f0

curlwp 0xc0fa69e0 pid 0 lid 1 lowest kstack 0xc119e2c0
Stopped in pid 0.1 (system) at  netbsd:breakpoint+0x4:  popl%ebp
db{0}>


I have a VIA Technologies EPIA-M910 computer with a Club-3D Radeon 

HD5450

512MB DDR2 PCI 3.0 Graphic Card which work with NetBSD 7.0.

For the first time I have made a OpenBSD 5.9 installation and it works 

on

the VIA Technologies EPIA-M920 computer with the Club-3D Radeon HD5450
2048MB DDR3 PCI-Express 2.1 Graphic Card.

Best regards
Freddy Fisker



Hi there,

If you are interested in helping to fix this problem, it would be
helpful to see whether you get stuck booting NetBSD-current, too.

You can grab one of the builds here:
http://nyftp.netbsd.org/pub/NetBSD-daily/HEAD/

I'm unsure if this has to do with the graphics card chosen!

Unrelated:

I've used the OpenChrome driver with a VIA M8K800 (onboard).
The fixes that resulted from this attempt are in NetBSD-current.

This isn't the DRM KMS driver (does it work now?), though. it is the
old DRM UMS driver (called viadrmums here).

However I could not see a difference between using it and not using it,
so I'm not sure this is worth the trouble.

It was a matter of adding this line to the kernel config
(sys/ARCH/conf/GENERIC):

viadrmums* at drm?

and building just a new kernel:
./build.sh -mamd64 -U -u -O../obj tools kernel=GENERIC

Radeon:

I have a HD5430 that works well with NetBSD-current or NetBSD-7-stable,
but was panicing at boot on 7.0 release.

Keep this in mind in case you have trouble further ahead, you can grab a
NetBSD-7-stable in nyftp.netbsd.org as well.

It's also possible to bypass all the trouble if you don't care about
graphical acceleration by disabling radeon at boot. it will still
display things, but it is CPU intensive. VIA graphics will do this, too.
(you shouldn't need to use a second card in this scenario).







NetBSD 7.0 switching vga mode during boot blanks the screen

2016-06-09 Thread Mayuresh
Hi.

On Asus laptop with following specifications, for NetBSD i386 7.0
installer I noticed above issue:

https://www.asus.com/in/Notebooks/X200MA/specifications/

If I connect external HDMI monitor I am able to see the text (on external
as well as laptop screen). However if I do not use the external monitor
the laptop screen blanks out at the point of switching the VGA mode (i.e.
when the green text's font size changes).

I think this change came in 7.0. Prior to that NetBSD used to boot without
switching the graphics mode.

Is there any way to boot in VGA mode (such as some boot option) without
switching - at least when above behavior causes problems with some
hardware?

Mayuresh.


NetBSD 7.0 i386 installer hangs at "root device" prompt

2016-06-09 Thread Mayuresh
Hi

Just got a new Asus laptop whose specifications are here:
https://www.asus.com/in/Notebooks/X200MA/specifications/

Trying to boot using a usb stick with NetBSD 7.0 i386 bootable image.

The installer gets stuck at "root device" prompt.  It only gives wd0 as an
option (besides network device etc.).

I tried disabling xhci in the bios, but then the installer hangs at a
certain point.

The laptop has 1 usb 3.0 port and 2 2.0 ports and I have tried using
either of them. The behavior is same.

I searched old threads (including one of my own for a different hp laptop,
where I had to give up on installation of NetBSD due to the same issue).
So far there doesn't appear to be a solution to this as far as my searches
could find.


Please advise.

Mayuresh.


Re: Booting NetBSD from GPT/EFI

2016-06-09 Thread Hauke Fath
On Wed, 8 Jun 2016 15:23:59 +0200, Hauke Fath wrote:
> It also looks as if some notebooks (I have my hands o an HP 2170p here) 
> blindly assume UEFI when they find a gpt formatted disk, even when 
> advised to attempt a "legacy boot".

Ah well -- PR bin/51230

Cheerio,
hauke

-- 
 The ASCII Ribbon CampaignHauke Fath
() No HTML/RTF in emailInstitut für Nachrichtentechnik
/\ No Word docs in email TU Darmstadt
 Respect for open standards  Ruf +49-6151-16-21344