<!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 6.5.7654.12">
<TITLE>AW: AW: Osmoloader stored in Flash?</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<BR>

<P><FONT SIZE=2>>well, at first: the "-m romload"-switch is only intended for phones<BR>
>which use the TI Romloader (which the Compal phones don't, and is called<BR>
>"Romloader" because its stored in the maskrom of the Calypso).<BR>
<BR>
I thought both modes are supported.<BR>
<BR>
> > When I run  the loader with "osmcon --m c123xor" the loader starts but<BR>
> > says "Failed to initialize flash".<BR>
<BR>
>This is basically the right approach, but the support for running<BR>
>applications from flash is still under development. Ingo had it already<BR>
>working as far as I know, but it still needs some work to be usable for<BR>
>the public.<BR>
<BR>
>Did you use the flash unlock command first, before trying to write to it?<BR>
<BR>
<BR>
The message is shown at start of osmoload.<BR>
<BR>
it looks like the "cfi_algo enumeration" makes trouble at line 518 in cfi-flash.c<BR>
<BR>
        if(qry.p_id != CFI_ALGO_INTEL_3) {<BR>
                /* we only support algo 3 */<BR>
                        return -ENOTSUP;<BR>
        }<BR>
<BR>
I am not sure but I commented out everything in flash_init() function and finally remove the comments again one after another.<BR>
At line 518 the result is'nt 0 anymore.<BR>
Is that flash not supported?<BR>
It is hard to debug further because no printf() or puts() are possible in cfi-flash.c<BR>
<BR>
Regards,<BR>
Marco<BR>
<BR>
<BR>
<BR>
<BR>
</FONT>
</P>

</BODY>
</HTML>