[uClinux-dev] Re: uClinux-dev digest, Vol 1 #467 - 12 msgs

Prasad V M K prasadvmk at myw.ltindia.com
Mon Mar 31 09:36:01 EST 2003


Reply to Message: 9

Mr. Steens,

Go to file linux-2.4.x/arch/m68knommu/kernel/m68k_ksyms.c

Make the declared variable `local_irq_count'  as extern.

i.e, In line number 185,  make the statement like this
extern unsigned int *local_irq_count;

Compile it every thing will work fine.

If you have any problem let me know i will give you the corrected patch.

Regards
Prasad


Message: 9
From: Bart Steens <bartsteens at seldi.nl>
To: uclinux-dev at uclinux.org 
Date: Mon, 31 Mar 2003 11:44:28 +0200
Subject: [uClinux-dev] Realtime applications on 5272C3 board
Reply-To: uclinux-dev at uclinux.org 

Hi!

I'm trying to create an application or the 5272C3 board that has (near) 
realtime priority, because I need to write GPO ports at a fixed frequency. 
Using the standard kernel the application gives too much jitter and latency, 
so I'm currently trying to figure out how to achieve better results.

I've been looking at RTAI (Real-time Application Interface), but I only could 
find a patch for an outdated uClinux distribution (20020411). The patch runs 
fine, but when I try to make the patched kernel I get the error listed at the 
end of this mail.

I've tried the latest distribution as well as the 20020927 package. Anyone had 
this error before? Or can somebody recommend me another way to give an 
application real-time priority? Thanks in advance.

Regards,

Bart Steens


m68k-elf-ld -T arch/m68knommu/platform/5272/MOTOROLA/ram.ld 
arch/m68knommu/platform/5272/MOTOROLA/crt0_ram.o init/main.o init/version.o 
init/do_mounts.o \
        --start-group \
        arch/m68knommu/kernel/kernel.o arch/m68knommu/mm/mm.o 
arch/m68knommu/platform/5272/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 \
        net/network.o \
        /home/mike/newucl/realtime/uClinux-dist/linux-2.4.x/lib/lib.a 
arch/m68knommu/lib/lib.a 
/usr/local/lib/gcc-lib/m68k-elf/2.95.3/./m5307/libgcc.a \
        --end-group \
        -o linux
arch/m68knommu/platform/5272/platform.o: In function `sw_usp':
arch/m68knommu/platform/5272/platform.o(.data+0x468): multiple definition of 
`local_irq_count'
arch/m68knommu/kernel/kernel.o:/home/mike/newucl/realtime/uClinux-dist/linux-2.4.x/arch/m68knommu/kernel/sys_m68k.c:103: 
first defined here
make[1]: *** [linux] Error 1
make[1]: Leaving directory 
`/home/mike/newucl/realtime/uClinux-dist/linux-2.4.x'
make: *** [linux] Error 1



--__--__--





More information about the uClinux-dev mailing list