Re: [beagleboard] How to enable USB power with u-boot?

2017-07-20 Thread Sergey Manucharian
I've found the problem: the USB flash drive I used was USB-3! Everything works as expected with USB-2 devices. On Saturday, July 1, 2017 at 2:42:30 PM UTC-6, RobertCNelson wrote: > > Exactly, 'it' knows... USB should be enabled and powered up by default for > us.. like I said.. u-boot bug... > >

Re: [beagleboard] How to enable USB power with u-boot?

2017-07-01 Thread Robert Nelson
Exactly, 'it' knows... USB should be enabled and powered up by default for us.. like I said.. u-boot bug... On Jul 1, 2017 1:24 PM, "Sergey Manucharian" wrote: Most likely you're right assuming that u-boot must be aware of what particular CPU it's dealing with (otherwise it's

Re: [beagleboard] How to enable USB power with u-boot?

2017-07-01 Thread Sergey Manucharian
Robert is right, it must be a u-boot bug, these treads below are evidences of a proper (more or less) work in the past, in particular, the register mentioned above, is defined. http://u-boot.10912.n7.nabble.com/PATCH-v3-0-3-AM335x-Add-USB-support-in-u-boot-td127575.html

Re: [beagleboard] How to enable USB power with u-boot?

2017-07-01 Thread Robert Nelson
Then that's a u-boot bug, usb should be on after USB start. On Jul 1, 2017 10:03 AM, "Sergey Manucharian" wrote: > Thanks, Robert! > > However, those "loads" just copy kernel/dtb into RAM for subsequent use, > they are not going to change the CPU configuration at u-boot level.

Re: [beagleboard] How to enable USB power with u-boot?

2017-07-01 Thread Sergey Manucharian
Thanks, Robert! However, those "loads" just copy kernel/dtb into RAM for subsequent use, they are not going to change the CPU configuration at u-boot level. They cannot turn on the USB power until the control is passed to the kernel. That way works: I load kernel and dtbs from eMMC, but tell

Re: [beagleboard] How to enable USB power with u-boot?

2017-07-01 Thread Robert Nelson
On Fri, Jun 30, 2017 at 11:04 PM, Sergey Manucharian wrote: > Oh, thanks, William, I was inspired doing this by your post! > > The problem is that "usb start" starts u-boot's USB subsystem, it (probably) > has nothing to do with the CPU. > You explicitly mentioned that used a

Re: [beagleboard] How to enable USB power with u-boot?

2017-06-30 Thread William Hermans
On Fri, Jun 30, 2017 at 9:04 PM, Sergey Manucharian wrote: > Oh, thanks, William, I was inspired doing this by your post! > Oh, cool ! Glad someone reads my stuff now and then ;) > > The problem is that "usb start" starts *u-boot*'s USB subsystem, it > (probably) has nothing

Re: [beagleboard] How to enable USB power with u-boot?

2017-06-30 Thread Sergey Manucharian
Oh, thanks, William, I was inspired doing this by your post! The problem is that "usb start" starts *u-boot*'s USB subsystem, it (probably) has nothing to do with the CPU. You explicitly mentioned that used a USB HDD with external power supply, but I'm trying to boot off a USB flash drive. The

Re: [beagleboard] How to enable USB power with u-boot?

2017-06-30 Thread William Hermans
On Fri, Jun 30, 2017 at 7:50 PM, Sergey Manucharian wrote: > From this thread https://e2e.ti.com/support/arm/sitara_arm/f/791/t/270060: > Modifying bit 0 of 8 bit register address 0x47401C60 it switch on/off > USB1_DRVVBUS pin > But I don't think you have to do all that. Read

Re: [beagleboard] How to enable USB power with u-boot?

2017-06-30 Thread Sergey Manucharian
>From this thread https://e2e.ti.com/support/arm/sitara_arm/f/791/t/270060: Modifying bit 0 of 8 bit register address 0x47401C60 it switch on/off USB1_DRVVBUS pin Is it possible to do from u-boot environment or I'll need to modify u-boot source code? On Friday, June 30, 2017 at 1:19:54 PM

Re: [beagleboard] How to enable USB power with u-boot?

2017-06-30 Thread Sergey Manucharian
That's exactly what I do, it works fine, the problem is that the USB has no power at that time, I have to use an external power supply. On Friday, June 30, 2017 at 1:16:08 PM UTC-6, RobertCNelson wrote: > > > Once you boot into "U-Boot" from the microSD/eMMC, load the files from > the USB flash

Re: [beagleboard] How to enable USB power with u-boot?

2017-06-30 Thread Robert Nelson
On Fri, Jun 30, 2017 at 1:21 PM, Sergey Manucharian wrote: > I'd like to use uboot's USB subsystem to boot off a USB flash drive. > However, the USB power is disabled at boot/reset. When I provide external > power everything works as expected, > > So, how to enable USB power at

[beagleboard] How to enable USB power with u-boot?

2017-06-30 Thread Sergey Manucharian
I'd like to use uboot's USB subsystem to boot off a USB flash drive. However, the USB power is disabled at boot/reset. When I provide external power everything works as expected, So, how to enable USB power at CPU power-up/reset or with u-boot itself? Thanks for advises! -- For more options,