2007-12-20 16:36:35 MMC/SD - BF548 EZKIT
Michael Morin (UNITED STATES)
Message: 48867 Are the drivers for the SD card on the BF548 ezkit included in the nightly release of the dist that is here: http://blackfin.uclinux.org/gf/project/uclinux-dist/frs
The bf548 has an SD card reader built in, opposed to the addon card pictured in: http://docs.blackfin.uclinux.org/doku.php?id=mmc_driver&s=spi%20mmc
Is the procedure the same for getting SD to work on the bf548 as they are in this doc wiki "Blackfin MMC Driver"
Thanks
QuoteReplyEditDelete
2007-12-20 20:18:04 Re: MMC/SD - BF548 EZKIT
Mike Frysinger (UNITED STATES)
Message: 48877 that nightly release does not exist at the moment
current svn trunk has MMC/SD drivers
that wiki doc is for the BF537 addon card only
QuoteReplyEditDelete
2008-01-03 11:21:31 Re: MMC/SD - BF548 EZKIT
Michael Morin (UNITED STATES)
Message: 49215
I am having problems getting uclinux for BF548 to compile but I need to get this SD card running soon. Can anyone post a BF548 uclinux image that has the MMC/SD card drivers enabled, It would be a great help. Thanks.
QuoteReplyEditDelete
2008-01-03 12:55:06 Re: MMC/SD - BF548 EZKIT
Mike Frysinger (UNITED STATES)
Message: 49224 if you're having trouble building, we fix that ... we dont post random images with random capabilities as that doesnt really scale
QuoteReplyEditDelete
2008-01-05 13:20:00 Re: MMC/SD - BF548 EZKIT
Michael Morin (UNITED STATES)
Message: 49296 When I get the uclinux to compile with the SD card device drivers enabled, how can I access the SD card? do I mount it like a hdd and can i just transferr files to it? What device name will it appear as? mmc?
QuoteReplyEditDelete
2008-01-05 17:56:12 Re: MMC/SD - BF548 EZKIT
Mike Frysinger (UNITED STATES)
Message: 49299 i imagine if you consult /proc/devices and look in /dev and look in dmesg, you can divine the device node that you would use
QuoteReplyEditDelete
2008-01-06 12:43:49 Re: MMC/SD - BF548 EZKIT
Michael Morin (UNITED STATES)
Message: 49305 What items under "MMC/SD Card support" need to be enabled? If I enable " MMC/SD for SPI support " I get errors when I compile, see attached log. Should they be set as modules, or set to include?
mmorin_err_log5
QuoteReplyEditDelete
2008-01-06 22:32:35 Re: MMC/SD - BF548 EZKIT
Mike Frysinger (UNITED STATES)
Message: 49306 the SPI/MMC code will only work on the BF537 (and maybe BF533) ... it certainly wont work for BF548 ... and it doesnt make sense as that driver is for an external MMC part hooked up to the SPI bus
you should be picking the "Blackfin Secure Digital Host support" driver as that is the one for the on-chip MMC hardware
QuoteReplyEditDelete
2008-01-07 12:26:23 Re: MMC/SD - BF548 EZKIT
Michael Morin (UNITED STATES)
Message: 49326 I compiled with "Blackfin Secure Digital Host support" enabled. Then I viewed /proc/devices, it listed mmc as 179 under block devices, there is no 179 in /dev. See attached files show my dmesg, /dev, /proc, and /proc/devices. I don't know what to do next...
mmorin_proc_devices
mmorin_dmesg
QuoteReplyEditDelete
2008-01-07 13:38:06 Re: MMC/SD - BF548 EZKIT
Mike Frysinger (UNITED STATES)
Message: 49329 the sdh driver didnt load fully as your dmesg shows:
Failed to request DMA channel for SDH
bfin-sdh: probe of bfin-sdh.0 failed with error -16
the dma channel the sdh needs is probably already allocated by another device
QuoteReplyEditDelete
2008-01-07 16:53:22 Re: MMC/SD - BF548 EZKIT
Michael Morin (UNITED STATES)
Message: 49338
Is there a way to assign certain DMA settings to each device? Should I set the SD drivers to be included or should I make them modules that I run after uclinux has started?
QuoteReplyEditDelete
2008-01-07 22:23:53 Re: MMC/SD - BF548 EZKIT
Mike Frysinger (UNITED STATES)
Message: 49344 you can only change dma settings according to the hardware. if you refer to the BF54x HRM, you will see that the DMA channel that is available to the SDH is also shared with the NAND controller. so you may only have one of those two active at a time -- NAND or SDH.
QuoteReplyEditDelete
2008-01-08 12:20:17 Re: MMC/SD - BF548 EZKIT
Michael Morin (UNITED STATES)
Message: 49357 I excluded the NAND memory drivers and recompiled. Here is my latest, dmesg, no DMA error for SDH but lists a warning with mmc0, but I don't see mmc0 in /proc/devices or in /dev though...
mmorin_dmesg2
QuoteReplyEditDelete
2008-01-08 14:09:32 Re: MMC/SD - BF548 EZKIT
Michael Morin (UNITED STATES)
Message: 49362 I also get this message " init: respawn:-/bin/sh respawning too fast " appear while im in uclinux since I have disabled the NAND.
QuoteReplyEditDelete
2008-01-08 15:35:29 Re: MMC/SD - BF548 EZKIT
Robin Getz (UNITED STATES)
Message: 49366 Michael:
Just check if the file system is mounted read-only.
-Robin