Flash B sample with Hypervisor pre-R1.1

Flash

  1. Build or download image
  2. Skip the check (A BUG, need to be fixed)

    $ Modify the main.mnf
    UpdateContainer/Meta/main.mnf
    ...
    "DevelopmentFlags": {
      "SkipCheckManifestChecksum": "true",
      "SkipCheckInstallerChecksum": "true",
      "SkipCheckVariant": "true"
     },
    ...
    
    $ rm main.mnf.cks  main.mnf_cks_S.sig
  3. Flash the op-tee (Please Note: only need to do once from other version to this version)

    >> NFS settings
     1) FLASH+EMMC...
     2) FLASH...
     3) EMMC...
     4) MINIMONITOR
     5) POWERCONTROLLER...
     6) BOOTMODE...
     7) UBOOT-ENVIRONMENT...
     8) FULLSOLID
     9) BOOTOPTIONS...
    10) (H)ELP
    11) (Q)UIT
    Please select the update: 2
     1) ALL
     2) ALL-FAST
     3) 0x00000000|bootparam_sa0_v2.bin
     4) 0x00040000|bl2.bin
     5) 0x00080000|u-boot.bin.lz4
     6) 0x00100000|normal.cert_header_sa6_10_35.bin
     7) 0x00140000|normal.bl31.bin.lz4
     8) 0x00180000|normal.tee.bin.lz4
     9) 0x00200000|normal.tsd.carcom.image.mib3.bin.lz4
    10) 0x00480000|normal.Image-r8a7795-pcc-zr3_10_35.dtb.lz4
    11) 0x004C0000|normal.vmlinux.bin.lz4
    12) 0x008C0000|normal.initrd.lz4
    13) 0x00B00000|swupdate.cert_header_sa6_10_35.bin
    14) 0x00B40000|swupdate.bl31.bin.lz4
    15) 0x00B80000|swupdate.tee.bin.lz4
    16) 0x00C00000|swupdate.tsd.carcom.image.mib3.bin.lz4
    17) 0x00E80000|swupdate.Image-r8a7795-pcc-zr3_10_35.dtb.lz4
    18) 0x00EC0000|swupdate.vmlinux.bin.lz4
    19) 0x012C0000|swupdate.initrd.lz4
    20) 0x01500000|swupdate.cert_header_sa6_10_35.bin
    21) 0x01540000|swupdate.bl31.bin.lz4
    22) 0x01580000|swupdate.tee.bin.lz4
    23) 0x01600000|swupdate.tsd.carcom.image.mib3.bin.lz4
    24) 0x01880000|swupdate.Image-r8a7795-pcc-zr3_10_35.dtb.lz4
    25) 0x018C0000|swupdate.vmlinux.bin.lz4
    26) 0x01CC0000|swupdate.initrd.lz4
    27) (Q)UIT...
    Please select the flash update, FAST when the system works: 8
    
    
  4. Flash images

    jfeng@ubuntu:~/.../FlashContainer$ sudo ./boardupdater /dev/ttyUSB1 
    [sudo] password for jfeng: 
    Boardupdater Version 3.1.31-c9b6def for ZR3
    Check NFS-V2... FAIL
    Serialnumber: 1 HW-Version: 10 HW-Variant: 35 SYS-Variant: 301001 MAC-Address: FF:FF:FF:FF:FF:FF
    INFO: Some menu are  due to missing resources:
    >> NFS settings
     1) FLASH+EMMC...
     2) FLASH...
     3) EMMC...
     4) MINIMONITOR
     5) POWERCONTROLLER...
     6) BOOTMODE...
     7) UBOOT-ENVIRONMENT...
     8) FULLSOLID
     9) BOOTOPTIONS...
    10) (H)ELP
    11) (Q)UIT
    Please select the update: 1
    1) SLOW
    2) FAST
    3) 
    4) 
    5) (Q)UIT...
    Please select the update mode, FAST when the system works: 2
    

See Android and Linux Serial Logs

  • Open the periscope
    $ sudo flash/coqoshv/periscope/bin/periscope -u serial:/dev/ttyUSB0
  • Reboot the target
    terminal 10 is Linux log
    terminal 20 is Android log

Switch between Android and Linux desktop

  • login to mib3 system
    >  ssh [email protected]
  • Start Android
    $ systemctl start virtual-display-daemon
  • Switch to Android
    $ tsd.system.displaymanager.mib3.app.test-client-dsi
       enter command: show #36
  • Switch to Linux
    $ tsd.system.displaymanager.mib3.app.test-client-dsi
       enter command: show hmi

你可能感兴趣的:(Flash B sample with Hypervisor pre-R1.1)