ts-7000
[Top] [All Lists]

[ts-7000] Re: linux 2.6.18 has new support wrt cirrus ep93xx!

To:
Subject: [ts-7000] Re: linux 2.6.18 has new support wrt cirrus ep93xx!
From: "Jesse Off" <>
Date: Mon, 02 Oct 2006 22:43:35 -0000
If anybody wants to create a 2.6 driver SD driver for the 7300, here
is what is needed:

ftp://ftp.embeddedARM.com/sdcore.o
ftp://ftp.embeddedARM.com/sdcore.h

sdcore.o is ARM ELF object OS-independent object code that exports
these functions:

sdreset() -- resets core
sdread() -- reads bytes from SD card
sdwrite() -- writes bytes to SD card

More details on API are in the sdcore.h header file.  I've used this
API from Linux-userspace and on a NetBSD driver successfully. 

I doubt anyone will be able to (or want to) reverse engineer this
hardware and make open-source code for it.  It does uses the 4-bit
interface, but it is NOT a standard SD OHCI type interface--  we
looked at using an off-the-shelf (feature-bloated) SD controller for
this, but it turned out to have a 20x larger FPGA footprint than we
had space for.

//Jesse Off


--- In  Curtis Monroe <> wrote:
>
> Maybe I missed it, seems that post only talks about someone
demoing an SD
> driver they made for a TI chip, not making a TS SD driver.
>
> There are a few SD drivers out there. And a lot of SD information
has leaked.
> I even recall seeing some advanced SD code in the 2.6 Linux
Kernel. I just
> don't know what the interface on the TS boards is?
>
> Is it a simple GPIO interface? self timed? CRC generation? etc.
etc.
>
> Most SD drivers use an SPI interface. Its backwards compatible
with the MMC
> interface which is open. The faster 4 pin interface is
proprietary. But there
> is info out there about it.
>
> Some links to SD and MMC code and hardware:
>
> http://www.sandisk.com/Oem/Manuals/
> http://en.wikipedia.org/wiki/Secure_Digital_Card
> http://www.mmca.org/home
> http://mmc.drzeus.cx/wiki/Welcome
> http://wiki.openwrt.org/OpenWrtDocs/Customizing#head-
00b294c0c885db1d544fbfcd48e9367d20b38b5a
> http://homepage.ntlworld.com/seanellis/mmcserial.htm
> http://www.captain.at/electronics/pic-mmc/
> http://www.captain.at/electronic-atmega-mmc.php
> http://duff.dk/wrt54gs/
> http://www.allaboutjake.com/network/linksys/wrt54g/hack/
> http://www.microchipc.com/sourcecode/#mmc
> http://lwn.net/Articles/7176/
> ftp://ftp.gwdg.de/pub/linux/handhelds/projects/mmc/
> http://www.sparkfun.com/commerce/product_info.php?products_id=136
>
> -Curtis.
>
>
>
> On October 2, 2006 02:31 pm, dustinharriman wrote:
> > Hi Curtis,
> >
> > It seems someone has already reverse engineered the SD driver. 
Some
> > guy named "James" from the debian-arm mailing list tells a story:
> > http://lists.debian.org/debian-arm/2006/07/msg00050.html
> >
> > IMHO, it would be a great idea if Technologic Systems doled out
some
> > complimentary TS-7300's to people like you (as well as Riku
Viopio,
> > Wookey, Lennert Buytenhek and the Debian Developers at
ArmEabiPort
> > (http://wiki.debian.org/ArmEabiPort), as it seems like a very
tangled
> > mess to try to make generalized support in Debian for all the
> > different types of arm cpus out there, as they have widely
differing
> > features in the cpus that need to be treated differently (like
> > Maverickcrunch).
> >
> > I guess I've been spoiled with the ease of compiling and
installing
> > kernels on i386, where I just choose one cpu-specific option
like "AMD
> > Duron" and everything just magically works as expected from
there.
> >
> > I can be convinced to offer login access to my TS-7300 if
developers
> > have a specific task they could figure out that would go a long
way to
> > untangling this mess (and agree to send the patches upstream to
Debian
> > or the linux kernel where it belongs under GPL protection)
> >
> > --- In  Curtis Monroe <curtis@> wrote:
> >
> > > In general you use the existing TS-BOOTROM and RedBoot to boot
your
> > new kernel
> > > from TFTP. This makes changes faster, and limits the chances of
> > corrupting
> > > your board. Once your happy everything works then you can
flash the
> > kernel.
> >
> > Earlier models than the TS-7300 seem to have Redboot (allowing
you to
> > boot from various places like TFTP), but the TS-7300 seems to be
only
> > able to boot straight from an SD card.  From my blog entry on
this here:
> > http://ca.blog.360.yahoo.com/blog-RkGSoVA1brWtXrVH9Gr5CzgVujwwGg-
-?cq=1&p=11
> >
> > "There is no kind of bios whatsoever on the TS-7300 that gives
you
> > flexibility when you're booting.  In other words, TS-7300 makes
very
> > simplistic assumptions when booting.  Here are those assumptions
in a
> > nutshell:
> > -When you power on the TS-7300, an SD card must be in the first
slot.
> > -The SD card it will boot from must be formatted just right,
having
> > special partitioning.
> > -The MBR must contain special code to quickly jump to the first
> > partition.
> > -The first partition must contain the kernel.
> > -The second partition must contain the initrd.
> > -That initrd must contain the driver to support the SD card.
> > -The third partition must contain the / filesystem.
> >
> > More details on this boot process are in the TS-7300 manual (See
> > Section 2.3, which details the boot sequence):
> > http://www.embeddedarm.com/Manuals/ts-7300-manual-rev1.1.pdf";
> >
> > Please correct me if I'm wrong ;)
> >
> > Thanks for the reply,
> > Dustin Harriman
> >
> > My Blog: http://ca.blog.360.yahoo.com/dustinharriman
> > RSS Feed:
> > http://ca.blog.360.yahoo.com/rss-RkGSoVA1brWtXrVH9Gr5CzgVujwwGg--
?cq=1
> >
> > "Freedom is not the capacity to do whatever we please; freedom
is the
> > capacity to make intelligent choices"  -Francis Moore Lappé
> >
> >
> >
> >
>







Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
    
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/



<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU