Changes between Version 7 and Version 8 of linux/OTG


Ignore:
Timestamp:
03/29/2021 11:26:32 PM (3 years ago)
Author:
Cale Collins
Comment:

added example for editing dtb in bootloader

Legend:

Unmodified
Added
Removed
Modified
  • linux/OTG

    v7 v8  
    397397}}}
    398398
     399This can be done in the bootloader, here's an example for GW54xx:
     400
     401{{{
     402setenv fixfdt 'fdt addr ${fdt_addr}; fdt resize; fdt set /soc/aips-bus@2100000/usb@2184000 dr_mode host' # host mode
     403setenv fixfdt 'fdt addr ${fdt_addr}; fdt resize; fdt set /soc/aips-bus@2100000/usb@2184000 dr_mode gadget' # gadget mode
     404saveenv #once you have made your selection
     405}}}
     406
    399407Additionally some host controllers such as the Chips and Media controller used on the IMX6 have hooks that allow them to be configured at runtime in Linux Userspace. For example on IMX6 boards:
    400408{{{#!bash