Nick | 1 Dec 2008 02:58
Picon
Favicon

Re: Booting Haiku PPC


> The image by itself isn't bootable.
>
> For now you need to jam haiku-boot-cd-ppc to build an HFS/ISO image
> containing the bootloaders.
>
> OpenFirmware doesn't know how to read BFS anyway.

Thanks for the information.  I also built the boot-cd-ppc.  I believe the
link changed.  The Haiku image & boot-cd files for PPC are now
available from here:

http://www.steekr.com/n/50-17/share/LNK55754933424ededbc/
 
Anyone want to test them out? :-)

Regards,

Visit messengerbuddies.ca to find out how you could win. Enter today.
Karl vom Dorff | 1 Dec 2008 04:22

Re: Booting Haiku PPC


Thanks for the information.  I also built the boot-cd-ppc.  I believe the
link changed.  The Haiku image & boot-cd files for PPC are now
available from here:

http://www.steekr.com/n/50-17/share/LNK55754933424ededbc/
 
Anyone want to test them out? :-)

I've tried it out on PearPC. It says the partition isn't bootable. I didn't try the bootcd because it's broken even on x86 (can't find any bootable volumes).

 


Regards

François Revol | 1 Dec 2008 04:31
Picon
Favicon
Gravatar

Re: Booting Haiku PPC

> > Thanks for the information.  I also built the boot-cd-ppc.  I 
> > believe the
> > link changed.  The Haiku image & boot-cd files for PPC are now
> > available from here:
> >
> > http://www.steekr.com/n/50-17/share/LNK55754933424ededbc/
> >
> > Anyone want to test them out? :-)
> >
> 
> I've tried it out on PearPC <http://pearpc.sourceforge.net>. It says 
> the
> partition isn't bootable. I didn't try the bootcd because it's broken 
> even

Of course it isn't, it doesn't work the same as on x86, if you read me.

> on x86 (can't find any bootable volumes).

Again it's totally different than x86.
You must use the cd image.

But I recall trying without success on PearPC.

François.

Samir Gartner | 1 Dec 2008 05:11
Picon

Re: Booting Haiku PPC

This is the result of booting in QEMU. I got a pink screen....nice.


this was the console outpu:

Last login: Sun Nov 30 22:40:10 on ttyp1
Welcome to Darwin!
Lamparita:~ samir$ qemu-system-ppc -cdrom /Users/samir/Desktop/haiku-boot-cd-ppc.iso 
starting qemu...
dbdma_writeb: 0x80888000 <= 0x000000cc
dbdma_writeb: 0x80888001 <= 0x000000cc
dbdma_writeb: 0x80888002 <= 0x000000cc
dbdma_writeb: 0x80888003 <= 0x000000cc
dbdma_writeb: 0x80888004 <= 0x000000cc
dbdma_writeb: 0x80888005 <= 0x000000cc
dbdma_writeb: 0x80888006 <= 0x000000cc .... and it keeps going 


2008/11/30 Nick <tonestone57-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org>

> The image by itself isn't bootable.
>
> For now you need to jam haiku-boot-cd-ppc to build an HFS/ISO image
> containing the bootloaders.
>
> OpenFirmware doesn't know how to read BFS anyway.

Thanks for the information.  I also built the boot-cd-ppc.  I believe the
link changed.  The Haiku image & boot-cd files for PPC are now
available from here:

http://www.steekr.com/n/50-17/share/LNK55754933424ededbc/
 
Anyone want to test them out? :-)

Regards,

Visit messengerbuddies.ca to find out how you could win. Enter today.

François Revol | 1 Dec 2008 05:28
Picon
Favicon
Gravatar

Re: Booting Haiku PPC

> This is the result of booting in QEMU. I got a pink screen....nice.
> this was the console outpu:

Yes it seems the bootloader cannot access the page table and actually 
uses physical addresses or at least wrong addresses (it ends up writing 
to hardware regs).
This is likely due to OpenHackware being too simple, it was just 
intended to boot linux and some others.
Though it seems the Pegasos OF also had to be used in real mode... so I 
don't know.

François.

Axel Dörfler | 1 Dec 2008 10:39
Picon

Re: Building/installing only specific components

"Stephan Assmus" <superstippi@...> wrote:
> > Do I understand it right that I can define those preferences in my
> > UserBuildConfig? So how could I set e.g. the resolution when 
> > building and
> > installing Haiku to a partition?
> Just create a "vesa" kernel settings file and copy that to your 
> partition in the the
> UserBuildConfig. There are examples for copying files or also for 
> extracting files in
> UserBuildConfig.sample and .ReadMe.

