• HI3519DV500快速启动


    刷机

    inid.rc

    1. #! /bin/sh
    2. /bin/mount -a
    3. for initscript in /etc/init.d/S[0-9][0-9]*
    4. do
    5. if [ -x $initscript ] ;
    6. then
    7. echo "[RCS]: $initscript"
    8. $initscript
    9. fi
    10. done
    11. export LD_LIBRARY_PATH=/mnt/hi3519/rtsp_demo/rtsp/lib
    12. ./home/usb_net/config_ether.sh
    13. #ifconfig
    14. #mount -t nfs -o nolock 192.168.36.11:/nfs /mnt

    config_ether.sh

    1. #!/bin/sh
    2. export VID="0x1D6B"
    3. export PID="0x0002"
    4. export MANUFACTURER="GD"
    5. export PRODUCT="Enternet"
    6. export SERIALNUMBER="123456789012"
    7. mount -t configfs none /sys/kernel/config/
    8. cd /sys/kernel/config/usb_gadget/
    9. mkdir ether
    10. cd ether/
    11. echo "0x0200" > bcdUSB
    12. echo "0xef" > bDeviceClass
    13. echo "2" > bDeviceSubClass
    14. echo $VID > idVendor
    15. echo $PID > idProduct
    16. echo "0x3000" > bcdDevice
    17. echo "0x01" > bDeviceProtocol
    18. mkdir strings/0x409
    19. echo $MANUFACTURER > strings/0x409/manufacturer
    20. echo $PRODUCT > strings/0x409/product
    21. echo $SERIALNUMBER > strings/0x409/serialnumber
    22. mkdir configs/c.1
    23. echo "0xC0" > configs/c.1/bmAttributes
    24. echo "1" > configs/c.1/MaxPower
    25. mkdir configs/c.1/strings/0x409/
    26. echo "RNDIS" > configs/c.1/strings/0x409/configuration
    27. echo "1" > os_desc/use
    28. echo "0xcd" > os_desc/b_vendor_code
    29. echo "MSFT100" > os_desc/qw_sign
    30. mkdir functions/rndis.usb0
    31. echo "RNDIS" > functions/rndis.usb0/os_desc/interface.rndis/compatible_id
    32. echo "5162001" > functions/rndis.usb0/os_desc/interface.rndis/sub_compatible_id
    33. ln -s functions/rndis.usb0 configs/c.1
    34. ln -s configs/c.1 os_desc
    35. echo "$(ls /sys/class/udc/)" > UDC
    36. ifconfig usb0 192.168.36.100 netmask 255.255.255.0
    37. #mount -t nfs -o nolock -o tcp 192.168.36.11:/nfs /mnt
    38. mount -t nfs -o nolock 192.168.36.11:/nfs /mnt
    39. cp -rf /mnt/hi3519/ko /run

    boot打印

    1. reboot: Restarting system
    2. emmc
    3. boot table board switch:0x00000007
    4. boot table version :V2.0
    5. boot table build time :2023/08/01 10:59:25
    6. boot table file name :Hi3519DV500-DMEBPRO_4L_flyby_DDR4_2666M-2GB_16bitx2-A55_1G.xlsm
    7. DDR size: 0x00000800MB
    8. System startup
    9. Uncompress Ok!
    10. U-Boot 2022.07 (Aug 01 2023 - 10:59:32 +0800)hi3519dv500
    11. DRAM: Relocation Offset is: 17745000
    12. Relocating to 5ff45000, new gd at 5fb04de0, sp at 5fb04dd0
    13. Core: 1 devices, 1 uclasses
    14. MMC: mmc->ocr_from_bootrom 0xc0ff8080
    15. sdhci-bsp: tuning done! valid phase shift [8, 6] Final Phase:23
    16. MMC/SD Card:
    17. MID: 0x90
    18. Read Block: 512 Bytes
    19. Write Block: 512 Bytes
    20. Chip Size: 7456M Bytes (High Capacity)
    21. Name: "H8G4a"
    22. Chip Type: MMC
    23. Version: 5.1
    24. Speed: 150000000Hz
    25. Bus Width: 4bit
    26. Mode: HS200
    27. Boot Mode: normal(), 38 ms
    28. bsp-sdhci: 0 (eMMC)
    29. Loading Environment from MMC... OK
    30. In: serial
    31. Out: serial
    32. Err: serial
    33. Net: gmac0
    34. Error: gmac0 address not set.
    35. Hit any key to stop autoboot: 0
    36. #
    37. #

    环境变量

    1. # pri
    2. arch=arm
    3. baudrate=115200
    4. board=hi3519dv500
    5. board_name=hi3519dv500
    6. bootargs=mem=132928K console=ttyAMA0,115200 clk_ignore_unused root=/dev/mmcblk0p5 rootfstype=ext4 rw rootwait blkdevparts=mmcblk0:512K(boot),512K(env),512K(bl31),13M(kernel),96M(rootfs),10M(param)
    7. bootcmd=mmc read 0 0x40010000 0x800 0x400; ipcboot bl31 0x40010000; mmc read 0 0x44000000 0xc00 0x6800; ipcboot uimgfdt 0x44000000
    8. bootdelay=2
    9. cpu=armv8
    10. ethact=gmac0
    11. gatewayip=192.168.1.1
    12. ipaddr=192.168.1.120
    13. loadaddr=0x40080000
    14. netmask=255.255.255.0
    15. serverip=192.168.1.102
    16. soc=hi3519dv500
    17. stderr=serial
    18. stdin=serial
    19. stdout=serial
    20. vendor=vendor
    21. verify=n
    22. Environment size: 618/262140 bytes

  • 相关阅读:
    QGIS最受欢迎的20个插件
    基于 ARM + FPGA 的 EtherCAT 主站设计及实现
    postman 发送post请求中的x-www-form-urlencoded和form-data的区别
    【2023】Redis相关面试题
    斩获 offer 的 Java 面试宝典
    ARM64内联汇编
    R 语言画图中英文字体解决方案
    国内最牛的Java面试八股文合集,不接受反驳 我这该死的魅力
    11.ROS编程学习:参数管理机制python实现
    Win11如何获得最佳电源效率?
  • 原文地址:https://blog.csdn.net/fuhanga123/article/details/133696314