[Qi] bad magic when booting from NAND

Dmitry Kurochkin dmitry.kurochkin at gmail.com
Wed Apr 8 10:23:44 CEST 2009


On Wed, Apr 8, 2009 at 12:18 PM, Michael Trimarchi
<trimarchi at gandalf.sssup.it> wrote:
> Hi,
>
> Michael Trimarchi wrote:
>>
>> Dmitry Kurochkin wrote:
>>>
>>> I did some more tests.
>>>
>>> When I do build unmodified qi, flash the image, it runs fine.
>>>
>>> But if I insert a single puts() line in src/cpu/s3c2442/start_qi.c :
>>> start_qi, just after qi info is printed and before
>>> bootloader_second_phase is called, it hangs and prints Ts.
>>>
>>
>> Two things. You are not in stepping stone size or just you don't have
>> register
>> what function must use puts. set_putc_func.
>> Michael
>>
>>
> Can you post your diff?

This is the only difference except for config.mk:

diff --git a/src/cpu/s3c2442/start_qi.c b/src/cpu/s3c2442/start_qi.c
index d7136fd..4dc4804 100644
--- a/src/cpu/s3c2442/start_qi.c
+++ b/src/cpu/s3c2442/start_qi.c
@@ -113,6 +113,7 @@ void start_qi(void)
        puts(", ");
        puts((this_board->get_board_variant)()->name);
        puts("\n");
+       puts("HAHAHA\n");

        /*
         * jump to bootloader_second_phase() running from DRAM copy

Regards,
  Dmitry

>
> Michael
>



More information about the openmoko-kernel mailing list