[maemo-developers] Howto correctly place data on the memory card?
From: Kimmo Hämäläinen kimmo.hamalainen at nokia.comDate: Mon Jun 22 12:20:51 EEST 2009
- Previous message: Howto correctly place data on the memory card?
- Next message: Howto correctly place data on the memory card?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Sun, 2009-06-21 at 21:09 +0200, ext Till Harbaum / Lists wrote: > Hi, > > i several of my projects i face the same problem: How do i correctly add > bulk data on the internal memory card? > > Up to stock diablo everything was simple: The entire card was mounted > as vfat on /media/mmc2 and my applications moved their data there (e.g. /media/mmc2/osm2go). > > But with the arrival of fremantle things have changed. The card now seems > to be mounted with ext3 on /home/user and a bigger partition with vfat > under /home/user/MyDocs. Now i have a bunch of problems: > > - How do i correctly figure out i am compiling for fremantle? > I am currently using "pkg-config --modversion maemo-version" and parse > the result in configure. This seems to be pretty stable and useful. Ok? > > - How do i correctly figure out i am running on fremantle? > My currently solution is to check the environment variable > "OSSO_PRODUCT_RELEASE_NAME" which is "Maemo 5" for fremantle. > Is this ok? How do i deal with the scratchbox? It doesn't seem to set > this variable at all. Yeah, using osso-product-info is the right way. I don't have any idea about Scratchbox, maybe a bug should be reported against the Fremantle SDK. > - How do i correctly find the big vfat partition in fremantle? It seems to > be mounted under /home/user/MyDocs. Unfortunately that place doesn't > even exist in scratchbox (unless you user name there is "user"). So > how do i know i am running in scratchbox and need to /home/user? > Using $HOME seems critial in e.g. postinst as the installation my be > run by the root user. Use MMC_MOUNTPOINT and INTERNAL_MMC_MOUNTPOINT environment variables, available since Nokia 770 Internet Tablet. I'm not sure about Scratchbox, since it does not have memory card emulation. -Kimmo > > So the question basically is: How does the build environment find the path > to the big vfat memcard location and how does e.g. a postinst script > find the same location at installation time? > > Till > > > _______________________________________________ > maemo-developers mailing list > maemo-developers at maemo.org > https://lists.maemo.org/mailman/listinfo/maemo-developers
- Previous message: Howto correctly place data on the memory card?
- Next message: Howto correctly place data on the memory card?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]