Re: macbook EFI bootloader
I try this for a while too. (https://marc.info/?l=openbsd-misc&m=147945720728652&w=2) Interesting that it works when installing from cd. But when I get you right you stuck in the reboot-loop too when trying to boot from usb (install##.fs / miniroot##.fs) I removed my super-drive and put a second ssd in, on which I want to install OpenBSD. I also recognised something similar when installing OpenBSD to a PC-Engine APU.2 board. On the APU.2 you only have to set correct serial output device at boot> and everything works fine. Maybe it is also needed to set some kind of efi-device ?!? I did´t find the time to further investigate in this direction but maybe someone on the list can help? -- best mirac 2016-12-28 3:24 GMT+01:00 Byron Klippert : > Hello Misc, > > Recently tried to get my intel macbook (circa '08) dual-booting with > -current amd64 (December 26 snapshot). > > Within OSX I repartitioned the RootDisk and added a MS-DOS (FAT) > partition for the OpenBSD install/disklabel. I booted from CD and > installed to wd0 (using the OpenBSD fdisk partition). At this stage if I > want to boot from wd0, I have to boot from CD and select hd0a:/bsd at > the second stage boot loader. This works well enough, dmesg of the > system below. > > When trying to boot directly from wd0 using the native EFI bootloader I > placed BOOTIA32.EFI and BOOTX64.EFI in the EFI partition of the RootDisk > so that I can select "EFI Partition" when booting (by holding option > key). > > /dev/disk0 >#: TYPE > NAMESIZE IDENTIFIER >0: > GUID_partition_scheme*120.0 > GB disk0 >1: > EFI 209.7 MB disk0s1 >2: Apple_HFS > RootDisk118.6 GB disk0s2 >3: Microsoft Basic > Data 1.1 GB disk0s3 > > > This setup gets as far as shown below and then stops... > > probing: pc0 mem[572K 64K 3039M 11M 60K 48K] > disk: hd0 > >> OpenBSD/amd64 BOOTIA32 3.32 > boot> > booting hd0a:/bsd: 6979304+2212872+258624+0+765952 > [72+710280+477696]=0xae2350 > entry point at 0xf001000 [7205c766, 3404, 24448b12, 1240a304] > > > I've tried booting with `boot> hd0a:/bsd.rd'. Also tried writing > install60.tgz and miniroot60.tgz to USB and got similar results there as > well. > > > Curious to know if the native EFI bootloader is designed to work with > this hardware? > > Thanks, > > dmesg output: > > OpenBSD 6.0-current (GENERIC.MP) #73: Mon Dec 26 23:25:48 MST 2016 > bu...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP > real mem = 3171909632 (3024MB) > avail mem = 3071180800 (2928MB) > warning: no entropy supplied by boot loader > mpath0 at root > scsibus0 at mpath0: 256 targets > mainbus0 at root > bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xe (37 entries) > bios0: vendor Apple Inc. version "MB21.88Z.00A5.B07.0706270922" date > 06/27/07 > bios0: Apple Inc. MacBook2,1 > acpi0 at bios0: rev 2 > acpi0: sleep states S0 S3 S4 S5 > acpi0: tables DSDT FACP HPET APIC MCFG ASF! SBST ECDT SSDT SSDT SSDT > acpi0: wakeup devices ADP1(S3) LID0(S3) PXS1(S4) PXS2(S4) USB1(S3) > USB2(S3) USB3(S3) USB4(S3) USB7(S3) EC__(S3) > acpitimer0 at acpi0: 3579545 Hz, 24 bits > acpihpet0 at acpi0: 14318179 Hz > acpimadt0 at acpi0 addr 0xfee0: PC-AT compat > cpu0 at mainbus0: apid 0 (boot processor) > cpu0: Intel(R) Core(TM)2 CPU T7400 @ 2.16GHz, 2161.65 MHz > cpu0: > FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA, > CMOV,PAT,PSE36,CFLUS > H,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64, > MWAIT,DS-CPL,VMX,EST,TM > 2,SSSE3,CX16,xTPR,PDCM,NXE,LONG,LAHF,PERF,SENSOR > cpu0: 4MB 64b/line 16-way L2 cache > cpu0: smt 0, core 0, package 0 > mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges > cpu0: apic clock running at 166MHz > cpu0: mwait min=64, max=64, C-substates=0.2.2.2.2, IBE > cpu1 at mainbus0: apid 1 (application processor) > cpu1: Intel(R) Core(TM)2 CPU T7400 @ 2.16GHz, 2161.25 MHz > cpu1: > FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA, > CMOV,PAT,PSE36,CFLUS > H,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64, > MWAIT,DS-CPL,VMX,EST,TM > 2,SSSE3,CX16,xTPR,PDCM,NXE,LONG,LAHF,PERF,SENSOR > cpu1: 4MB 64b/line 16-way L2 cache > cpu1: smt 0, core 1, package 0 > ioapic0 at mainbus0: apid 1 pa 0xfec0, version 20, 24 pins > acpimcfg0 at acpi0 addr 0xf000, bus 0-255 > acpiec0 at acpi0 > acpiprt0 at acpi0: bus 0 (PCI0) > acpiprt1 at acpi0: bus 1 (RP01) > acpiprt2 at acpi0: bus 2 (RP02) > acpiprt3 at acpi0: bus 3 (PCIB) > acpicpu0 at acpi0: !C3(100@55 mwait@0x31), !C2(500@1 mwait@0x10), > C1(1000@1 mwait), PSS > acpicpu1 at acpi0: !C3(100@55 mwait@0x31), !C2(500@1 mwait@0x10), > C1(1000@1 mwait), PSS > acpiac0 at acpi0: AC unit online > acpibtn0 at acpi0: LID0 > "APP0002" at acpi0 not configured > acpibtn1 at acpi0: PWRB > acpibtn2 at acpi0: SLPB > "APP0001" at acpi0 not configured > "APP0003" at acpi0 not configured > "ACPI0002" at acpi0 not
Re: macbook EFI bootloader
hello, > Recently tried to get my intel macbook (circa '08) dual-booting with > -current amd64 (December 26 snapshot). > > Within OSX I repartitioned the RootDisk and added a MS-DOS (FAT) > partition for the OpenBSD install/disklabel. I booted from CD and > installed to wd0 (using the OpenBSD fdisk partition). At this stage if I > want to boot from wd0, I have to boot from CD and select hd0a:/bsd at > the second stage boot loader. This works well enough, dmesg of the > system below. > > When trying to boot directly from wd0 using the native EFI bootloader I > placed BOOTIA32.EFI and BOOTX64.EFI in the EFI partition of the RootDisk > so that I can select "EFI Partition" when booting (by holding option > key). > > /dev/disk0 >#: TYPE > NAMESIZE IDENTIFIER >0: > GUID_partition_scheme*120.0 > GB disk0 >1: > EFI 209.7 MB disk0s1 >2: Apple_HFS > RootDisk118.6 GB disk0s2 >3: Microsoft Basic > Data 1.1 GB disk0s3 > > > This setup gets as far as shown below and then stops... > > probing: pc0 mem[572K 64K 3039M 11M 60K 48K] > disk: hd0 >>> OpenBSD/amd64 BOOTIA32 3.32 > boot> > booting hd0a:/bsd: 6979304+2212872+258624+0+765952 > [72+710280+477696]=0xae2350 > entry point at 0xf001000 [7205c766, 3404, 24448b12, 1240a304] > > > I've tried booting with `boot> hd0a:/bsd.rd'. Also tried writing > install60.tgz and miniroot60.tgz to USB and got similar results there as > well. > > > Curious to know if the native EFI bootloader is designed to work with > this hardware? I recently tried to install OpenBSD 6.0 (as well as a snap) on an 2007 iMac and had exactly this issue. jcs suggested I try following the older (pre-EFI) instructions here: https://gist.github.com/jcs/5573685/284add9ea2abd6305e940276cc3af6b5f1697dcd (I was just testing this out and skipped the encryption parts both in OSX and OpenBSD) Doing it this way worked, however after the installation OpenBSD (which is now the default) will not boot. Holding down alt to boot OSX does work and then after installing rEFInd I can boot both OSs successfully. .jh > dmesg output: > > OpenBSD 6.0-current (GENERIC.MP) #73: Mon Dec 26 23:25:48 MST 2016 > bu...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP > real mem = 3171909632 (3024MB) > avail mem = 3071180800 (2928MB) > warning: no entropy supplied by boot loader > mpath0 at root > scsibus0 at mpath0: 256 targets > mainbus0 at root > bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xe (37 entries) > bios0: vendor Apple Inc. version "MB21.88Z.00A5.B07.0706270922" date > 06/27/07 > bios0: Apple Inc. MacBook2,1 > acpi0 at bios0: rev 2 > acpi0: sleep states S0 S3 S4 S5 > acpi0: tables DSDT FACP HPET APIC MCFG ASF! SBST ECDT SSDT SSDT SSDT > acpi0: wakeup devices ADP1(S3) LID0(S3) PXS1(S4) PXS2(S4) USB1(S3) > USB2(S3) USB3(S3) USB4(S3) USB7(S3) EC__(S3) > acpitimer0 at acpi0: 3579545 Hz, 24 bits > acpihpet0 at acpi0: 14318179 Hz > acpimadt0 at acpi0 addr 0xfee0: PC-AT compat > cpu0 at mainbus0: apid 0 (boot processor) > cpu0: Intel(R) Core(TM)2 CPU T7400 @ 2.16GHz, 2161.65 MHz > cpu0: > FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS > H,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM > 2,SSSE3,CX16,xTPR,PDCM,NXE,LONG,LAHF,PERF,SENSOR > cpu0: 4MB 64b/line 16-way L2 cache > cpu0: smt 0, core 0, package 0 > mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges > cpu0: apic clock running at 166MHz > cpu0: mwait min=64, max=64, C-substates=0.2.2.2.2, IBE > cpu1 at mainbus0: apid 1 (application processor) > cpu1: Intel(R) Core(TM)2 CPU T7400 @ 2.16GHz, 2161.25 MHz > cpu1: > FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS > H,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM > 2,SSSE3,CX16,xTPR,PDCM,NXE,LONG,LAHF,PERF,SENSOR > cpu1: 4MB 64b/line 16-way L2 cache > cpu1: smt 0, core 1, package 0 > ioapic0 at mainbus0: apid 1 pa 0xfec0, version 20, 24 pins > acpimcfg0 at acpi0 addr 0xf000, bus 0-255 > acpiec0 at acpi0 > acpiprt0 at acpi0: bus 0 (PCI0) > acpiprt1 at acpi0: bus 1 (RP01) > acpiprt2 at acpi0: bus 2 (RP02) > acpiprt3 at acpi0: bus 3 (PCIB) > acpicpu0 at acpi0: !C3(100@55 mwait@0x31), !C2(500@1 mwait@0x10), > C1(1000@1 mwait), PSS > acpicpu1 at acpi0: !C3(100@55 mwait@0x31), !C2(500@1 mwait@0x10), > C1(1000@1 mwait), PSS > acpiac0 at acpi0: AC unit online > acpibtn0 at acpi0: LID0 > "APP0002" at acpi0 not configured > acpibtn1 at acpi0: PWRB > acpibtn2 at acpi0: SLPB > "APP0001" at acpi0 not configured > "APP0003" at acpi0 not configured > "ACPI0002" at acpi0 not configured > acpibat0 at acpi0: BAT0 model "15253732082930497" type 15253732284385612 > oem "15253732284387396" > acpivideo0 at acpi0: GFX0 > cpu0: Enhanced SpeedStep 2161 MHz: speeds: 2167,
Re: OpenBSD Current on MacBook Air 7,1
Hi, On Mon, 12 Dec 2016 20:19:19 +0100 Piotr Isajew wrote: > There seems to be a problem with a bootloader though. Once the > system is installed on the SSD, the bootloader just stucks after > probing HDDs. Also it's not possible to boot from the > installation USB anymore. I'd like you to try the latest snapshot. The boot loader had some problems on handling 4K sector disks and they were resolved. --yasuoka
Re: macbook EFI bootloader
On Tue, 27 Dec 2016 18:24:38 -0800 Byron Klippert wrote: > This setup gets as far as shown below and then stops... > > probing: pc0 mem[572K 64K 3039M 11M 60K 48K] > disk: hd0 >>> OpenBSD/amd64 BOOTIA32 3.32 > boot> > booting hd0a:/bsd: 6979304+2212872+258624+0+765952 > [72+710280+477696]=0xae2350 > entry point at 0xf001000 [7205c766, 3404, 24448b12, 1240a304] > > > I've tried booting with `boot> hd0a:/bsd.rd'. Also tried writing > install60.tgz and miniroot60.tgz to USB and got similar results there as > well. > > > Curious to know if the native EFI bootloader is designed to work with > this hardware? I'm not sure. OpenBSD efiboot supports GOP for the graphic protocol but it doesn't support UGA. FreeBSD supports both. Is there anyone who are sure whether the macbook is using UGA? --yasuoka
Apple Mac EFI systems
The most reliable way to determine whether your hardware model has UGA or GOP is to select "About rEFIT" in the rEFIt boot screen. http://refit.sourceforge.net/ You will see an output like this: EFI Revision 1.10 Platform: x86_64 (64 bit) Firmware: Apple 1.10 Screen Output: UGA Draw (EFI 1.10), 1440 x 900 - or - EFI Revision 1.10 Platform: x86_64 (64 bit) Firmware: Apple 1.10 Screen Output: Graphics Output (UEFI), 1440 x 900 >From my experience, models released after 2008 (MacBook5 and higher) should have GOP. Beware that on some Mac models (eg MacBookPro8,x), suspend/resume only works when none of efi_uga and efi_gop are used
Support New
# 0 # C Indonesia # P West Java # T Bandung # Z 40191 # A # O Consultant # I Andi Maulana # M ko...@bsdmail.com # U # B +62 812 2082 3025 # X # N IT Security Network System, Open Source Platforms, Sysadmin System, Unix Operating System, FreeBSD, OpenBSD, NetBSD, FreeNAS, Linux Support Services
Re: Support New
On Tue, Dec 27, 2016 at 06:18:19AM +0100, Andi Maulana wrote: > # 0 > # C Indonesia > # P West Java > # T Bandung > # Z 40191 > # A > # O Consultant > # I Andi Maulana > # M ko...@bsdmail.com > # U > # B +62 812 2082 3025 > # X > # N IT Security Network System, Open Source Platforms, Sysadmin System, > Unix Operating System, FreeBSD, OpenBSD, NetBSD, FreeNAS, Linux Support > Services > Added, thanks
Re: [httpd] Multiple HTPS servers & redirection
On Sun, 25 Dec 2016, at 12:24 PM, Olivier wrote: > Hello all, > > I would like to know, what is the best practice to manage multilple https > servers with httpd. I installed 2 certificates for both hostname below: > > _ daenerys.burelli.fr > _ cloud.burelli.fr > > I would like to redirect all request for: > > _ http://daenerys.burelli.frto https://cloud.burelli.fr → OK > _ http://cloud.burelli.fr to https://cloud.burelli.fr:444 → > KO - however the certificate is ok when I try to reach directly > https://cloud.burelli.fr:444 > > I would like to avoid to obtain the followings message for second https > server: SSL_ERROR_BAD_CERT_DOMAIN (The certificate is only valid for the > following names: daenerys.burelli.fr, www.daenerys.burelli.fr) > > Part of my httpd.conf: > > server "daenerys.burelli.fr" { > listen on $ext_addr port 80 > block return 301 "https://$SERVER_NAME$REQUEST_URI"; > } > > server "daenerys.burelli.fr" { > alias "www.burelli.fr" > listen on $ext_addr tls port 443 > (…) > } > > server "cloud.burelli.fr" { > listen on $ext_addr port 80 > block return 301 "https://cloud.burelli.fr:444/$REQUEST_URI"; > } > > server "cloud.burelli.fr" { > listen on $ext_addr tls port 444 > (…) > } > > I tried also with: block return 301 https://$SERVER_NAME:444$REQUEST_URI > or > block return 301 https://cloud.burelli.fr:444$REQUEST_URI > > What is the right way to rewrite the URL? > > Thanks in advance for your help and support. > > Olivier. > Seems like httpd is using the first cert for both domains. Are you using the "tls certificate *file*" option?