<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2657.73">
<TITLE>RE: [U-Boot-Users] u-boot r1 machine type value to AT91RM9200 2.6.12 kernel</TITLE>
</HEAD>
<BODY>
<BR>
<BR>

<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: u-boot-users-admin@lists.sourceforge.net</FONT>
<BR><FONT SIZE=2>[<A HREF="mailto:u-boot-users-admin@lists.sourceforge.net">mailto:u-boot-users-admin@lists.sourceforge.net</A>]On Behalf Of Steven</FONT>
<BR><FONT SIZE=2>Scholz</FONT>
<BR><FONT SIZE=2>Sent: Thursday, June 23, 2005 11:12 AM</FONT>
<BR><FONT SIZE=2>To: u-boot-users@lists.sourceforge.net</FONT>
<BR><FONT SIZE=2>Subject: Re: [U-Boot-Users] u-boot r1 machine type value to AT91RM9200</FONT>
<BR><FONT SIZE=2>2.6.12 kernel</FONT>
</P>
<BR>

<P><FONT SIZE=2>Sascha,</FONT>
</P>

<P><FONT SIZE=2>&gt; I tried to use the linux 2.6.12&nbsp; release for AT91RM9200, but when I started</FONT>
<BR><FONT SIZE=2>&gt; with u-boot 1.1.2 the Kernel stopped.</FONT>
</P>

<P><FONT SIZE=2>It is a custom board? Did you register a MACH_NUMBER?</FONT>
</P>

<P><FONT SIZE=2>&gt; I can configure a working kernel with the option 'config NAKED_Boot= y ',</FONT>
<BR><FONT SIZE=2>&gt; but</FONT>
<BR><FONT SIZE=2>&gt; with this option it's not possible to pass any bootarguments to the kernel.</FONT>
<BR><FONT SIZE=2>&gt; How can I pass the corret R1 value for the machine type ('0xfb') from u-boot</FONT>
<BR><FONT SIZE=2>&gt; 1.1.2&nbsp; to the kernel?</FONT>
</P>

<P><FONT SIZE=2>In you board_init() do something like:</FONT>
</P>

<P><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /* arch number of AT91RM9200 */</FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /*gd-&gt;bd-&gt;bi_arch_number = 251;*/</FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; gd-&gt;bd-&gt;bi_arch_number = MACH_TYPE_MULTIIO;</FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /* adress of boot parameters */</FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; gd-&gt;bd-&gt;bi_boot_params = PHYS_SDRAM + 0x100;</FONT>
</P>

<P><FONT SIZE=2>&gt; The last working kernel in combination with u-boot was 2.6.12rc4. What</FONT>
<BR><FONT SIZE=2>&gt; changes in the u-boot source do I have to maintain relating to these boot</FONT>
<BR><FONT SIZE=2>&gt; options? Or is it possible to pass the r1 value in between the 'bootargs' of</FONT>
<BR><FONT SIZE=2>&gt; the u-boot enviroment?</FONT>
<BR><FONT SIZE=2>No.</FONT>
</P>

<P><FONT SIZE=2>Just make sure your board_init() sets the correct (TM) arch_number.</FONT>
</P>

<P><FONT SIZE=2>See kernel sources</FONT>
</P>

<P><FONT SIZE=2>linux-2.6.12/arch/arm/boot/compressed/head-at91rm9200.S</FONT>
</P>

<P><FONT SIZE=2>--</FONT>
<BR><FONT SIZE=2>Steven</FONT>
</P>
<BR>

<P><FONT SIZE=2>Hi Steven,</FONT>
</P>

<P><FONT SIZE=2>#define MACH_TYPE_AT91RM9200EK&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 705</FONT>
</P>

<P><FONT SIZE=2>is the right choice for starting 2.6.12, but the old 2.612rcX kernels need 251 (0xfb) ;-)</FONT>
</P>

<P><FONT SIZE=2>Thanks </FONT>
<BR><FONT SIZE=2>Sascha</FONT>
</P>

</BODY>
</HTML>