OESF Portables Forum

Everything Else => Zaurus Distro Support and Discussion => Distros, Development, and Model Specific Forums => Archived Forums => Angstrom & OpenZaurus => Topic started by: obergix on November 19, 2005, 01:01:49 pm

Title: Managing Sd Cards (insertion/ejection) With Gpe ?
Post by: obergix on November 19, 2005, 01:01:49 pm
Hi.

I'm looking for a reference about how GPE allows the management of SD cards through applets (if there is such feature ?).

Thanks in advance.
Title: Managing Sd Cards (insertion/ejection) With Gpe ?
Post by: lardman on November 20, 2005, 06:06:19 am
There is not cardmon applet like Opie has - I looked at making one, and although it didn't look very hard, I've not had the time.

Sounds like an ideal first project for someone.

There's nothing special in the way Opie does this - it just sends commands to cardctl - have a look at the source for that program.


Si
Title: Managing Sd Cards (insertion/ejection) With Gpe ?
Post by: obergix on November 21, 2005, 02:03:01 pm
Quote
There's nothing special in the way Opie does this - it just sends commands to cardctl - have a look at the source for that program.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=104317\"][{POST_SNAPBACK}][/a][/div]
cardctl for SD ?

I thought it was only a way to manage CF cards...
Title: Managing Sd Cards (insertion/ejection) With Gpe ?
Post by: lardman on November 22, 2005, 07:24:20 am
Good point, cardctl is only used for CF card which provide some function other than storage; those CF and SD/MMC cards that just provide storage are simply umounted when you click on 'eject'.


Si
Title: Managing Sd Cards (insertion/ejection) With Gpe ?
Post by: obergix on November 24, 2005, 02:40:00 am
Quote
Good point, cardctl is only used for CF card which provide some function other than storage; those CF and SD/MMC cards that just provide storage are simply umounted when you click on 'eject'.

