Hi all,

I can now reliably reproduce the issue, as dd'ing the mbr back to the card
so far restores sane behaviour :

If sd_drive is set to "0", then after a resume from "sync && apm -s" the MBR
of my 4GB SanDisk is wiped - so far I haven't noticed any other errors, but
have not looked very closely.

To recover, I use the following commands:
---------------
# re-write MBR
dd if=mmcblk0_512_1.dump of=/dev/mmcblk0
# recognize partitions again
echo "1">/sys/module/glamo_mci/parameters/sd_drive
apm -s
----------------

So it looks as if the sd_drive parameter does have a role in this - any
suggestions on what else I should try, or what logs you guys need ?

Unmounting the card before suspend should help, and I'll also gladly try
another kernel and other partitions setup if I find the time.

Btw, this all happens on a 4GB SanDisk with 4 primary partitions:
20M vfat + (196M +196M +3.2G ) ext2 and kernel om-gta02 2.6.24 Wed Jul 23
06:34:19

Stefan

PS: Can somebody please tell me how to re-initialize the card without going
through another suspend/resume cycle ?




On Thu, Jul 24, 2008 at 9:53 AM, arne anka <[EMAIL PROTECTED]> wrote:

> > Everybody, get a Micro-SD card and stick it in your Neo.  Put some
>
> should that apply to multiboot or to _every_ use of the sd card?
> i use suspend/resume more or less successfully for a week or 10 days now
> and the files on my sd card (4gb, how do i determine the exact name from a
> running system?) still are unharmed.
> gta02, 2007.2, upgrade every or every second day.
>
> _______________________________________________
> Openmoko community mailing list
> community@lists.openmoko.org
> http://lists.openmoko.org/mailman/listinfo/community
>
ices/platform/neo1973-button.0/input/input0
wake enabled for irq 48
s3c2440-ts s3c2440-ts: successfully loaded
input: s3c2410 TouchScreen as /devices/virtual/input/input1
input: lis302-1 (top) as /devices/virtual/input/input2
lis302dl spi0.0: Found lis302-1 (top)
input: lis302-2 (bottom) as /devices/virtual/input/input3
lis302dl spi0.1: Found lis302-2 (bottom)
i2c /dev entries driver
s3c2440-i2c s3c2440-i2c: slave address 0x10
s3c2440-i2c s3c2440-i2c: bus frequency set to 390 KHz
s3c2440-i2c s3c2440-i2c: i2c-0: S3C I2C adapter
input: GTA02 PMU events as 
/devices/platform/s3c2440-i2c/i2c-adapter/i2c-0/0-0073/input/input4
glamo-mci glamo-mci.0: powered (vdd = 20) clk: 0kHz div=255 (req: 0kHz). Bus 
width=0
glamo-mci glamo-mci.0: powered (vdd = 20) clk: 195kHz div=255 (req: 195kHz). 
Bus width=0
usb0: full speed config #1: 500 mA, Ethernet Gadget, using CDC Ethernet
glamo-mci glamo-mci.0: powered (vdd = 20) clk: 195kHz div=255 (req: 195kHz). 
Bus width=0
glamo-mci glamo-mci.0: powered (vdd = 20) clk: 195kHz div=255 (req: 195kHz). 
Bus width=0
glamo-mci glamo-mci.0: Error after cmd: 0x120
glamo-mci glamo-mci.0: Error after cmd: 0x8120
glamo-mci glamo-mci.0: Error after cmd: 0x120
glamo-mci glamo-mci.0: Error after cmd: 0x8120
glamo-mci glamo-mci.0: Error after cmd: 0x120
glamo-mci glamo-mci.0: powered (vdd = 20) clk: 195kHz div=255 (req: 195kHz). 
Bus width=0
glamo-mci glamo-mci.0: powered (vdd = 20) clk: 195kHz div=255 (req: 195kHz). 
Bus width=0
glamo-mci glamo-mci.0: powered (vdd = 20) clk: 195kHz div=255 (req: 195kHz). 
Bus width=0
wake enabled for irq 53
pcf50633: dev (254:0)
pcf50633 0-0073: rtc core: registered pcf50633 as rtc0
glamo-mci glamo-mci.0: powered (vdd = 20) clk: 195kHz div=255 (req: 195kHz). 
Bus width=0
glamo-mci glamo-mci.0: powered (vdd = 20) clk: 195kHz div=255 (req: 195kHz). 
Bus width=0
glamo-mci glamo-mci.0: powered (vdd = 20) clk: 16666kHz div=2 (req: 16666kHz). 
Bus width=0
glamo-mci glamo-mci.0: powered (vdd = 20) clk: 16666kHz div=2 (req: 16666kHz). 
Bus width=2
mmc0: new high speed SDHC card at address d555
neo1973-pm-bt neo1973-pm-bt.0: FIC Neo1973 Bluetooth Power Management: starting
neo1973-pm-gps neo1973-pm-gps.0: FIC Neo1973 GPS Power Managerment:starting
APM Battery Driver
bq27000-battery bq27000-battery.0: BQ27000 Battery Driver (C) 2008 Openmoko, Inc
mmcblk0: mmc0:d555 SU04G 3979776KiB 
 mmcblk0: p1 p2 p3 p4
