Skip to contentSkip to conversation

Z-Turn board support on U-Boot 2020.10-rc2, got some errors.

DISCUSSION Alexandre GRIVEAUX 2 participants 4 messages Aug 24, 2020 – Aug 26, 2020

lore
Share & tools
lore
#0 lore raw

Hello,

I've tried the u-boot 2020.10-rc2 and it's seem i've got some errors:

U-Boot 2020.10-rc2-00204-gc84341f5ac (Aug 24 2020 - 09:49:25 +0200)

CPU:?? Zynq 7z020
Silicon: v3.1
Model: Zynq Z-Turn MYIR Board
DRAM:? ECC disabled 1 GiB
Flash: 0 Bytes
NAND:? 0 MiB
MMC:?? mmc at e0100000: 0
Loading Environment from SPIFlash... Invalid bus 0 (err=-19) *** Warning - spi_flash_probe_bus_cs() failed, using default environment

In:??? serial at e0001000
Out:?? serial at e0001000
Err:?? serial at e0001000
Net:??
ZYNQ GEM: e000b000, mdio bus e000b000, phyaddr 0, interface rgmii-id Could not get PHY for eth0: addr 0
No ethernet found.

Hit any key to stop autoboot:? 0
Zynq>

According to [0] the board use a winbond W25Q128BVFIG but on the board it's seem to usea spansion FL128SAIF00.

I've checked if FL128SAIF00 is registered on drivers/mtd/spi/spi-nor-ids.c:

({ INFO6("s25fl128s",? 0x012018, 0x4d0180, 64 * 1024, 256, SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | USE_CLSR) },)

I've checked if flash manufacturer was enabled on
configs/xilinx_zynq_virt_defconfig:

CONFIG_SPI_FLASH_SPANSION=y

I checked on [1] to see if the pinout is broken but not.

I dont know how to correct this problem.

For the ethernet it's seem CONFIG_PHY_MICREL_KSZ90X1=y and CONFIG_PHY_MICREL=y was not on configs/xilinx_zynq_virt_defconfig

But adding it doesn't resolve it:

ZYNQ GEM: e000b000, mdio bus e000b000, phyaddr 0, interface rgmii-id Could not get PHY for eth0: addr 0
No ethernet found.

I dont (again) know how to correct this problem.

Can you help me ?

[0] http://www.myirtech.com/download/Zynq7000/Z-TURNBOARD_schematic.pdf

[1]
https://www.xilinx.com/support/documentation/boards_and_kits/zc702_zvik/ug850-zc702-eval-bd.pdf

#1 lore raw

Hi,

Quoted 67 lines · Alexandre GRIVEAUX

Hello,

I've tried the u-boot 2020.10-rc2 and it's seem i've got some errors:

U-Boot 2020.10-rc2-00204-gc84341f5ac (Aug 24 2020 - 09:49:25 +0200)

CPU:?? Zynq 7z020
Silicon: v3.1
Model: Zynq Z-Turn MYIR Board
DRAM:? ECC disabled 1 GiB
Flash: 0 Bytes
NAND:? 0 MiB
MMC:?? mmc at e0100000: 0
Loading Environment from SPIFlash... Invalid bus 0 (err=-19) *** Warning - spi_flash_probe_bus_cs() failed, using default environment

In:??? serial at e0001000
Out:?? serial at e0001000
Err:?? serial at e0001000
Net:??
ZYNQ GEM: e000b000, mdio bus e000b000, phyaddr 0, interface rgmii-id Could not get PHY for eth0: addr 0
No ethernet found.

Hit any key to stop autoboot:? 0
Zynq>

According to [0] the board use a winbond W25Q128BVFIG but on the board it's seem to usea spansion FL128SAIF00.

I've checked if FL128SAIF00 is registered on drivers/mtd/spi/spi-nor-ids.c:

({ INFO6("s25fl128s",? 0x012018, 0x4d0180, 64 * 1024, 256, SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | USE_CLSR) },)

I've checked if flash manufacturer was enabled on
configs/xilinx_zynq_virt_defconfig:

CONFIG_SPI_FLASH_SPANSION=y

I checked on [1] to see if the pinout is broken but not.

I dont know how to correct this problem.

For the ethernet it's seem CONFIG_PHY_MICREL_KSZ90X1=y and CONFIG_PHY_MICREL=y was not on configs/xilinx_zynq_virt_defconfig

But adding it doesn't resolve it:

ZYNQ GEM: e000b000, mdio bus e000b000, phyaddr 0, interface rgmii-id Could not get PHY for eth0: addr 0
No ethernet found.

I dont (again) know how to correct this problem.

Quoted 8 lines

Can you help me ?

[0] http://www.myirtech.com/download/Zynq7000/Z-TURNBOARD_schematic.pdf

[1]
https://www.xilinx.com/support/documentation/boards_and_kits/zc702_zvik/ug850-zc702-eval-bd.pdf

It looks like that manufacturer created different versions where they are not compatible to each other. Please take a look at this thread.
https://www.spinics.net/lists/arm-kernel/msg800078.html

I didn't accepted the patch because none else didn't test it on both revisions.
Issue with spi flash can be also related.

Thanks,
Michal

Signature · 14 lines
Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel - Xilinx Microblaze
Maintainer of Linux kernel - Xilinx Zynq ARM and ZynqMP ARM64 SoCs
U-Boot custodian - Xilinx Microblaze/Zynq/ZynqMP/Versal SoCs


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: OpenPGP digital signature
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200824/30aef0aa/attachment.sig>
#2 lore raw
Quoted 2 lines · Michal Simek

Hi,

Hi

Quoted 10 lines

It looks like that manufacturer created different versions where they are not compatible to each other. Please take a look at this thread.
https://www.spinics.net/lists/arm-kernel/msg800078.html

I didn't accepted the patch because none else didn't test it on both revisions.
Issue with spi flash can be also related.

Thanks,
Michal

Seem right to me to test things, I can test on the board (V5), maybe Alexander Graf could help with V4 [0] ?

As a reminder the board can be populated with a Xilinx XC7Z010 or Xilinx XC7Z020.

Maybe we need to create another DT ?

Thanks.

[0] I don't know how to get one for testing, that's why i added Alexander in copy.

#3 lore raw
Quoted 15 lines · Alexandre GRIVEAUX
Quoted 2 lines · Michal Simek

Hi,

Hi

Quoted 10 lines

It looks like that manufacturer created different versions where they are not compatible to each other. Please take a look at this thread.
https://www.spinics.net/lists/arm-kernel/msg800078.html

I didn't accepted the patch because none else didn't test it on both revisions.
Issue with spi flash can be also related.

Thanks,
Michal

Quoted 7 lines

Seem right to me to test things, I can test on the board (V5), maybe Alexander Graf could help with V4 [0] ?

As a reminder the board can be populated with a Xilinx XC7Z010 or Xilinx XC7Z020.

Maybe we need to create another DT ?

No problem with that. But also if none is interested in V4 version we can just remove it and convert it to V5 which should be visible from compatible string.

Thanks,
Michal

Signature · 14 lines
Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel - Xilinx Microblaze
Maintainer of Linux kernel - Xilinx Zynq ARM and ZynqMP ARM64 SoCs
U-Boot custodian - Xilinx Microblaze/Zynq/ZynqMP/Versal SoCs


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: OpenPGP digital signature
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200826/527bb754/attachment.sig>