[PATCH 1/1] omap3beagle: register SD interface

2 views
Skip to first unread message

koen

unread,
Apr 16, 2008, 12:42:16 PM4/16/08
to Beagle Board
omap3beagle: register SD interface

This isn't complete, it needs a call to an mmc_init function that does
something like board-sdp-hsmmc.c does. This patch gives me:

mmci-omap mmci-omap.1: No Slots

during boot, which is progress :)

Signed-off-by: Koen Kooi <ko...@openembedded.org>
---
board-omap3beagle.c | 9 +++++++++
1 file changed, 9 insertions(+)

--- /tmp/board-omap3beagle.c 2008-04-16 18:12:56.347129861 +0200
+++ git/arch/arm/mach-omap2/board-omap3beagle.c 2008-04-16
18:15:25.079135583 +0200
@@ -48,8 +48,17 @@
omap_gpio_init();
}

+
+static struct omap_mmc_config omap3beagle_mmc_config __initdata = {
+ .mmc [0] = {
+ .enabled = 1,
+ .wire4 = 1,
+ },
+};
+
static struct omap_board_config_kernel omap3_beagle_config[]
__initdata = {
{OMAP_TAG_UART, &omap3_beagle_uart_config },
+ {OMAP_TAG_MMC, &omap3beagle_mmc_config },
};

static void __init omap3_beagle_init(void)

koen

unread,
Apr 16, 2008, 1:19:49 PM4/16/08
to Beagle Board
On 16 apr, 18:42, koen <koen.k...@gmail.com> wrote:
> omap3beagle: register SD interface

new patch is at http://amethyst.openembedded.net/~koen/beagleboard/add-beagle-sd-support.diff
[1]

regards,

Koen

[1] All my mailers tend to damage patches, so I'm putting it online

koen

unread,
Apr 16, 2008, 2:30:10 PM4/16/08
to Beagle Board
On 16 apr, 19:19, koen <koen.k...@gmail.com> wrote:
> On 16 apr, 18:42, koen <koen.k...@gmail.com> wrote:
>
> > omap3beagle: register SD interface
>
> new patch is athttp://amethyst.openembedded.net/~koen/beagleboard/add-beagle-sd-supp...
> [1]

SD support summary:

* http://beagleboard.googlecode.com/files/uImage -> not working
* http://www.beagleboard.org/uploads/2.6_kernel-beagle-rev2.tar.gz ->
not working
* linux-omap git + Dirks patches -> not working
* linux-omap git + Khasims patches -> not working
* linux-omap git + Khasims patches + my patch -> not working
* http://beagleboard.googlecode.com/files/u-boot.bin -> working

I'd rather not invest time in getting the 2.6.22 source working and
work with Khasim and Dirk to get 2.6.25 working.

regards,

Koen

PS: Steves patches are a nice inspiration as well:
http://www.sakoman.net/omap3/omap3evm-oe/user.collection/packages/linux/linux-omap3evm/

koen

unread,
Apr 16, 2008, 3:13:51 PM4/16/08
to Beagle Board


On 16 apr, 20:30, koen <koen.k...@gmail.com> wrote:
> On 16 apr, 19:19, koen <koen.k...@gmail.com> wrote:
>
> > On 16 apr, 18:42, koen <koen.k...@gmail.com> wrote:
>
> > > omap3beagle: register SD interface
>
> > new patch is athttp://amethyst.openembedded.net/~koen/beagleboard/add-beagle-sd-supp...
> > [1]
>
> SD support summary:
>
> *http://beagleboard.googlecode.com/files/uImage-> not working
> *http://www.beagleboard.org/uploads/2.6_kernel-beagle-rev2.tar.gz->
> not working
> * linux-omap git + Dirks patches -> not working
> * linux-omap git + Khasims patches -> not working
> * linux-omap git + Khasims patches + my patch -> not working
> *http://beagleboard.googlecode.com/files/u-boot.bin-> working
>
> I'd rather not invest time in getting the 2.6.22 source working and
> work with Khasim and Dirk to get 2.6.25 working.

Ok, I'm officially an idiot. I used "" around an uboot var, which
linux doesn't like. So:

BAD: set bootargs "root=/dev/mmcblk0p2 rootdelay=5
console=ttyS2,115200n8 noinitrd rootfstype=ext2"
GOOD: set bootargs root=/dev/mmcblk0p2 rootdelay=10
console=ttyS2,115200n8 noinitrd rootfstype=ext2 ip=off

linux-omap git + Khasims patches + my patch:

mmc0: new SD card at address e624
mmcblk0: mmc0:e624 SD01G 992000KiB
mmcblk0: p1 p2
VFS: Mounted root (ext2 filesystem).
Freeing init memory: 148K

Success!

sorry for wasting your time,

Koen
Reply all
Reply to author
Forward
0 new messages