Announcement

Collapse
No announcement yet.

UNFEX REFEX FWINFO, Allwinner V3(s) action camera, shell scripts for Linux

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • UNFEX REFEX FWINFO, Allwinner V3(s) action camera, shell scripts for Linux

    This is a work in progress ... when I have free time. I need your help. If you are a Linux user, please contact me.

    Scripts are .sh file for running in Linux. They are based on various .bat and .cmd scripts from this post #30 https://www.goprawn.com/forum/allwin...?p=839#post839 . Be sure to install 'squashfs-tools' and 'java-common' packages. The 'openjdk-11-jre' package for java may also work. Read the ' readme txt ' file inside each downloaded archive file.

    These scripts are only for 12058624 bytes size full_img.fex files. Scripts for the 3 to 4 other common sizes of full_img.fex files are not yet available.

    Download all together in an archive tar.gz here - https://drive.google.com/open?id=1Zd...AqB4x87a92bTmA

    Individual .sh and other files, download here - https://drive.google.com/open?id=1oO...IZnofKHRR47Spq

    Available scripts as of now:
    Code:
    Open a Terminal application window.
    
    Run 'bash ./unfex.sh' to create separate 0/1/2/3/4/5/6 partition img files.
    
    Run 'bash ./squashfs_unmake.sh' to extract data from 2-system.img partition file.
    
    Run 'bash ./scriptbin_read.sh' to create script.bin hardware description file.
    
    Run 'bash ./convertscriptbin.sh' to get script.fex readable text.
    
    Run 'bash ./refex.sh' to create a FULL_IMG.FEX file from 0/1/2/3/4/5/6 img files.
    
    Run 'bash ./squashfs_make.sh' to create a 2-system.img file from data in 'squashfs-root' folder.
    Last edited by petesimon; 09-15-2019, 10:46 AM.

  • #2
    Update: 'fwinfo.sh' script added. Download here - https://drive.google.com/open?id=1Zd...AqB4x87a92bTmA

    Open a Terminal application window.
    Code:
    Run 'bash ./fwinfo.sh' to get firmware info. Look in a FWINFO folder. Open 'fwinfo.txt' file.
    .
    More UNFEX REFEX FWINFO scripts for Windows and Linux are here - https://glot.io/snippets/fcg8vyjyyv/...links-list.txt

    More firmware backup scripts for Windows/Linux/Mac are here - https://glot.io/snippets/fcg8vyjyyv/...-mac-linux.txt

    GitHub code and files here - https://github.com/petesimon/allwinner-v3-v3s
    Last edited by petesimon; 10-08-2019, 04:59 AM.

    Comment


    • #3
      I’m a long time linux user who is trying to do stuff with these cameras. I have a few to try out.

      Comment


      • petesimon
        petesimon commented
        Editing a comment
        Great. Please here describe your cameras and describe your Linux setup (Ubuntu, Fedora, or another).

    • #4
      I've got three types of allwinnerv3 cameras. All are similar but only one has the touch screen. I've managed to get firmware for 2/3 and I'll try the third today. I mostly use Ubuntu but I have a Debian install as well. I am running on some amd64 SoC and hoping to configure the cameras to stream live data to the linux machines.

      *Update* I am unable to backup the fw on my newer camera. In the config screen the version reads as 20200101 v001. It won't show up when I run ./backup.sh

      Code:
      error: no devices/emulators found
      Device not found. Check camera and USB connection and try again
      lsusb reports the following:
      Bus 001 Device 006: ID 1908:1913 GEMBIRD
      front of pink camera
      back of pink camera
      splash screen of pink camera

      This is the info for my OTHER camera that I was able to pull FW from:
      Product:
      fx1gddr4k30imx179s90fps-sdv
      Manufacturer:
      lzm
      Short id:
      fuxin
      OEM id:
      zx
      Camera type:
      6182
      FW original date:
      20190107
      FW mod. date:
      20180228
      Camera name:
      Vision 3
      Version:
      20190715V3
      LCD model:
      st7789vfxhhfd
      LCD resolution:
      320x240
      LCD count:
      1
      Sensor model:
      imx179s_8
      Last edited by tummyacid; 10-09-2020, 04:38 PM. Reason: add photos

      Comment


      • petesimon
        petesimon commented
        Editing a comment
        thanks for the info! can you please share your firmware here by dropbox or google-drive ?
        .

        lsusb reports the following: Bus 001 Device 006: ID 1908:1913 GEMBIRD
        also, I guess that a 1908:1913 GEMBIRD may not be an Allwinner V3 device, but I could be wrong. Check the Linux USB ID database here - http://www.linux-usb.org/usb.ids

      • tummyacid
        tummyacid commented
        Editing a comment
        The seller claimed they were AllWinner v3 camera and they look just like them but they don't seem to present anything to the android debugger. I tried setting udev rules like the ones in the script but with 1908 1913 as the ids but no luck.

      • petesimon
        petesimon commented
        Editing a comment
        In the config screen the version reads as 20200101 v001. It won't show up when I run ./backup.sh
        Can you take a photo of the firmware info screen of the camera, and share that photo here?

        also, you could try do these commands in the Linux terminal (console) one-by-one. be sure that 'adb' and 'zip' packages are installed and your udev rules are correctly configured for Allwinner V3 USB devices. and later share the backup.zip file via google-drive or dropbox.

        Code:
        adb kill-server
        adb start-server
        adb root
        adb remount
        adb pull /dev/block/mtdblock0 0-uboot.img
        echo Block 0 'uboot' copied.
        adb pull /dev/block/mtdblock1 1-boot.img
        echo Block 1 'boot' copied.
        adb pull /dev/block/mtdblock2 2-system.img
        echo Block 2 'system' copied.
        adb pull /dev/block/mtdblock3 3-config.img
        echo Block 3 'config' copied.
        adb pull /dev/block/mtdblock4 4-blogo.img
        echo Block 4 'blogo' copied.
        adb pull /dev/block/mtdblock5 5-slogo.img
        echo Block 5 'slogo' copied.
        adb pull /dev/block/mtdblock6 6-env.img
        cat 0-uboot.img 1-boot.img 2-system.img 3-config.img 4-blogo.img 5-slogo.img 6-env.img > full_img.fex
        zip -9v backup.zip 0-uboot.img 1-boot.img 2-system.img 3-config.img 4-blogo.img 5-slogo.img 6-env.img full_img.fex
    Working...
    X