<br>Hi,<br><div class="gmail_quote"><p style="font-size:medium;font-family:'Times New Roman'">We have a lpc-3180 based board and it is up and running fine with 2.6.10 kernel version. We planned to port our board changes into 2.6.32 kernel version. </p>
<p style="font-size:medium;font-family:'Times New Roman'">As a part of this, we added the architecture dependent code (mach files) first. Then we changed some of the kernel upgradations. </p>
<p style="font-size:medium;font-family:'Times New Roman'">kernel build successfully. When we booting the board with the new 2.6.32 kernel we are getting following messages and its stops.</p>
<p style="font-size:medium;font-family:'Times New Roman'"><br></p><p style="font-size:medium;font-family:'Times New Roman'">
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------</p><p style>
</p><p><font face="'Times New Roman'" size="3">U-Boot 1.1.1 (Oct 10 2006 - 21:35:44)</font></p><p><font face="'Times New Roman'" size="3"><br>
</font></p><p><font face="'Times New Roman'" size="3">U-Boot code: 80EC0000 -> 80EE9600 BSS: -> 80EEAEE0</font></p><p><font face="'Times New Roman'" size="3">SDRAM : 32M detected </font></p>
<p><font face="'Times New Roman'" size="3">RAM Configuration:</font></p><p><font face="'Times New Roman'" size="3">Bank #0: 80000000 31 MB</font></p>
<p><font face="'Times New Roman'" size="3">Bank #1: 00000000 0 kB</font></p><p><font face="'Times New Roman'" size="3">Flash: 0 kB</font></p>
<p><font face="'Times New Roman'" size="3">NAND:NAND device: Manufacturer ID: 0x20, Chip ID: 0x35 (ST Micro NAND 32MiB 1,8V 8-bit)</font></p><p><font face="'Times New Roman'" size="3">Scanning device for bad blocks</font></p>
<p><font face="'Times New Roman'" size="3">Using default environment</font></p><p><font face="'Times New Roman'" size="3"><br>
</font></p><p><font face="'Times New Roman'" size="3">In: serial</font></p><p><font face="'Times New Roman'" size="3">Out: serial</font></p>
<p><font face="'Times New Roman'" size="3">Err: serial</font></p><p><font face="'Times New Roman'" size="3">Hit any key to stop autoboot: 2 1 0 </font></p>
<p><font face="'Times New Roman'" size="3">Boot reached stage 1</font></p><p><font face="'Times New Roman'" size="3">## Booting image at 80600000 ...</font></p>
<p><font face="'Times New Roman'" size="3">Boot reached stage 2</font></p><p><font face="'Times New Roman'" size="3">Boot reached stage 3</font></p>
<p><font face="'Times New Roman'" size="3"> Image Name: Linux-2.6.32</font></p><p><font face="'Times New Roman'" size="3"> Image Type: ARM Linux Kernel Image (uncompressed)</font></p>
<p><font face="'Times New Roman'" size="3"> Data Size: 1278856 Bytes = 1.2 MB</font></p><p><font face="'Times New Roman'" size="3"> Load Address: 80008000</font></p>
<p><font face="'Times New Roman'" size="3"> Entry Point: 80008000</font></p><p><font face="'Times New Roman'" size="3">Boot reached stage 4</font></p>
<p><font face="'Times New Roman'" size="3">Boot reached stage 5</font></p><p><font face="'Times New Roman'" size="3">Boot reached stage 6</font></p>
<p><font face="'Times New Roman'" size="3">OK</font></p><p><font face="'Times New Roman'" size="3">Boot reached stage 7</font></p>
<p><font face="'Times New Roman'" size="3">Boot reached stage 8</font></p><p><font face="'Times New Roman'" size="3">Boot reached stage 14</font></p>
<p><font face="'Times New Roman'" size="3">Boot reached stage 15</font></p><p><font face="'Times New Roman'" size="3"><br>
</font></p><p><font face="'Times New Roman'" size="3">Starting kernel ...</font></p><p><font face="'Times New Roman'" size="3"><br>
</font></p><p><font face="'Times New Roman'" size="3">Uncompressing Linux............................................................................. done, booting the kernel.</font></p>
<div style="font-family:'Times New Roman';font-size:medium">------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------</div>
<div style="font-family:'Times New Roman';font-size:medium"><br></div><div style="font-family:'Times New Roman';font-size:medium">For this we tried to add some debug messages:</div><p></p><p style="font-size:medium;font-family:'Times New Roman'">
The complete scenario is as follows.</p><p style="font-size:medium;font-family:'Times New Roman'"> </p><p style="font-size:medium;font-family:'Times New Roman'">
We have added some of our own print messages (using putstr() etc.) by changing the code in arch/arm/boot/compressed/head.S & arch/arm/boot/compressed/misc.c files. Then, we could see those messages before and after calling “decompress_kernel” routine. So, we moved to the next stage of the booting i.e. checking the processor type. This is done in “__lookup_processor_type” routine which can be found in arch/arm/kernel/head-common.S. Here too, we added one of our prints and this time using “printascii” routine as “putstr” is not usable here. But these messages are not showing up during the boot log.</p>
<p style="font-size:medium;font-family:'Times New Roman'"> </p><p style="font-size:medium;font-family:'Times New Roman'">
This can be caused by two reasons:</p><p style="font-size:medium;font-family:'Times New Roman'">1. __lookup_processor_type is not being called.</p><p style="font-size:medium;font-family:'Times New Roman'">
2. Some of it or entire serial interface initialization is missing.</p><p style="font-size:medium;font-family:'Times New Roman'"> </p><p style="font-size:medium;font-family:'Times New Roman'">
There is less probability for the first reason. Because, after the decompression of the kernel, immediately the control is passed to the extracted kernel. Where “__lookup_processor_type” is the first routine to be called (see arch/arm/kernel/head.S line 82 in v2.6.32). So there must be some problem with the “printascii” routine itself (i.e. serial communication).</p>
<p style="font-size:medium;font-family:'Times New Roman'">can you help, where the things may go wrong....</p><span class="HOEnZb"><font color="#888888"><p style="font-size:medium;font-family:'Times New Roman'">
Thanks.</p><p style="font-size:medium;font-family:'Times New Roman'">-KK</p>
</font></span></div><br>