That's actually no longer up to date information.
Thanks to Jan Klötzke, we're able to switch mode (also using EDID) with 
the VESA driver in the running system. IOW the "vesa" mode file only 
determines the resolution Haiku will boot in - but when the app_server 
takes over, it will also choose a resolution by itself.
You could automatically copy the "config/settings/system/app_server/
workspaces" (IIRC) file to the partition to specify a resolution for a 
freshly built image. It's a flattened BMessage.

Bye,
   Axel.

Axel Dörfler | 1 Dec 2008 10:45
Picon

Re: Booting Haiku PPC

"François Revol" <revol@...> wrote:
> > This is the result of booting in QEMU. I got a pink screen....nice.
> > this was the console outpu:
> Yes it seems the bootloader cannot access the page table and actually 
> uses physical addresses or at least wrong addresses (it ends up 
> writing 
> to hardware regs).
> This is likely due to OpenHackware being too simple, it was just 
> intended to boot linux and some others.
> Though it seems the Pegasos OF also had to be used in real mode... so 
> I 
> don't know.

The Pegasos OF is also broken in many ways. I think the best way to 
work around all these issues is to use the floppy boot mode for PPC 
always, ie. have all files needed to boot packed into the boot loader 
via tarfs. This is also how other systems usually boot, and minimizes 
the use of OF functions.

Bye,
   Axel.

Alan Burkes | 1 Dec 2008 17:49
Picon

Re: Booting Haiku PPC

On Mon, Dec 1, 2008 at 1:45 AM, Axel Dörfler <axeld@...> wrote:
> The Pegasos OF is also broken in many ways. I think the best way to
> work around all these issues is to use the floppy boot mode for PPC
> always....

Argh. This upsets the perfectionist in me. I simply cannot believe
that it isn't possible to use OpenFirmware to boot Haiku.

But then again, Making Haiku more OF-Friendly would probably require
changes in the Kernel, making so much more work needed, so it doesn't
seem practical.

(This is how I get when I'm upset that I don't know enough about
low-level hardware workings. It's very Frustrating.)

Matt Emson | 1 Dec 2008 18:07
Picon
Gravatar

Re: Booting Haiku PPC

Alan Burkes wrote:
> On Mon, Dec 1, 2008 at 1:45 AM, Axel Dörfler <axeld@...> wrote:
>   
>> The Pegasos OF is also broken in many ways. I think the best way to
>> work around all these issues is to use the floppy boot mode for PPC
>> always....
> But then again, Making Haiku more OF-Friendly would probably require
> changes in the Kernel, making so much more work needed, so it doesn't
> seem practical.
>   
Wild thought from a slightly flu ridden mind: On Old World Macs (which I 
assume François was refering to) would it be possible to use the 
original Be Boot loader for PowerPC? I believe that if the BeOS can boot 
on the hardware, the Be Boot loader should work "run" correctly. It uses 
some kind of enumeration thing on the Mac to discover the hardware, yes, 
but then does something like the BeBox ROM (because it was based on the 
same boot code, I believe) and it attempts to load the kernel from the 
boot partition, which then goes through a regular BeBox style boot 
process. So, this would need to be a PEF exe, but there on can do 
whatever. The crucial part here : either the LINUX or NetBSD BeBox 
projects (I think NetBSD) wrote a tool to convert ELF executables to PEF 
to allow LINUX to boot on the BeBox. It might work.

The PCI bus on Macs is pretty much a mad thing to use. If that is not 
currently working, that could be interesting :-)

ADB would be handy, does the system support ADB? Be Inc had ADB in the 
Kernel for some reason. Without ADB you'd need working USB up front.

M

Axel Dörfler | 1 Dec 2008 20:13
Picon

Re: Booting Haiku PPC

"Alan Burkes" <firstakir@...> wrote:
> On Mon, Dec 1, 2008 at 1:45 AM, Axel Dörfler <axeld <at> pinc-software.de> 
> wrote:
> > The Pegasos OF is also broken in many ways. I think the best way to
> > work around all these issues is to use the floppy boot mode for PPC
> > always....
> Argh. This upsets the perfectionist in me. I simply cannot believe
> that it isn't possible to use OpenFirmware to boot Haiku.
> 
> But then again, Making Haiku more OF-Friendly would probably require
> changes in the Kernel, making so much more work needed, so it doesn't
> seem practical.

Haiku works fine when using the NewWorld Mac OF. Most other OF 
implementations are broken in fundamental ways that would need specific 
per implementation work-arounds; it doesn't make any sense to really 
try to use the OF for those, but we can still use it for working OFs.

Bye,
   Axel.


Gmane