Navigation

    全志在线开发者论坛

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • 在线文档
    • 社区主页
    1. Home
    2. jonsen
    3. Best
    J
    • Profile
    • Following 0
    • Followers 0
    • my integral 285
    • Topics 2
    • Posts 8
    • Best 3
    • Groups 0

    Best posts made by jonsen

    • Reply: H616 需要 XPOWERS APX313A 吗?

      @kanken6174在我测试的结果看是不行的,前段时间我尝试用三路分立的DCDC启动H313,结果没有成功,数据手册上写明了内部个路电压有启动时序要求。还是需要PMIC来,况且在动态调节功耗方面也只能用PMIC

      posted in H/F/TV Series
      J
      jonsen
    • H616 buildroot2024.02 主线启动

      在此记录 H616 buildroot2024.02 主线启动

      1. 下载buildroot
      git clone git://git.buildroot.net/buildroot
      cd buildroot
      
      
      1. 察看config文件发现没有zero 2 的配置文件 只有zero3的,
        orangepi_zero3_defconfig 进入config文件加
      cp  orangepi_zero3_defconfig orangepi_zero2_defconfig
      

      这样就有了

      1. 选择zero2的设备树
      make menuconfig
      

      kernel
      (allwinner/sun50i-h616-orangepi-zero2) In-tree Device Tree Source file names

      4.修改genimage.cfg文件
      "buildroot-2024.02/board/orangepi/common/genimage.cfg"

      image bootfs.vfat {
      	vfat {
      		files = {
      			      "Image",
      			      "allwinner/sun50i-h616-orangepi-zero2.dtb"
      		}
      	}
      	size = 64M
      }
      
      
      image sdcard.img {
          partition u-boot {
              in-partition-table = false
              image = "u-boot-sunxi-with-spl.bin"
              offset = 8K
              size = 1000K # 1MB - 8KB(offset)
          }
          
          hdimage {}
          
        	partition boot {
        		partition-type = 0xC
        		bootable = "true"
        		image = "bootfs.vfat"
        	}   
           
          partition rootfs {
              image = "rootfs.ext4"
              partition-type = 0x83
               
          }
      }
      
      make -j1024
      
      1. dd 命令 将 img文件 烧录 sd卡

      7.设置bootcmd 和bootargs ,上电 uboot启动 后按回车

      setenv bootargs 'console=ttyS0,115200 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait rw'
      
      setenv bootcmd 'fatload mmc 0:1 0x40200000 Image;fatload mmc 0:1 0x4fa00000 sun50i-h616-orangepi-zero2.dtb;booti 0x40200000 - 0x4fa00000'
      
      saveenv
      
      1. reset ! 全体起立!主线启动!
      posted in H/F/TV Series
      J
      jonsen
    • Reply: H616 buildroot2024.02 主线启动

      bootcmd 和 boot args 可以在 uboot 中设置
      [*] Enable boot arguments │ │
      │ │ (console=ttyS0,115200 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait rw) Boot arguments

      [*] Enable a default value for bootcmd │ │
      │ │ (fatload mmc 0:1 0x40200000 Image;fatload mmc 0:1 0x4fa00000 sun50i-h616-orangepi-zero2.dtb;booti 0x40200000│ │

      这样编译后直接能启动

      posted in H/F/TV Series
      J
      jonsen
    • 1 / 1