Skip to content

install_hisi

Igor Zalatov edited this page Apr 29, 2021 · 23 revisions

For XM boards ONLY with SoC Hi35{16Ev200,16Ev300,18Ev300} !!!

Initial device firmware update

setenv bootargs 'mem=${osmem:-32M} console=ttyAMA0,115200 panic=20 root=/dev/mtdblock3 rootfstype=squashfs init=/init mtdparts=hi_sfc:256k(boot),64k(env),2048k(kernel),5120k(rootfs),-(rootfs_data)'
setenv bootcmd 'setenv setargs setenv bootargs ${bootargs}; run setargs; sf probe 0; sf read 0x42000000 0x50000 0x200000; bootm 0x42000000'
saveenv
setenv soc hi351xxxxxxx          <= Set you SoC: hi3516ev200/hi3516ev300/hi35183v300
setenv osmem 32M
setenv totalmem 64M              <= 64M for hi3516ev200/hi3518ev300 and 128M for hi3516ev300
setenv ipaddr 192.168.1.10
setenv serverip 192.168.1.254    <= Set you TFTP server IP
saveenv

sf probe 0; sf lock 0

mw.b 0x42000000 ff 1000000
tftp 0x42000000 uImage.${soc}
sf erase 0x50000 0x200000
sf write 0x42000000 0x50000 ${filesize}

mw.b 0x42000000 ff 1000000
tftp 0x42000000 rootfs.squashfs.${soc}
sf erase 0x250000 0x500000
sf write 0x42000000 0x250000 ${filesize}

reset

P.S. Firmware tested with imx307 and sc335 sensors only


Executing a command after the first run

If you have Hi3516Ev300 based board run this command:

set_allocator cma
firstboot

If you have Hi3516Ev200 or Hi3518Ev300 based board run this command:

set_allocator hisi
firstboot

Run ipctool

root@ipcam:/# ipctool 
---
board:
  vendor: OpenIPC
  version: 2020.02
chip:
  vendor: Xiongmai
  model: XM530
ethernet:
  mac: "00:12:41:xx:xx:xx"
rom:
  - type: nor
    block: 64K
    partitions:
      - name: boot
        size: 0x40000
        sha1: e2c7973d
        contains:
          - name: uboot-env
            offset: 0x30000
      - name: env
        size: 0x10000
        sha1: fb6f2de6
      - name: kernel
        size: 0x200000
        sha1: 1130ee7a
      - name: rootfs
        size: 0x500000
        path: /,squashfs
        sha1: 890552b4
      - name: rootfs_data
        size: 0xb0000
        path: /overlay,jffs2,rw
    size: 8M
ram:
  total: 64M
  media: 32M
firmware:
  kernel: "3.10.103+ (SMP Fri Apr 23 21:29:40 UTC 2021)"
  toolchain: gcc version 7.5.0 (Buildroot 2020.02-gb5b7c71) 
  god-app: ipctool
sensors:
- vendor: SmartSens
  model: SC2315E
  control:
    bus: 0
    type: i2c
    addr: 0x30
root@ipcam:/#