Author Topic: Managing Sd Cards (insertion/ejection) With Gpe ?  (Read 10717 times)

obergix

  • Full Member
  • ***
  • Posts: 128
    • View Profile
    • http://www.olivierberger.com/weblog/
Managing Sd Cards (insertion/ejection) With Gpe ?
« 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.
Zaurus SL-C1000 - OpenZaurus 3.5.4.1-alpha1 w/ GPE image (some packages "custom made", compiled at home from bitbake+openembedded)

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Managing Sd Cards (insertion/ejection) With Gpe ?
« Reply #1 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
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

obergix

  • Full Member
  • ***
  • Posts: 128
    • View Profile
    • http://www.olivierberger.com/weblog/
Managing Sd Cards (insertion/ejection) With Gpe ?
« Reply #2 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...
Zaurus SL-C1000 - OpenZaurus 3.5.4.1-alpha1 w/ GPE image (some packages "custom made", compiled at home from bitbake+openembedded)

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Managing Sd Cards (insertion/ejection) With Gpe ?
« Reply #3 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
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

obergix

  • Full Member
  • ***
  • Posts: 128
    • View Profile
    • http://www.olivierberger.com/weblog/
Managing Sd Cards (insertion/ejection) With Gpe ?
« Reply #4 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.
Zaurus SL-C1000 - OpenZaurus 3.5.4.1-alpha1 w/ GPE image (some packages "custom made", compiled at home from bitbake+openembedded)

law

  • Newbie
  • *
  • Posts: 21
    • View Profile
Managing Sd Cards (insertion/ejection) With Gpe ?
« Reply #5 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
« Last Edit: November 24, 2005, 06:35:25 am by law »

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Managing Sd Cards (insertion/ejection) With Gpe ?
« Reply #6 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
« Last Edit: November 24, 2005, 07:06:04 am by lardman »
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

law

  • Newbie
  • *
  • Posts: 21
    • View Profile
Managing Sd Cards (insertion/ejection) With Gpe ?
« Reply #7 on: November 24, 2005, 07:21:26 am »
matchbox-applet-card-oe.tar.gz

here are the required files.

greets

obergix

  • Full Member
  • ***
  • Posts: 128
    • View Profile
    • http://www.olivierberger.com/weblog/
Managing Sd Cards (insertion/ejection) With Gpe ?
« Reply #8 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
Zaurus SL-C1000 - OpenZaurus 3.5.4.1-alpha1 w/ GPE image (some packages "custom made", compiled at home from bitbake+openembedded)

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Managing Sd Cards (insertion/ejection) With Gpe ?
« Reply #9 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
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

obergix

  • Full Member
  • ***
  • Posts: 128
    • View Profile
    • http://www.olivierberger.com/weblog/
Managing Sd Cards (insertion/ejection) With Gpe ?
« Reply #10 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,
Zaurus SL-C1000 - OpenZaurus 3.5.4.1-alpha1 w/ GPE image (some packages "custom made", compiled at home from bitbake+openembedded)

obergix

  • Full Member
  • ***
  • Posts: 128
    • View Profile
    • http://www.olivierberger.com/weblog/
Managing Sd Cards (insertion/ejection) With Gpe ?
« Reply #11 on: November 25, 2005, 02:26:35 am »
Quote
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.
Zaurus SL-C1000 - OpenZaurus 3.5.4.1-alpha1 w/ GPE image (some packages "custom made", compiled at home from bitbake+openembedded)

Hrw

  • Hero Member
  • *****
  • Posts: 1366
    • View Profile
Managing Sd Cards (insertion/ejection) With Gpe ?
« Reply #12 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.
OpenZaurus 3.5.4x Release Manager
OpenEmbedded, Ångström, Poky developer
My website

Misc embedded hardware.

obergix

  • Full Member
  • ***
  • Posts: 128
    • View Profile
    • http://www.olivierberger.com/weblog/
Managing Sd Cards (insertion/ejection) With Gpe ?
« Reply #13 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 ?
Zaurus SL-C1000 - OpenZaurus 3.5.4.1-alpha1 w/ GPE image (some packages "custom made", compiled at home from bitbake+openembedded)

cesarcardoso

  • Newbie
  • *
  • Posts: 45
    • View Profile
    • http://
Managing Sd Cards (insertion/ejection) With Gpe ?
« Reply #14 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.
Zaurus SL-5500 (Collie) with 512MB SD, OpenZaurus 3.5.4 and GPE
Linksys WCF-12 Wi-Fi Card, Belkin F8T020 Bluetooth Card