182]HELLO! BOOT0 is starting!
[185]BOOT0 commit : adaf1174cc
[188]set pll start
[190]fix vccio detect value:0xc0
[197]periph0 has been enabled
[200]set pll end
[202][pmu]: bus read error
[205]board init ok
[207]ZQ value = 0x2e
[209]get_pmu_exist() = -1
[211]DRAM BOOT DRIVE INFO: V0.33
[214]DRAM CLK = 936 MHz
[217]DRAM Type = 3 (2:DDR2,3:DDR3)
[220]DRAMC read ODT off.
[223]DRAM ODT value: 0x42.
[225]ddr_efuse_type: 0xa
[229]DRAM SIZE =128 M
[231]dram_tpr4:0x0
[233]PLL_DDR_CTRL_REG:0xf8004d00
[236]DRAM_CLK_REG:0xc0000000
[239][TIMING DEBUG] MR2= 0x20
[246]DRAM simple test OK.
[249]rtc standby flag is 0x0, super standby flag is 0x0
[254]dram size =128
[257]card no is 2
[258]sdcard 2 line count 4
[261][mmc]: mmc driver ver 2021-05-21 14:47
[270][mmc]: Wrong media type 0x0, but host sdc2, try mmc first
[276][mmc]: ***Try MMC card 2***
[300][mmc]: RMCA OK!
[302][mmc]: mmc 2 bias 0
[305][mmc]: MMC 5.1
[307][mmc]: HSSDR52/SDR25 4 bit
[310][mmc]: 50000000 Hz
[312][mmc]: 7456 MB
[314][mmc]: ***SD/MMC 2 init OK!!!***
[404]Loading boot-pkg Succeed(index=0).
[407]Entry_name = u-boot
[414]Entry_name = optee
[418]Entry_name = dtb
[421]tunning data addr:0x430003e8
[424]Jump to second Boot.
M/TC: OP-TEE version: 6aef7bb2-dirty (gcc version 5.3.1 20160412 (Linaro GCC 5.3-2016.05)) #1 Fri Jul 23 09:25:11 UTC 2021 arm
t113 emmc 使用芒果派的mq-R编译后,无法启动,卡在optee,发现emmc也认出来了,烧写进去后,一直卡在这里,大神给看看哪里没有配置好
离线
board-uboot.dts
也改为card2,但是还是无法进入uboot。
&aliases {
card2_boot_para = &card2_boot_para;
/*
nand0 = &nand0;
twi6 = &twi6;
pwm = &pwm;
pwm0 = &pwm0;
pwm1 = &pwm1;
pwm2 = &pwm2;
pwm3 = &pwm3;
pwm4 = &pwm4;
pwm5 = &pwm5;
pwm6 = &pwm6;
pwm7 = &pwm7;
disp = &disp;
lcd0 = &lcd0;
lcd1 = &lcd1;
eink = &eink;
spi0 = &spi0;
*/
};
离线
执行 mboot && muboot 试一试
'sboot_sun8iw20p1.bin' -> '/home/tina/tina/Tina-Linux/out/t113-lcd15/sboot_sun8iw20p1.bin'
mboot0 success!
t113_lcd15 t113 t113-lcd15
build_boot platform:sun8iw20p1 o_option:uboot
grep: /home/tina/tina/Tina-Linux/lichee/brandy-2.0/spl/Makefile: No such file or directory
Prepare toolchain ...
build for sun8iw20p1_defconfig ...
fatal: No names found, cannot describe anything.
CHK include/config/uboot.release
CHK include/generated/timestamp_autogenerated.h
CHK include/generated/version_autogenerated.h
CHK include/generated/generic-asm-offsets.h
CHK include/generated/asm-offsets.h
CHK include/config.h
CFG u-boot.cfg
'u-boot.bin' -> 'u-boot-sun8iw20p1.bin'
'u-boot-sun8iw20p1.bin' -> './../../../device/config/chips/t113/bin/u-boot-sun8iw20p1.bin'
CFGCHK u-boot.cfg
muboot success!
刚试过 执行 mboot && muboot 然后 mp ,还是无效,相同问题 卡在
[404]Loading boot-pkg Succeed(index=0).
[407]Entry_name = u-boot
[414]Entry_name = optee
[418]Entry_name = dtb
[421]tunning data addr:0x430003e8
[424]Jump to second Boot.
M/TC: OP-TEE version: 6aef7bb2-dirty (gcc version 5.3.1 20160412 (Linaro GCC 5.3-2016.05)) #1 Fri Jul 23 09:25:11 UTC 2021 arm
就不往下运行了。
下面是应该执行uboot了吗?
离线
离线
看了您网盘中的sdk,是基于spinand 的,
而我是自己画的板子,是PC2~PC7接口,接的 emmc (KLM8G1GETF-B041),是基于emmc存储的,请问您下,如果是基于emmc存储则需要修改哪里?
1.sys_config.fex
2.uboot-board.dts
3.board.dts
改这3个就可以了吗?
我已经在device和target目录下新增了设备。只不过是用mq_r复制过来的,直接改了个产品名字,请问是否可以?谢谢
离线
使用 您网盘中的测试固件,(6.0寸烧录固件)tina_t113-whycanpic_uart3.img,uboot可以启动:
120]HELLO! BOOT0 is starting!
[123]BOOT0 commit : 88480af-dirty
[127]set pll start
[129]fix vccio detect value:0xc0
[136]periph0 has been enabled
[139]set pll end
[140][pmu]: bus read error
[143]board init ok
[145]ZQ value = 0x2e
[147]get_pmu_exist() = -1
[149]DRAM BOOT DRIVE INFO: V0.33
[152]DRAM CLK = 936 MHz
[155]DRAM Type = 3 (2:DDR2,3:DDR3)
[158]DRAMC read ODT off.
[160]DRAM ODT value: 0x42.
[163]ddr_efuse_type: 0xa
[166]DRAM SIZE =128 M
[168]dram_tpr4:0x0
[170]PLL_DDR_CTRL_REG:0xf8004d00
[173]DRAM_CLK_REG:0xc0000000
[176][TIMING DEBUG] MR2= 0x20
[183]DRAM simple test OK.
[186]rtc standby flag is 0x0, super standby flag is 0x0
[191]dram size =128
[194]card no is 2
[195]sdcard 2 line count 4
[198][mmc]: mmc driver ver 2021-05-21 14:47
[207][mmc]: Wrong media type 0x0, but host sdc2, try mmc first
[213][mmc]: ***Try MMC card 2***
[237][mmc]: RMCA OK!
[239][mmc]: mmc 2 bias 0
[242][mmc]: MMC 5.1
[244][mmc]: HSSDR52/SDR25 4 bit
[247][mmc]: 50000000 Hz
[249][mmc]: 7456 MB
[251][mmc]: ***SD/MMC 2 init OK!!!***
[336]Loading boot-pkg Succeed(index=0).
[340]Entry_name = u-boot
[347]Entry_name = optee
[351]Entry_name = dtb
[354]tunning data addr:0x430003e8
[357]Jump to second Boot.
M/TC: OP-TEE version: 6aef7bb2-dirty (gcc version 5.3.1 20160412 (Linaro GCC 5.3-2016.05)) #1 Fri Jul 23 09:25:11 UTC 2021 arm
U-Boot 2018.05-g24521d6-dirty (Dec 17 2022 - 18:55:35 +0800) Allwinner Technology
[00.410]CPU: Allwinner Family
[00.413]Model: sun8iw20
I2C: FDT ERROR:fdt_set_all_pin:[twi0]-->FDT_ERR_BADPATH
FDT ERROR:fdt_set_all_pin:[twi1]-->FDT_ERR_BADPATH
ready
[00.434]DRAM: 128 MiB
[00.437]Relocation Offset is: 04ecc000
[00.462]secure enable bit: 0
[00.464]smc_tee_inform_fdt failed with: -65526[00.469]CPU=1008 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=100Mhz MBus=300Mhz
[00.475]gic: sec monitor mode
[00.478]flash init start
[00.480]workmode = 0,storage type = 2
[00.483][mmc]: mmc driver ver uboot2018:2021-11-19 15:38:00
[00.490][mmc]: SUNXI SDMMC Controller Version:0x50310
[00.515][mmc]: Best spd md: 2-HSDDR52/DDR50, freq: 2-50000000, Bus width: 4
[00.521]sunxi flash init ok
[00.524]line:703 init_clocks
[00.527]drv_disp_init
fdt get node offset faill: hdmi
[00.540]drv_disp_init finish
[00.542]boot_gui_init:start
[00.545]set disp.dev2_output_type fail. using defval=0
[01.752]set disp.fb0_width fail. using defval=0
[01.756]set disp.fb0_height fail. using defval=0
[01.760]boot_gu[01.761]smallwitpi lcd_panel_init 429 xxxxxxxxxxxxxxxxxx
[02.067]smallwitpi lcd_panel_init 432 xxxxxxxxxxxxxxxxxx
[02.314]smallwitpi lcd_panel_init 445 xxxxxxxxxxxxxxxxxx
i_init:finish
partno erro : can't find partition bootloader
照现在看,我编译的固件,就是uboot没有启动,uboot配置错误??
配置uboot只需要改,device下的
tina/Tina-Linux/device/config/chips/t113/configs/mq_r/uboot-board.dts,就可以吗?还需要改别的文件吗?env.cfg是不是也要改?
离线
如果确定SDK没问题的话,把out/目录删了重新编译试一试。
删除out 重新编译后,问题没有解决,现象还是一样,uboot无法启动,我感觉问题点还是在uboot-board.dts上。
离线
哇酷小二 说:如果确定SDK没问题的话,把out/目录删了重新编译试一试。
删除out 重新编译后,问题没有解决,现象还是一样,uboot无法启动,我感觉问题点还是在uboot-board.dts上。
Could not read interface wlan0 flags: No such device
wlan0: Failed to initialize driver interface
------run rc.final file-----
Trying to connect to SWUpdate...
mount: mounting /dev/mmcblk0p1 on /mnt/extsd failed: No such file or directory
BusyBox v1.27.2 () built-in shell (ash)
------run profile file-----
_____ _ __ _
|_ _||_| ___ _ _ | | |_| ___ _ _ _ _
| | _ | || | | |__ | || || | ||_'_|
| | | || | || _ | |_____||_||_|_||___||_,_|
|_| |_||_|_||_|_| Tina is Based on OpenWrt!
----------------------------------------------
Tina Linux (Neptune, 5C1C9C53)
----------------------------------------------
nodev debugfs
root@TinaLinux:/# swu_param: ####
[ 19.896512] file system registered
swu_software: ####
swu_mode: ####
no swupdate_cmd to run, wait for next swupdate
[ 19.914835] configfs-gadget 4100000.udc-controller: failed to start g1: -19
sh: write error: No such device
[ 19.936528] read descriptors
[ 19.939919] read strings
[ 20.122188] sunxi_set_cur_vol_work()485 WARN: get power supply failed
[ 20.169472] android_work: sent uevent USB_STATE=CONNECTED
[ 20.434901] sunxi_set_cur_vol_work()485 WARN: get power supply failed
[ 20.506588] configfs-gadget gadget: high-speed config #1: c
[ 20.512995] android_work: sent uevent USB_STATE=CONFIGURED
[ 20.528358] sunxi_vbus_det_work()3454 WARN: get power supply failed
[ 20.535810] android_work: sent uevent USB_STATE=DISCONNECTED
[ 20.826628] android_work: sent uevent USB_STATE=CONNECTED
[ 24.405779] random: crng init done
root@TinaLinux:/# [ 32.528352] pio-18: disabling
[ 32.531672] pio-33: disabling
[ 32.534988] usb1-vbus: disabling
df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/root 14336 14336 0 100% /rom
devtmpfs 53024 0 53024 0% /dev
tmpfs 56336 0 56336 0% /tmp
/dev/by-name/rootfs_data
21586 17 21078 0% /overlay
overlayfs:/overlay 21586 17 21078 0% /
/dev/mmcblk0p8 7312852 24 7296444 0% /mnt/UDISK
root@TinaLinux:/#
可以了,久违的控制台出现了,所有的问题,都是 uboot和kernel 配置不对导致的,关键就是以下几个文件:
1.sys_concig.fex
2.board.dts
3.env.cfg
4.uboot make menuconfig(或修改.config)
5.make kernel_menuconfig
不要怀疑sdk,各种不启动都是配置错误,导致的。下面要调试lcd了,启动后就都简单了,谢谢小二哥的细心指导。
离线
@allbluecom
你好,请问最后怎么解决的呀
离线