查看: 3011|回复: 0

[原创] 【DLT-RK3288试用】13,修改uboot

[复制链接]
  • TA的每日心情
    开心
    2024-1-16 17:48
  • 签到天数: 592 天

    连续签到: 1 天

    [LV.9]以坛为家II

    发表于 2018-7-20 16:33:58 | 显示全部楼层 |阅读模式
    分享到:
    本帖最后由 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() 函数,去掉就可以了:
    1. DDR Version 1.04 20170614
    2. In
    3. Channel a: DDR3 400MHz
    4. Bus Width=32 Col=10 Bank=8 Row=15 CS=1 Die Bus-Width=16 Size=1024MB
    5. Channel b: DDR3 400MHz
    6. Bus Width=32 Col=10 Bank=8 Row=15 CS=1 Die Bus-Width=16 Size=1024MB
    7. Memory OK
    8. Memory OK
    9. OUT
    10. Boot1 Release Time: 2017-06-15, version: 2.33
    11. ChipType = 0x8, 177
    12. SdmmcInit=2 0
    13. BootCapSize=2000
    14. UserCapSize=7456MB
    15. FwPartOffset=2000 , 2000
    16. SdmmcInit=0 0
    17. BootCapSize=0
    18. UserCapSize=14832MB
    19. FwPartOffset=2000 , 0
    20. StorageInit ok = 33509
    21. Code check OK! theLoader 0x0, 71406
    22. hdr 0x0:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

    23. hdr 0x0:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

    24. hdr 0x0:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

    25. hdr 0x0:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

    26. theLoader 0 100935


    27.      debug_fb_robe:         robe 2018.07.20




    28. U-Boot 2014.10-RK3288-10 (Jul 20 2018 - 15:56:43) *** build by robe ***

    29. CPU: rk3288
    30. cpu version = 0
    31. CPU's clock information:
    32.     arm pll = 600000000HZ
    33.     periph pll = 297000000HZ
    34.     ddr pll = 396000000HZ
    35.     codec pll = 384000000HZ
    36. Board:  Rockchip platform Board


    37.      debug_fc_robe:         robe 2018.07.20


    38. DRAM:

    39.      debug_fd_robe:         robe 2018.07.20


    40. Found dram banks: 1
    41. Adding bank:0000000000000000(0000000080000000)
    42. 128 MiB


    43.      debug_fe_robe:         robe 2018.07.20




    44.      debug_ra_robe:         robe 2018.07.20




    45.      debug_rb_robe:         robe 2018.07.20


    46. GIC CPU mask = 0x00000001
    47. SdmmcInit = 0 0
    48. SDCard Update.
    49. storage init OK!
    50. Using default environment



    51.      debug_rc_robe:         robe 2018.07.20




    52.      debug_rd_robe:         robe 2018.07.20


    53. board_late_init   /* robe */
    54. board_init_adjust_env  /* robe */
    55. GetParam
    56. W: Invalid Parameter's tag (0x00000000)!
    57. Invalid parameter
    58. load_disk_partitions  /* robe */
    59. rkimage_prepare_fdt  /* robe */
    60. key_init  /* robe */
    61. No pmic detect.
    62. pmic_init-pwm_regulator_init-fg_init  /* robe */
    63. dram_freq_init-spk_io_init  /* robe */
    64. rkidb_setup_space       /* robe */
    65. rkidb_get_idblk_data    /* robe */
    66. SecureBootEn = 0, SecureBootLock = 0
    67. SecureBootCheck /* robe */

    68. #Boot ver: 0000-00-00#0.00
    69. rkidb_get_bootloader_ver        /* robe */
    70. empty serial no.
    71. setenv("fbt_sn#",       /* robe */
    72. board_fbt_preboot /* robe */
    73. board_late_init ####<end>   /* robe */


    74.      debug_re_robe:         robe 2018.07.20




    75.      debug_rf_robe:         robe 2018.07.20


    76. Hit any key to stop autoboot:  0
    77. robe@dlt-rk3288: help
    78. ?       - alias for 'help'
    79. bmp     - manipulate BMP image data
    80. bootm   - boot application image from memory
    81. bootrk  - boot rockchip android bootimg
    82. cls     - clear screen
    83. env     - environment handling commands
    84. exit    - exit script
    85. fastboot- use USB Fastboot protocol
    86. fdt     - flattened device tree utility commands
    87. go      - start application at address 'addr'
    88. help    - print command description/usage
    89. pmic    - PMIC
    90. printenv- print environment variables
    91. reset   - Perform RESET of the CPU
    92. rockusb - Use the UMS [User Mass Storage]
    93. saveenv - save environment variables to persistent storage
    94. setenv  - set environment variables
    95. showvar - print local hushshell variables
    96. version - print monitor, compiler and linker version
    97. robe@dlt-rk3288:
    复制代码
    rockchip 原本的启动文件启动方式是专有的,代码没有合入后来的 uboot 主线。不熟悉怎么启动的,也没看。之前一直报错,有两个解决方法:1,就是看看它需要什么什么文件,准备他需要的文件。这个方法就是照着按照 rockchip 的方式启动。
    2,就是看看源码,把他的驱动方式取消了,使用常规的方法,本文就是准备替换成主线的启动方式。
    没事自己玩,瞎折腾,弄哪是哪吧









    回复

    使用道具 举报

    您需要登录后才可以回帖 注册/登录

    本版积分规则

    关闭

    站长推荐上一条 /2 下一条



    手机版|小黑屋|与非网

    GMT+8, 2024-4-20 09:55 , Processed in 0.128159 second(s), 18 queries , MemCache On.

    ICP经营许可证 苏B2-20140176  苏ICP备14012660号-2   苏州灵动帧格网络科技有限公司 版权所有.

    苏公网安备 32059002001037号

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.