Ben NanoNote

Sign in or create your account | Project List | Help

Issue 74: sd communication protocol

Reported by Camilo Diaz, May 13, 2010

I want to create a communication protocol to control any hardware 
device using the sd port as an in/out port. I've been looking 
through the code in 
/openwrt-xburst/build_dir/linux-xburst_qi_lb60/linux-2.6.32.10/driver
s/mmc/, and i managed to see the commands that the hots (in this 
case the ben nanonote) sends to a sd card while initializing, 
writing and reading it. However, the driver I've been reading is a 
low level code, I need to find the driver that calls the one in the 
file above and tells it the commands to be sent. So, whereabouts is 
the driver I should modify in order to send the commands I desire?

Thank you in advance.

Comment 1 by Xiangfu Liu, Jun 9, 2010

Hi Camilo
in drivers/mmc/core/core.c:122:
mmc_start_request(struct mmc_host *host, struct mmc_request *mrq)
{
 ...
 host->ops->request(host, mrq);
}

here is the kernel start mmc request.
and in jz_mmc.c:667 setup the "request" function.

hope this can help.
Labels: Type:Task, -Type:Defect
Status: Started
Owner: xiangfu

Comment 2 by Xiangfu Liu, Nov 28, 2011

maybe you want modify this function: jz4740_mmc_request, under:
 


build_dir/linux-xburst_qi_lb60/linux-3.0/drivers/mmc/host/jz4740_mmc.c

you can also send those question to mailing list:
  discussion@lists.en.qi-hardware.com
Status: Fixed

Created: 9 years 5 months ago by Camilo Diaz

Updated: 7 years 10 months ago

Status: Fixed

Owner: Xiangfu Liu

Labels:
Priority:Medium
Type:Task



interactive