[U-Boot-Users] porting kernel driver to u-boot

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

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?
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

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
On 15-Oct-07, at 7:05 PM, Wolfgang Denk wrote:
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?
-- Mark ___________________________________ uClinux/Asterisk distribution for Blackfin CPU http://astfin.org http://sourceforge.net/projects/astfin/ ___________________________________

On Mon, 15 Oct 2007 22:31:49 -0400 Mark T mark@astfin.org 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
participants (4)
-
Kim Phillips
-
Mark T
-
Mark T.
-
Wolfgang Denk