From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: Content-Type: multipart/alternative; boundary="_405ccecf-7761-433a-804d-02f95027215b_" From: =?iso-8859-1?B?RnJhbudvaXMgQmVhdWZvcnQ=?= Date: Wed, 20 Apr 2011 09:55:42 +0200 MIME-Version: 1.0 Subject: [Xenomai-core] xenomai and framebuffer-ipu on target iMx35 List-Id: Xenomai life and development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: xenomai@xenomai.org --_405ccecf-7761-433a-804d-02f95027215b_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello=2C I have to port Linux-xenomai on target Phytec PhyCARD-M iMx35 (ARM 11 core)= and I need your help. I reconfigured the kernel from the configuration provided by Phytec : - CONFIG_PREEMPT =3D y - CONFIG_VGA_CONSOLE =3D n - CONFIG_MX3_IPU =3D n - CONFIG_FB_MX3 =3D n - CONFIG_USB_ISP1760 =3D n So=2C Linux-xenomai runs on the target=2C but I can't have pictures on the = display (the configuration of the framebuffer is not set : CONFIG_MX3_IPU a= nd CONFIG_FB_MX3). I would like to enable xenomai and the framebuffer. When I patch Linux with adeos-ipipe=2C disable xenomai and enable ipu (imag= e processing unit)=2C the kernel doesn't start : booting kernel of type uimage from /dev/ram0.kernel Verifying Checksum ... OK Image Name: Linux-2.6.35.9 Created: 2011-04-20 7:14:44 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 2446512 Bytes =3D 2.3 MB Load Address: 80008000 Entry Point: 80008000 OK commandline: console=3Dttymxc0=2C115200 video=3Dmx3fb:Primeview-PD0= 50VL1 ip=3D192.168.0.195::192.168.0.1:255.255.255.0::: root=3D/dev/nfs nf= sroot=3D192.168.0.84:/opt/francois/nfs_imx35_xenom=3B arch_number: 2595 Starting kernel ... Linux version 2.6.35.9 (francois@domain.hid) (gcc version 4.3= .2 (OSELAS.Toolchain-1.99.3) ) #2 PREEMPT Wed Apr 20 09:14:32 CEST 2011 CPU: ARMv6-compatible processor [4117b363] revision 3 (ARMv6TEJ)=2C= cr=3D00c5387f CPU: VIPT nonaliasing data cache=2C VIPT nonaliasing instruction c I think there is a conflict between ipipe and ipu but I don't know why. IPU depends on dma engine. When I read the /proc files=2C I can't see IRQ conflicts nor memory conflic= ts. The ipu driver consists of two C files : ipu_idmac.c and ipu_irq.c.=20 When I disable ipu_idma.c=2C I have 4 more IRQs (CONFIG_MX3_IPU_IRQS =3D 4)= and Linux-ipipe (and xenomai) starts but I can't have pictures on the disp= lay. I can't debug with printk because the printk calls modify the behaviour. Do you have any idea ? Thank you. = --_405ccecf-7761-433a-804d-02f95027215b_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello=2C

I have to port Linux-xenomai on target Phytec PhyCARD-M iMx= 35 (ARM 11 core) and I need your help.

I reconfigured the kernel fro= m the configuration provided by Phytec :

 =3B =3B  =3B- = CONFIG_PREEMPT =3D y
 =3B =3B  =3B- CONFIG_VGA_CONSOLE =3D n=
 =3B =3B  =3B- CONFIG_MX3_IPU =3D n
 =3B =3B &nb= sp=3B- CONFIG_FB_MX3 =3D n
 =3B =3B  =3B- CONFIG_USB_ISP1760= =3D n

So=2C Linux-xenomai runs on the target=2C but I can't have pi= ctures on the display (the configuration of the framebuffer is not set : CO= NFIG_MX3_IPU and CONFIG_FB_MX3).

I would like to enable xenomai and = the framebuffer.

