USB support at U-boot level

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

USB support at U-boot level

13,275 Views
deexith_venkate
Contributor I

Hii,

I am currently working on a i.mx6(dual) based custom board. My question is can i integrate the functionality of "usb start" command line utility to the U-boot source code(to my board c file)?? USB slot works fine after executing the "usb start" argument at the U-boot level. Is there any way i can make USB slot work without using "usb start" at the U-boot level, I mean usb working by default after flashing!!

U-Boot version: 2017

Regards,

Kumar

0 Kudos
Reply
4 Replies

1,214 Views
turker
Contributor IV

You may check cmd/usb.c to see what "usb start" command does and try to adapt that to your board.

0 Kudos
Reply

1,214 Views
radhikasomaiya
Senior Contributor II

Hi Kumar DP,

You can add things to the bootcmd environment variable (and this can be changed in the boards config.h file so that the default environment is changed). So what you would want to do is:

<U-Boot>= setenv bootcmd 'usb start'

Regards,

Radhika Somaiya

0 Kudos
Reply

1,214 Views
deexith_venkate
Contributor I

Hii Radhika,

Even my first approach was the same, but dint work for me!! 

Regards,

Kumar

0 Kudos
Reply

1,214 Views
deexith_venkate
Contributor I

Hello igorpadykov‌,

Can you kindly look into this and help me out???

Regards,

Kumar

0 Kudos
Reply