Navigation

    全志在线开发者论坛

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • 在线文档
    • 社区主页

    kernel输出串口bootargs设置ttyS0没输出

    Linux
    4
    6
    2769
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      abcdef LV 5 last edited by q1215200171

      主线内核kernel输出串口bootargs设置ttyS0没看到有输出,太难了,来请教下各位大佬

      KKZX.jpg

      1 Reply Last reply Reply Quote Share 0
      • A
        abcdef LV 5 last edited by q1215200171

        不懂了,uart地址也是用的内核自带的设备树😧kernel的设备树uart地址跟uboot设备树中的uart地址是一样的

        1 Reply Last reply Reply Quote Share 0
        • E
          Evlers LV 6 last edited by

          可能内核在初始化串口前就挂了

          无法输出串口日志的调试记录

          • 打开 earlycon 功能,让内核使用 uboot 初始化好的串口进行输出:
          > Device Drivers 
          	> Character devices 
          		> Serial drivers
          			[*] Early console using ARM semihosting
          
          • 在 bootargs 变量中带上 earlycon 参数
          A 1 Reply Last reply Reply Quote Share 0
          • Y
            giao LV 6 last edited by

            看着像内核没起来,kernel内也要配置console index和uart地址,要到kernel的menuconfig里找到kernel hacking部分进行配置 (arm的一个坑,两边两边地址不一样kernel就不起来了

            A 1 Reply Last reply Reply Quote Share 0
            • A
              abcdef LV 5 @yanmingjian last edited by q1215200171

              @yanmingjian 找不到在哪 看起来还是有点问题

              QQ图片20220906152219.jpg
              QQ图片20220906152216.jpg

              1 Reply Last reply Reply Quote Share 0
              • A
                abcdef LV 5 @evler last edited by

                @evler 我试试

                1 Reply Last reply Reply Quote Share 0
                • 1 / 1
                • First post
                  Last post

                Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号

                行为准则 | 用户协议 | 隐私权政策