Results 1 to 3 of 3

Thread: Booting from CompactFlash; ide=nodma has no effect

  1. #1
    JonathonW NNTP User

    Default Booting from CompactFlash; ide=nodma has no effect

    I've just completed a clean install of OpenSUSE 11.0 onto a CompactFlash card (connected via an IDE to CompactFlash adapter) and I'm having problems booting. It seems that the card does not support DMA (GRUB hangs at Loading Stage 2 if DMA isn't disabled in the BIOS), but OpenSUSE keeps trying to use DMA with the card, regardless of whether or not ide=nodma is set. The relevant sections of /var/log/boot.msg are below (the CF card is attached to ata1 and shows up in Linux as /dev/sda; nothing else is attached to that channel or any other):

    Code:
    <5>Kernel command line: root=/dev/disk/by-id/scsi-SATA_SanDisk_SDCFX3-_114202G0808F1833-part1 ide=nodma resume=/dev/sda2 splash=silent showopts
    [...snip...]
    <6>scsi0 : pata_via
    <6>scsi1 : pata_via
    <6>ata1: PATA max UDMA/133 cmd 0x1f0 ctl 0x3f6 bmdma 0xf900 irq 14
    <6>ata2: PATA max UDMA/133 cmd 0x170 ctl 0x376 bmdma 0xf908 irq 15
    <4>Marking TSC unstable due to: TSC halts in idle.
    <6>ata1.00: CFA: SanDisk SDCFX3-004G, HDX 4.32, max UDMA/66
    <6>ata1.00: 8027712 sectors, multi 0: LBA 
    <4>ata1.00: limited to UDMA/33 due to 40-wire cable
    <6>ata1.00: configured for UDMA/33
    [...snip SATA detection; nothing is connected to SATA ports...]
    <6>BIOS EDD facility v0.16 2004-Jun-25, 6 devices found
    <4>Driver 'sd' needs updating - please use bus_type methods
    <5>sd 0:0:0:0: [sda] 8027712 512-byte hardware sectors (4110 MB)
    <5>sd 0:0:0:0: [sda] Write Protect is off
    <7>sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
    <5>sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
    <5>sd 0:0:0:0: [sda] 8027712 512-byte hardware sectors (4110 MB)
    <5>sd 0:0:0:0: [sda] Write Protect is off
    <7>sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
    <5>sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
    [...snip USB detection...]
    <6>drivers/hid/usbhid/hid-core.c: v2.6:USB HID core driver
    <3>ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x2 frozen
    <3>ata1.00: cmd c8/00:08:00:00:00/00:00:00:00:00/e0 tag 0 dma 4096 in
    <4>         res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
    <3>ata1.00: status: { DRDY }
    <6>ata1: soft resetting link
    <6>ata1.00: configured for UDMA/33
    <6>ata1: EH complete
    <4>ata1.00: limiting speed to UDMA/25:PIO4
    <3>ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x2 frozen
    <3>ata1.00: cmd c8/00:08:00:00:00/00:00:00:00:00/e0 tag 0 dma 4096 in
    <4>         res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
    <3>ata1.00: status: { DRDY }
    <6>ata1: soft resetting link
    <6>ata1.00: configured for UDMA/25
    <6>ata1: EH complete
    <4>ata1.00: limiting speed to PIO4
    <3>ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x2 frozen
    <3>ata1.00: cmd c8/00:08:00:00:00/00:00:00:00:00/e0 tag 0 dma 4096 in
    <4>         res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
    <3>ata1.00: status: { DRDY }
    <6>ata1: soft resetting link
    <6>ata1.00: configured for PIO4
    <6>ata1: EH complete
    <5>sd 0:0:0:0: [sda] 8027712 512-byte hardware sectors (4110 MB)
    <4> sda1 sda2
    <5>sd 0:0:0:0: [sda] Write Protect is off
    <7>sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
    <5>sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
    <5>sd 0:0:0:0: [sda] 8027712 512-byte hardware sectors (4110 MB)
    <5>sd 0:0:0:0: [sda] Write Protect is off
    <7>sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
    <5>sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
    <5>sd 0:0:0:0: [sda] Attached SCSI removable disk
    <6>kjournald starting.  Commit interval 5 seconds
    <6>EXT3 FS on sda1, internal journal
    <6>EXT3-fs: mounted filesystem with ordered data mode.
    [...boot continues normally...]
    As you can see, Linux is trying to use the drive in DMA mode even though ide=nodma is set; since the card doesn't seem to support DMA, the operation times out and it falls back to the next fastest DMA mode. Once it falls back to PIO mode, it boots normally.

    This wouldn't be a problem (aside from the slow bootup) except that something tries to read the disk in the middle of this process while the drive is unavailable; this causes Linux to prompt whether to retry or not and requires keyboard intervention. This system needs to be headless, so this is a problem.

    Any ideas on how to force Linux to try PIO mode first?

  2. #2
    JonathonW NNTP User

    Default Re: Booting from CompactFlash; ide=nodma has no effect

    Sorry to bump this thread, but no one has any ideas?

  3. #3
    adrin NNTP User

    Default Re: Booting from CompactFlash; ide=nodma has no effect

    Sorry, almost no idea. I'm facing very similar problem: I'm not able to install or even copy files at CompactFlash connected to IDE in openSuse 11. After copy some files at ext3 formated CF, system stops copying and say something like this: read only filesystem; and after that, ext3 is partially damaged. I think that my CF has problem with DMA support, but I have no experience in it (bios seems to have no setting for disable DMA).

    Problem could be in IDE adapter (bad DMA support) or in CF itself (no DMA) or in combination of adapter and CF. But I will test other distributions or windows.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •