Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find files/partitions on drive after boot #2

Closed
b1twise opened this issue Sep 3, 2015 · 14 comments
Closed

Cannot find files/partitions on drive after boot #2

b1twise opened this issue Sep 3, 2015 · 14 comments

Comments

@b1twise
Copy link

b1twise commented Sep 3, 2015

I'm testing on a Macbook 2015. I've tried from both an external USB drive as well as my own EFI partition on the laptop. It only has the EFI partition on the internal disk, created by OSX running on a USB flash drive.

I'm using the snapshot from ftp.openbsd.org/pub/OpenBSD/snapshots/amd64, both the bootx and bsd.sd. Ihad trouble objcopy as noted, so I was going for a fresh install when I found the snapshot files.

When booted from external USB, the boot strings find hd0 and hd1--which maps logically to me to the USB drive and internal drive. The default drive is fd0a. fd0a doesn't seem to function with ls. I'm having a similar problem with the drives. I'm not sure what to call them. hd0, sd0, wd0, hd0a....?

The same holds true for a boot using only the internal disk. Only hd0 found on boot, defaults to fd0a, can't find bsd to push forward.

Anything I can do, i will try.

@yasuoka
Copy link
Owner

yasuoka commented Sep 4, 2015

ls command will work only against a BSD partition (for this moment, at least). "ls hd1a:/" for example.
The disk has an OpenBSD disklabel and BSD partition? Both of them are required.

Also, check the "probing: " line from the loader

probing: hd0* hd1

If you can find hd? without *, that means the boot loader found the
openbsd disklabel.

@b1twise
Copy link
Author

b1twise commented Sep 16, 2015

  • Yesterday I was able to get a successful boot into UEFI on a 2015
    MacBook. I haven't figured out how to put both EFI partition and a
    BSD partition for the bsd files onto a single USB stick yet. I spent
    time on that--which delayed my response.
  • The MacBook seems to demand EFI support--dropping non-EFI boot from
    even USB. I also have a 2014 or 2013 MacBook Air that only allows
    compat mode on one boot (for OS install).

I'll send results from the MBA and a 2012 MBPr soon.

I am so appreciative of the work you're doing on this. It's one step
closer to OBSD on Apple hardware. The kernel boots on the MBA and
MacBook, but no recognition of keyboard and mouse unless its's a compat
boot on the MBA.

Anyway, take care. If there's anything I can do to help or test, let me
know. I really appreciate the effort.

--Joel

On Fri, Sep 04, 2015 at 03:16:10PM -0700, YASUOKA Masahiko wrote:

ls command will work only against a BSD partition (for this moment, at least). "ls hd1a:/" for example.
The disk has an OpenBSD disklabel and BSD partition? Both of them are required.

Also, check the "probing: " line from the loader

probing: hd0* hd1

If you can find hd? without *, that means the boot loader found the
openbsd disklabel.


Reply to this email directly or view it on GitHub:
#2 (comment)

@yasuoka
Copy link
Owner

yasuoka commented Sep 18, 2015

Nice progress! I'm looking forward to your diff for macbook.

@gonzalo-
Copy link

Hi!
My Setup is a Macbookpro12,1 I buy one of those sd with 128gb on it to install OpenBSD. I do the EFI partition on osx, put the BOOTX64.EFI on EFI/BOOT/ and then with VirtualBox install OpenBSD on the rest of the SD as usual, then reboot osx holding 'alt', go to EFI, and UEFI Bootloader found only hd0* and hd1* but can't boot from any.

UPDATE: With a today (25 sep) install58.fs on a usb stick I got this now:

img_1788

Freeze there, then reboots

Any ideas?

@yasuoka
Copy link
Owner

yasuoka commented Sep 26, 2015

On hd1, the efiboot seems to have found an OpenBSD parition.
Failing at loading the kernel seems to be the same problem of
http://marc.info/?l=openbsd-misc&m=144254099606540&w=2 . That bug is what I am currently fixing.

@gonzalo-
Copy link

The partition is the usb, and that is what freeze!

I wAit for the fix! Thanks!

@yasuoka
Copy link
Owner

yasuoka commented Oct 5, 2015

Committed an important fix on openbsd's cvs.

@gonzalo-
Copy link

gonzalo- commented Oct 6, 2015

Awesome, I'm gonna build the files and try it in a few days, of you already have it, link is welcome :)

Thanks!

@yasuoka
Copy link
Owner

yasuoka commented Oct 6, 2015

The fix is included latest snapshot. You can get it from http://ftp.openbsd.org/pub/OpenBSD/snapshots/amd64/

@gonzalo-
Copy link

gonzalo- commented Oct 6, 2015

I have the same problem, booting from install58.fs from usb stick or with BOOTX64.EFI from SD:

img_1847

Stay there for a sec and then freeze or reboots

@yasuoka
Copy link
Owner

yasuoka commented Nov 4, 2015

As the result of Joerg Jung and Bryan Vyhmeist helps, almost all problems are getting to be fixed.

I think you can boot the OpenBSD installer by

  • Use latest snapshot's install58.fs
  • boot hd0a:5.8/amd64/bsd.rd (not /bsd)

I'd like you to try this.

@gonzalo-
Copy link

gonzalo- commented Nov 4, 2015

AWESOME!!!!!

I just test that, and go to installation just fine!

I'm gonna install this tonight or tomorrow, thank you so much!

@gonzalo-
Copy link

gonzalo- commented Nov 7, 2015

Well, I can install just fine OpenBSD with this, but now I need to figure out why OSX doesn't see the disk to boot! xD

But that is another history! Thanks!

@yasuoka
Copy link
Owner

yasuoka commented Nov 7, 2015

The remaining issue of loading hd0a:/bsd was that UEFI interrupt
destroys the zlib stack since efiboot is compiled without
-mno-red-zone. It is the same issue of
https://bugs.launchpad.net/ubuntu/+source/efilinux/+bug/1025931

I fixed this on cvs. Thank you for your report!

@yasuoka yasuoka closed this as completed Nov 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants