linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* mac-on-linux (g3/r5 problems)
@ 1999-05-12 18:52 puetzk6715
  1999-05-12 20:12 ` Samuel Rydh
  0 siblings, 1 reply; 2+ messages in thread
From: puetzk6715 @ 1999-05-12 18:52 UTC (permalink / raw)
  To: linuxppc-dev


OK... I'm trying to build mac-on-linux on my original (beige) G3. Got a
romdump from an 8500 and ready to roll...

I downloaded the macos source, built it up. This being a pre-R5 machine, I
had to work some, but nothing ugly (I added #include <errno.h> to a lot of
files...). Done with that, looks good, says that the kernel has no macos
support (no surprise there).

updated my vger cvs (well cvs.on.openprojects.net actually) to
linux-cvs-2.3.0-19990511. I then patched in the kernel stuff, and
proceeded to go through (with a known-good .config, and enabling both
macos items).

Everything compiled, but the link failed, because
arch/ppc/macos/macos_ksyms.c and kernel/ksyms.c both tried to define
__ksymtab_find_vma and .kstrtab_find_vma. At this point I munged it
(commented out EXPORT_SYMBOL(find_vma) in arch/ppc/macos/macos_ksyms.c)
and it built (I was curious how much farther I'd get). How am I supposed
to get past this / what did I do wrong that caused it?

The kenel boots, seems to work, but any attempt to insert macos_mod fails
because clear_tlb_table is not defined - this symbol is in my vmlinux
file, but does not appear in /proc/ksyms. Is this the 603 bug (since the
750 is like a 603 in many ways, and I know the problem is related to
memory mapping...)?

Any ideas on where to start? I don't know much about asm (like
anything...), but am willing to guinea-pig to work this out.


[[ This message was sent via the linuxppc-dev mailing list.  Replies are ]]
[[ not  forced  back  to the list, so be sure to Cc linuxppc-dev if your ]]
[[ reply is of general interest. Please check http://lists.linuxppc.org/ ]]
[[ and http://www.linuxppc.org/ for useful information before posting.   ]]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: mac-on-linux (g3/r5 problems)
  1999-05-12 18:52 mac-on-linux (g3/r5 problems) puetzk6715
@ 1999-05-12 20:12 ` Samuel Rydh
  0 siblings, 0 replies; 2+ messages in thread
From: Samuel Rydh @ 1999-05-12 20:12 UTC (permalink / raw)
  To: puetzk6715, linuxppc-dev


On Wed, May 12, 1999 at 01:52:39PM -0500, puetzk6715@uni.edu wrote:
> 
> Everything compiled, but the link failed, because
> arch/ppc/macos/macos_ksyms.c and kernel/ksyms.c both tried to define
> __ksymtab_find_vma and .kstrtab_find_vma. At this point I munged it
> (commented out EXPORT_SYMBOL(find_vma) in arch/ppc/macos/macos_ksyms.c)
> and it built (I was curious how much farther I'd get). How am I supposed
> to get past this / what did I do wrong that caused it?
> 
> The kenel boots, seems to work, but any attempt to insert macos_mod fails
> because clear_tlb_table is not defined - this symbol is in my vmlinux
> file, but does not appear in /proc/ksyms. Is this the 603 bug (since the
> 750 is like a 603 in many ways, and I know the problem is related to
> memory mapping...)?
>
The problem is that the clear_tlb_table symbol is not exported.
I think it should be sufficient to add EXPORT_SYMBOL(clear_tlb_table)
to macos_ksyms.c. Even better, compile the kernel with the module
config option set to no (module support is probably going
to disappear since it is only a relatively small part of the 
code which actually can be put in a module).

/Samuel

-- 

----------------------------------------------------------
  E-mail <samuel@ibrium.se>  WWW: <http://www.ibrium.se>
    Phone/fax: (home) +46 4418431, (work) +46 7908470   
----------------------------------------------------------

[[ This message was sent via the linuxppc-dev mailing list.  Replies are ]]
[[ not  forced  back  to the list, so be sure to Cc linuxppc-dev if your ]]
[[ reply is of general interest. Please check http://lists.linuxppc.org/ ]]
[[ and http://www.linuxppc.org/ for useful information before posting.   ]]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1999-05-12 20:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-05-12 18:52 mac-on-linux (g3/r5 problems) puetzk6715
1999-05-12 20:12 ` Samuel Rydh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).