When I patch Linux with adeos-ipipe=2C disable xeno= mai and enable ipu (image processing unit)=2C the kernel doesn't start :
 =3B =3B  =3B =3B =3B  =3Bbooting kernel of ty= pe uimage from /dev/ram0.kernel
 =3B =3B  =3B =3B = =3B  =3B =3B =3B Verifying Checksum ... OK
 =3B =3B =  =3B =3B =3B  =3B =3B =3B Image Name: =3B = =3B Linux-2.6.35.9
 =3B =3B  =3B =3B =3B  =3B&nb= sp=3B =3B Created: =3B =3B =3B =3B =3B 2011-04-20&n= bsp=3B =3B 7:14:44 UTC
 =3B =3B  =3B =3B =3B &nb= sp=3B =3B =3B Image Type: =3B =3B ARM Linux Kernel Image (u= ncompressed)
 =3B =3B  =3B =3B =3B  =3B =3B&= nbsp=3B Data Size: =3B =3B =3B 2446512 Bytes =3D =3B 2.3 MB=
 =3B =3B  =3B =3B =3B  =3B =3B =3B Load= Address: 80008000
 =3B =3B  =3B =3B =3B  =3B&nb= sp=3B =3B Entry Point: =3B 80008000
 =3B =3B  =3B&nb= sp=3B =3B  =3BOK
 =3B =3B  =3B =3B =3B  = =3Bcommandline: console=3Dttymxc0=2C115200 video=3Dmx3fb:Primeview-PD050VL1= ip=3D192.168.0.195::192.168.0.1:255.255.255.0::: root=3D/dev/nfs =3B&n= bsp=3B nfsroot=3D192.168.0.84:/opt/francois/nfs_imx35_xenom=3B
 =3B&= nbsp=3B  =3B =3B =3B  =3Barch_number: 2595

 =3B&= nbsp=3B  =3B =3B =3B  =3BStarting kernel ...

 = =3B =3B  =3B =3B =3B  =3BLinux version 2.6.35.9 (franco= is@domain.hid) (gcc version 4.3.2 (OSELAS.Toolchain-1.99.3) ) #2 PREE= MPT Wed Apr 20 09:14:32 CEST 2011
 =3B =3B  =3B =3B = =3B  =3BCPU: ARMv6-compatible processor [4117b363] revision 3 (ARMv6TEJ= )=2C cr=3D00c5387f
 =3B =3B  =3B =3B =3B  =3BCPU= : VIPT nonaliasing data cache=2C VIPT nonaliasing instruction c


= I think there is a conflict between ipipe and ipu but I don't know why.
=
IPU depends on dma engine.

When I read the /proc files=2C I can'= t see IRQ conflicts nor memory conflicts.

The ipu driver consists of= two C files : ipu_idmac.c and ipu_irq.c.
When I disable ipu_idma.c=2C = I have 4 more IRQs (CONFIG_MX3_IPU_IRQS =3D 4) and Linux-ipipe (and xenomai= ) starts but I can't have pictures on the display.

I can't debug wit= h printk because the printk calls modify the behaviour.

Do you have = any idea ?

