Subject: Classic II with Internal Video Working
To: None <port-mac68k@netbsd.org>
From: Erik M. Winkler <Erik.Winkler@ey.com>
List: port-mac68k
Date: 06/16/1999 16:11:43
All Classic II users:

I have 1.4 running on my Mac Classic II in a 10MB RAM/250 MB hard drive configuration with internal
video support.  I compiled the kernel on a Mac IIsi using the 1.4 source tree.  Below are the steps I followed:

1) Compile the GENERIC kernel from source using the standard procedure. ( boy does this take a while on a IIsi)
2) Apply the internal video hack put together by Norikai Yamada to the file usr/src/sys/arch/mac68k/mac68k/machdep.c
Here it is:


        if (i == nbnumranges) {
                if (0x60000000 <= videoaddr && videoaddr < 0x70000000) {
                        printf("Checking for Internal Video ");
                        /*
                        * Kludge for IIvx internal video (60b0 0000).
                        * PB 520 (6000 0000)
                        */
                        check_video("PB/IIvx (0x60?00000)",
                            1 * 1024 * 1024, 1 * 1024 * 1024);




        if (i == nbnumranges) {
>               if (0xfee00000 <= videoaddr && videoaddr < 0xfee10000){
>                       check_video("Classic II video (0xfee09a80)",21888,21888);
>               } else if (0x60000000 <= videoaddr && videoaddr < 0x70000000) {
                        printf("Checking for Internal Video ");
                        /*
                         * Kludge for IIvx internal video (60b0 0000).
                         * PB 520 (6000 0000)
                         */
                        check_video("PB/IIvx (0x60?00000)",
                            1 * 1024 * 1024, 1 * 1024 * 1024);

Just insert the > lines below  "if (i == nbnumranges) {" and delete the    " if (0x60000000 <= videoaddr && videoaddr < 0x70000000) { "  line.
3) Recompile the kernel by going to the compile directory and typing make.  DO NOT type "make dep" again, as this 
will require you to recompile the entire kernel and the patch probably won't work(at least it didn't for me).

Hope this helps any frustrated Classic II users out there.    This should also work on the Performa 200 as they are
the same machine.  Yes, X-Windows at 512x342; Who could ask for anything more?

Erik