Subject: Re: PowerMac 7300/200 boot problems (current)
To: None <port-macppc@netbsd.org>
From: Michael Lorenz <macallan@netbsd.org>
List: port-macppc
Date: 07/20/2007 16:19:23
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello,
On Jul 20, 2007, at 15:42, Sampson Stein wrote:
> +++ Michael Lorenz [freebsd] [20/07/07 13:43 -0400]:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> Hello,
>>
>> On Jul 20, 2007, at 13:31, Sampson Stein wrote:
>>
>>> +++ Michael Lorenz [freebsd] [20/07/07 13:19 -0400]:
>>>> Hello,
>>>>
>>>> On Jul 20, 2007, at 01:35, Sampson Stein wrote:
>>>>
>>>>> +++ Michael Lorenz [freebsd] [19/07/07 23:36 -0400]:
>>>>>>
>>>>>> Hello,
>>>>>>
>>>>>> On Jul 19, 2007, at 23:06, Sampson Stein wrote:
>>>>>>
>>>>>>> +++ Michael Lorenz [freebsd] [19/07/07 14:26 -0400]:
>>>>>>>>
>>>>>>>> Hello,
>>>>>>>>
>>>>>>>> On Jul 19, 2007, at 14:02, Sampson Stein wrote:
>>>>>>>>
>>>>>>>>> I want to use that obj dir whilst building on the FreeBSD
>>>>>>>>> machine, but wouldnt using '-O /usr/netbsd/obj' to build.sh
>>>>>>>>> result in paths being screwed up when installing from the mac?
>>>>>>>>
>>>>>>>> No. obj is for .o files and similar stuff, the actual userland
>>>>>>>> you're building will show up in whatever dir you passed as
>>>>>>>> destination using - -D
>>>>>>>>
>>>>>>>>> Also, how should I upgrade the userland and such on the mac..
>>>>>>>>> the kernel, I just copied it... but I'm guessing if I did all
>>>>>>>>> the building on the freebsd, I could use build.sh to install
>>>>>>>>> too correct?
>>>>>>>>
>>>>>>>> Yes, but I usually prefer building tarballs ( build.sh sets,
>>>>>>>> they'll show up in whatever you passed as release dir -R ) -
>>>>>>>> tar xpzf base.tgz etc., then run 'postinstall fix' to get rid
>>>>>>>> of obsolete files an such ( make sure /usr.src points at your
>>>>>>>> sources or postinstall won't work )
>>>>>>>> With tarballs you can build everything on FreeBSD and just
>>>>>>>> unpack on the Mac.
>>>>>>>
>>>>>>> By /usr.src did you mean /usr/src?
>>>>>>
>>>>>> Yes. I'm fluent in typo :p
>>>>>>
>>>>>>> Also, should be unpacking these tarballs to /? like... `cd /;
>>>>>>> tar xpzf /path/to/tarballs/tarball.tgz; postinstall fix'
>>>>>>> correct?
>>>>>>
>>>>>> Exactly. the p option is important so file permissions and
>>>>>> ownership will be restored correctly - without that you'd end up
>>>>>> with - for instance - a /usr/bin/su without suid bit set which
>>>>>> therefore wouldn't work.
>>>>>>
>>>>>> have fun
>>>>>> Michael
>>>>>>
>>>>> Alright man, thanks a lot. I got it working now, except for a
>>>>> little hickup
>>>>> in the postinstall fix command, I ran it again and it tries to do
>>>>> the part it
>>>>> failed on, which I will attach a typescript of it to this email,
>>>>
>>>> It complains about being unable to remove /usr/share/sendmail for
>>>> some reason ( sendmail was removed a while ago and replaced with
>>>> postfix ) - that error is harmless, just delete the directory by
>>>> hand.
>>>>
>>>>> as well as the output of 'ofctl -p'.
>>>>
>>>> Eh, I see the mach64 but it doesn't have an OpenFirmware ROM it
>>>> seems so you won't be able to use it as console.
>>>>
>>>>> I also have attached an intel ethernet card, that works like a
>>>>> charm.
>>>>
>>>> Most PCI device drivers should Just Work, even though many of them
>>>> have never been used on macppc. You may want to pick up a cheap USB
>>>> card though, the one button Apple mice get annoying quickly in X.
>>>> So, you /may/ be able to use the mach64 in X - put this into your
>>>> kernel config:
>>>> options OFB_FAKE_VGA_FB
>>>> this lets X mmap the region usually occupied by the legacy VGA
>>>> framebuffer ( 0xa0000-0xbffff ) which is unused on macppc but some
>>>> stupid, PC-centric XFree86 drivers insist on playing with it even
>>>> if it has no effect.
>>>> options OFB_ALLOW_OTHERS
>>>> This will allow the Xserver to access other devices than the
>>>> console display through /dev/ttyE0. Obviously a monstrous security
>>>> hole, that's why it's not enabled by default.
>>>> Use the wsfb driver for the onboard fb and atimisc for the mach64.
>>>>
>>>> have fun
>>>> Michael
>>>>
>>
>>> Thanks a lot man, everything's working like a charm... I'll try that
>>> stuff
>>> for X out, btw.. I have the config set to use the new adb and such,
>>> works
>>> great as well. Now to figure out what the heck to do with this thing
>>> xD
>>
>> Gah, I just had a look at the source - OFB_ALLOW_OTHERS got nuked but
>> if you really want to play with that I'll send you a patch. wsfb
>> should work with the onboard fb though.
>>
>> have fun
>> Michael
>>
> But I can only get 640x480 then right
You'll get whatever the firmware set up, with OF 1.0.5 that's usually
640x480 at 8 bit.
have fun
Michael
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)
iQEVAwUBRqEYzMpnzkX8Yg2nAQIV3Af+JvI0k/25KS1vgcrnJClUjDghr46d8FQ3
2K3wbo7MK76+N04rY74/TXKw/bqPYmWiHqCXFcmxccNqJHluWS5xKUiU8C+W19te
o1gs0t6t2PwxHIAwjBuxrGGiPaW7fih/ULa7rK+/xSymqi8JakXvZqXjorEacCjn
IyXioAzKP2dWunwiNNE3DlnaA+/K+OfcsyIoFxYgi7Q2CwfUKfwBWQZVqyDzgDC3
nlX4yG1CplTQz0RVBjuPUpOUJR5jJAgaA8OI2XWH7GMrKaTRHJ6l28DLAtokloin
0RnB8YHUSu5S3eb2oo8SAIhjE1GB2xLO/zBpGq1NYitRW1MTbZuVBg==
=06kE
-----END PGP SIGNATURE-----