Thank you. = --_405ccecf-7761-433a-804d-02f95027215b_-- From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <4DAE99F2.7030002@domain.hid> Date: Wed, 20 Apr 2011 10:31:46 +0200 From: Gilles Chanteperdrix MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Xenomai-core] xenomai and framebuffer-ipu on target iMx35 List-Id: Xenomai life and development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?B?RnJhbsOnb2lzIEJlYXVmb3J0?= Cc: xenomai@xenomai.org Fran=C3=A7ois Beaufort wrote: > Hello, >=20 > I have to port Linux-xenomai on target Phytec PhyCARD-M iMx35 (ARM 11 c= ore) and I need your help. >=20 > I reconfigured the kernel from the configuration provided by Phytec : >=20 > - CONFIG_PREEMPT =3D y > - CONFIG_VGA_CONSOLE =3D n > - CONFIG_MX3_IPU =3D n > - CONFIG_FB_MX3 =3D n > - CONFIG_USB_ISP1760 =3D n >=20 > So, Linux-xenomai runs on the target, but I can't have pictures on the = display (the configuration of the framebuffer is not set : CONFIG_MX3_IPU= and CONFIG_FB_MX3). >=20 > I would like to enable xenomai and the framebuffer. >=20 > When I patch Linux with adeos-ipipe, disable xenomai and enable ipu (im= age processing unit), the kernel doesn't start : >=20 > booting kernel of type uimage from /dev/ram0.kernel > Verifying Checksum ... OK > Image Name: Linux-2.6.35.9 > Created: 2011-04-20 7:14:44 UTC > Image Type: ARM Linux Kernel Image (uncompressed) > Data Size: 2446512 Bytes =3D 2.3 MB > Load Address: 80008000 > Entry Point: 80008000 > OK > commandline: console=3Dttymxc0,115200 video=3Dmx3fb:Primeview-P= D050VL1 ip=3D192.168.0.195::192.168.0.1:255.255.255.0::: root=3D/dev/nfs = nfsroot=3D192.168.0.84:/opt/francois/nfs_imx35_xenom; > arch_number: 2595 >=20 > Starting kernel ... >=20 > Linux version 2.6.35.9 (francois@domain.hid) (gcc version= 4.3.2 (OSELAS.Toolchain-1.99.3) ) #2 PREEMPT Wed Apr 20 09:14:32 CEST 20= 11 > CPU: ARMv6-compatible processor [4117b363] revision 3 (ARMv6TEJ= ), cr=3D00c5387f > CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction = c >=20 >=20 > I think there is a conflict between ipipe and ipu but I don't know why.= >=20 > IPU depends on dma engine. >=20 > When I read the /proc files, I can't see IRQ conflicts nor memory confl= icts. >=20 > The ipu driver consists of two C files : ipu_idmac.c and ipu_irq.c.=20 > When I disable ipu_idma.c, I have 4 more IRQs (CONFIG_MX3_IPU_IRQS =3D = 4) and Linux-ipipe (and xenomai) starts but I can't have pictures on the = display. >=20 > I can't debug with printk because the printk calls modify the behaviour= =2E How so? >=20 > Do you have any idea ? First thing to confirm: does the same configuration which does not work with I-pipe enabled work with I-pipe disable. I mean, the exact same configuration except for CONFIG_IPIPE? Second thing: if the IPU dma engine, whatever, uses an interrupt, can you compare the counters in /proc/interrupts for this interrupt with and without CONFIG_IPIPE enabled? --=20 Gilles. From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <4DAEBB48.2070700@domain.hid> Date: Wed, 20 Apr 2011 12:54:00 +0200 From: Gilles Chanteperdrix MIME-Version: 1.0 References: , <4DAE99F2.7030002@domain.hid> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Xenomai-help] [Xenomai-core] xenomai and framebuffer-ipu on target iMx35 List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?B?RnJhbsOnb2lzIEJlYXVmb3J0?= Cc: Xenomai help Fran=C3=A7ois Beaufort wrote: > I can't show you /proc/interrupts when ipu and I-pipe are enabled > because the system doesn't start in this case. Ok. I failed to get that from your first mail. I do not know either if you are using a vanilla kernel, or a patched one? If a patched one, then you have to verify that generic_handle_irq is replaced with ipipe_handle_chained_irq for multiplexed GPIO irqs. Note that I CCd the Xenomai-help mailing list, next private mail will receive no answer. --=20 Gilles. From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: Content-Type: multipart/alternative; boundary="_eb4f078f-3fa5-4179-a4ae-ad0e70c43df8_" From: =?iso-8859-1?B?RnJhbudvaXMgQmVhdWZvcnQ=?= Date: Wed, 20 Apr 2011 15:13:06 +0200 In-Reply-To: <4DAEBB48.2070700@domain.hid> References: , <4DAE99F2.7030002@domain.hid> , <4DAEBB48.2070700@domain.hid> MIME-Version: 1.0 Subject: Re: [Xenomai-help] [Xenomai-core] xenomai and framebuffer-ipu on target iMx35 List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: xenomai@xenomai.org --_eb4f078f-3fa5-4179-a4ae-ad0e70c43df8_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable > Date: Wed=2C 20 Apr 2011 12:54:00 +0200 > From: gilles.chanteperdrix@xenomai.org > To: francois.beaufort@domain.hid > CC: xenomai@xenomai.org > Subject: Re: [Xenomai-core] xenomai and framebuffer-ipu on target iMx35 >=20 > Fran=E7ois Beaufort wrote: > > I can't show you /proc/interrupts when ipu and I-pipe are enabled > > because the system doesn't start in this case. >=20 > Ok. I failed to get that from your first mail. I do not know either if > you are using a vanilla kernel=2C or a patched one? >=20 > If a patched one=2C then you have to verify that generic_handle_irq is > replaced with ipipe_handle_chained_irq for multiplexed GPIO irqs. >=20 > Note that I CCd the Xenomai-help mailing list=2C next private mail will > receive no answer. >=20 > --=20 > Gilles. >=20 Thank you for your answers. I can now start Linux-xenomai with framebuffer and ipu. I use a kernel patched by the Phytec BSP patches and next by the adeos pipe= . I have modified the file linux-2.6.35.9/drivers/dma/ipu/ipu_irq.c : lines 305 and 343 : - generic_handle_irq(irq)=3B + ipipe_handle_chained_irq(irq)=3B This file is not modified by any patch. Thank you. Fran=E7ois. = --_eb4f078f-3fa5-4179-a4ae-ad0e70c43df8_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

