R-Car/Boards/Yocto-Gen3-CommonFAQ/How to load image via network connection over USB-ether adapter on U-boot.

From eLinux.org
< R-Car‎ | Boards/Yocto-Gen3-CommonFAQ
Revision as of 18:51, 12 November 2020 by Y.H. (talk | contribs) (Created page with "== How to load image via network connection over USB-ether adapter on U-boot. == {| class="wikitable" |+ Confirmed USB-Ether adapter |- ! Vendor ! Name |- | Logitec | LAN-TXU...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

How to load image via network connection over USB-ether adapter on U-boot.

Confirmed USB-Ether adapter
Vendor Name
Logitec LAN-TXU2C
Example(Yocto v3.21.0 + h3ulcb v3.0):

Build U-boot with USB-Ehter configs enabled

bitbake u-boot
cd work/h3ulcb-poky-linux/u-boot/1_v2018.09+gitAUTOINC+6ea9ca82bb-r0/git/
vim configs/r8a7795_ulcb-4x2g_defconfig
# :Add following lines:
   CONFIG_USB_HOST_ETHER=y
   CONFIG_USB_ETHER_ASIX=y
   CONFIG_USB_ETHER_ASIX88179=y
git add configs/r8a7795_ulcb*_defconfig
git commit -m "defconfig: Add USB-ETHER configs"
git format-patch -1
cp 0001-defconfig-Add-USB-ETHER-configs.patch \
 ${WORK}/meta-renesas/meta-rcar-gen3/recipes-bsp/u-boot/u-boot/
echo -e 'FILESEXTRAPATHS_prepend := "${THISDIR}:"\nSRC_URI_append = "\\\n  file://0001-defconfig-Add-USB-ETHER-configs.patch \\\n"' \
    > ${WORK}/meta-renesas/meta-rcar-gen3/recipes-bsp/u-boot/u-boot_2018.09.bbappend
bitbake u-boot
How to load kernel/devicetree using USB-Ether
=> usb start
starting USB...
Bus usb@ee0a0100: USB EHCI 1.10
scanning bus usb@ee0a0100 for devices...
Warning: asix_eth using MAC address from ROM
2 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
=>setenv ethact asix_eth
=> setenv ipaddr aa.bb.cc.dd
=> set serverip AA.BB.CC.DD
=> setenv bootargs 'rw root=/dev/nfs nfsroot=<serverip>:/nfs/h3ulcb ip=<ipaddr>:::::eth1'
=> tftp 0x48080000 ${PATH}/Image; tftp 0x48000000 ${PATH}/Image-r8a7795-h3ulcb-4x2g.dtb; booti 0x48080000 - 0x48000000