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