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

Re: Probs compiling kernel 2.2.18-pre21 on 68040

Gavin Hamill wrote:
> Hi... got the installation problem sorted by using 2 hard disks - no I
> don't understand how it made any difference, either...
> Anyway, since I currently run kernel 2.2.10, I thought I should update and
> remove the crap I don't want, so I got the 2.2.18-pre21 source via apt,
> and started to compile...
> It noew gets pretty far in, but croaks once the 68k specfic code is
> reached:
> make -C  arch/m68k/kernel
> make[1]: Entering directory `/usr/src/kernel-source-2.2.18pre21/arch/m68k/kernel'
> cc -D__KERNEL__ -I/usr/src/kernel-source-2.2.18pre21/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -ffixed-a2 -m68040   -c -o traps.o traps.c
> make[1]: Leaving directory `/usr/src/kernel-source-2.2.18pre21/arch/m68k/kernel'
> traps.c: In function 'fix_xframe040':
> traps.c:311: structure has no member named 'buserr_info'
> traps.c: In function 'do_040writebacks':
> traps.c:330: warning: suggest parentheses around assignment used as truth
> value
> make[1]: *** [traps.o] Error 1
> make: *** [_dir_arch/m68k/kernel] Error 2
> eeeek!!
> Does anyone have any ideas on this? During the configuration, I removed
> the 020 and 030 instructions, and enabled the 040 ones (because that's
> the CPU I have :)
> Yours in hope!
> Gavin.

You can't use the mainstream kernel sources to compile an m68k Linux. 
You will need to apply the m68k patches to the source before you can
compile a good m68k based kernel.  You could pull 2.2.18 from the the
Linux-Mac68k site on SourceForge.  The following are instructions on how
to get the 2.2.18 source:

CVS is now hosted at SourceForge, so the procedures for checking out
sources have changed. Use these commands to check out the sources: 

$ export
$ cvs login
  (The password is blank. Just hit enter.)
$ cvs co -r linux-2_2 linux-mac68k
$ cd linux-mac68k
If you want the unstable 2.4 branch instead, omit the "-r linux-2_2" in
the third command. 

This source had been used by a few Amiga owners to compile kernels for
the Amiga with good results before the 2.2.18 merge.  I have not had any
reports of success or failure with the 2.2.18 source.

Ray Knight

Reply to: