From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Wed, 10 Dec 2014 14:09:05 +0100 From: Gilles Chanteperdrix Message-ID: <20141210130905.GE1524@hermes.click-hack.org> References: <20141210103829.GA1524@hermes.click-hack.org> <20141210110345.GD1524@hermes.click-hack.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Xenomai] /asm/ipipe.h not found List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: JAY KOTHARI Cc: xenomai On Wed, Dec 10, 2014 at 06:16:15PM +0530, JAY KOTHARI wrote: > On 12/10/14, Gilles Chanteperdrix wrote: > > On Wed, Dec 10, 2014 at 04:24:53PM +0530, JAY KOTHARI wrote: > >> On 12/10/14, Gilles Chanteperdrix > >> wrote: > >> > On Wed, Dec 10, 2014 at 03:57:44PM +0530, JAY KOTHARI wrote: > >> >> Hello, > >> >> I am porting linux-3.2.21(xenomai-2.6.2 patched to it) on > >> >> BeagleBoard-XM. > >> > > >> > You do not need to port it, it is already supported. > >> > > >> > Also, why using such old versions ? The latest version of Xenomai is > >> > 2.6.4 and will work with the I-pipe patch for Linux 3.2.21. > . > > >> > > >> > > >> >> zImage is successfully made. But when I am building > >> >> the modules with following command > >> >> > >> >> $make -j 8 ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi modules > >> >> > >> >> It shows error: > >> >> make CONFIG_DEBUG_SECTION_MISMATCH=y > >> > > >> > Yes, this has been reported, and fixed in later patches. That is > >> > what you get by using old patches. Simply turn that off. > >> > > >> I turn it off by this command > >> $make CONFIG_DEBUG_SECTION_MISMATCH=n > >> > >> >> > >> >> After this I ran > >> >> $make CONFIG_DEBUG_SECTION_MISMATCH=y > >> >> > >> >> This lets to another error > >> >> include/linux/ipipe.h :33:23: fatal error:asm/ipipe.h: No such file or > >> >> directory. > >> >> compilation terminated. > >> >> > >> >> Actually ipipe.h is there in /asm/ipipe.h:I tried to set CFLAG > >> >> and export it but it is not working.Help would be appreciated. > >> > > >> > You do not provide enough information for us to answer that > >> > question. Sorry. > >> > > >> > -- > >> > > >> > > >> After doing that I got following error > >> make[1]: Nothing to be done for `relocs'. > >> CHK include/linux/version.h > >> CHK include/generated/utsrelease.h > >> CC arch/x86/kernel/asm-offsets.s > >> In file included from include/linux/sched.h:65:0, > >> from arch/x86/kernel/asm-offsets.c:9: > >> include/linux/ipipe.h:33:23: fatal error: asm/ipipe.h: No such file or > >> directory > >> compilation terminated. > >> make[1]: *** [arch/x86/kernel/asm-offsets.s] Error 1 > >> make: *** [prepare0] Error 2 > > > > Interesting information, but maybe not sufficient to solve your > > issue, you want to compile for beaglebone, but you are compiling a > > kernel for the x86 architecture ? I am afraid it will not work. > > > > -- > > Gilles. > > > > Information: > main processor architecture:x86 32bit > target system: BeagleBoardXM > Linux kernel release number:3.2.21 for target hardware > dynamic boot parameter: root=/dev/sda7 resume=/dev/sda6 splash=silent quiet > Xenomai release number you experience an issue: Xenomai-2.6.2 > Havnt got it from GIT repositories > > Problem: > I built zImage successfully. When I build modules its showing error > $make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi modules > > it showed error > make CONFIG_DEBUG_SECTION_MISMATCH=y > > As you suggested I disabled it and ran > make CONFIG_DEBUG_SECTION_MISMATCH=n > > Now it shows following error: > > make[1]: Nothing to be done for `relocs'. > CHK include/linux/version.h > CHK include/generated/utsrelease.h > CC arch/x86/kernel/asm-offsets.s > In file included from include/linux/sched.h:65:0, > from arch/x86/kernel/asm-offsets.c:9: > include/linux/ipipe.h:33:23: fatal error: asm/ipipe.h: No such file or > directory > compilation terminated. > make[1]: *** [arch/x86/kernel/asm-offsets.s] Error 1 > make: *** [prepare0] Error 2 > > If you need more information please let me know which information. Please read my answer again. So far, the problem you have does not prove there is anything wrong with Xenomai: you are compiling a kernel patched for beaglebone, for the x86 architecture. This is not supposed to work. For details on how to install Xenomai see: https://xenomai.org/installing-xenomai-2-x/ > Is > there any other version of xenomai which has patch for linux-3.2.21? > Please correct me. A version of Xenomai 2.x supports all the I-pipe patches for kernel versions which have been published before. So, if for instance Xenomai 2.6.2 was the first xenomai version to support Linux 3.2.21: - Xenomai 2.6.2 supports all I-pipe patches for Linux 3.2.21 which were published later - all later Xenomai versions support all the I-pipe patches for Linux 3.2.21. -- Gilles.