Installing FreeBSD on a Compact Flash card
Tagged:  •    •  

When trying to install FreeBSD 6.2 on a 2 GB compact flash card, the following error appeared:

ad2: timeout waiting to issue command
error issuing READ_DMA command ad2

It seems that big compact flash cards have some problems and you have to disable DMA in order to use them. Here is how you do it:

  1. At the installation CD's loader prompt, choose Escape to loader prompt.
  2. Enter
    set hw.ata.ata_dma=0
  3. And boot the kernel with this variable set, enter:
    boot
  4. Install FreeBSD
  5. Restart with the same trick as in step 2, now from the flash card.
  6. Once booted, add the following line in /boot/loader.conf:
    hw.ata.ata_dma=0
  7. The flash card should be usable now without human intervention.

That should make the flash card work correctly.

Thanks!

Firstly, sorry my bad english.

Great tip/trick! Save my sunday morning! FreeBSD 6.4 runing gracefully on CF card (Geode Processor).

Thanks!

Zemair!