Skip to contentSkip to conversation

porting kernel driver to u-boot

U-Boot-Users Mark T. 3 participants 4 messages Oct 15, 2007 – Oct 16, 2007

lore
Share & tools
lore

Mark T.

author
#0 lore raw

Good Evening,
I am looking for some pointers on how to port Linux kernel drivers to u-Boot. Specifically, Diskonchip from Sandisk/m-systems. I can not find any instructions nor tips on where to start. I started looking at drivers for the same devices but this is very slow process.

Any suggestions will be greatly appreciated.
Thanks,
Mark
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20071015/5fcf4819/attachment.htm

#1 lore raw
Quoted 3 lines · In message <001101c80f7b$aad096d0$5a71e1cc@voipmandesktop> you wrote:

I am looking for some pointers on how to port Linux kernel drivers to u-Boot. Specifically, Diskonchip from Sandisk/m-systems.

Hm... why don't you simply use the existing DoC support in U-Boot?

Quoted 3 lines
Content-Type: text/html;
	charset="Windows-1252"

Content-Transfer-Encoding: quoted-printable

Rule 1 here is: Never post HTML. Never ever!

Best regards,

Wolfgang Denk

Signature · 6 lines
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
It is common sense to take a method and try it. If it fails, admit it
frankly and try another. But above all, try something.
                                              - Franklin D. Roosevelt
author
#2 lore raw

Hello All,
As per Wolfgang's suggestion I am trying first to use existing DoC driver.
This is for a custom board based on ADI's Blackfin BF537 CPU.

I am having problem with undefined EIEIO, which is specific to PPC arch. The blackfin asm/io.h has nothing about EIEIO

common/libcommon.a(cmd_doc.o): In function DoC_WriteBuf':/home/mark/ development/u-boot/common/cmd_doc.c:598: undefined reference to eieio' /home/mark/development/u-boot/common/cmd_doc.c:601: undefined reference to `eieio'
common/libcommon.a(cmd_doc.o): In function DoC_SelectFloor':/home/ mark/development/u-boot/common/cmd_doc.c:637: undefined reference to eieio'
common/libcommon.a(cmd_doc.o): In function DoC_SelectChip':/home/ mark/development/u-boot/common/cmd_doc.c:614: undefined reference to eieio'
/home/mark/development/u-boot/common/cmd_doc.c:618: undefined reference to eieio' common/libcommon.a(cmd_doc.o):/home/mark/development/u-boot/common/ cmd_doc.c:622: more undefined references to eieio'
followmake: *** [u-boot] Error 1

I am wondering if anyone has DoC working on platform other than PPC? Any suggestions?

Regards,
Mark

Quoted 8 lines · Wolfgang Denk
Quoted 3 lines · In message <001101c80f7b$aad096d0$5a71e1cc@voipmandesktop> you wrote:

I am looking for some pointers on how to port Linux kernel drivers to u-Boot. Specifically, Diskonchip from Sandisk/m-systems.

Hm... why don't you simply use the existing DoC support in U-Boot?

Quoted 1 line

-- Mark
___________________________________
uClinux/Asterisk distribution for Blackfin CPU
http://astfin.org
http://sourceforge.net/projects/astfin/
___________________________________

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20071015/c1068e26/attachment.htm

#3 lore raw
Quoted 7 lines · On Mon, 15 Oct 2007 22:31:49 -0400 Mark T <[email protected]> wrote:

common/libcommon.a(cmd_doc.o):/home/mark/development/u-boot/common/ cmd_doc.c:622: more undefined references to `eieio'
followmake: *** [u-boot] Error 1

I am wondering if anyone has DoC working on platform other than PPC? Any suggestions?

mtd/doc2000.h should probably be changed to use sync() (assuming that's a safe eieio replacement for your platform).

Kim