Linux RT patch for Pandaboard Omap 4 kernel 3.0.0-1205 error when compiling

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

 



Hi everybody,

I am trying to patch and compile realtime patch for kernel 3.0.0-1205
(TI-OMAP4) on Pandaboard. However I faced lots of error, and couldn't
finish the compiling process yet.

I followed the instruction of compiling Pandaboard kernel from here

http://adventuresinsilicon.blogspot.com/2011/02/pandaboard-ubuntu-how-to-recompile.html
http://www.omappedia.com/wiki/Ubuntu_kernel_for_OMAP4

My kernel was downloaded with the command :

sudo apt-get build-dep linux-image-$(uname -r)

which is arm-linux-3.0.0-1205-omap4 or linux-ti-omap4
tar file : linux-ti-omap4_3.0.0-1205.10.tar.gz
The patch I used is : patch-3.0-rt6.patch.bz2

Pandaboard running on Ubuntu Oneiric Desktop. GCC 4.6

I tried the following commands :

patch -p1 < ../patch-3.0-rt6.patch
fakeroot debian/rules editconfigs
(# Kernel Features -> Preemption Model -> Fully Preemptible Kernel (RT) )
fakeroot debian/rules clean
dpkg-buildpackage -B -uc -us

First the patch showed that there are some :

Reversed (or previously applied) patch detected! Assume - R  Apply
anyway n] with 2 files :
drivers/rtc/interface.c
drivers/rtc/rtc-tegra.c

(Don't have this problem if i apply rt8 or latter However they are for
kernel 3.0.1 which I don;t know how to get)

I answer No for both assume  -r and Apply anyway , I am not sure it's
correct or not

Also the patch showed that there are some hunk failed with 3 files :

arch/arm/mm/cache-l2x0.c
init/main.c
kernel/stop_machine.c
I tried to fix this manually with the .rej files (otherwise it will
cause this error when compile:

kernel/stop_machine.c:176:2: note: each undeclared identifier is
reported only once for each function it appears in
kernel/stop_machine.c: In function ‘cpu_stopper_thread’:
kernel/stop_machine.c:290:3: error: ‘stopper_lock’ undeclared (first
use in this function)


Then when I compile the kernel, i got some more errors which i can
search and find the way to fix them however when it come to the
following error, I couldn't find the solution for it :

drivers/dsp/syslink/multicore_ipc/transportshm.c:261:2: error: request
for member ‘lock’ in something not a structure or union
drivers/dsp/syslink/multicore_ipc/transportshm.c:261:2: warning:
dereferencing ‘void *’ pointer [enabled by default]
drivers/dsp/syslink/multicore_ipc/transportshm.c:261:2: error: request
for member ‘lock’ in something not a structure or union
make[2]: *** [drivers/dsp/syslink/multicore_ipc/transportshm.o] Error 1

I am not sure if the patch (3.0 rt6), kernel(linux-ti-omap4 3.0.0) ,
gcc (4.6), and the commands i am using is correct, or there is some
mismatches between them that make more and more errors happened when
compiling.

Thanks in advance,

Hung Bui
--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [RT Stable]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux