|
【技术讨论】
接上串口,uboot命令行进不去.........
发表于 2019-3-14 18:08:47
浏览:6931
|
回复:1
打印
只看该作者
[复制链接]
楼主
有知道的大拿,指点一下方向,问题出在何处?????不胜感激!!!!!!!!!!
从官网下载的Firefly-RK3399_Android7.1.2_MP_180126 镜像文件包
从官网下载Firefly-RK3399_Android7.1.2_git_20180126.7z 源码包
按照文档说明,将 u-boot/include/configs/rk33plat.h 中的 delay时间从'0' 修改为 '20'
/* mod it to enable console commands. */
#define CONFIG_BOOTDELAY 20
然后将单独编译的uboot的三个文件替换镜像文件包中的同名文件,
uboot.img
trust.img
rk3399_loader_v1.08.109.bin -> 重命名为 MiniLoaderAll.bin
用 mkupdate.bat 脚本再windows下将镜像文件打包成 update.img
最后通过 SD_Firmware_Tool._v1.46 烧录到SD 卡中。
结果还是不如预期,uboot 没有出现等待键盘输入的意思,直接引导kernel 起来,log如下,
DDR Version 1.08 20170320
In
Channel 0: DDR3, 800MHz
Bus Width=32 Col=10 Bank=8 Row=15 CS=1 Die Bus-Width=16 Size=1024MB
Channel 1: DDR3, 800MHz
Bus Width=32 Col=10 Bank=8 Row=15 CS=1 Die Bus-Width=16 Size=1024MB
256B stride
ch 0 ddrconfig = 0x101, ddrsize = 0x20
ch 1 ddrconfig = 0x101, ddrsize = 0x20
pmugrf_os_reg[2] = 0x32817281, stride = 0x9
OUT
Boot1: 2017-06-09, version: 1.09
CPUId = 0x0
ChipType = 0x10, 1834
mmc: ERROR: SDHCI ERR:cmd:0x102,stat:0x18000
mmc: ERROR: Card did not respond to voltage select!
emmc reinit
mmc: ERROR: SDHCI ERR:cmd:0x102,stat:0x18000
mmc: ERROR: Card did not respond to voltage select!
emmc reinit
mmc: ERROR: SDHCI ERR:cmd:0x102,stat:0x18000
mmc: ERROR: Card did not respond to voltage select!
SdmmcInit=2 1
SdmmcInit=0 0
BootCapSize=0
UserCapSize=30528MB
FwPartOffset=2000 , 0
run on sd0
StorageInit ok = 56589
LoadTrustBL
No find bl30.bin
Load uboot, ReadLba = 2000
Load OK, addr=0x200000, size=0x77d6c
RunBL31 0x10000
NOTICE: BL31: v1.3(debug):9f93abc
NOTICE: BL31: Built : 10:18:20, Jul 27 2017
NOTICE: BL31: Rockchip release version: v1.1
INFO: GICv3 with legacy support detected. ARM GICV3 driver initialized in EL3
INFO: plat_rockchip_pmu_init(1089): pd status 3e
INFO: BL31: Initializing runtime services
INFO: BL31: Initializing BL32
INF [0x0] TEE-CORE:init_primary_helper:337: Initializing (1.1.0-96-g3fbe315-dev #4 Fri Jun 30 00:35:17 UTC 2017 aarch64)
INF [0x0] TEE-CORE:init_primary_helper:338: Release version: 1.1
INF [0x0] TEE-CORE:init_teecore:83: teecore inits done
INFO: BL31: Preparing for EL3 exit to normal world
INFO: Entry point address = 0x200000
INFO: SPSR = 0x3c9
U-Boot 2014.10-RK3399-06 (Mar 14 2019 - 17:38:23)
CPU: rk3399
cpu version = 0
CPU's clock information:
aplll = 816000000HZ
apllb = 24000000HZ
gpll = 800000000HZ
aclk_periph_h = 133333333HZ, hclk_periph_h = 66666666HZ, pclk_periph_h = 33333333HZ
aclk_periph_l0 = 100000000HZ, hclk_periph_l0 = 100000000HZ, pclk_periph_l0 = 50000000HZ
hclk_periph_l1 = 100000000HZ, pclk_periph_l1 = 50000000HZ
cpll = 800000000HZ
dpll = 800000000HZ
vpll = 24000000HZ
npll = 24000000HZ
ppll = 676000000HZ
Board: Rockchip platform Board
Uboot as second level loader
DRAM: Found dram banks: 1
Adding bank:0000000000200000(000000007fe00000)
Reserve memory for trust os.
dram reserve bank: base = 0x08400000, size = 0x01000000
128 MiB
SdmmcInit = 0 0
SDCard Boot.
storage init OK!
Using default environment
Writing env to storage...
done
GetParam
remotectl v0.1
pwm freq=0xb8320
pwm_freq_nstime=0x52d
Load FDT from resource image.
power key: bank-0 pin-5
can't find dts node for fixed
usb bc: can find node by path: /dwc-control-usb/usb_bc
dwc_otg_check_dpdm: usb bc disconnected
pmic:rk808
can't find dts node for pwm1
set pwm voltage ok,pwm_id =2 vol=1000000,pwm_value=66
CPU's clock information:
aplll = 816000000HZ
apllb = 24000000HZ
gpll = 800000000HZ
aclk_periph_h = 133333333HZ, hclk_periph_h = 66666666HZ, pclk_periph_h = 33333333HZ
aclk_periph_l0 = 100000000HZ, hclk_periph_l0 = 100000000HZ, pclk_periph_l0 = 50000000HZ
hclk_periph_l1 = 100000000HZ, pclk_periph_l1 = 50000000HZ
cpll = 800000000HZ
dpll = 800000000HZ
vpll = 24000000HZ
npll = 24000000HZ
ppll = 676000000HZ
SecureBootEn = 0, SecureBootLock = 0
#Boot ver: 0000-00-00#0.00
empty serial no.
normal boot.
checkKey
vbus = 0
board_fbt_key_pressed: ir_keycode = 0x0, frt = 0
no fuel gauge found
no fuel gauge found
failed to find phy node
failed to find panel driver
read logo on state from dts [1]
no fuel gauge found
can't find dts node for deviceinfo
dw_rk_hdmi_register:fail to read deviceinfo
hdmi baseparamer -69194865x169464486@-1804401840--1009472337
rockchip_panel_deinit: failed to find panel deinit funcs
ERROR: [get_entry_ram]: Cannot find logo_kernel.bmp!
failed to display kernel logo
checkKey
vbus = 0
board_fbt_key_pressed: ir_keycode = 0x0, frt = 0
got recovery cmd from misc.
load fdt from resouce.
Secure Boot state: 0
kernel @ 0x00280000 (0x01325008)
ramdisk @ 0x05bf0000 (0x007b1abc)
bootrk: do_bootm_linux...
Loading Device Tree to 0000000005600000, end 0000000005615f13 ... OK
Add bank:0000000000200000, 0000000008200000
Add bank:0000000009400000, 0000000076c00000
WARNING: could not set reg FDT_ERR_BADOFFSET.
Starting kernel ...
|
|