Booting homebrew ELF kernel on NewWorld OpenFirmware 3.0?

2005-10-09 Thread Andrei Warkentin
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, I trying to cobble together a simple Hello World ``kernel'' on the mac, and have a question concerning the booting specifics. I understand that OF 3.0 groks ELF, but the ELF file should contain some special information in the note sectio

Re: Booting homebrew ELF kernel on NewWorld OpenFirmware 3.0?

2005-10-10 Thread Andrei Warkentin
if at all? Thanks again for the information and have a great day. On Oct 10, 2005, at 3:08 AM, Olaf Hering wrote: On Sun, Oct 09, Andrei Warkentin wrote: I trying to cobble together a simple Hello World ``kernel'' on the mac, and have a question concerning the booting specifics.

Re: Booting homebrew ELF kernel on NewWorld OpenFirmware 3.0?

2005-10-15 Thread Andrei Warkentin
CLAIM it again. Is there some way of convincing OF to free up the memory it just gobbled up, after my kernel had exited? Thanks again. On Oct 10, 2005, at 3:08 AM, Olaf Hering wrote: On Sun, Oct 09, Andrei Warkentin wrote: I trying to cobble together a simple Hello World ``kernel

Re: Sparc bootblock [Was: SFS breaks PPC build ]

2005-10-17 Thread Andrei Warkentin
Can OpenBoot directly boot ELF or COFF images? I looked at SILO and it seems it uses a 512-byte boot block to load second stage etc. On Oct 17, 2005, at 2:30 AM, Bart Grantham wrote: Marco Gerards wrote: > As GRUB 2 is ported to the ultra sparc64 it might be wise for us (GRUB > and solari

Re: Sparc bootblock

2005-10-17 Thread Andrei Warkentin
IANA mac guru, but the OF in Old Worlds (OF 1.0.5) has support for reading from block devices, parsing *some* filesystems (this but is pretty crippled - for example, no fragmentation can occur on a FAT floppy, because it just loads data linearly). It can boot from a partition 0 boot block (

PowerPC C++ kernel woes.

2005-11-26 Thread Andrei Warkentin
Hello, I've been trying to get some C++ running (now that I can print "Hello World" from OF, I'd like to move my "Hello World" C++ kernel to PowerPC), but it has been without much success. I've finally figured out that there are these small data sections which I was not taking care of in my

Re: PowerPC C++ kernel woes.

2005-11-27 Thread Andrei Warkentin
d_stack + 0x4000; ld_stack_end = .; } ld_end = .; } On Nov 26, 2005, at 6:42 PM, Andrei Warkentin wrote: Hello, I've been trying to get some C++ running (now that I can print "Hello World" from OF, I'd like to move my "Hello World" C++ kernel to PowerPC),

Re: Broken Build on Mac OS X

2005-12-03 Thread Andrei Warkentin
Hello, I would suggest building a bootstrap gcc powerpc crosscompiler and binutils, where the the host is your OS X system and the target is powerpc-linux. This will allow you to build PowerPC ELF objects, which you can then boot with OF. It is my understanding that the GRUB2 PowerPC buil

Re: Broken Build on Mac OS X

2005-12-03 Thread Andrei Warkentin
nd I had no issues. My understanding is that you will have to somehow convince the GRUB2 build to use your gcc versus the system one. Have a good day. On Dec 3, 2005, at 8:49 PM, Andre Smith wrote: Thanks Much! I will build that tool chain and rebuild GRUB2. On Dec 3, 2005, at 9:05 PM, An

Re: GRUB2 Build on Mac OS X

2005-12-08 Thread Andrei Warkentin
I think the best solution would be to entirely avoid Apple's bundled OS X-specific GCC. An powerpc-elf -targetted GCC cross-compiler hosted on OS X should be perfect for both OpenSolaris and for GRUB2. On Dec 8, 2005, at 12:10 AM, Andre Smith wrote: The GRUB2 build fails on Mac OS X, due to

Re: GRUB2 Build on Mac OS X

2005-12-08 Thread Andrei Warkentin
Hello, There is another issue with GRUB2 on OS X which I am not sure has been brought up yet. Right now, AFAIK (but I haven't tested it), GRUB2 (the part that runs from OpenFrimware) can be built with a bootstrap powerpc-elf-targetted GCC hosted on OS X. However, the local GRUB2 binary (one

Re: GRUB2 Build on Mac OS X

2005-12-08 Thread Andrei Warkentin
, 2005, at 2:00 PM, Marco Gerards wrote: Andrei Warkentin <[EMAIL PROTECTED]> writes: Hi Andrei, There is another issue with GRUB2 on OS X which I am not sure has been brought up yet. Right now, AFAIK (but I haven't tested it), GRUB2 (the part that runs from OpenFrimware) can be b

Re: GRUB2 Build on Mac OS X

2005-12-08 Thread Andrei Warkentin
Hmm, I just tried ./configure-ing.I have my powerpc-linux crosscompiler tools as powerpc-linux-{gcc, ld, ar, objcopy, etc}. It seems the configuration utility makes no distinction between compiler toolchain to make system utilities and compiler chain to make bootable executables.Naturally, this bei

Re: GRUB2 Build on Mac OS X

2005-12-08 Thread Andrei Warkentin
ure ELF. I am not sure if creating Mach-O boot binaries will yield any benefits for bringing up a kernel. If GRUB2 is to be used on the Mac OS X operating system, the tools need to be Mach-O based. Andre -Original Message----- From: Andrei Warkentin [mailto:[EMAIL PROTECTED] Sent: Thursday,

Re: GRUB2 Build on Mac OS X

2005-12-08 Thread Andrei Warkentin
Aside from compiling/linking issues, there is another thing to keep in mind should there ever be a port of bootable GRUB2 parts to OF/ Mach-O. OS X uses a different calling convention, so any assembly bits would have to be properly adjusted. I still think the best solution here would be to c

NewWorld CD Booting?

2006-03-14 Thread Andrei Warkentin
Hello, I really don't know who else to approach with this, and this is (potentially) GRUB 2 related (if/when GRUB2 boots from CD). Basically I hack away at my "kernel attempt" on a an '05 iBook (dev system is 10.4), and decided to look into making a bootable CD so I could use QEMU PPC em

Re: El Torito Dual Boot.

2006-03-27 Thread Andrei Warkentin
Take anything I say with a grain of salt, but... AFA I understand, if the disk is an HFS or hybrid HFS/ISO, OpenFirmware scans it for a "blessed" folder, and looks for a file with a resource type "tbxi", which it then runs. This is usually (always?) a bootinfo script that specifies further