[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#257001: more on m68k kernel build bugs...



On Fri, Jul 16, 2004 at 02:30:33PM +0900, Carsten Haitzler wrote:
> After some more digging I have found even more issues. as of kernel 2.3.17 the
> mac 68k specific code changed a fair bit - they introduced calls that do not
> exist anywhere in the kernel. specifically i have found:
> 
> extern __u32 adb_read_time(void);
> 
> it is defined as an extern symbol - but NOWHERE in the code for the kernel can i
> find that function being provided or any #define changing its name etc. this
> code was introduced as of 2.3.17 and would break the kernel for 68k mac builds
> as of this version.

Please install and apply kernel-patch-2.4.26-m68k.

arch/m68k/mac/misc.c 

/*
 * Return the current time as the number of seconds since January 1, 1904.
 */

static long adb_read_time(void)
{
        volatile struct adb_request req;
        long time;

        adb_request((struct adb_request *) &req, NULL,
                        ADBREQ_RAW|ADBREQ_SYNC,
                        2, CUDA_PACKET, CUDA_GET_TIME);

        time = (req.reply[3] << 24) | (req.reply[4] << 16)
                | (req.reply[5] << 8) | req.reply[6];
        return time - RTC_OFFSET;
}

Now I am not saying you will get a working kernel with this, but you can
compile one, as you can see with kernel-image-2.4.26-mac. Upstream, ie the
mac kernel hackers, are not working on 2.4 anymore, instead they are working
on 2.6. Please see the linux-m68k mailing list for more.

Christian
-- 
http://people.debian.org/~cts/debian-m68k/woody




Reply to: