[uClinux-dev] Problem "make"ing uClinux

Chizhik, Andrew AnChizhik at ekmail.com
Tue Mar 18 11:44:27 EST 2003


Hi everybody.

I'm using Cygwin and uClinux-20020927. When I do a make for, say, the
default configuration for the M5407C3, everything works wonderfuly. However,
if I change the CPU type to MC68360 (which is what I need), make fails with
the following errors:

m68k-elf-ld -T arch/m68knommu/platform/68360/uCquicc/ram.ld
arch/m68knommu/platform/68360/uCquicc/crt0_ram.o init/main.o init/version.o
\
	--start-group \
	arch/m68knommu/kernel/kernel.o arch/m68knommu/mm/mm.o
arch/m68knommu/platform/68360/platform.o kernel/kernel.o mmnommu/mmnommu.o
fs/fs.o ipc/ipc.o \
	 drivers/char/char.o drivers/block/block.o drivers/misc/misc.o
drivers/net/net.o drivers/media/media.o drivers/video/video.o \
	net/network.o \
	/home/Administrator/uClinux-dist/linux-2.4.x/lib/lib.a
arch/m68knommu/lib/lib.a
/usr/local/lib/gcc-lib/m68k-elf/2.95.3/./m68000/libgcc.a \
	--end-group \
	-o linux
arch/m68knommu/kernel/kernel.o: In function `show_regs':
/home/Administrator/uClinux-dist/linux-2.4.x/arch/m68knommu/kernel/process.c
:125: undefined reference to `sw_usp'
arch/m68knommu/kernel/kernel.o: In function `m68k_vfork':
/home/Administrator/uClinux-dist/linux-2.4.x/arch/m68knommu/kernel/process.c
:198: undefined reference to `sw_usp'
arch/m68knommu/kernel/kernel.o: In function `m68k_clone':
/home/Administrator/uClinux-dist/linux-2.4.x/include/asm/processor.h:25:
undefined reference to `sw_usp'
arch/m68knommu/kernel/kernel.o: In function `dump_thread':
/home/Administrator/uClinux-dist/linux-2.4.x/arch/m68knommu/kernel/process.c
:307: undefined reference to `sw_usp'
fs/fs.o: In function `proc_pid_stat':
/home/Administrator/uClinux-dist/linux-2.4.x/include/asm/processor.h:25:
undefined reference to `sw_usp'
make[1]: *** [linux] Error 1
make[1]: Leaving directory `/home/Administrator/uClinux-dist/linux-2.4.x'
make: *** [linux] Error 1

Looking at the lines mentioned here, there is no "sw_usp" there. For
example, line 125 in process.c reads:
printk("USP: %081x\n", rdusp());

I assume the problem lies in the call to rdusp(). What does that function
do? What do these errors mean?

Andrew Chizhik 



More information about the uClinux-dev mailing list