Re: Dual booting - can't boot OpenBSD from Windows 10 bootloader

2016-09-26 Thread yra ten
Thank you again for all your suggestions and answers. I finally made
it to work. I first shrunk windows partition to be below 256 GB. Then
as it says in this thread:
https://marc.info/?l=openbsd-misc&m=138477729520448&w=2
I changed BOOTBIOS_MAXSEC in sys/arch/amd64/include/biosvar.h from ((1
<< 28) - 1) to ((1 << 29) - 1), and rebuilt the system follwoing
release(8), copied installboot binary to /usr/sbin overwriting the old
one and successfully installed biosboot. I can finally boot OpenBSD
directly from windows bootloader without using grub.


2016-09-26 12:48 GMT+02:00 Oriol Demaria :
> I have OpenBSD booting correctly along Windows 10 in UEFI mode. I
> installed a minimal Ubuntu to get grub2 installed, as it does it
> without detecting the Windows OS. Then I copied the BOOTX64.EFI file
> from OpenBSD to the EFI partition. With this custom entry in the grub
> configuration works perfectly:
>
> menuentry "OpenBSD" {
> insmod part_gpt
> insmod search_fs_uuid
> insmod chain
> chainloader (hd0,gpt1)/EFI/openbsd/BOOTX64.EFI
> }
>
> I assume that you can figure out if you want to make OpenBSD the
> default, as I do, and also where did I copied the file. Works perfectly
> for me.
>
> Regards,
> --
> Oriol Demaria
> 0x1FEF5D72
> 24 de septiembre del 2016 20:12, "yra ten" 
escribió:
>> Thank you all for your asnwers. I cannot use grub or lilo as some of
>> you pointed out beaceuse grub is i386 only and lilo isn't even in
>> ports, and I don't have linux installed. I don't want to use quemu,
>> vmm/vmd or any virtualization if at all possible as that would degrade
>> performance, that isn't that great to begin with on lowe power i5(U)
>> especially using Windows and Xilinx. Unfortunately I think my model of
>> Thinkpad doesn't have space for another drive as it's middle range L
>> series not higher end T seris. Also I wouldn't be able tu justify that
>> expense beacuse $80 or so is much for me especially considering the
>> fact I just spend all my savings on this very laptop.
>>
>> 2016-09-23 21:56 GMT+02:00 Karel Gardas :
>>
>>> On Fri, Sep 23, 2016 at 9:50 PM, Fred  wrote:
>>>> Or run it all on OpenBSD and run Windows and Linux in qemu from ports.
>>>>
>>>> Works for me ;~)
>>>
>>> How is it looking with performance difference of such combo host
>>> versus guest? OP would like to run Xilinx ISE which is CPU/RAM hog
>>> enough even on the fastest machines so running this in Qemu, hmm...



Re: Dual booting - can't boot OpenBSD from Windows 10 bootloader

2016-09-24 Thread yra ten
Thank you all for your asnwers. I cannot use grub or lilo as some of
you pointed out beaceuse grub is i386 only and lilo isn't even in
ports, and I don't have linux installed. I don't want to use quemu,
vmm/vmd or any virtualization if at all possible as that would degrade
performance, that isn't that great to begin with on lowe power  i5(U)
especially using Windows and Xilinx. Unfortunately I think my model of
Thinkpad doesn't have space for another drive as it's middle range L
series not higher end T seris. Also I wouldn't be able tu justify that
expense beacuse $80 or so is much for me especially considering the
fact I just spend all my savings on this very laptop.

2016-09-23 21:56 GMT+02:00 Karel Gardas :
> On Fri, Sep 23, 2016 at 9:50 PM, Fred  wrote:
>>
>> Or run it all on OpenBSD and run Windows and Linux in qemu from ports.
>>
>> Works for me ;~)
>
> How is it looking with performance difference of such combo host
> versus guest? OP would like to run Xilinx ISE which is CPU/RAM hog
> enough even on the fastest machines so running this in Qemu, hmm...



Re: Dual booting - can't boot OpenBSD from Windows 10 bootloader

2016-09-23 Thread yra ten
I've been looking for a solution, and then stumbled on this:
https://marc.info/?l=openbsd-misc&m=138477729520448&w=2
So it looks like OpenBSD's bootloader needs too be in first 128 GB of
the disk. As for dualbooting I want to use OpenBSD
but I'll sonn start college, and we have digital logic class in firs
semester, and I will be required to use Xilinx ISE on their
machines so I want to have it on my PC too. As far as I know Xilinx
ISE supports only Windows and Linux, and OpenBSD
6.0 no longer supports linux_compat, so that's why I went with dual booting.

2016-09-23 14:04 GMT+02:00 Eric Furman :
> NO professional dual boots OS's
> There is NO REAL  reason to dual boot ANY OS's
> This is why OpenBSD has stopped supporting such nonsense.
> Sorry.
> I AM NOT AN OPENBSD DEVELOPER
> NEVER HAVE BEEN
> NEVER WILL BE.
> http://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/ports/geo/openbsd-developers/files/OpenBSD
>
>
> On Fri, Sep 23, 2016, at 06:57 AM, Lampshade wrote:
>> I have installed OpenBSD before it had UEFI support,
>> so I installed in Legacy Boot mode (I have UEFI capable
>> laptop).
>> I personally use Grub2 installed via
>> debian live amd64 standard  image.
>>
>> I don't have Gnu/Linux installed.
>> I only have bootloader from Debian.
>>
>> I have Windows 8.1 and OpenBSD amd64.
>>
>> # cat /mnt/ext2/grub/grub.cfg \
>> > | grep -v -e ^#  -e ^[:space:]*$
>> GRUB_DEFAULT=0
>> GRUB_TIMEOUT=5
>> GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
>> GRUB_CMDLINE_LINUX_DEFAULT="quiet"
>> GRUB_CMDLINE_LINUX=""
>> menuentry "Windows" --class os {
>>   set root=(hd0,2)
>>   chainloader (hd0,msdos2)+1
>> }
>> menuentry "OpenBSD" {
>>   set root=(hd0,4)
>>   chainloader +1
>> }
>>
>> Grub2 is faster than Windows bootloader.



Dual booting - can't boot OpenBSD from Windows 10 bootloader

2016-09-22 Thread yra ten
I'm trying to dual boot windows 10 and OpenBSD 6.0 on Lenovo Thinkpad L560. I
installed Windows 10 first then OpenBSD, copied pbr to windows (C:\openbsd.pbr)
using:
# dd if=/dev/rsd0a of=/mnt/openbsd.pbr bs=512 count=1
and run bcdedit as mentioned in FAQ. When i try to load OpenBSD it restarts,
and black screen with a blinking cursor appears. When that happens I can't even
reboot using CTRL+ALT+DEL, I must power down machine by pressing the power
button. I can however boot into OpenBSD just fine using installation USB by
runing:
boot> boot sd1a:/bsd.
I even tried using EasyBCD but the problem persists.

# dmesg
OpenBSD 6.0 (GENERIC.MP) #2319: Tue Jul 26 13:00:43 MDT 2016
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 8341897216 (7955MB)
avail mem = 8084606976 (7710MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.8 @ 0xd7c58000 (64 entries)
bios0: vendor LENOVO version "N1HET49W (1.13 )" date 03/23/2016
bios0: LENOVO 20F1S00T00
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP TCPA SSDT UEFI SSDT SSDT HPET LPIT APIC MCFG WDAT SSDT\
SSDT SSDT SSDT SSDT SSDT DBGP DBG2 SSDT BOOT BATB SLIC SSDT SSDT MSDM ASF!\
FPDT UEFI
acpi0: wakeup devices PEGP(S4) PEG0(S4) PEGP(S4) PEG1(S4) PEGP(S4) PEG2(S4) \
GLAN(S4) XHC_(S3) XDCI(S4) HDAS(S4) PXSX(S4) RP01(S4) PXSX(S4)
RP02(S4) PXSX(S4) RP03(S4) [...]
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 2399 Hz
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM) i5-6200U CPU @ 2.30GHz, 2694.65 MHz
cpu0:FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36, \
CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,\
VMX,EST,TM2,SSSE3,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,\
DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,LONG,LAHF,ABM,3DNOWP,PERF,ITSC, \
FSGSBASE,SGX,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT, \
PT,SENSOR,ARAT
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges
cpu0: apic clock running at 24MHz
cpu0: mwait min=64, max=64, C-substates=0.2.1.2.4.1.1.1, IBE
cpu1 at mainbus0: apid 2 (application processor)
cpu1: Intel(R) Core(TM) i5-6200U CPU @ 2.30GHz, 2693.72 MHz
cpu1:FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36, \
CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,\
VMX,EST,TM2,SSSE3,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT, \
DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,LONG,LAHF,ABM,3DNOWP,PERF,ITSC, \
FSGSBASE,SGX,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT, \
PT,SENSOR,ARAT
cpu1: 256KB 64b/line 8-way L2 cache
cpu1: smt 0, core 1, package 0
cpu2 at mainbus0: apid 1 (application processor)
cpu2: Intel(R) Core(TM) i5-6200U CPU @ 2.30GHz, 2693.72 MHz
cpu2: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36, \
CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,\
VMX,EST,TM2,SSSE3,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT, \
DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,LONG,LAHF,ABM,3DNOWP,PERF,ITSC, \
FSGSBASE,SGX,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT, \
PT,SENSOR,ARAT
cpu2: 256KB 64b/line 8-way L2 cache
cpu2: smt 1, core 0, package 0
cpu3 at mainbus0: apid 3 (application processor)
cpu3: Intel(R) Core(TM) i5-6200U CPU @ 2.30GHz, 2693.73 MHz
cpu3: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36, \
CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,\
VMX,EST,TM2,SSSE3,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT, \
DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,LONG,LAHF,ABM,3DNOWP,PERF,ITSC, \
FSGSBASE,SGX,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT, \
PT,SENSOR,ARAT
cpu3: 256KB 64b/line 8-way L2 cache
cpu3: smt 1, core 1, package 0
ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 120 pins
acpimcfg0 at acpi0 addr 0xf800, bus 0-63
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (PEG0)
acpiprt2 at acpi0: bus -1 (PEG1)
acpiprt3 at acpi0: bus -1 (PEG2)
acpiprt4 at acpi0: bus -1 (RP01)
acpiprt5 at acpi0: bus -1 (RP02)
acpiprt6 at acpi0: bus -1 (RP03)
acpiprt7 at acpi0: bus 2 (RP04)
acpiprt8 at acpi0: bus 5 (RP05)
acpiprt9 at acpi0: bus 6 (RP06)
acpiprt10 at acpi0: bus -1 (RP07)
acpiprt11 at acpi0: bus -1 (RP08)
acpiprt12 at acpi0: bus -1 (RP09)
acpiprt13 at acpi0: bus -1 (RP10)
acpiprt14 at acpi0: bus -1 (RP11)
acpiprt15 at acpi0: bus -1 (RP12)
acpiprt16 at acpi0: bus -1 (RP13)
acpiprt17 at acpi0: bus -1 (RP14)
acpiprt18 at acpi0: bus -1 (RP15)
acpiprt19 at acpi0: bus -1 (RP16)
acpiprt20 at acpi0: bus -1 (RP17)
acpiprt21 at acpi0: bus -1 (RP18)
acpiprt22 at acpi0: bus -1 (RP19)
acpiprt23 at acpi0: bus -1 (RP20)
acpiec0 at acpi0
a