TA的每日心情 | 开心 昨天 22:46 |
---|
签到天数: 596 天 连续签到: 3 天 [LV.9]以坛为家II
|
本帖最后由 robe.zhang 于 2018-7-20 16:37 编辑
【DLT-RK3288试用】13,修改uboot
u-boot 以前出错的地方是 rockchip 的板级启动代码,去掉了,只改了一行代码搞定,uboot 正常启动:
去掉了代码是 u-boot/board/rockchip/rk32xx/rk32xx.c 文件中,倒数几行有一个 board_fbt_preboot() 函数,去掉就可以了:
- DDR Version 1.04 20170614
- In
- Channel a: DDR3 400MHz
- Bus Width=32 Col=10 Bank=8 Row=15 CS=1 Die Bus-Width=16 Size=1024MB
- Channel b: DDR3 400MHz
- Bus Width=32 Col=10 Bank=8 Row=15 CS=1 Die Bus-Width=16 Size=1024MB
- Memory OK
- Memory OK
- OUT
- Boot1 Release Time: 2017-06-15, version: 2.33
- ChipType = 0x8, 177
- SdmmcInit=2 0
- BootCapSize=2000
- UserCapSize=7456MB
- FwPartOffset=2000 , 2000
- SdmmcInit=0 0
- BootCapSize=0
- UserCapSize=14832MB
- FwPartOffset=2000 , 0
- StorageInit ok = 33509
- Code check OK! theLoader 0x0, 71406
- hdr 0x0:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- hdr 0x0:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- hdr 0x0:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- hdr 0x0:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- theLoader 0 100935
- debug_fb_robe: robe 2018.07.20
- U-Boot 2014.10-RK3288-10 (Jul 20 2018 - 15:56:43) *** build by robe ***
- CPU: rk3288
- cpu version = 0
- CPU's clock information:
- arm pll = 600000000HZ
- periph pll = 297000000HZ
- ddr pll = 396000000HZ
- codec pll = 384000000HZ
- Board: Rockchip platform Board
- debug_fc_robe: robe 2018.07.20
- DRAM:
- debug_fd_robe: robe 2018.07.20
- Found dram banks: 1
- Adding bank:0000000000000000(0000000080000000)
- 128 MiB
- debug_fe_robe: robe 2018.07.20
- debug_ra_robe: robe 2018.07.20
- debug_rb_robe: robe 2018.07.20
- GIC CPU mask = 0x00000001
- SdmmcInit = 0 0
- SDCard Update.
- storage init OK!
- Using default environment
- debug_rc_robe: robe 2018.07.20
- debug_rd_robe: robe 2018.07.20
- board_late_init /* robe */
- board_init_adjust_env /* robe */
- GetParam
- W: Invalid Parameter's tag (0x00000000)!
- Invalid parameter
- load_disk_partitions /* robe */
- rkimage_prepare_fdt /* robe */
- key_init /* robe */
- No pmic detect.
- pmic_init-pwm_regulator_init-fg_init /* robe */
- dram_freq_init-spk_io_init /* robe */
- rkidb_setup_space /* robe */
- rkidb_get_idblk_data /* robe */
- SecureBootEn = 0, SecureBootLock = 0
- SecureBootCheck /* robe */
- #Boot ver: 0000-00-00#0.00
- rkidb_get_bootloader_ver /* robe */
- empty serial no.
- setenv("fbt_sn#", /* robe */
- board_fbt_preboot /* robe */
- board_late_init ####<end> /* robe */
- debug_re_robe: robe 2018.07.20
- debug_rf_robe: robe 2018.07.20
- Hit any key to stop autoboot: 0
- robe@dlt-rk3288: help
- ? - alias for 'help'
- bmp - manipulate BMP image data
- bootm - boot application image from memory
- bootrk - boot rockchip android bootimg
- cls - clear screen
- env - environment handling commands
- exit - exit script
- fastboot- use USB Fastboot protocol
- fdt - flattened device tree utility commands
- go - start application at address 'addr'
- help - print command description/usage
- pmic - PMIC
- printenv- print environment variables
- reset - Perform RESET of the CPU
- rockusb - Use the UMS [User Mass Storage]
- saveenv - save environment variables to persistent storage
- setenv - set environment variables
- showvar - print local hushshell variables
- version - print monitor, compiler and linker version
- robe@dlt-rk3288:
复制代码 rockchip 原本的启动文件启动方式是专有的,代码没有合入后来的 uboot 主线。不熟悉怎么启动的,也没看。之前一直报错,有两个解决方法:1,就是看看它需要什么什么文件,准备他需要的文件。这个方法就是照着按照 rockchip 的方式启动。
2,就是看看源码,把他的驱动方式取消了,使用常规的方法,本文就是准备替换成主线的启动方式。
没事自己玩,瞎折腾,弄哪是哪吧
|
|