>=3B Date: Wed=2C 20 Apr 2011 12:54:00 +0200
>=3B From: gill= es.chanteperdrix@domain.hid
>=3B To: francois.beaufort@domain.hid
>= =3B CC: xenomai@xenomai.org
>=3B Subject: Re: [Xenomai-core] xenomai = and framebuffer-ipu on target iMx35
>=3B
>=3B Fran=E7ois Beaufor= t wrote:
>=3B >=3B I can't show you /proc/interrupts when ipu and I= -pipe are enabled
>=3B >=3B because the system doesn't start in this= case.
>=3B
>=3B Ok. I failed to get that from your first mail. = I do not know either if
>=3B you are using a vanilla kernel=2C or a pa= tched one?
>=3B
>=3B If a patched one=2C then you have to verify= that generic_handle_irq is
>=3B replaced with ipipe_handle_chained_ir= q for multiplexed GPIO irqs.
>=3B
>=3B Note that I CCd the Xenom= ai-help mailing list=2C next private mail will
>=3B receive no answer.=
>=3B
>=3B --
>=3B = Gilles.
>=3B

Thank you for your answe= rs.

I can now start Linux-xenomai with framebuffer and ipu.

I= use a kernel patched by the Phytec BSP patches and next by the adeos pipe.=

I have modified the file linux-2.6.35.9/drivers/dma/ipu/ipu_irq.c :=

lines 305 and 343 :

- =3B generic_handle_irq(irq)=3B
= + ipipe_handle_chained_irq(irq)=3B


This file is not modified by = any patch.

Thank you.

Fran=E7ois.

= --_eb4f078f-3fa5-4179-a4ae-ad0e70c43df8_-- From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <4DAEE4EB.3050609@domain.hid> Date: Wed, 20 Apr 2011 15:51:39 +0200 From: Gilles Chanteperdrix MIME-Version: 1.0 References: , <4DAE99F2.7030002@domain.hid> , <4DAEBB48.2070700@domain.hid> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Xenomai-help] [Xenomai-core] xenomai and framebuffer-ipu on target iMx35 List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?B?RnJhbsOnb2lzIEJlYXVmb3J0?= Cc: xenomai@xenomai.org Fran=C3=A7ois Beaufort wrote: >=20 >=20 >> Date: Wed, 20 Apr 2011 12:54:00 +0200 >> From: gilles.chanteperdrix@xenomai.org >> To: francois.beaufort@domain.hid >> CC: xenomai@xenomai.org >> Subject: Re: [Xenomai-core] xenomai and framebuffer-ipu on target iMx3= 5 >> >> Fran=C3=A7ois Beaufort wrote: >>> I can't show you /proc/interrupts when ipu and I-pipe are enabled >>> because the system doesn't start in this case. >> Ok. I failed to get that from your first mail. I do not know either if= >> you are using a vanilla kernel, or a patched one? >> >> If a patched one, then you have to verify that generic_handle_irq is >> replaced with ipipe_handle_chained_irq for multiplexed GPIO irqs. >> >> Note that I CCd the Xenomai-help mailing list, next private mail will >> receive no answer. >> >> --=20 >> Gilles= =2E >> >=20 > Thank you for your answers. >=20 > I can now start Linux-xenomai with framebuffer and ipu. >=20 > I use a kernel patched by the Phytec BSP patches and next by the adeos = pipe. >=20 > I have modified the file linux-2.6.35.9/drivers/dma/ipu/ipu_irq.c : >=20 > lines 305 and 343 : >=20 > - generic_handle_irq(irq); > + ipipe_handle_chained_irq(irq); >=20 >=20 > This file is not modified by any patch. You have to replace any call to generic_handle_irq in the Phytec patch by a call to ipipe_handle_chained_irq, otherwise, you will get this issue again with other multiplexed irqs. --=20 Gilles.