Hi there, I'm trying to use the uboot ip connection on a som with iMX6DL (for a tftp boot), but the som needs to connect to the cable via a module Microchip KSZ8863 (via RMII), and that's the problem, because uboot seems not recognize the switch and the connection, and I cannot ping any address.
I recompiled the uboot using the PHYLIB and the KSZ8xxx driver, but it not solved my problem. I also tried to add the module into the devicetree of the uboot (copying the configuration of the module used into the kernel devicetree that actually works) but nothing change.
Hi Francesco
for i.MX6DL dts example and switch one can look at
https://community.nxp.com/t5/i-MX-Processors/configure-the-ksz8765-5-port-Ethernet-switch/m-p/759455
from hardware side may be useful to check Chapter 10 Using the RMII Interface
Best regards
igor
Hi Igor,
thank you for your suggestions.
I think that my problem it's only about the u-boot software -not the hardware part-, because I can full access the ethernet interfaces by the kernel, once the linux starts.
The first device tree was useful to understand the configuration of the rmii clock, but the second device tree is only partial useful because unfortunately mine KSZ86xxx is connected on the I2C and not on the SPI bus: can you suggest me a i2c version?
Thank you,
kind regards,
Francesco
Hi Igor,
I found right now that my mainly problem was the missing config of CLK_IMX6Q into the config of the uboot: with this clock support enabled, I get the uboot that starts and recognize the precence of a ethernet net interface, and I have new errors.
Now the board cannot already connect to the network, my thought is that the more important errors to solve now are
ofnode_read_prop: assigned-clock-rates: <not found>
and
Cannot find uclass for id 31: please add the UCLASS_DRIVER() declaration for this UCLASS_... id
Can't find FEC0 clk rate: -96
and I don't find solutions for that right now..
Following, my complete uboot console messages:
U-Boot 2020.04 (Jun 29 2021 - 12:30:32 +0200)
CPU: Freescale i.MX6DL rev1.3 at 792 MHz
Reset cause: POR
Model: US03 DualLite Microsom
CPU rev.= 0x61013
I2C: ready
DRAM: 1 GiB
ofnode_read_prop: assigned-clock-rates: <not found>
ofnode_read_u32_array: ranges: ofnode_read_u32_array: ranges: ofnode_read_u32_array: ranges: ofnode_read_u32: reg: 0x0 (0)
ofnode_read_u32: spi-max-frequency: 0x2dc6c0 (3000000)
ofnode_read_bool: spi-cpol: false
ofnode_read_bool: spi-cpha: false
ofnode_read_bool: spi-cs-high: false
ofnode_read_bool: spi-3wire: false
ofnode_read_bool: spi-half-duplex: false
ofnode_read_u32: spi-tx-bus-width: (not found)
ofnode_read_u32: spi-rx-bus-width: (not found)
ofnode_read_bool: gpio-controller: false
ofnode_read_bool: gpio-controller: false
ofnode_read_bool: gpio-controller: false
ofnode_read_bool: gpio-controller: false
ofnode_read_u32_array: ranges: SEC0: RNG instantiated
MMC: ofnode_read_prop: assigned-clock-rates: <not found>
ofnode_read_prop: assigned-clock-rates: <not found>
ofnode_read_prop: assigned-clock-rates: <not found>
ofnode_read_prop: assigned-clock-rates: <not found>
FSL_SDHC: 0, FSL_SDHC: 1
Loading Environment from MMC... OK
In: serial
Out: serial
Err: serial
ofnode_read_prop: assigned-clock-rates: <not found>
ofnode_read_prop: assigned-clock-rates: <not found>
ofnode_read_prop: assigned-clock-rates: <not found>
ofnode_read_prop: assigned-clock-rates: <not found>
ofnode_read_prop: assigned-clock-rates: <not found>
Found PFUZE100! deviceid=10,revid=21
WARNING: 'hw_code' environment var not found!
MMC: no card present
MMC: no card present
MMC: no card present
switch to partitions #0, OK
mmc1(part 0) is current device
** Invalid partition 6 **
ofnode_read_prop: assigned-clock-rates: <not found>
ofnode_read_prop: assigned-clock-rates: <not found>
ofnode_read_prop: assigned-clock-rates: <not found>
ofnode_read_u32: spi-max-frequency: 0x2dc6c0 (3000000)
ofnode_read_prop: assigned-clock-rates: <not found>
6888624 bytes read in 275 ms (23.9 MiB/s)
sha256 for 12000000 ... 12691caf ==> 29c58183e9765ab53e359074e6e0b68bbe65a339c99877e562a8b47677eb9c45
45333 bytes read in 121 ms (365.2 KiB/s)
sha256 for 18000000 ... 1800b114 ==> 0b8cabdba1feb68e38e5ae6dc6deddd1b11a9c4b0c8a26e8256eaf214f622087
Net: Cannot find uclass for id 31: please add the UCLASS_DRIVER() declaration for this UCLASS_... id
Can't find FEC0 clk rate: -96
Cannot find uclass for id 31: please add the UCLASS_DRIVER() declaration for this UCLASS_... id
Can't find FEC0 clk rate: -96
FEC [PRIME]
Autoboot in 1 seconds
Try booting Linux from SD-card...
MMC: no card present
SD/MMC found on device 0
MMC: no card present
MMC: no card present
Try booting Linux from EMMC, main BSP...
switch to partitions #0, OK
mmc1(part 0) is current device
SD/MMC found on device 1
Try booting Linux from USB stick...
switch to partitions #0, OK
mmc1(part 0) is current device
resetting USB...
USB0: Port not available.
USB1: Resetting MXC USB port 1 ...
Resetting MXC USB port 1 ...
USB EHCI 1.00
scanning bus 1 for devices... EHCI timed out on TD - token=0x80008d80
USB device not accepting new address (error=22)
1 USB Device(s) found
scanning usb for storage devices... 0 Storage Device(s) found
scanning usb for ethernet devices... 0 Ethernet Device(s) found
stopping USB..
Try booting Linux from EMMC, recovery BSP...
switch to partitions #0, OK
mmc1(part 0) is current device
SD/MMC found on device 1