All of lore.kernel.org
 help / color / mirror / Atom feed
[parent not found: <mailman.2.1354034873.1423.xenomai@xenomai.org>]
* [Xenomai] Compiling I-pipe patched kernel on beaglebone from Angstrom branch
@ 2012-11-23  9:45 WONG Sheng Chao
  2012-11-23  9:58 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 39+ messages in thread
From: WONG Sheng Chao @ 2012-11-23  9:45 UTC (permalink / raw)
  To: xenomai

Hi

I am trying to get Xenomai working on the beaglebone (AM3359) and I had 
been following the instructions from this mailing list

http://www.xenomai.org/pipermail/xenomai/2012-September/026190.html

The steps that I went through was such

1) I configured the Angstorm distribution with linux kernel 3.2.21 for 
beaglebone using bitbake

2) Copied the kernel source from it and saved it as 
{original_angstrom_kernel}

3) I then ran the patch script from xenomai-2.6.1

$./prepare-kernel.sh --linux={original_angstrom_kernel} --arch=arm 
--adeos=/xenomai-2.6.1/ksrc/arch/arm/patches/ipipe-core-3.2.21-arm-1.patch

4) There were four conflicting files, namely

arch/arm/common/gic.c
arch/arm/mach-omap2/irq.c
arch/arm/plat-mxc/gic.c
arch/arm/plat-omap/include/plat/irqs.h

5) I compared these four files to the vanilla linux-kernel-3.2.21 and 
patch these 4 files individually from {original_angstrom_kernel} with 
{vanilla-kernel-3.2.21}. Now i save the newly patched kernel source as 
{pre_patched_original_angstrom_kernel}

6) I ran the prepare-kernel script again with the --linux directed to 
the {pre_patched_original_angstrom_kernel} and the patch went through 
fine. So now i have a copy of i-pipe patched source 
{ipipe_patched_original_angstrom_kernel}

7) I proceed with copying the .config function from 
arch/arm/configs/omap2plus_defconfig and run the make menuconfig with

$make ARCH=arm CROSS_COMPILE=arm-angstrom-linux-gnueabi- menuconfig

and save the kernel configuration

8) i then proceed to compile the kernel with the following command

$make ARCH=arm CROSS_COMPILE=arm-angstrom-linux-gnueabi- uImage

9) The compilation fails and it gives the following error

  arch/arm/mach-omap2/devices.c:1096:12: error: 'AM33XX_IRQ_ICSS0_0' 
undeclared here (not in a function)
| arch/arm/mach-omap2/devices.c:1101:12: error: 'AM33XX_IRQ_ICSS0_1' 
undeclared here (not in a function)
| arch/arm/mach-omap2/devices.c:1106:12: error: 'AM33XX_IRQ_ICSS0_2' 
undeclared here (not in a function)
| arch/arm/mach-omap2/devices.c:1111:12: error: 'AM33XX_IRQ_ICSS0_3' 
undeclared here (not in a function)
| arch/arm/mach-omap2/devices.c:1116:12: error: 'AM33XX_IRQ_ICSS0_4' 
undeclared here (not in a function)
| arch/arm/mach-omap2/devices.c:1121:12: error: 'AM33XX_IRQ_ICSS0_5' 
undeclared here (not in a function)
| arch/arm/mach-omap2/devices.c:1126:12: error: 'AM33XX_IRQ_ICSS0_6' 
undeclared here (not in a function)
| arch/arm/mach-omap2/devices.c:1131:12: error: 'AM33XX_IRQ_ICSS0_7' 
undeclared here (not in a function)
| arch/arm/mach-omap2/devices.c:1260:12: error: 'AM33XX_IRQ_CPSW_C0_RX' 
undeclared here (not in a function)
| arch/arm/mach-omap2/devices.c:1260:3: error: initializer element is 
not constant
| arch/arm/mach-omap2/devices.c:1260:3: error: (near initialization for 
'am33xx_cpsw_resources[2].start')
| arch/arm/mach-omap2/devices.c:1261:3: error: initializer element is 
not constant
| arch/arm/mach-omap2/devices.c:1261:3: error: (near initialization for 
'am33xx_cpsw_resources[2].end')
| arch/arm/mach-omap2/devices.c:1265:12: error: 'AM33XX_IRQ_DMTIMER5' 
undeclared here (not in a function)
| arch/arm/mach-omap2/devices.c:1265:3: error: initializer element is 
not constant
| arch/arm/mach-omap2/devices.c:1265:3: error: (near initialization for 
'am33xx_cpsw_resources[3].start')
| arch/arm/mach-omap2/devices.c:1266:3: error: initializer element is 
not constant
| arch/arm/mach-omap2/devices.c:1266:3: error: (near initialization for 
'am33xx_cpsw_resources[3].end')
| arch/arm/mach-omap2/devices.c:1270:12: error: 'AM33XX_IRQ_DMTIMER6' 
undeclared here (not in a function)
| arch/arm/mach-omap2/devices.c:1270:3: error: initializer element is 
not constant
| arch/arm/mach-omap2/devices.c:1270:3: error: (near initialization for 
'am33xx_cpsw_resources[4].start')
| arch/arm/mach-omap2/devices.c:1271:3: error: initializer element is 
not constant
| arch/arm/mach-omap2/devices.c:1271:3: error: (near initialization for 
'am33xx_cpsw_resources[4].end')
| arch/arm/mach-omap2/devices.c:1275:12: error: 'AM33XX_IRQ_CPSW_C0' 
undeclared here (not in a function)
| arch/arm/mach-omap2/devices.c:1275:3: error: initializer element is 
not constant
| arch/arm/mach-omap2/devices.c:1275:3: error: (near initialization for 
'am33xx_cpsw_resources[5].start')
| arch/arm/mach-omap2/devices.c:1276:3: error: initializer element is 
not constant
| arch/arm/mach-omap2/devices.c:1276:3: error: (near initialization for 
'am33xx_cpsw_resources[5].end')

