Can we call ioremap() during udbg_early_init ?<br><br><div><span class="gmail_quote">2008/8/7, Sébastien Chrétien <<a href="mailto:sebastien.chretien.enseirb@gmail.com">sebastien.chretien.enseirb@gmail.com</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Thanks for your answer.<br>
But it doesn't work.<br>
I think ioremap create a kernel panic. But I can't see because i have no UART ready. <br>
Is there a way in order to trace the failure ?<br><br><div><span class="gmail_quote">2008/8/7, Juergen Beisert <<a href="mailto:j.beisert@pengutronix.de" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">j.beisert@pengutronix.de</a>>:</span><div>
<span class="e" id="q_11b9d17c29b34c62_1"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Am Donnerstag, 7. August 2008 11:54 schrieb Sébastien Chrétien:<br> <br>> Hello,<br> ><br> > I am trying to port linux on my Powerpc Board. I have used Linux 2.6.26 and<br> > gcc <a href="http://3.4.5." target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">3.4.5.</a><br>
> I have used Uboot 1.2.<br> > Linux seems running from _start to udbg_early_init(). That's why I<br> > develloped a udbg_driver.<br> > It must write in a register which is located at 0x2001b044. So I wrote :<br>
><br> > void __iomem *p;<br> > p=ioremap(0x2001b044,4);<br> > iowrite32('O',p);<br> > iowrite32('K',p);<br> <br> <br>try<br> <br> p=ioremap(0x2001b000, 0x1000);<br> iowrite32('O',p + 0x44);<br>
iowrite32('K',p + 0x44);<br> <br> instead.<br> <br> jbe<br> <br>--<br> Dipl.-Ing. Juergen Beisert | <a href="http://www.pengutronix.de" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.pengutronix.de</a><br>
Pengutronix - Linux Solutions for Science and Industry<br>
Handelsregister: Amtsgericht Hildesheim, HRA 2686<br> Hannoversche Str. 2, 31134 Hildesheim, Germany<br> Phone: +49-5121-206917-7 | Fax: +49-5121-206917-9<br> </blockquote></span></div></div><br>
</blockquote></div><br>