Ticket #1599 (new bug)

Opened 12 months ago

Last modified 6 months ago

Haiku Booting on a MacBook Info...(gets stuck)

Reported by: kvdman Owned by: axeld
Priority: normal Milestone: R1
Component: Drivers/Disk Version: R1 development
Cc: chrisply@…, marcusoverhagen Blocked By:
Platform: All Blocking:

Description

Ok, this is a little confusing.

I have a core 2 duo macbook.

Using Vmware Fusion, I've enabled a physical bootcamp partition, and used Zeta to mount the disk, format it, install Haiku, and make it bootable.

Macbooks don't have a PS/2 controller, so I can't select any safe mode settings or type anything.

From ReactOS:

'ReactOS development builds (trunk) have run fine now for two days on Intel Mac (with Bootcamp installed) computers. Intel Mac's consist of standard hardware but there are some differences which had made it impossible to run ReactOS before. Intel Mac's don't have PS/2 keyboard controllers. GRUB as well as Darwin's BIOS loader had similar problems sometime ago, good that it has been fixed in ReactOS too. Intel Mac's BIOS has a "serial port" bug, it reports that COM1 exist, but no one is there physically. Two other BIOS bug are related to reading CD/DVD drives. ReactOS does support HID-compliant devices, especially USB keyboard and mouse which is relevant for Intel Mac. We want to thank Michael Steil for making this possible. Stay tuned for ReactOS 0.3.1 which will incorporate these improvements and will be released in late december 2006.'

Anyways...

I was wondering if Haiku writes a log by default, that way I could mount the physical disk Haiku is installed on and read it under Zeta...

What I have done, is booted the physical drive that Haiku is installed on through Vmware Fusion in Mac OS X. I added a serial port, and got the log. Vmware crashes though (see screenshot), and here's the log: http://rafb.net/p/jFLYHU40.html

When I boot the physical partition normally (no emulator), the system shows the Haiku boot screen but will stay there forever.

Anyways, hope this info is useful.

Attachments

mb-sc.png (53.2 kB) - added by kvdman 12 months ago.
log1.rtf (58.1 kB) - added by kvdman 12 months ago.
log1.2.rtf (58.1 kB) - added by kvdman 12 months ago.
log2.rtf (50.8 kB) - added by kvdman 12 months ago.

Change History

Changed 12 months ago by kvdman

Changed 12 months ago by kvdman

Here's the Vmware log of it booting Haiku off the Macbook's physical partition:

http://rafb.net/p/1fkACT55.html

Changed 12 months ago by umccullough

you should attach the text file(s) to the tickets directly - those links will expire shortly.

when it comes to bug reports, a file attachment is always better than a link :)

Changed 12 months ago by kvdman

Changed 12 months ago by kvdman

Changed 12 months ago by kvdman

Changed 12 months ago by kvdman

added attachments of the http://rafb.net links as advised by Urias. Sorry didn't know they only lasted 24 hours. Also, my wireless gave up, so there are two 'log1's. They are the same.

Changed 11 months ago by chrisjp

In VMWare I don't know what the problem is.

The non-emulator booting freezes at the haiku logo as the new SATA driver doesn't have the vendor/product ID used in the macbook. Updating the ahci.c file:

{ 0x8086, 0x27c3, "Intel ICH7R (RAID mode)" },

+ { 0x8086, 0x27c4, "Intel ICH7 (AHCI Macbook)" },

{ 0x8086, 0x27c5, "Intel ICH7-M (AHCI mode)" },

will allow haiku to boot, however due to other usb related uhci bugs, haiku will not function properly.

Currently we can use external usb mice/keyboards unreliably, but I'm working on figuring out the usb problem and hopefully will put together a touchpad driver for the macbook :)

chrisply@… for more info if you like.

Changed 11 months ago by chrisjp

  • cc chrisply@… added

Changed 11 months ago by chrisjp

Unrelated to this bug, but I should also add that booting requires you to disable or delete the intel_extreme driver :)

Changed 11 months ago by marcusoverhagen

  • cc marcusoverhagen added

The ICH7 Family Specification Update from September 2007 lists device id 27C4 as "Mobile Non-AHCI and Non-RAID Mode".

Can you confirm that AHCI works properly?

Changed 11 months ago by kvdman

I can't duplicate the Macbook booting Haiku... Could you briefly explain your installation method chrisjp?

thx

Changed 11 months ago by chrisjp

Re: Marcus (Thanks for sata/ahci work)

The hardware in the macbook is the Intel® 82801GBM I/O Controller Hub (ICH7M) - AHCI only http://www.intel.com/support/chipsets/imst/sb/CS-012304.htm

In terms of the product ID, some linux lists said it may vary based upon the mode it is in at bootup, however, this appears to work for me. (Possibly a problem for other motherboards? I can't say)

I can verify that adding it to the ahci.c was one of the additions to allow booting on the macbook.

Re: kvd The method I used for compiling and installing the image is a bit tricky, linux compile with direct partition writing of the image, refit/grub -> haiku partition.

You can boot it straight from Refit, which is pretty ideal.

I can compile the source in mac osx (need a case sensitive partition) and use parallels / vmware, but I haven't looked at using /dev/disks04 or whatnot for writing directly to the partition in darwin.

Currently there is no efi/gpt etc support in haiku so you have to have it in one of the first 4 positions to enable bios emulation. (Just like windows)

My setup is: P1 [EFI] P2 [Leopard] P3 [Haiku] P4 [Linux] The following drivers need to be removed for bootup also: intel_extreme and ehci. The intel driver will crash at mode switch/init, the ehci driver at usb device detection.

The intel_extreme bombs for reasons I've yet to explore, and the ehci for problems with both the uhci and ehci drivers noticing the connection of the isight, and trashing the whole usb bus. (looking into a solution)

Also, once you get the system enabled, you'll need to use an external mouse/keyboard, since we don't yet support composite hid devices (I'm rewriting this).

I also wrote a driver for that cute little remote, but that's not important ;)

This is all a lot to put on trac, so I'll try to put a page on the wiki here or at haikuware about the macbook support since there is interest.

I'd also be totally willing to throw up a dd'able image on my site if you are interested.

Cheers, Chris

Changed 11 months ago by chrisjp

Also in the rare event that you have a bluetooth keyboard and mouse that would work too since the non-firmware upgraded bluetooth interface has support.

I also disabled firewire as a plugin as it initialized a whole slew of memory in the syslog. Not sure if this is a bug or feature ;)

I'm not at home at the moment, but hit me up with other questions if you have them.

Changed 11 months ago by kvdman

Hi,

I tried deleting just the intel_extreme driver before, now tried deleting firewire and ehci drivers. It seemed to get a bit further, where it looked like switching modes and starting the desktop, but stopped with some lines on the screen.

I'm not sure my install method is the right way, as I'm using Vmware and Zeta to write Haiku to the physical partition. My setup is similar to yours, but I'm installing on the 3rd partition and using ReFIT to boot it.

Do you have to have a mouse and keyboard hooked up to boot Haiku (I do have USB both, but just wondered because I'm trying to boot without them)?

That dd'able image you mention would be nice :) along with the command I'll need to write it to the partition. I think I've tried that before using a different OS, and the partition would only be the size of the disk image.

Changed 6 months ago by nutela

Wow, if APCI and sleep states like standby and hibernate work and it won't overheat a Mac book will be mine! Nice work, any idea if Haiku will boot on an intel Mac Mini?

@Marcus; sorry to spam like this but I wanted to ask if you have a spare Hauppauge Win TV card? I can't get the model 928 anymore.

Note: See TracTickets for help on using tickets.