test aux key pressed

xiangfu xiangfu at openmoko.org
Wed Aug 27 08:42:15 CEST 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Werner Almesberger wrote:
> Andy Green wrote:
>> Instead of loading the full kernel size in one call, Xiangfu can make a
>> while() loop there loading 64KByte units for example, and inside the
>> loop we check for AUX press.
>
> Good idea. And we just don't care about NOR in qi, eliminating the
> "AUX still pressed from selecting NOR" case.
>
>   If seen we always abort the loop and jump

i try to test the code as Andy say, but i still don't receive new debug
board and FPC(i think it's on the way)
so i can not see the UART output,
i use a sample way, but it seems not work,
if i hold AUX first the gta02 always goto NOR uboot.
so i must press POWER first,  attach is the DIFF
when i use:
>        int i = 0;
>         for(i=0;i<40000;i++)
>         {
>             blue_on(10);
the blue led just blank then boot the kernel

then i use:
>        int i = 0;
>         for(i=0;i<60000;i++)
>         {
>             blue_on(100);
>             if(aux_key_pressed())
>             {
>                 puts("aux key pressed\n");
>                 goto unhappy;
>             }
>         }
the blue led is on, but when i pressed AUX it is not goto unhappy, all
led off and also don't boot.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQEVAwUBSLT3RxFuNemPXNFjAQIiUwf+IsFRMUHrv+RU2s7uZmOSuzyDCRkDIE4h
bgTDAtHp6xTOEne+ITx82FnZ0SFn0PgLsmtCxxx/OAOsG9l3vC3BNzKMha+6H7oP
FzALpctG9pqxzV+QenAjjTbKbteYpckVgP8NgNPcRd8+l+dTIAa3KjXwY2nwi9Xx
adBRHC5UTYpjpufxWioWGSv1xmlgktpbUDoPX54FP5FNevPE5BqDoOPQNQGkzxEf
VgEHUrRLScXHzOzcCwyXcRhC82OReMdm1yHNGehrYI1viyDQJ7TL+YoV4RyK3xbi
hEmnvmuyBGcoceb4+aB0uK2A36zdUCq2BAPKV4qguNA6PFeVOwMSwA==
=+RSZ
-----END PGP SIGNATURE-----
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: aux_key_diff
Url: http://lists.openmoko.org/pipermail/openmoko-kernel/attachments/20080827/d6b80e01/attachment-0001.txt 


More information about the openmoko-kernel mailing list