From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.234]) by ozlabs.org (Postfix) with ESMTP id 7D5D8DE084 for ; Thu, 7 Aug 2008 22:15:26 +1000 (EST) Received: by rv-out-0506.google.com with SMTP id f6so382960rvb.9 for ; Thu, 07 Aug 2008 05:15:25 -0700 (PDT) Message-ID: <319b0ac50808070515o7a28cf34ue190dd3dba0ee157@mail.gmail.com> Date: Thu, 7 Aug 2008 14:15:24 +0200 From: "=?ISO-8859-1?Q?S=E9bastien_Chr=E9tien?=" To: "Juergen Beisert" Subject: Re: Powerpc and ioremap In-Reply-To: <200808071223.11156.j.beisert@pengutronix.de> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_12157_31353981.1218111324996" References: <319b0ac50808070254x27606b48sb15fb4ee6105c6c6@mail.gmail.com> <200808071223.11156.j.beisert@pengutronix.de> Cc: linuxppc-dev@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , ------=_Part_12157_31353981.1218111324996 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Thanks for your answer. But it doesn't work. I think ioremap create a kernel panic. But I can't see because i have no UART ready. Is there a way in order to trace the failure ? 2008/8/7, Juergen Beisert : > > Am Donnerstag, 7. August 2008 11:54 schrieb S=E9bastien Chr=E9tien: > > > Hello, > > > > I am trying to port linux on my Powerpc Board. I have used Linux 2.6.26 > and > > gcc 3.4.5. > > I have used Uboot 1.2. > > Linux seems running from _start to udbg_early_init(). That's why I > > develloped a udbg_driver. > > It must write in a register which is located at 0x2001b044. So I wrote = : > > > > void __iomem *p; > > p=3Dioremap(0x2001b044,4); > > iowrite32('O',p); > > iowrite32('K',p); > > > try > > p=3Dioremap(0x2001b000, 0x1000); > iowrite32('O',p + 0x44); > iowrite32('K',p + 0x44); > > instead. > > jbe > > -- > Dipl.-Ing. Juergen Beisert | http://www.pengutronix.de > Pengutronix - Linux Solutions for Science and Industry > Handelsregister: Amtsgericht Hildesheim, HRA 2686 > Hannoversche Str. 2, 31134 Hildesheim, Germany > Phone: +49-5121-206917-7 | Fax: +49-5121-206917-9 > ------=_Part_12157_31353981.1218111324996 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Thanks for your answer.
But it doesn't work.
I think ioremap create a kernel panic. But I can't see because i have n= o UART ready.
Is there a way in order to trace the failure ?

2008/8/7, Juergen Beisert <j.beisert@pengutronix.de>:
Am Donnerstag, 7. August 2008 11:54 schrieb S=E9bastien Chr=E9tien:
> Hello,
>
> I am trying to port linux on my Powerpc Boar= d. I have used Linux 2.6.26 and
> gcc 3.4.= 5.
> I have used Uboot 1.2.
> Linux seems running from _start to ud= bg_early_init(). That's why I
> develloped a udbg_driver.
&g= t; It must write in a register which is located at 0x2001b044. So I wrote :=
>
> void __iomem *p;
> p=3Dioremap(0x2001b044,4);
>= ; iowrite32('O',p);
> iowrite32('K',p);

try

p=3Dioremap(0x2001b000, 0x1000);
iowrite32('O',p = + 0x44);
iowrite32('K',p + 0x44);

instead.

jbe

--=
  Dipl.-Ing. Juergen Beisert | http://www.pengutronix.de
  Pengutronix - Linux So= lutions for Science and Industry
   Handelsregister:  Amtsgericht Hildesheim, HRA 2686     Hannoversche Str. 2, 31134 Hildesheim, Germany   Phone: +49-5121-206917-7 |  Fax: +49-5121-206917-9=

------=_Part_12157_31353981.1218111324996--