gosha-z 3 February 27, 2019 Posted February 27, 2019 · Report post Посмотрел в исходники драйверов - bus-width указывается явно. Так что правьте убутский device tree. Если, разумеется, в конфигурации PS все стоит как надо. Quote Share this post Link to post Share on other sites More sharing options...
doom13 0 February 28, 2019 Posted February 28, 2019 · Report post В настройках PS всё правильно Quote Share this post Link to post Share on other sites More sharing options...
gosha-z 3 February 28, 2019 Posted February 28, 2019 · Report post Ну значит правильно. Пишите правильный U-Boot и будет вам счастие. На petalinux-config особо не надейтесь. Vivado какой версии пользуете? И, кстати, с описанием Dual Parallel QSPI тоже нюансы есть. Quote Share this post Link to post Share on other sites More sharing options...
doom13 0 February 28, 2019 Posted February 28, 2019 · Report post 10 hours ago, gosha-z said: Посмотрел в исходники драйверов - bus-width указывается явно. Так что правьте убутский device tree. Можете тут рассказать подробнее. Пока пробовал в <plnx_proj>/components/plnx_workspace/device-tree/device-tree добавить system-user.dtsi /* system-user.dtsi */ /include/ "system-conf.dtsi" / { }; /* SD0 eMMC, 8-bit wide data bus */ /* non-removable; */ /* broken-mmc-highspeed; */ &sdhci0 { status = "okay"; bus-width = <8>; clock-frequency = <200000000>; max-frequency = <200000000>; }; но не помогло. 3 minutes ago, gosha-z said: Vivado какой версии пользуете? 2018.2 Quote Share this post Link to post Share on other sites More sharing options...
gosha-z 3 February 28, 2019 Posted February 28, 2019 · Report post Это ядреный или убутский device tree? Есть у меня подозрение, что ядреный, а убутский по умолчанию тупо берется от zcu102... Quote Share this post Link to post Share on other sites More sharing options...
doom13 0 February 28, 2019 Posted February 28, 2019 · Report post Ёще есть такая директория: /<plnx_proj>/project-spec/meta-user/recipes-bsp/device-tree/files в ней есть system-user.dtsi, как понимаю, его и предполагалось править. Quote Share this post Link to post Share on other sites More sharing options...
gosha-z 3 February 28, 2019 Posted February 28, 2019 · Report post Тормозните убут на загрузке и посмотрите, какой device tree в него вкомпилен - так проще всего. Quote Share this post Link to post Share on other sites More sharing options...
doom13 0 February 28, 2019 Posted February 28, 2019 · Report post Попробовал слить с git исходники для u-boot и собрать их по инструкции Build U-Boot с конфигурацией xilinx_zynqmp_mini_emmc0_defconfig, вообще не стартануло. 6 minutes ago, gosha-z said: Тормозните убут на загрузке и посмотрите, какой device tree в него вкомпилен - так проще всего. Quote NOTICE: ATF running on XCZU9EG/silicon v3/RTL5.1 at 0xfffea000 NOTICE: BL31: Secure code at 0x0 NOTICE: BL31: Non secure code at 0x8000000 NOTICE: BL31: v1.4(release):xilinx-v2018.1-4-g93a69a5a NOTICE: BL31: Built : 13:36:35, Feb 26 2019 PMUFW: v1.0 U-Boot 2018.01 (Feb 27 2019 - 17:59:58 +0300) Xilinx ZynqMP ZCU102 rev1.0 I2C: ready DRAM: 2 GiB EL Level: EL2 Chip ID: zu9eg MMC: sdhci@ff160000: 0 (eMMC) SF: Detected n25q1024a with page size 512 Bytes, erase size 128 KiB, total 256 MiB *** Warning - bad CRC, using default environment In: serial@ff000000 Out: serial@ff000000 Err: serial@ff000000 Board: Xilinx ZynqMP Bootmode: QSPI_MODE Net: ZYNQ GEM: ff0e0000, phyaddr ffffffff, interface rgmii-id eth0: ethernet@ff0e0000 U-BOOT for zynqmp Hit any key to stop autoboot: 1 0 ZynqMP> Это оно? Quote Share this post Link to post Share on other sites More sharing options...
gosha-z 3 February 28, 2019 Posted February 28, 2019 · Report post Именно, дефолтный конфиг от ZCU102 Кстати, какой eMMC камень, в итоге, поставили? Quote Share this post Link to post Share on other sites More sharing options...
doom13 0 February 28, 2019 Posted February 28, 2019 · Report post MTFC8GAKAJCN Самсунговский вроде тож запустился, на другой плате, на первой был плохо запаян, но по нему пока есть вопросы. Quote Share this post Link to post Share on other sites More sharing options...
gosha-z 3 February 28, 2019 Posted February 28, 2019 · Report post Тогда, возвращаясь к нашим баранам: сделайте правильный U-Boot - и будет вам счастие. Quote Share this post Link to post Share on other sites More sharing options...
doom13 0 February 28, 2019 Posted February 28, 2019 · Report post Такие логи нахожу на сайте Xilinx Quote Xilinx Zynq MP First Stage Boot Loader Release 2017.3 Feb 15 2018 - 13:54:00 NOTICE: ATF running on XCZU3EG/silicon v4/RTL5.1 at 0xfffea000, with PMU firmware NOTICE: BL31: Secure code at 0x0 NOTICE: BL31: Non secure code at 0x8000000 NOTICE: BL31: v1.3(release):f9b244b NOTICE: BL31: Built : 08:21:53, Feb 15 2018 U-Boot 2017.01 (Feb 15 2018 - 13:54:12 +0530) Xilinx ZynqMP ZCU102 revB I2C: ready DRAM: 2 GiB EL Level: EL2 Chip ID: xczu3eg MMC: sdhci@ff160000: 0 (eMMC), sdhci@ff170000: 1 (SD), sdhci@ff170000: 2 (SD) zynqmp_qspi_ofdata_to_platdata: CLK 124999999 SF: Detected n25q256a with page size 512 Bytes, erase size 128 KiB, total 64 MiB *** Warning - bad CRC, using default environment In: serial Out: serial Err: serial Bootmode: SD_MODE1 Net: ZYNQ GEM: ff0e0000, phyaddr ffffffff, interface rgmii-id eth0: ethernet@ff0e0000 U-BOOT for myxprj Hit any key to stop autoboot: 0 Device: sdhci@ff160000 Manufacturer ID: 13 OEM: 14e Name: Q2J55 Tran Speed: 200000000 Rd Block Len: 512 MMC version 5.0 High Capacity: Yes Capacity: 7.1 GiB Bus Width: 8-bit Erase Group Size: 512 KiB HC WP Group Size: 8 MiB User Capacity: 7.1 GiB WRREL Boot Capacity: 16 MiB ENH RPMB Capacity: 4 MiB ENH reading image.ub 13410164 bytes read in 977 ms (13.1 MiB/s) Разница с моей конфигурацией в BOOT_MODE, тут - SD_BOOT, в моём случае - QSPI_BOOT, а потом SD. Тут стандартный конфиг для zcu102 (правда более старая версия) переключил шину eMMC в 8bit. Quote Share this post Link to post Share on other sites More sharing options...
gosha-z 3 February 28, 2019 Posted February 28, 2019 · Report post Ну значит конфиг (а точнее его DT) так написан. Можно сделать любой конфиг с любым device tree. Quote Share this post Link to post Share on other sites More sharing options...
doom13 0 February 28, 2019 Posted February 28, 2019 · Report post Проверил, как система видит eMMC Quote root@zynqmp:~# cat /sys/kernel/debug/mmc0/ios clock: 200000000 Hz actual clock: 200000000 Hz vdd: 21 (3.3 ~ 3.4 V) bus mode: 2 (push-pull) chip select: 0 (don't care) power mode: 2 (on) bus width: 2 (4 bits) timing spec: 9 (mmc HS200) signal voltage: 1 (1.80 V) driver type: 0 (driver type B) root@zynqmp:~# root@zynqmp:~# Печаль( Quote Share this post Link to post Share on other sites More sharing options...
gosha-z 3 February 28, 2019 Posted February 28, 2019 · Report post ls -l /sys/firmware/devicetree/base/amba/sdhci* Quote Share this post Link to post Share on other sites More sharing options...