YuzukiHD / TinyVision

TinyVision - A Tiny Linux Board / IPC / Server / Router / And so on...
https://yuzukihd.top/TinyVision/#/
GNU Lesser General Public License v2.1
154 stars 19 forks source link

运行Tina 4.0编译出来的固件启动出现错误 I2C: [I2C-ERROR]:twi_send_clk_9pulse() 147 SDA is still Stuck Low, failed. ready #33

Closed LmMuyu closed 3 months ago

LmMuyu commented 3 months ago

[178]HELLO! BOOT0 is starting! [181]BOOT0 commit : 5841e68a26 [274][pmu]: bus read error [276]set pll start [278]periph0 has been enabled [281]set pll end [283]board init ok [285]DRAM use internal ZQ!! [288]ZQ value = 0x2e [290]chip id check OK [292]POWER SETTING ERROR! [294]trefi:7.8ms [297][AUTO DEBUG] single rank and full DQ! [301]trefi:7.8ms [303][AUTO DEBUG] rank 0 row = 13 [307][AUTO DEBUG] rank 0 bank = 4 [310][AUTO DEBUG] rank 0 page size = 2 KB [314]DRAM BOOT DRIVE INFO: V0.16 [317]DRAM CLK = 528 MHz [320]DRAM Type = 2 (2:DDR2,3:DDR3) [323]DRAMC read ODT off. [325]DRAM ODT off. [328]DRAM SIZE =64 M [330]dram_tpr4:0x0 [337]DRAM simple test OK. [339]rtc standby flag is 0x0, super standby flag is 0x0 [345]dram size =64 [347]audio:avcc calibration [350]card no is 0 [351]sdcard 0 line count 4 [354][mmc]: mmc driver ver 2022-10-25 19:07 [363][mmc]: Wrong media type 0x0 [366][mmc]: Try SD card 0 [387][mmc]: HSSDR52/SDR25 4 bit [390][mmc]: 50000000 Hz [392][mmc]: 30436 MB [394][mmc]: SD/MMC 0 init OK!!! [481]Loading boot-pkg Succeed(index=0). [485]Entry_name = optee [488]Entry_name = u-boot [496]Entry_name = dtb [500]mmc not para [501]Jump to second Boot. M/TC: OP-TEE version: 15ee1539b (gcc version 5.3.1 20160412 (Linaro GCC 5.3-2016.05)) #1 Tue Mar 29 06:48:41 UTC 2022 arm E/TC:0 0 platform_standby_fdt_parse:133 no pmu node E/TC:0 0 sunxi_twi_parse_from_dt:121 no pmu node

U-Boot 2018.07-gb807adc-dirty (May 28 2024 - 23:22:21 +0800) Allwinner Technology

[00.580]CPU: Allwinner Family [00.583]Model: sun8iw21 I2C: [I2C-ERROR]:twi_send_clk_9pulse() 147 SDA is still Stuck Low, failed. ready [00.643]DRAM:

根据TinyVision 在线文档的tina-40-linux-开发章节进行编译固件

修改文件 lichee/brandy-2.0/u-boot-2018/include/configs/sun8iw21p1.h下的

ifdef CONFIG_SUNXI_MALLOC_LEN

define SUNXI_SYS_MALLOC_LEN CONFIG_SUNXI_MALLOC_LEN

else

define SUNXI_SYS_MALLOC_LEN (32 << 20)

endif

和修改brandy/brandy-2.0/u-boot-2018/drivers/mmc/sunxi_mmc.h下的

/ need malloc low len when flush unaligned addr cache /

if defined (CONFIG_MACH_SUN8IW18) || defined (CONFIG_MACH_SUN8IW19) || \

(defined (CONFIG_MACH_SUN8IW20) && (CONFIG_SUNXI_MALLOC_LEN < 0x3700000)) || \
(defined (CONFIG_MACH_SUN8IW21) && (CONFIG_SUNXI_MALLOC_LEN < 0x3700000))

define SUNXI_MMC_MALLOC_LOW_LEN (4 << 20)

else

define SUNXI_MMC_MALLOC_LOW_LEN (16 << 20)

endif

后,在一次进行编译就出现了这个错误

LmMuyu commented 3 months ago

源码和虚拟机都由客服提供

YuzukiTsuru commented 3 months ago

改用 5.0 进行开发