I read from this link 
http://www.xenomai.org/pipermail/xenomai/2012-July/000476.html that for 
the kernel to boot properly on the AM3359 two changes needs to be made. 
I had yet to made these changes as i want to see if the kernel source 
would compiled and to verify my steps.

Is my approach correct? Any advice on how to solve this problem?

Thanks in advance!!

Best regards
WONG Sheng Chao





^ permalink raw reply	[flat|nested] 39+ messages in thread

end of thread, other threads:[~2012-12-10 20:32 UTC | newest]

Thread overview: 39+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.0.1354186801.18650.xenomai@xenomai.org>
2012-11-29 12:16 ` [Xenomai] Compiling I-pipe patched kernel on beaglebone from Angstrom branch Stephan Kappertz
2012-11-30  8:54   ` WONG Sheng Chao
2012-11-30 11:45     ` Michael Haberler
2012-11-30 13:42       ` Gilles Chanteperdrix
2012-11-30 19:22         ` Michael Haberler
2012-12-02 13:53           ` WONG Sheng Chao
2012-12-02 14:45             ` Gilles Chanteperdrix
2012-12-02 15:15               ` WONG Sheng Chao
2012-12-02 16:14                 ` Gilles Chanteperdrix
2012-12-03 14:31                   ` WONG Sheng Chao
2012-12-03 18:30                     ` WONG Sheng Chao
2012-12-03 19:57                       ` Gilles Chanteperdrix
2012-12-04  9:26                         ` WONG Sheng Chao
2012-12-04  9:45                           ` WONG Sheng Chao
2012-12-04 19:29                             ` Gilles Chanteperdrix
2012-12-10 18:08                               ` WONG Sheng Chao
2012-12-10 19:07                                 ` Gilles Chanteperdrix
2012-12-10 20:23                                   ` WONG Sheng Chao
2012-12-10 20:32                                     ` Gilles Chanteperdrix
     [not found] <mailman.2.1354034873.1423.xenomai@xenomai.org>
2012-11-27 18:42 ` Stephan Kappertz
2012-11-27 20:05   ` WONG Sheng Chao
2012-11-23  9:45 WONG Sheng Chao
2012-11-23  9:58 ` Gilles Chanteperdrix
2012-11-23 12:35   ` WONG Sheng Chao
2012-11-23 16:29     ` Gilles Chanteperdrix
2012-11-23 17:22       ` WONG Sheng Chao
2012-11-23 17:45         ` Gilles Chanteperdrix
2012-11-27 16:40           ` WONG Sheng Chao
2012-11-27 16:52             ` WONG Sheng Chao
2012-11-27 18:00             ` Gilles Chanteperdrix
2012-11-28 15:12               ` WONG Sheng Chao
2012-11-28 17:40                 ` WONG Sheng Chao
2012-11-28 18:14                   ` Gilles Chanteperdrix
2012-11-28 18:49                     ` WONG Sheng Chao
2012-11-28 18:57                       ` Gilles Chanteperdrix
2012-11-28 19:34                         ` WONG Sheng Chao
2012-11-28 19:55                           ` Gilles Chanteperdrix
2012-11-28 20:22                             ` WONG Sheng Chao
2012-11-29 12:10                             ` WONG Sheng Chao

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.