[div align=\"right\"][a href=\"index.php?act=findpost&pid=104524\"][{POST_SNAPBACK}][/a][/div]

Sorry, but which "eject" button / menu are you refering to exactly, that's exactly what I was looking for in the first place

About cardctl, yes, it's probably useful if one has to "shutdown" the device properly like for shutting its power or something...

For storage, you're right, all we need is umounting the mounted partitions (all of them eventually)... so basically some mount/umount kind of applet would be great... but firing the console just to safely umount the partitions before removal is some kind of a pain

Thanks in advance.
Title: Managing Sd Cards (insertion/ejection) With Gpe ?
Post by: law on November 24, 2005, 06:17:46 am
hi,

i have ported card-applet from pdaxrom some days ago.

[img]http://members.a1.net/patrick.steiner/Screenshot-7.png\" border=\"0\" class=\"linked-image\" /]

i can post source and .bb if someone wants to build it.

greets
Title: Managing Sd Cards (insertion/ejection) With Gpe ?
Post by: lardman on November 24, 2005, 07:05:34 am
That would be good, please do.

Quote
Sorry, but which "eject" button / menu are you refering to exactly, that's exactly what I was looking for in the first place

The opie one.


Simon
Title: Managing Sd Cards (insertion/ejection) With Gpe ?
Post by: law on November 24, 2005, 07:21:26 am
matchbox-applet-card-oe.tar.gz (http://members.a1.net/patrick.steiner/matchbox-applet-card-oe.tar.gz)

here are the required files.

greets
Title: Managing Sd Cards (insertion/ejection) With Gpe ?
Post by: obergix on November 24, 2005, 02:34:23 pm
Quote
That would be good, please do.

Quote
Sorry, but which "eject" button / menu are you refering to exactly, that's exactly what I was looking for in the first place

The opie one.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=104797\"][{POST_SNAPBACK}][/a][/div]

Ah, ok  ... I thought we were talking about GPE


About pdaXrom... didn't hear much about this distro... are there many packages there which are not in OpenZaurus ?

Any general political issue of some kind or... I would expect OZ's packaging of GPE applications being quite extensive... ?

Many thanks for any pointers
Title: Managing Sd Cards (insertion/ejection) With Gpe ?
Post by: lardman on November 24, 2005, 04:11:19 pm
Quote
About pdaXrom... didn't hear much about this distro... are there many packages there which are not in OpenZaurus ?

Yes, there are some, however we're working to get anything which we're missing added and encourage people to definitely add things which interest them if they can.

Quote
Any general political issue of some kind

Yes, there are (or hopefully were) major political issues. Despite our small numbers there was a bit of a 'mine's better than yours' thing and also general (IMO unneeded and untrue) slagging-off going on between the two factions; I hope this is now over and we can get on with developing for and using our Zaurii.

Quote
I would expect OZ's packaging of GPE applications being quite extensive... ?

pdaXrom uses a different and inferior build system (IMHO of course  ) so it takes some work to port the apps over - that said it doesn't require all that much work if people look at the pdaXrom patches & Makefiles. With that said, it can cause issues adding things as OE caters for a large number of devices - Zaurus, iPAQs, slugs, simpads, x86, etc. which means that the build instructions can require a bit more work.

It should also be noted that pdaXrom has older stuff (still on 2.4.x kernel, older libc, GCC, etc.) than OE (OpenEmbedded - the meta data which are used to build OpenZaurus, etc.).

I feel that is a reasonably fair description of the situation (hoping to avoid any flame wars restarting because it annoys me).


Si
Title: Managing Sd Cards (insertion/ejection) With Gpe ?
Post by: obergix on November 24, 2005, 04:29:25 pm
Quote
I feel that is a reasonably fair description of the situation (hoping to avoid any flame wars restarting because it annoys me).

[div align=\"right\"][a href=\"index.php?act=findpost&pid=104861\"][{POST_SNAPBACK}][/a][/div]

Many thanks... and let's hope I didn't summon bad demons in asking.

No troll or flamewar intended initially... although I was afraid the issue might be kinda controversial

Now, I just have to check if I can build it with the bitbake setup I have.

Best regards,
Title: Managing Sd Cards (insertion/ejection) With Gpe ?
Post by: obergix on November 25, 2005, 02:26:35 am
Quote
matchbox-applet-card-oe.tar.gz (http://members.a1.net/patrick.steiner/matchbox-applet-card-oe.tar.gz)

here are the required files.

greets
[div align=\"right\"][a href=\"index.php?act=findpost&pid=104801\"][{POST_SNAPBACK}][/a][/div]
Looks like it's working. Thanks

It's probably rather basic and would need improvements, but at least it umounts my SD with a couple taps

I'll dig in the code some day maybe.
Title: Managing Sd Cards (insertion/ejection) With Gpe ?
Post by: Hrw on November 25, 2005, 04:28:16 am
Quote
Any general political issue of some kind or... I would expect OZ's packaging of GPE applications being quite extensive... ?

GPE in OpenZaurus is available due to work done by GPE team. We (OZ team) use OpenEmbedded to build OpenZaurus, they (GPE team) use OpenEmbedded too - so everyone gains. The same is with OPIE, XFCE and many other stuff used in misc distributions. We have many network applications because they are used on slugs (Linksys NSLU2 network storage server) etc.
Title: Managing Sd Cards (insertion/ejection) With Gpe ?
Post by: obergix on November 25, 2005, 02:08:02 pm
So let's say I'd like to request for addition of this applet in OZ+GPE... where should I file a request (in which bugtracker, I mean) : directly in GPE's one (but then attached to which package), or in OZ's one ?

Any suggestions ?
Title: Managing Sd Cards (insertion/ejection) With Gpe ?
Post by: cesarcardoso on November 26, 2005, 10:05:51 am
Quote
So let's say I'd like to request for addition of this applet in OZ+GPE... where should I file a request (in which bugtracker, I mean) : directly in GPE's one (but then attached to which package), or in OZ's one ?

Maybe the best is to file a bug on GPE bugtracker, requesting the addition of this applet a new package.
Title: Managing Sd Cards (insertion/ejection) With Gpe ?
Post by: obergix on November 27, 2005, 12:14:58 pm
Didn't know exactly to which package to file the bug, so did it on matchbox. Hope this is not too bad.

Here it goes : http://handhelds.org/~bugzilla/show_bug.cgi?id=1426 (http://handhelds.org/~bugzilla/show_bug.cgi?id=1426)

And I also filed one on OZ/OE anyway : http://bugs.openembedded.org/show_bug.cgi?id=495 (http://bugs.openembedded.org/show_bug.cgi?id=495)