All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] DE2 board with MMC interface (PIO based) and FAT support enabled
@ 2008-12-15 12:07 ivanchuklist ivanchu
  2008-12-15 12:50 ` Wolfgang Denk
  0 siblings, 1 reply; 2+ messages in thread
From: ivanchuklist ivanchu @ 2008-12-15 12:07 UTC (permalink / raw)
  To: u-boot

Hi list,

I'm working with an Altera DE2 board (Nios II processor without MMU). I
developed a sd interface implemented with pio cores. In order to compile
u-boot correctly i modified the Makefile to match my binutils. I also
changed the file common/cmd_mem.c because it has a little problem when it
needs to manage the card to copy the data to main memory or from main
memory. I can't deduce the direction of data knowing only the address
because his address space isn't mapped on the bus like a common flash
memory. I added a command named dmcc (cmd_dmmc) to set the desired direction
of data, ie to or from mmc, to call correctly to the functions mmc_read and
mmc_write.
I have made a device block, filling the structure block_dev_desc_t and
defining mmc_get_dev(), to have access to the partition table (FAT). Now
u-boot is able to list the files inside the card (fatls mmc 0:0) and it
copies them to main memory (fatload mmc 0:0 500000 zimage).
I had to modify the source common/cmd_mmc.c because it has a reference to
mmc.h, but it gives problems with the linking process because of double
reference between the objects cmd_mmc.o and cmd_mem.o. The solution was to
declare extern the function mmc_init.
I also added my board to u-boot package.
I don't know how to post all what i did. I have made the diff files, i could
post them but i don't know how the patches are managed. In fact it's not a
patch at all, just a little branch.

Regards,
Iv?n Llopard.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [U-Boot] DE2 board with MMC interface (PIO based) and FAT support enabled
  2008-12-15 12:07 [U-Boot] DE2 board with MMC interface (PIO based) and FAT support enabled ivanchuklist ivanchu
@ 2008-12-15 12:50 ` Wolfgang Denk
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Denk @ 2008-12-15 12:50 UTC (permalink / raw)
  To: u-boot

Dear "ivanchuklist ivanchu",

In message <51a313240812150407xc75ec0vf7e14720277bbb47@mail.gmail.com> you wrote:
>
> I don't know how to post all what i did. I have made the diff files, i could
> post them but i don't know how the patches are managed. In fact it's not a
> patch at all, just a little branch.

You probably want to read http://www.denx.de/wiki/U-Boot/CodingStyle
and http://www.denx.de/wiki/U-Boot/Patches

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Why can you only have two doors on a chicken coop? If it had four  it
would be a chicken sedan.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-12-15 12:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-12-15 12:07 [U-Boot] DE2 board with MMC interface (PIO based) and FAT support enabled ivanchuklist ivanchu
2008-12-15 12:50 ` Wolfgang Denk

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.