Forum Discussion
Hi
Could you share the demsg logs of the system?
Regards
JIngyang, Teh
- Mysteriaa10 months ago
New Contributor
Hi,
I don't have something like dmesg logs, or I don't know how to access them on the Cyclone V. I'll show you the full output that I see serially from the Cyclone V via UART:
U-Boot SPL 2013.01.01 (Sep 19 2018 - 18:47:18) BOARD : Altera SOCFPGA Cyclone V Board CLOCK: EOSC1 clock 25000 KHz CLOCK: EOSC2 clock 25000 KHz CLOCK: F2S_SDR_REF clock 0 KHz CLOCK: F2S_PER_REF clock 0 KHz CLOCK: MPU clock 925 MHz CLOCK: DDR clock 400 MHz CLOCK: UART clock 100000 KHz CLOCK: MMC clock 50000 KHz CLOCK: QSPI clock 370000 KHz RESET: COLD INFO : Watchdog enabled SDRAM: Initializing MMR registers SDRAM: Calibrating PHY SEQ.C: Preparing to start memory calibration SEQ.C: CALIBRATION PASSED SDRAM: 1024 MiB SDRAM: Initializing SDRAM ECC SDRAM: ECC initialized successfully with 1590 ms SDRAM: ECC Enabled [00:00:00.207,000] <err> net_if: There is no network interface to work with! *** Booting Zephyr OS build v4.0.0-3096-g25a4a49477ef *** Run dhcpv4 client-RKAnother Input: in ...\zephyrproject\zephyr\drivers\ethernet\eth_cyclonev.c there is the following content:
Driver specifically designed for Cyclone V SoC DevKit use only.* based on Intel SOC FPGA HWLIB Repo https://github.com/altera-opensource/intel-socfpga-hwlib
And in the git-repo there is the folling Table:
Therefore i got errors, that the "properties" phy-mode isn't define, so have to do the following:
--> in ...\zephyrproject\zephyr\dts\bindings\ethernet\snps,ethernet-cyclonev.yaml
--> i had to add the property phy-mode myself
--> so what is the message that the devoloper of this code wanna say me? I dont need an overlay-file? or i dont need to mention phy-mode and mdio? But it doesn't work eithter...Maybe zephyr doesen't support Internet/Ethernet Connecetion with this board. The necessary files are there, but not all of them i think. For Example, the following files exist:
--> ...\zephyrproject\zephyr\drivers\ethernet\eth_cyclonev.c
--> ...\zephyrproject\zephyr\drivers\ethernet\eth_cyclonev_priv.h
--> ...\zephyrproject\zephyr\drivers\ethernet\phy_cyclonev.c
--> ...\zephyrproject\zephyr\drivers\ethernet\Kconfig.cyclonev
For me that a very good sign, that it has to be possible, but as you have mentioned, we need MDIO, but if i try to implement your suggest, then i get a lot of warinings and errors and one of them is very interesting:CMake Warning at C:/Users/kir/zephyrproject/zephyr/CMakeLists.txt:1002 (message):
No SOURCES given to Zephyr library: drivers__mdioIf i look in the following directory: C:\Users\kir\zephyrproject\zephyr\drivers\mdio
--> then there are a lot of files for example for esp32, stm32, ... but i cant find something for cyclonev....What i should do? Is this a sign that i do not need to mention mdio in the overlay-file? I am a little bit lost