Skip to contentSkip to conversation

Serial driver for smdk2440 board

U-Boot-Users Jhavk 2 participants 2 messages Nov 1, 2004

lore
Share & tools
lore

Jhavk

author
#0 lore raw

I was testing my hello_world application. It jumps corectly but prints some crap and then returns.

I think since there is no serial driver in uboot for s3c2440 therefore it gives junk output.

I have found a serial driver for my smdk2440 board in linux/drivers/serial/serial_s3c2440.c

So i now would like to plug in that driver in uboot. What are the steps for plugging a new driver?

Also where does the driver get initialised?

Regards,
Jhavk

__________________________________
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_mail

#1 lore raw
Quoted 5 lines · In message <[email protected]> you wrote:

I was testing my hello_world application. It jumps corectly but prints some crap and then returns.

I think since there is no serial driver in uboot for s3c2440 therefore it gives junk output.

Ummm... If you have U-Boot running to the extend that you are able to load and start a standalone program, then there is also a serial driver in place and working. Or what do you think where the U-Boot console messages are coming from?

Quoted 4 lines

I have found a serial driver for my smdk2440 board in linux/drivers/serial/serial_s3c2440.c

So i now would like to plug in that driver in uboot.

No, you don't want to do that. The difference between a full-fledged Linux serial driver and an U-Boot console driver are about as the differences between an ICBM and an arrow.

Quoted 1 line

What are the steps for plugging a new driver?

Understand the hardware. Understand the U-Boot design. Code the driver. Debug the driver. Submit a patch.

Quoted 1 line

Also where does the driver get initialised?

Probably in serial_init() ?

Best regards,

Wolfgang Denk

Signature · 4 lines
See us @ Embedded/Electronica Munich, Nov 09 - 12, Hall A.6 Booth 513
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
I have been over into the future, and it works.
                - Lincoln Steffens in _Letters_ (1938) vol. 1, p. 463