HI3519DV500快速启动

刷机前

inid.rc

#! /bin/sh

/bin/mount -a

for initscript in /etc/init.d/S[0-9][0-9]*
do
        if [ -x $initscript ] ;
        then
                echo "[RCS]: $initscript"
                $initscript
        fi
done

export 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/sh

export 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/serialnumber

mkdir 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_sign

mkdir 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_id

ln -s functions/rndis.usb0 configs/c.1
ln -s configs/c.1 os_desc
echo "$(ls /sys/class/udc/)" > UDC

ifconfig usb0 192.168.36.100 netmask 255.255.255.0

#mount -t nfs -o nolock -o tcp 192.168.36.11:/nfs /mnt
 mount -t nfs -o nolock 192.168.36.11:/nfs /mnt

cp -rf /mnt/hi3519/ko /run

boot打印

reboot: Restarting system

emmc
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: 0x00000800MB

System startup

Uncompress Ok!

U-Boot 2022.07 (Aug 01 2023 - 10:59:32 +0800)hi3519dv500

DRAM:  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:         0x90
    Read Block:  512 Bytes
    Write Block: 512 Bytes
    Chip Size:   7456M Bytes (High Capacity)
    Name:        "H8G4a"
    Chip Type:   MMC
    Version:     5.1
    Speed:       150000000Hz
    Bus Width:   4bit
    Mode:        HS200
    Boot Mode:   normal(), 38 ms
bsp-sdhci: 0 (eMMC)
Loading Environment from MMC... OK
In:    serial
Out:   serial
Err:   serial

Net:   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=n

Environment size: 618/262140 bytes

你可能感兴趣的:(linux,c++,c语言)