最新消息: USBMI致力于为网友们分享Windows、安卓、IOS等主流手机系统相关的资讯以及评测、同时提供相关教程、应用、软件下载等服务。

HI3519DV500快速启动

维修 admin 61浏览 0评论

HI3519DV500快速启动

刷机前

inid.rc

#! /bin/sh/bin/mount -afor initscript in /etc/init.d/S[0-9][0-9]*
doif [ -x $initscript ] ;thenecho "[RCS]: $initscript"$initscriptfi
doneexport LD_LIBRARY_PATH=/mnt/hi3519/rtsp_demo/rtsp/lib./home/usb_net/config_ether.sh#ifconfig#mount -t nfs -o nolock 192.168.36.11:/nfs /mnt

config_ether.sh

#!/bin/shexport VID="0x1D6B"
export PID="0x0002"
export MANUFACTURER="GD"
export PRODUCT="Enternet"
export SERIALNUMBER="123456789012"mount -t configfs none /sys/kernel/config/
cd /sys/kernel/config/usb_gadget/
mkdir ether
cd ether/
echo "0x0200" > bcdUSB
echo "0xef" > bDeviceClass
echo "2" > bDeviceSubClass
echo $VID > idVendor
echo $PID > idProduct
echo "0x3000" > bcdDevice
echo "0x01" > bDeviceProtocol
mkdir strings/0x409
echo $MANUFACTURER > strings/0x409/manufacturer
echo $PRODUCT > strings/0x409/product
echo $SERIALNUMBER > strings/0x409/serialnumbermkdir configs/c.1
echo "0xC0" > configs/c.1/bmAttributes
echo "1" > configs/c.1/MaxPower
mkdir configs/c.1/strings/0x409/
echo "RNDIS" > configs/c.1/strings/0x409/configuration
echo "1" > os_desc/use
echo "0xcd" > os_desc/b_vendor_code
echo "MSFT100" > os_desc/qw_signmkdir functions/rndis.usb0
echo "RNDIS" > functions/rndis.usb0/os_desc/interface.rndis/compatible_id
echo "5162001" > functions/rndis.usb0/os_desc/interface.rndis/sub_compatible_idln -s functions/rndis.usb0 configs/c.1
ln -s configs/c.1 os_desc
echo "$(ls /sys/class/udc/)" > UDCifconfig usb0 192.168.36.100 netmask 255.255.255.0#mount -t nfs -o nolock -o tcp 192.168.36.11:/nfs /mntmount -t nfs -o nolock 192.168.36.11:/nfs /mntcp -rf /mnt/hi3519/ko /run

boot打印

reboot: Restarting systememmc
boot table board switch:0x00000007
boot table version     :V2.0
boot table build time  :2023/08/01 10:59:25
boot table file name   :Hi3519DV500-DMEBPRO_4L_flyby_DDR4_2666M-2GB_16bitx2-A55_1G.xlsm
DDR size: 0x00000800MBSystem startupUncompress Ok!U-Boot 2022.07 (Aug 01 2023 - 10:59:32 +0800)hi3519dv500DRAM:  Relocation Offset is: 17745000
Relocating to 5ff45000, new gd at 5fb04de0, sp at 5fb04dd0
Core:  1 devices, 1 uclasses
MMC:   mmc->ocr_from_bootrom 0xc0ff8080
sdhci-bsp: tuning done! valid phase shift [8, 6] Final Phase:23
MMC/SD Card:MID:         0x90Read Block:  512 BytesWrite Block: 512 BytesChip Size:   7456M Bytes (High Capacity)Name:        "H8G4a"Chip Type:   MMCVersion:     5.1Speed:       150000000HzBus Width:   4bitMode:        HS200Boot Mode:   normal(), 38 ms
bsp-sdhci: 0 (eMMC)
Loading Environment from MMC... OK
In:    serial
Out:   serial
Err:   serialNet:   gmac0
Error: gmac0 address not set.Hit any key to stop autoboot:  0 
# 
# 

环境变量


# pri
arch=arm
baudrate=115200
board=hi3519dv500
board_name=hi3519dv500
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)
bootcmd=mmc read 0 0x40010000 0x800 0x400; ipcboot bl31 0x40010000; mmc read 0 0x44000000 0xc00 0x6800; ipcboot uimgfdt 0x44000000
bootdelay=2
cpu=armv8
ethact=gmac0
gatewayip=192.168.1.1
ipaddr=192.168.1.120
loadaddr=0x40080000
netmask=255.255.255.0
serverip=192.168.1.102
soc=hi3519dv500
stderr=serial
stdin=serial
stdout=serial
vendor=vendor
verify=nEnvironment size: 618/262140 bytes

