arne anka, 2009-05-17 17:49:32 +0200 :

>>   So I'm wondering how to get the next SD card to last longer.  Should I
>> just get rid of the journaling and switch to ext2?
>
> additional wear because of journal is not significant.

  Good to know.

>>  Should I stick to
>> something specialised such as jffs2?
>
> jffs2 is a flash fs, not suited for e g sd cards.

  I thought SD cards were using flash memory internally.  Wikipedia
mentions "NAND flash", is it something different?

>>  How about BtrFS, is it usable yet? LogFS?
>
> btrfs does not seem to be usable for general purpose yet and logfs is
> aimed at flash like jffs2.

  Hm.  Okay.

>> I'm also wondering whether it's really a good idea to put swap
>> on a flash device, whatever the filesystem.
>
> if swap, then on sd card -- the flash is subject limited
> writeoperations as well, but since built-in you can't change it like
> an sd card.  so, if generally wear is an issue for you, it applies to
> flash as well.

  I don't know if the issue comes from wear, but I prefer wearing out a
10 € SD card than a 300 € Freerunner :-)

>> Any comments would be welcome :-)
>
> i installed debian into both flash and sd card partition.
> one partition on sd card serves as swap.
> i had issues with sd card months ago including i/o errors and data
> loss (most notably /var/lib/dpkg/status), but after some
> reorganization and updates it went away and never came back.

  Ah.  You wouldn't remember what kind of reorganisations, would you?

> every newer sd card should have an iternal wear levelling and error
> correction that should survive several years, so your issues are most
> likely not caused by the sd card itself, but rather by the kernel resp
> the glamo.

  I went from xserver-xglamo to xserver-xorg-video-glamo recently.
Could it be linked?

> with certain sd card sizes a kernel parameter was required either at
> boot or via sysfs, but i am not quite sure inhowfar that still
> applies.

  Hm.  This is a 4 GB Sandisk micro-SDHC card.

> - are you using u-boot or qi?

  u-boot 1.3.2-moko12.

> - what kernel are you using?

  I'm using packaged linux-image-2.6.29-openmoko-gta02, version
20090303.gitb9de904e-2.

> - error messages?

  dmesg currently loops on the following chunk (no X comes up, and the
screen is blanked and redisplayed from time to time, ending in the usual
"$hostname login:"

[21474648.160000] fbcon_event_notify action=1, data=c7b97dc8
[21474653.700000] fbcon_event_notify action=12, data=c7b97da4
[21474653.700000] jbt6k74 spi2.0: **** jbt6k74 unblank
[21474653.725000] fbcon_event_notify action=9, data=c7b97de0
[21474653.725000] jbt6k74 spi2.0: **** jbt6k74 unblank

  (The timestamps started back at ~60 after a while, for some reason)

  I also got this twice:

[  153.580000] glamo-mci glamo-mci.0: command timeout, continuing

  Then I tried a dist-upgrade, but it must have been lucky and not
touched the wrong nerve.  So I decided to cause some more write
activity, and I ran "aptitude reinstall" on all installed packages (by
chunks), to hopefully fix corrupted files that happened before.  I got
some aptitude internal errors, and I eventually got tired.  I'm
currently doing a backup of the micro-SD card under OM2007.2 by running
"ssh mokomir tar cvf - /media/mmcblk0p2 > root.tar" from the computer.
So far I got a few chunks of the following:

mmc0: starting CMD18 arg 0070cd10 flags 000000b5
mmc0:     blksz 512 blocks 32 flags 00000200 tsac 100 ms nsac 0
mmc0:     CMD12 arg 00000000 flags 0000049d
mmc0: req done (CMD18): 0: 00000900 00003f92 00000000 00000000
mmc0:     16384 bytes transferred: 0
mmc0:     (CMD12): 0: 00000000 00000000 00000000 00000000

  I'll try to restore the backup to a new card and re-run the aptitude
stuff.

> - log files?

  No syslog or klogd installed, sorry.

  Note for self: removing the has_journal attribute from the ext3 FS is
not a good idea, as it turns the system unable to boot either 2.6.29,
2.6.28 or 2.6.24, they all panic with "No filesystem could mount root,
tried: ext3".  And there's no tune2fs in OM2007.2.  Fortunately, the one
installed on the SD card eventually managed to work (after several
tries).

Roland.
-- 
Roland Mas

One... two... one, two, many, lots!
  -- Lias, in Soul music (Terry Pratchett)

_______________________________________________
Smartphones-userland mailing list
Smartphones-userland@linuxtogo.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/smartphones-userland

Reply via email to