S3c2440 SDIO Host controller
SDIO BusDriver - SDIO_GetBusOSDevice, registering driver: sdio_s3c24xx_hcd 
DMAmask: 0x0
pnp: the driver 'sdio_s3c24xx_hcd' has been registered
mapped channel 0 to 0
S3c24xx SDIO: IRQ:37 Detect IRQ:0 DMA channel:0 [EMAIL PROTECTED] [EMAIL 
PROTECTED] kHz
SDIO Bus Driver: HCD:sdio_s3c24xx should set module ptr!
sdio_s3c24xx_hcd 00:00: driver attached
sdio_s3c24xx_hcd 00:00: SDIO device, IDs SD_0008 (active)
pnp: the driver 'sdio_wlan' has been registered
Registered led device: neo1973:vibrator
Registered led device: gta02-power:orange
Registered led device: gta02-power:blue
Registered led device: gta02-aux:red
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
pcf50633 0-0073: setting system clock to 2008-07-24 12:59:39 UTC (1216904379)
Using lowest clock rate
CRCFAIL 0x1a3f
CRCFAIL 0x1a3f
Current Request Command:5, ARG:0x00000000 flags: 0x0008
VFS: Mounted root (jffs2 filesystem).
Freeing init memory: 128K
CRCFAIL 0x1a3f
CRCFAIL 0x1a3f
Current Request Command:5, ARG:0x00100000 flags: 0x0008
CRCFAIL 0x1a3f
CRCFAIL 0x1a3f
Current Request Command:5, ARG:0x00100000 flags: 0x0008
sdio_wlan 00:01: driver attached
sdio_wlan 00:01: SDIO device, IDs SD_0001 (active)
Unsupported configuration opcode: 3
Unsupported configuration opcode: 5
ar6000_available
BMI Get Target Info: Exit (ver: 0x20000059 type: 0x1)
Block Size Set: 128 (target address:0x8000066C)
ar6000_init() Got WMI @ 0xc7d0a000.
SDIO_INT_CTRL enable IRQ
ar6000_init() WMI is ready
mac address = 00:12:cf:8e:e2:6e
AR6000 Reg Code = 0x40000060
ar6000_avail: name=eth0 htcTarget=0xc7ef0000, dev=0xc7500000 (0), ar=0xc7500380
EXT2-fs error (device mmcblk0): ext2_check_descriptors: Block bitmap for group 
0 not in group (block 0)!
EXT2-fs: group descriptors corrupted!
EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
Bluetooth: Core ver 2.11
NET: Registered protocol family 31
Bluetooth: HCI device and connection manager initialized
Bluetooth: HCI socket layer initialized
Bluetooth: HCI USB driver ver 2.9
usbcore: registered new interface driver hci_usb
Bluetooth: L2CAP ver 2.9
Bluetooth: L2CAP socket layer initialized
Bluetooth: HIDP (Human Interface Emulation) ver 1.2
ohci_hcd: 2006 August 04 USB 1.1 'Open' Host Controller (OHCI) Driver
s3c2410-ohci s3c2410-ohci: S3C24XX OHCI
s3c2410-ohci s3c2410-ohci: new USB bus registered, assigned bus number 1
s3c2410-ohci s3c2410-ohci: irq 42, io mem 0x49000000
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
Bluetooth: RFCOMM socket layer initialized
Bluetooth: RFCOMM TTY layer initialized
Bluetooth: RFCOMM ver 1.8
ASoC version 0.13.1
wm8753: WM8753 Audio Codec 0.16
asoc: WM8753 HiFi <-> s3c24xx-i2s mapping ok
asoc: WM8753 Voice <-> Bluetooth mapping ok
Alignment trap: hald-probe-volu (1430) PC=0x0000ce78 Instr=0xe59b300c 
Address=0xbeb1e5aa FSR 0x013
Alignment trap: hald-probe-volu (1430) PC=0x0000ce94 Instr=0xe59b1008 
Address=0xbeb1e5a6 FSR 0x013
Alignment trap: hald-probe-volu (1430) PC=0x0000ce78 Instr=0xe59b300c 
Address=0xbeb1e5ba FSR 0x013
Alignment trap: hald-probe-volu (1430) PC=0x0000ce94 Instr=0xe59b1008 
Address=0xbeb1e5b6 FSR 0x013
Alignment trap: hald-probe-volu (1430) PC=0x0000ce78 Instr=0xe59b300c 
Address=0xbeb1e5ca FSR 0x013
Alignment trap: hald-probe-volu (1430) PC=0x0000ce94 Instr=0xe59b1008 
Address=0xbeb1e5c6 FSR 0x013
Alignment trap: hald-probe-volu (1430) PC=0x0000ce78 Instr=0xe59b300c 
Address=0xbeb1e5da FSR 0x013
Alignment trap: hald-probe-volu (1430) PC=0x0000ce94 Instr=0xe59b1008 
Address=0xbeb1e5d6 FSR 0x013
Alignment trap: hald-probe-volu (1431) PC=0x0000ce78 Instr=0xe59b300c 
Address=0xbea0e5aa FSR 0x013
Alignment trap: hald-probe-volu (1431) PC=0x0000ce94 Instr=0xe59b1008 
Address=0xbea0e5a6 FSR 0x013
Alignment trap: hald-probe-volu (1431) PC=0x0000ce78 Instr=0xe59b300c 
Address=0xbea0e5ba FSR 0x013
Alignment trap: hald-probe-volu (1431) PC=0x0000ce94 Instr=0xe59b1008 
Address=0xbea0e5b6 FSR 0x013
Alignment trap: hald-probe-volu (1431) PC=0x0000ce78 Instr=0xe59b300c 
Address=0xbea0e5ca FSR 0x013
Alignment trap: hald-probe-volu (1431) PC=0x0000ce94 Instr=0xe59b1008 
Address=0xbea0e5c6 FSR 0x013
Alignment trap: hald-probe-volu (1431) PC=0x0000ce78 Instr=0xe59b300c 
Address=0xbea0e5da FSR 0x013
Alignment trap: hald-probe-volu (1431) PC=0x0000ce94 Instr=0xe59b1008 
Address=0xbea0e5d6 FSR 0x013
Alignment trap: hald-probe-volu (1432) PC=0x0000ce78 Instr=0xe59b300c 
Address=0xbe8575aa FSR 0x013
Alignment trap: hald-probe-volu (1432) PC=0x0000ce94 Instr=0xe59b1008 
Address=0xbe8575a6 FSR 0x013
Alignment trap: hald-probe-volu (1432) PC=0x0000ce78 Instr=0xe59b300c 
Address=0xbe8575ba FSR 0x013
Alignment trap: hald-probe-volu (1432) PC=0x0000ce94 Instr=0xe59b1008 
Address=0xbe8575b6 FSR 0x013
Alignment trap: hald-probe-volu (1432) PC=0x0000ce78 Instr=0xe59b300c 
Address=0xbe8575ca FSR 0x013
Alignment trap: hald-probe-volu (1432) PC=0x0000ce94 Instr=0xe59b1008 
Address=0xbe8575c6 FSR 0x013
Alignment trap: hald-probe-volu (1432) PC=0x0000ce78 Instr=0xe59b300c 
Address=0xbe8575da FSR 0x013
Alignment trap: hald-probe-volu (1432) PC=0x0000ce94 Instr=0xe59b1008 
Address=0xbe8575d6 FSR 0x013
Alignment trap: hald-probe-volu (1433) PC=0x0000ce78 Instr=0xe59b300c 
Address=0xbef385aa FSR 0x013
Alignment trap: hald-probe-volu (1433) PC=0x0000ce94 Instr=0xe59b1008 
Address=0xbef385a6 FSR 0x013
Alignment trap: hald-probe-volu (1433) PC=0x0000ce78 Instr=0xe59b300c 
Address=0xbef385ba FSR 0x013
Alignment trap: hald-probe-volu (1433) PC=0x0000ce94 Instr=0xe59b1008 
Address=0xbef385b6 FSR 0x013
Alignment trap: hald-probe-volu (1433) PC=0x0000ce78 Instr=0xe59b300c 
Address=0xbef385ca FSR 0x013
Alignment trap: hald-probe-volu (1433) PC=0x0000ce94 Instr=0xe59b1008 
Address=0xbef385c6 FSR 0x013
Alignment trap: hald-probe-volu (1433) PC=0x0000ce78 Instr=0xe59b300c 
Address=0xbef385da FSR 0x013
Alignment trap: hald-probe-volu (1433) PC=0x0000ce94 Instr=0xe59b1008 
Address=0xbef385d6 FSR 0x013
mapped channel 10 to 2
Alignment trap: phone-kit (1596) PC=0x0001214c Instr=0xe5970008 
Address=0xbe9da62f FSR 0x013
Syncing filesystems ... done.
PM: Preparing system for mem sleep
Freezing user space processes ... (elapsed 0.09 seconds) done.
Freezing remaining freezable tasks ... (elapsed 0.00 seconds) done.
PM: Entering mem sleep
Suspending console(s)
pcf50633 0-0073: pcf50633_suspend
glamo-mci glamo-mci.0: faking cmd 7 during suspend
mmc_set_power(power_mode=0, vdd=0
glamo-mci glamo-mci.0: glamo_mci_set_ios: power down.
gta02_udc_command(2)
suspending dma channel 0
suspending dma channel 1
suspending dma channel 2
suspending dma channel 3
GSTATUS3 0x30376074
GSTATUS4 0x00000000
timer_usec_ticks = 7864
timer tcon=00000000, tcnt a2c1, tcfg 00000200,00000000, usec 00001eb8
s3c2440-i2c s3c2440-i2c: slave address 0x10
s3c2440-i2c s3c2440-i2c: bus frequency set to 390 KHz
gta02_udc_command(1)
s3c2440-nand s3c2440-nand: Tacls=3, 30ns Twrph0=7 70ns, Twrph1=3 30ns
not changing prescaler of PWM 3, since it's shared with timer4 (clock tick)
mmc_set_power(power_mode=1, vdd=20
glamo-mci glamo-mci.0: powered (vdd = 20) clk: 0kHz div=255 (req: 0kHz). Bus 
width=0
glamo-mci glamo-mci.0: powered (vdd = 20) clk: 195kHz div=255 (req: 195kHz). 
Bus width=0
glamo-mci glamo-mci.0: powered (vdd = 20) clk: 195kHz div=255 (req: 195kHz). 
Bus width=0
glamo-mci glamo-mci.0: powered (vdd = 20) clk: 195kHz div=255 (req: 195kHz). 
Bus width=0
glamo-mci glamo-mci.0: Error after cmd: 0x8120
usb0: full speed config #1: 500 mA, Ethernet Gadget, using CDC Ethernet
mmc0: card d555 removed
MMC: killing requests for dead queue
mmc_set_power(power_mode=0, vdd=0
glamo-mci glamo-mci.0: glamo_mci_set_ios: power down.
mmc_set_power(power_mode=1, vdd=20
glamo-mci glamo-mci.0: powered (vdd = 20) clk: 0kHz div=255 (req: 0kHz). Bus 
width=0
glamo-mci glamo-mci.0: powered (vdd = 20) clk: 195kHz div=255 (req: 195kHz). 
Bus width=0
glamo-mci glamo-mci.0: powered (vdd = 20) clk: 195kHz div=255 (req: 195kHz). 
Bus width=0
glamo-mci glamo-mci.0: powered (vdd = 20) clk: 195kHz div=255 (req: 195kHz). 
Bus width=0
glamo-mci glamo-mci.0: Error after cmd: 0x8120
glamo-mci glamo-mci.0: Error after cmd: 0x120
glamo-mci glamo-mci.0: Error after cmd: 0x8120
glamo-mci glamo-mci.0: Error after cmd: 0x120
glamo-mci glamo-mci.0: Error after cmd: 0x8120
glamo-mci glamo-mci.0: powered (vdd = 20) clk: 195kHz div=255 (req: 195kHz). 
Bus width=0
glamo-mci glamo-mci.0: powered (vdd = 20) clk: 195kHz div=255 (req: 195kHz). 
Bus width=0
glamo-mci glamo-mci.0: powered (vdd = 20) clk: 195kHz div=255 (req: 195kHz). 
Bus width=0
soc-audio soc-audio: scheduling resume work
soc-audio soc-audio: starting resume work
PM: Finishing wakeup.
glamo-mci glamo-mci.0: powered (vdd = 20) clk: 195kHz div=255 (req: 195kHz). 
Bus width=0
Restarting tasks ... <6>glamo-mci glamo-mci.0: powered (vdd = 20) clk: 195kHz 
div=255 (req: 195kHz). Bus width=0
glamo-mci glamo-mci.0: powered (vdd = 20) clk: 16666kHz div=2 (req: 16666kHz). 
Bus width=0
glamo-mci glamo-mci.0: powered (vdd = 20) clk: 16666kHz div=2 (req: 16666kHz). 
Bus width=2
mmc0: new high speed SDHC card at address d555
mmcblk1: mmc0:d555 SU04G 3979776KiB 
 mmcblk1: p1 p2 p3 p4
done.
soc-audio soc-audio: resume work completed
dma2: channel has nothing loaded
EXT2-fs error (device mmcblk1): ext2_check_descriptors: Block bitmap for group 
0 not in group (block 0)!
EXT2-fs: group descriptors corrupted!
EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
Syncing filesystems ... done.
PM: Preparing system for mem sleep
Freezing user space processes ... (elapsed 0.09 seconds) done.
Freezing remaining freezable tasks ... (elapsed 0.00 seconds) done.
PM: Entering mem sleep
Suspending console(s)
pcf50633 0-0073: pcf50633_suspend
glamo-mci glamo-mci.0: faking cmd 7 during suspend
mmc_set_power(power_mode=0, vdd=0
glamo-mci glamo-mci.0: glamo_mci_set_ios: power down.
gta02_udc_command(2)
suspending dma channel 0
suspending dma channel 1
suspending dma channel 2
suspending dma channel 3
GSTATUS3 0x30376074
GSTATUS4 0x00000000
modem wakeup interrupt
timer_usec_ticks = 7864
timer tcon=00000000, tcnt a2c1, tcfg 00000200,00000000, usec 00001eb8
s3c2440-i2c s3c2440-i2c: slave address 0x10
s3c2440-i2c s3c2440-i2c: bus frequency set to 390 KHz
gta02_udc_command(1)
s3c2440-nand s3c2440-nand: Tacls=3, 30ns Twrph0=7 70ns, Twrph1=3 30ns
not changing prescaler of PWM 3, since it's shared with timer4 (clock tick)
mmc_set_power(power_mode=1, vdd=20
glamo-mci glamo-mci.0: powered (vdd = 20) clk: 0kHz div=255 (req: 0kHz). Bus 
width=0
glamo-mci glamo-mci.0: powered (vdd = 20) clk: 195kHz div=255 (req: 195kHz). 
Bus width=0
glamo-mci glamo-mci.0: powered (vdd = 20) clk: 195kHz div=255 (req: 195kHz). 
Bus width=0
glamo-mci glamo-mci.0: powered (vdd = 20) clk: 195kHz div=255 (req: 195kHz). 
Bus width=0
glamo-mci glamo-mci.0: Error after cmd: 0x8120
usb0: full speed config #1: 500 mA, Ethernet Gadget, using CDC Ethernet
mmc0: card d555 removed
MMC: killing requests for dead queue
mmc_set_power(power_mode=0, vdd=0
glamo-mci glamo-mci.0: glamo_mci_set_ios: power down.
mmc_set_power(power_mode=1, vdd=20
glamo-mci glamo-mci.0: powered (vdd = 20) clk: 0kHz div=255 (req: 0kHz). Bus 
width=0
glamo-mci glamo-mci.0: powered (vdd = 20) clk: 195kHz div=255 (req: 195kHz). 
Bus width=0
glamo-mci glamo-mci.0: powered (vdd = 20) clk: 195kHz div=255 (req: 195kHz). 
Bus width=0
glamo-mci glamo-mci.0: powered (vdd = 20) clk: 195kHz div=255 (req: 195kHz). 
Bus width=0
glamo-mci glamo-mci.0: Error after cmd: 0x8120
glamo-mci glamo-mci.0: Error after cmd: 0x120
glamo-mci glamo-mci.0: Error after cmd: 0x8120
glamo-mci glamo-mci.0: Error after cmd: 0x120
glamo-mci glamo-mci.0: Error after cmd: 0x8120
glamo-mci glamo-mci.0: powered (vdd = 20) clk: 195kHz div=255 (req: 195kHz). 
Bus width=0
glamo-mci glamo-mci.0: powered (vdd = 20) clk: 195kHz div=255 (req: 195kHz). 
Bus width=0
glamo-mci glamo-mci.0: powered (vdd = 20) clk: 195kHz div=255 (req: 195kHz). 
Bus width=0
soc-audio soc-audio: scheduling resume work
soc-audio soc-audio: starting resume work
modem wakeup interrupt
PM: Finishing wakeup.
glamo-mci glamo-mci.0: powered (vdd = 20) clk: 195kHz div=255 (req: 195kHz). 
Bus width=0
Restarting tasks ... <6>glamo-mci glamo-mci.0: powered (vdd = 20) clk: 195kHz 
div=255 (req: 195kHz). Bus width=0
glamo-mci glamo-mci.0: powered (vdd = 20) clk: 16666kHz div=2 (req: 16666kHz). 
Bus width=0
glamo-mci glamo-mci.0: powered (vdd = 20) clk: 16666kHz div=2 (req: 16666kHz). 
Bus width=2
mmc0: new high speed SDHC card at address d555
mmcblk0: mmc0:d555 SU04G 3979776KiB 
 mmcblk0: unknown partition table
done.
soc-audio soc-audio: resume work completed
dma2: channel has nothing loaded
EXT2-fs error (device mmcblk0): ext2_check_descriptors: Block bitmap for group 
1 not in group (block 0)!
EXT2-fs: group descriptors corrupted!
_______________________________________________
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community

Reply via email to