<*>[Attachment(s) from Breton M. Saunders included below]
Ok - here are a series of files for getting the sdcard to work from
bootstrap:
Files:
Copy the following into drivers/block:
sdcore2.c - Jesse's low level i/o for the sdcard
tssdcard.c - ts's shim layer with some rework that I did
tssdcore.h - header file (which will be deprecated in the future)
Compute diff with equivalent files in drivers/block and patch (e.g.
use kompare; etc...):
Makefile
Kconfig
Kernel configuration file:
.config - only two lines matter, however, you should add them to
your .config either manually or through the menuconfig editor
CONFIG_CMDLINE="console=ttyAM0,115200 root=/dev/sda2"
CONFIG_TS_SDCARD=y
Note: the root= line may need to be adjusted depending on how you
configure your sdcard. I use partition 1 to store the kernel (copied to
it via dd), and partition 2 to store an ext2 image created using buildroot.
I tested these files on 2.6.27.31 - and am running into a watchdog
problem; however, the kernel does work and sd support is present.
Notes:
0) The 7800 isn't supported (ep9302 boards only).
1) The code for the dma interface code is present; but I have not
included the dma code itself yet - this will come in a revised patch,
and someone with a 16bit cpld/fpga will need to modify the code to work
on their board.
2) Don't mess around with the configurable parameters THREAD_ENABLE,
or reqmode. Both of these are consistent with a hard-disk based device,
not a nand one. The ocde paths for other than no queue will be removed
in the future.
Good luck, it works for me on a ts7400...
-bms
Breton M. Saunders wrote:
> Breton M. Saunders wrote:
>
>> Eddie Dawydiuk wrote:
>>
>>
>>> Hello,
>>>
>>>
>>>
>>>
>>>>> In view of the other poster , Gary, in the yaffs tragedy thread:
>>>>> http://tech.groups.yahoo.com/group/ts-7000/message/15589 who has three of
>>>>> these boards u/s with this problem and the significant number of returns
>>>>> you have on this , I'd say there is a real issue that needs thorough
>>>>> investigation here.
>>>>>
>>>>>
>>>>>
>>>> Thanks for the pointer, I'll respond to Gary's post. Although, please keep
>>>> in
>>>> mind this is what I would consider a very mature product. That is we have
>>>> not
>>>> made any kernel changes in years, and are unaware of any outstanding bugs.
>>>>
>>>>
>>>>
>>> I took a closer look at Gary's post and I see he built a custom 2.6 kernel,
>>> so I
>>> can't comment on the state of the Yaffs filesystem he chose to use.
>>>
>>>
>>>
>>>
>> I had real problems with this - the yaffs source I obtained from the
>> yaffs-website never worked for me, and debugging it looked like it was
>> going to be quite an effort.
>>
>> I don't believe that the yaffs currently available is compatible with
>> the TS11 one.
>>
> Sorry - I should have clarified - this was in attempting to get a
> reliable 2.6.27.xx system running.
>
> -bms
>
>
> ------------------------------------
>
> Yahoo! Groups Links
>
>
>
<*>Attachment(s) from Breton M. Saunders:
<*> 6 of 6 File(s)
http://groups.yahoo.com/group/ts-7000/attachments/folder/104992629/item/list
<*> .config
<*> Kconfig
<*> Makefile
<*> sdcore2.c
<*> tssdcard.c
<*> tssdcore.h
------------------------------------
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/
|