using petalinux 2021.2 vitis 2021.2 image from eMMC (sd0) image.ub read by u-boot takes a long time (~19sec): Trying to load boot images from mmc0 286172648 bytes read in 18889 ms (14.4 MiB/s) how can i significantly increase transfer rate?
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 28/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- linux
- Lĩnh vực
- embedded-iot, operating-systems
Hướng nghiên cứu
Start with the U-Boot fatload mmc 0 0x1000000 image.ub measurement and compare it with the mmcinfo output showing HS200 and an 8-bit bus. Check the reported /sys/kernel/debug/mmc0/ios settings and boot logs to identify where the transfer rate is limited. Done means the bottleneck is identified and a measured transfer-rate improvement is demonstrated.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
using
petalinux 2021.2
vitis 2021.2
image from eMMC (sd0)
root FS type:
initramfs FS
boot.bin, image.ub and boot.scr are located at FAT32 partition of the eMMC.
image.ub read by u-boot takes a long time (~19sec):
Trying to load boot images from mmc0
286172648 bytes read in 18889 ms (14.4 MiB/s)
how can i significantly increase transfer rate?
hi,
here is the log from u-boot:
switch to partitions #0, OK
mmc0(part 0) is current device
Scanning mmc 0:1...
Found U-Boot script /boot.scr
2710 bytes read in 16 ms (165 KiB/s)
Executing script at 20000000
Trying to load boot images from mmc0
286172648 bytes read in 18889 ms (14.4 MiB/s)
Loading kernel from FIT Image at 10000000 ...
I GET while stop at u-boot stage:
ZynqMP> version
U-Boot 2021.01 (Oct 12 2021 - 09:28:42 +0000)
ZynqMP> mmc list
mmc@ff160000: 0 (eMMC)
mmc@ff170000: 1
ZynqMP> mmc dev 0
switch to partitions #0, OK
mmc0(part 0) is current device
ZynqMP> mmcinfo
Device: mmc@ff160000
Manufacturer ID: 70
OEM: 100
Name: W5251
Bus Speed: 199999998
Mode: HS200 (200MHz)
Rd Block Len: 512
MMC version 5.0
High Capacity: Yes
Capacity: 14.3 GiB
Bus Width: 8-bit
Erase Group Size: 512 KiB
HC WP Group Size: 16 MiB
User Capacity: 14.3 GiB
Boot Capacity: 4 MiB ENH
RPMB Capacity: 4 MiB ENH
Boot area 0 is not write protected
Boot area 1 is not write protected
as expected.
the big problem is:
**ZynqMP> fatload mmc 0 0x1000000 image.ub
286172648 bytes read in 18889 ms (14.4 MiB/s)
it takes 19 seconds to u-boot to read image.ub.
why read transfer rate is so slow, 14.4MiB/s??????**
**we have 200MHz reference clock from PS subsystem, 8 bus width, means 200MByte/s capacity..so according my calculation :
286172648/200000000 = 1.43 SECONDS.
am i wrong?**
in addition kernel debug is also fine:
root@petalinux:~# 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: 3 (8 bits)
timing spec: 9 (mmc HS200)
signal voltage: 1 (1.80 V)
driver type: 0 (driver type B)
can somebody help?
thanks and best regards
- Ngôn ngữ chính
- Không có dữ liệu ngôn ngữ
- Star
- 172
- Fork
- 70
- Merge trung bình
- 9 phút
- Pull request đã merge (30 ngày)
- 1
Chuẩn bị môi trường
Chúng tôi chưa kiểm tra các tệp thiết lập môi trường của dự án này. Hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của Xilinx/Embedded-Design-Tutorials
-
Bad Header in hello_pl.cĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 45/100
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 48/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
-
timer_psled_r5.c is brokenĐang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 55/100
Xilinx/Embedded-Design-Tutorials#52 · 3 bình luận ·
Tất cả issue của Xilinx/Embedded-Design-Tutorials
Issue tương tự
-
WaterHeaterManagement: tank_percent feature reports wrong feature id (FeatureMap corruption)Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 92/100
espressif/esp-matter#1867 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
ARM-software/sysarch-acs#556 · 1 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug needs triage
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
project-chip/connectedhomeip#74434 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
good first issue open-endedness: low type: new feature
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100