ltib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Ltib] lpc3250 future design board sd/mmc kernel error


From: Kevin Wells
Subject: RE: [Ltib] lpc3250 future design board sd/mmc kernel error
Date: Thu, 3 Feb 2011 22:02:57 +0100

Hi Aydemir,

 

I answered this question on your bug entry you added.

The FDI3250 board is wired in such as way that it does not support card detect. Because of this, The AMBA driver is NOT in the board driver startup list. But if you leabe the card in the board all the time (no hot swap), you can make this work.

 

If you really need this functionality, you can add it manually, but return a status that the SD card is always plugged in. The card will be ‘detected’ at bootup, but if you remove it, it will never be detected or work again until you reboot. You can copy the phy3250 code and just change the GPIOs to GPIOs that return the state for card inserted and write protect disabled and add the amba driver to the amba device startup list.

 

> SDIO UART/GPS class support(*),

> MMC/SD/SDIO over SPI(*)

I don’t think you need these options.

 

I’m not sure what the errors are about. I just did a test build and there were no errors – even with all the options selected below.

 

Kevin

 

 

Subject: [Ltib] lpc3250 future design board sd/mmc kernel error

 

Hi,
I could not manage to run linux with SD/MMC card. It does not probe the SD/MMC device (/dev/mmcblk0p1 or /dev/mmcblk0p2).
While i compile the kernel 2.6.34 with mmc options MMC_Debugging (*), MMC_block_device_driver(*), SDIO UART/GPS class support(*), ARM AMBA Multimedia Card Interface support(*), MMC/SD/SDIO over SPI(*) .

I got the following errors:
drivers/mmc/host/mmci.c:37:23: error: mach/dmac.h: No such file or directory
drivers/mmc/host/mmci.c:38:25: error: mach/sdcard.h: No such file or directory
drivers/mmc/host/mmci.c:39:22: error: mach/dma.h: No such file or directory
drivers/mmc/host/mmci.c:51: error: field 'dmacfgtx' has incomplete type
drivers/mmc/host/mmci.c:52: error: field 'dmacfgrx' has incomplete type
drivers/mmc/host/mmci.c: In function 'mmc_dma_setup':
drivers/mmc/host/mmci.c:97: error: 'DMA_CH_SDCARD_TX' undeclared (first use in this function)
drivers/mmc/host/mmci.c:97: error: (Each undeclared identifier is reported only once
drivers/mmc/host/mmci.c:97: error: for each function it appears in.)
drivers/mmc/host/mmci.c:103: error: 'DMAC_CHAN_SRC_BURST_8' undeclared (first use in this function)
drivers/mmc/host/mmci.c:104: error: implicit declaration of function 'DMAC_SRC_PERIP'
drivers/mmc/host/mmci.c:104: error: 'DMA_PERID_SDCARD' undeclared (first use in this function)
drivers/mmc/host/mmci.c:108: error: 'DMAC_CHAN_DEST_BURST_8' undeclared (first use in this function)
drivers/mmc/host/mmci.c:109: error: implicit declaration of function 'DMAC_DEST_PERIP'
drivers/mmc/host/mmci.c:110: error: 'DMAC_CHAN_FLOW_P_M2P' undeclared (first use in this function)
drivers/mmc/host/mmci.c:111: error: implicit declaration of function 'lpc32xx_dma_ch_get'
drivers/mmc/host/mmci.c:119: error: implicit declaration of function 'lpc32xx_dma_alloc_llist'
drivers/mmc/host/mmci.c:127: error: 'DMA_CH_SDCARD_RX' undeclared (first use in this function)
drivers/mmc/host/mmci.c:140: error: 'DMAC_CHAN_FLOW_D_P2M' undeclared (first use in this function)
drivers/mmc/host/mmci.c:159: error: implicit declaration of function 'lpc32xx_dma_ch_put'
drivers/mmc/host/mmci.c:162: error: implicit declaration of function 'lpc32xx_dma_dealloc_llist'
drivers/mmc/host/mmci.c: In function 'mmc_dma_rx_start':
drivers/mmc/host/mmci.c:214: error: implicit declaration of function 'lpc32xx_dma_queue_llist_entry'
drivers/mmc/host/mmci.c:215: error: implicit declaration of function 'SD_FIFO'
drivers/mmc/host/mmci.c:215: error: 'LPC32XX_SD_BASE' undeclared (first use in this function)
drivers/mmc/host/mmci.c: In function 'mmc_dma_tx_start':
drivers/mmc/host/mmci.c:273: error: implicit declaration of function 'lpc32xx_dma_start_pflow_xfer'
drivers/mmc/host/mmci.c:273: error: 'DMA_CH_SDCARD_TX' undeclared (first use in this function)
drivers/mmc/host/mmci.c:274: error: 'LPC32XX_SD_BASE' undeclared (first use in this function)
drivers/mmc/host/mmci.c: In function 'mmci_start_data':
drivers/mmc/host/mmci.c:367: error: 'DMA_CH_SDCARD_RX' undeclared (first use in this function)
drivers/mmc/host/mmci.c:371: error: 'DMA_CH_SDCARD_TX' undeclared (first use in this function)
drivers/mmc/host/mmci.c: In function 'mmci_data_irq':
drivers/mmc/host/mmci.c:449: error: implicit declaration of function 'lpc32xx_dma_force_burst'
drivers/mmc/host/mmci.c:449: error: 'DMA_PERID_SDCARD' undeclared (first use in this function)
drivers/mmc/host/mmci.c:450: error: implicit declaration of function 'lpc32xx_dma_flush_llist'
drivers/mmc/host/mmci.c:454: error: implicit declaration of function 'lpc32xx_dma_ch_disable'
make[3]: *** [drivers/mmc/host/mmci.o] Error 1
make[2]: *** [drivers/mmc/host] Error 2
make[2]: *** Waiting for unfinished jobs....


Could you help me please?

Best Regards

Aydemir



reply via email to

[Prev in Thread] Current Thread [Next in Thread]