Re: Fixing matchbox-applet-cards

Koen Kooi <[email protected]>
Newsgroups gmane.comp.handhelds.openzaurus.devel
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

[too lazy to do correct bottom posting]

it would be cleaner and easier to write an applet from scratch for the new kernel 2.6
infrastructure, since 2.4 is dead, buried and obsolete.
The applet basically has to do:

 * check is pcmcia and/or sd is present, otherwise present a error-dialog
 * open /proc/cpuinfo to find out which device it's running on and hide unused slots (port
1 on c7x0 for example, but not MD on cxxx).
 * parse /proc/mounts
 * work out the blacklist based on machine and where the rootfs is mounted

Instead of using coloured bullets it should display an 'eject' pictogram so people not
familiar with the applet will know it will eject it.

regards,

Koen

Patrick Steiner schreef:
> Ok,
> 
> i´ll setup a current openzaurus-devel repository and build an oz-dev 
> image, after that i´ll help you.
> 
> this will take some time... :-)
> 
> patrick
> 
> Nicolas FR wrote:
>> Yes of course I have looked at your patch,
>>
>> But a few problems are araising:
>>
>> - the cardctl command is hardcoded in the program. Depending weither
>> you are using cardctl or pccardctl makes the program crashing.
>>
>> - depending on the distro /var/run/stab is not used (so the parsing
>> has to be done with the output of pccardctl or cardctl)
>>
>> - When using udev the SD mount point is not /media/card but is
>> attributed automatically by udev under /media/devicename
>>
>> - On Zaurus spitz the CF slot is 1 (not 0 which is the internal CF slot!)
>>
>> That's why I am suggesting to use a .conf file for the applet, that
>> would solve all this problems.
>>
>> I have manager to tweak the patch to make it run, but it's very bad.
>> And I don't even know how to parse a string in C to make a good fix.
>>
>> Would you help me on that? I can explain exactly what to do and how,
>> but can't implement it.
>>
>> Nicolas.
>>
>>
>> On 10/10/06, Patrick Steiner <[email protected]> wrote:
>>> Nicolas FR wrote:
>>>> Hi,
>>>>
>>>> I am looking for a skilled C programmer to help me fixing the
>>>> matchbox-applet-cards. It can be done in less than two hours, but as I
>>>> have limited C knowledge I need some help.
>>>>
>>>> I hope someone would be willing to help fix this problem which is
>>>> quite annoying for OZ Gpe users (not having a working CF/SD applet).
>>>>
>>>> All we need to do is to be able to parse a config file in order to
>>>> find out the cardctl program used:
>>>> - pccardctl or cardctl
>>>> - the SD mount point
>>>> - if using a Spitz or not (to use the second CF slot instead of the 
>>> first).
>>>> Moreover the resulting app wil be able to run on any distro...
>>>>
>>>> The original apple source code is here:
>>>> http://mail.pdaxrom.org/src/mb-applet-cards-1.0.3.tar.bz2
>>>>
>>>> it's very simple (a single C file) and straightforward, so it will be
>>>> easy to improve.
>>>>
>>> Have you already tried the version 1.0.2 (patched) from OE? i have build
>>> a patch already
>>>
>>> regards,
>>>  patrick
>>>
>>>> Thanks,
>>>> Nicolas.
>>>>
>>>>
>>> ------------------------------------------------------------------------- 
>>>
>>>> Take Surveys. Earn Cash. Influence the Future of IT
>>>> Join SourceForge.net's Techsay panel and you'll get the chance to 
>>> share your
>>>> opinions on IT & business topics through brief surveys -- and earn 
>>> cash
>>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV 
>>>
>>>> _______________________________________________
>>>> Openzaurus-devel mailing list
>>>> [email protected]
>>>> https://lists.sourceforge.net/lists/listinfo/openzaurus-devel
>>>>
>>>>
>>>
> 
> 
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)

iD8DBQFFK6q/MkyGM64RGpERAu3rAKCmBl7qrhWWJJuTUJOBRL6CTceyFACgjauF
YrHr+41uSoJMXyaDq+wgzUE=
=bQmW
-----END PGP SIGNATURE-----


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Openzaurus-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openzaurus-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.