v3 里面本来是有这些代码的,我把相关的代码编译进入,但是都没去调用相关函数,
刷机后开不了机了,
打印到这里就停了
HELLO! BOOT0 is starting!
get_ifm reg_val=0
DRAM DRIVE INFO: V0.7
DRAM Type = 3 (2:DDR2,3:DDR3,6:LPDDR2,7:LPDDR3)
DRAM CLK = 600 MHz
DRAM zq value: 000039bb
DRAM size = 256 MB
Succeed in reading Boot1 file head.
Jump to secend Boot.
好像是找不到代码了,小白一个,现在不知道怎么分析了,求大神指教
离线
V3的代码,用的norflash,裸奔哥是啥? u-boot
[partition_start]
[partition]
name = boot
size = 5120
downloadfile = "boot.fex"
user_type = 0x8000
[partition]
name = system
size = 9088
downloadfile = "rootfs.fex"
user_type = 0x8000
[partition]
name = cfg
size = 1024
downloadfile = "cfg.fex"
user_type = 0x8000
[partition]
name = boot_logo
size = 256
downloadfile = "boot_logo.fex"
user_type = 0x8000
[partition]
name = shutdown_logo
size = 256
downloadfile = "shutdown_logo.fex"
user_type = 0x8000
[partition]
name = env
size = 128
downloadfile = "env.fex"
user_type = 0x8000
[partition]
name = private
size = 128
user_type = 0x8000
我就是只是多编了几个.c,函数也没有调用,就开不了
HELLO! BOOT0 is starting!
get_ifm reg_val=0
DRAM DRIVE INFO: V0.7
DRAM Type = 3 (2:DDR2,3:DDR3,6:LPDDR2,7:LPDDR3)
DRAM CLK = 600 MHz
DRAM zq value: 000039bb
DRAM size = 256 MB
Succeed in reading Boot1 file head.
Jump to secend Boot.
离线
不是的,再是想在u-boot 里把关机充电的功能加上去,现在是插上dc就直接开机了。
离线
你是在 boot0(SPL) 还是 boot1(u-boot)里面加代码?
boot0里面只能是用内部xxK SRAM, 超过会出问题吧?
Jump to secend Boot.
这个打印在boot0_main中打印
status = load_boot1();
//printf("Ready to disable icache.\n");
mmu_turn_off( ); // disable instruction cache
if( status == 0 )
{
//跳转之前,把所有的dram参数写到boot1中
set_dram_para((void *)&BT0_head.prvt_head.dram_para, dram_size);
printf("Jump to secend Boot.\n");
boot0_jump(CONFIG_SYS_TEXT_BASE); // 如果载入Boot1成功,跳转到Boot1处执行
}
else
{
// disable_watch_dog( ); // disable watch dog
reset_pll();
printf("Jump to Fel.\n");
boot0_jump(FEL_BASE); // 如果载入Boot1失败,将控制权交给Fel
}
载入Boot1成功,但是没有执行Boot1
离线