I think we can add a magic number almost anywhere in SDG boot loader
very easy. Just need to decide where we put and what. This should be no
problem, I think.
/sza2
kmeaw wrote:
> On Fri, Sep 07, 2007 at 07:50:23PM +0200, Tamas Szabo wrote:
>> You mean for HaRET booting?
>>
>> kmeaw wrote:
>>> Hello, All!
>>> Is there a reliable way to detect a SDG bootloader in a way is it done
>>> for Windows Mobile?
>>> i = 0x000414dc / 4;
>>> if (bootldr[i] == 0xe59f1360 && /* ldr r1, [pc, #864] ; power
>>> base */
>>> bootldr[i+1] == 0xe5914008 && /* ldr r4, [r1, #8] ; PSPR */
>>> bootldr[i+2] == 0xe1320004) { /* teq r2, r4 */
>>> printk("Stock HTC WM2003 bootloader
>>> detected\n");
>>> htc_bootloader = 1;
>>> pxa_pm_set_ll_ops(&hx4700_ll_pm_ops);
>>> }
>
> No, I mean for booting from hibrid dual-boot SDG bootloader in Linux
> mode. The kernel finds WM2005 signature and switches to htc
> bootloader suspend mode.
>
>
>
Received on Fri Sep 07 2007 - 17:33:39 EDT
This archive was generated by hypermail 2.2.0 : Fri Sep 07 2007 - 17:33:54 EDT