[U-Boot-Users] USB Uboot on OSK5912
Shivdas Gujare
shivdas.gujare at gmail.com
Fri Jul 25 14:08:52 CEST 2008
Hi All,
firstly Before going to boot from USB key, I tried to make working flash
"uImage to OSK5912" using USB.
and after compiling drivers/usb/usbdcore_omap1510.c with adding following
macros
to include/configs/omap5912osk.h
#define CONFIG_CMD_USB 1
#define CONFIG_USB_DEVICE 1
#define CONFIG_USB_TTY 1
#define CFG_CONSOLE_IS_IN_ENV 1
#define CONFIG_USBD_MANUFACTURER "OSK5912"
#define CONFIG_USBD_PRODUCT_NAME "Osk5912 Bootloader " U_BOOT_VERSION
#define CONFIG_EXTRA_ENV_SETTINGS "usbtty=cdc_acm\0"
after this, I set "setenv stdout usbtty" and "setenv usbtty cdc_acm" from
U-boot serial console.
Now, I am, able to get U-boot console over USB after connecting to Linux
Host.
But I am facing following problems,
1) I am getting every typed character twice(i.e. like local echo, but I
checked local echo of minicom, it is off. same is happening
using kermit also.)
like following,
------------------------------------------------
Welcome to minicom 2.2
OPTIONS: I18n
Compiled on Mar 9 2007, 07:21:40.
Port /dev/ttyUSB0
Press CTRL-A Z for help on special keys
OMAP5912 OSK # OMAP5912 OSK #
OMAP5912 OSK # OMAP5912 OSK # sseeteennvv ssttddiinn uussbbtttyy
OMAP5912 OSK # OMAP5912 OSK #
OMAP5912 OSK # AT S7=45 S0=0 L1 V1 X4 &c1 E1 Q0AT S7=45 S0=0 L1 V1 X4 &c1 E1
Q0
Unknown command 'AT' - try 'help'
Unknown command 'AT' - try 'help'
OMAP5912 OSK # OMAP5912 OSK #
OMAP5912 OSK # OMAP5912 OSK #
----------------------------------------------------------------------------
Also, this is not stable and gets disconnected offen. Please, suggest if
have any Idea to resolve this problem.
2)also to download uImage to OSK(because loadb uses kermit), I installed
Kermit.
Now, if I try to send uImage to OSK5912, it continues for some time, and
connection gets lost, and OSK5912 U-boot
Serial console(i.e. over /dev/ttyS0) comes up, with some older flashed
u-boot.bin
Not, sure why this is happening. Please, suggest if any Idea.
Thanks and Regards,
Shivdas Gujare
On Mon, Jul 21, 2008 at 4:15 PM, Markus Klotzbücher <mk at denx.de> wrote:
> "Shivdas Gujare" <shivdas.gujare at gmail.com> writes:
>
> > I am working on getting USB-uboot working on OSK5912.
> > from linux USB gadget "device controller drivers" (i.e.
> > kernel/drivers/usb/gadget/) it looks like
> > USB core for omap1510 and OSK5912 is same..But not sure, please confirm
>
> No idea. You will have to RTFM.
>
> > I done following steps.
> > 1)make mrproper
> > 2)make omap5912osk_config
> > 3)go to include/configs/omap5912osk.h
> > and edit this file with following macros.
> > .
> > #define CONFIG_DOS_PARTITION 1
> >
> > #define CONFIG_USB_OHCI 1
>
> Drop this. This would enable the old OHCI support.
>
> > #define CONFIG_USB_OHCI_NEW 1
> > #define CFG_USB_OHCI_MAX_ROOT_PORTS 1
> > #define CFG_USB_OHCI_SLOT_NAME "osk5912"
> > #define CFG_USB_OHCI_REGS_BASE 0xfffba000
> > #define CONFIG_USB_STORAGE 1
> >
> > #define CFG_USB_OHCI_BOARD_INIT 1
> > #define CFG_USB_OHCI_CPU_INIT 1
>
> You *might* have to implement these in order to enable power, clocks ...
>
> > #define CONFIG_CMD_USB 1
> >
> > 4)after this, I am able to see USB command enabled on Uboot console.
> > but I am not able to see Mass-storage detected after inserting pendrive
> > and doing "usb start"
>
> You probably missed some initialization. Carefully check the
> documentation of you CPU and implement it in the functions above.
>
> > 5) from docs/README.generic_usb_ohci, It looks like usb_board_init/stop
> and
> > usb_cpu_init/stop
> > functions are missing and needs to be implemented.
>
> Exactly.
>
> Best regards
>
> Markus Klotzbuecher
>
> --
> DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
> HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
> Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20080725/b2c4c1b0/attachment.htm
More information about the U-Boot
mailing list