HI3519DV500快速启动

刷机前

inid.rc

#! /bin/sh/bin/mount -afor initscript in /etc/init.d/S[0-9][0-9]*
doif [ -x $initscript ] ;thenecho "[RCS]: $initscript"$initscriptfi
doneexport LD_LIBRARY_PATH=/mnt/hi3519/rtsp_demo/rtsp/lib./home/usb_net/config_ether.sh#ifconfig#mount -t nfs -o nolock 192.168.36.11:/nfs /mnt

config_ether.sh

#!/bin/shexport VID="0x1D6B"
export PID="0x0002"
export MANUFACTURER="GD"
export PRODUCT="Enternet"
export SERIALNUMBER="123456789012"mount -t configfs none /sys/kernel/config/
cd /sys/kernel/config/usb_gadget/
mkdir ether
cd ether/
echo "0x0200" > bcdUSB
echo "0xef" > bDeviceClass
echo "2" > bDeviceSubClass
echo $VID > idVendor
echo $PID > idProduct
echo "0x3000" > bcdDevice
echo "0x01" > bDeviceProtocol
mkdir strings/0x409
echo $MANUFACTURER > strings/0x409/manufacturer
echo $PRODUCT > strings/0x409/product
echo $SERIALNUMBER > strings/0x409/serialnumbermkdir configs/c.1
echo "0xC0" > configs/c.1/bmAttributes
echo "1" > configs/c.1/MaxPower
mkdir configs/c.1/strings/0x409/
echo "RNDIS" > configs/c.1/strings/0x409/configuration
echo "1" > os_desc/use
echo "0xcd" > os_desc/b_vendor_code
echo "MSFT100" > os_desc/qw_signmkdir functions/rndis.usb0
echo "RNDIS" > functions/rndis.usb0/os_desc/interface.rndis/compatible_id
echo "5162001" > functions/rndis.usb0/os_desc/interface.rndis/sub_compatible_idln -s functions/rndis.usb0 configs/c.1
ln -s configs/c.1 os_desc
echo "$(ls /sys/class/udc/)" > UDCifconfig usb0 192.168.36.100 netmask 255.255.255.0#mount -t nfs -o nolock -o tcp 192.168.36.11:/nfs /mntmount -t nfs -o nolock 192.168.36.11:/nfs /mntcp -rf /mnt/hi3519/ko /run

boot打印

reboot: Restarting systememmc
boot table board switch:0x00000007
boot table version     :V2.0
boot table build time  :2023/08/01 10:59:25
boot table file name   :Hi3519DV500-DMEBPRO_4L_flyby_DDR4_2666M-2GB_16bitx2-A55_1G.xlsm
DDR size: 0x00000800MBSystem startupUncompress Ok!U-Boot 2022.07 (Aug 01 2023 - 10:59:32 +0800)hi3519dv500DRAM:  Relocation Offset is: 17745000
Relocating to 5ff45000, new gd at 5fb04de0, sp at 5fb04dd0
Core:  1 devices, 1 uclasses
MMC:   mmc->ocr_from_bootrom 0xc0ff8080
sdhci-bsp: tuning done! valid phase shift [8, 6] Final Phase:23
MMC/SD Card:MID:         0x90Read Block:  512 BytesWrite Block: 512 BytesChip Size:   7456M Bytes (High Capacity)Name:        "H8G4a"Chip Type:   MMCVersion:     5.1Speed:       150000000HzBus Width:   4bitMode:        HS200Boot Mode:   normal(), 38 ms
bsp-sdhci: 0 (eMMC)
Loading Environment from MMC... OK
In:    serial
Out:   serial
Err:   serialNet:   gmac0
Error: gmac0 address not set.Hit any key to stop autoboot:  0 
# 
# 

环境变量


# pri
arch=arm
baudrate=115200
board=hi3519dv500
board_name=hi3519dv500
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)
bootcmd=mmc read 0 0x40010000 0x800 0x400; ipcboot bl31 0x40010000; mmc read 0 0x44000000 0xc00 0x6800; ipcboot uimgfdt 0x44000000
bootdelay=2
cpu=armv8
ethact=gmac0
gatewayip=192.168.1.1
ipaddr=192.168.1.120
loadaddr=0x40080000
netmask=255.255.255.0
serverip=192.168.1.102
soc=hi3519dv500
stderr=serial
stdin=serial
stdout=serial
vendor=vendor
verify=nEnvironment size: 618/262140 bytes

与本文相关的文章

发布评论

评论列表 (0)

  1. 暂无评论