Failure to compile firmware 1.0.8

Discussion in 'UDOO BOLT' started by Richard Gomes, Oct 6, 2021.

  1. Richard Gomes

    Richard Gomes UDOOer

    Joined:
    Dec 11, 2019
    Messages:
    5
    Likes Received:
    2
    Hello experts on BIOS updates,

    I'm willing to update the BIOS under Linux 64 as per logs below.

    Since the compilation failed, I've aborted any further action before it is too late and I eventually is gifted with a bricked device.

    Could anyone advise please?

    Thanks a lot,

    -- Richard


    ```bash
    # uname -a
    Linux udoo 5.10.0-8-amd64 #1 SMP Debian 5.10.46-5 (2021-09-23) x86_64 GNU/Linux

    # cat /etc/os-release
    PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
    NAME="Debian GNU/Linux"
    VERSION_ID="11"
    VERSION="11 (bullseye)"
    VERSION_CODENAME=bullseye
    ID=debian
    HOME_URL="https://www.debian.org/"
    SUPPORT_URL="https://www.debian.org/support"
    BUG_REPORT_URL="https://bugs.debian.org/"

    root@udoo:/home/rgomes/tmp# pwd
    /home/rgomes/tmp


    # ./bios_updater_x64.sh ../../../../BIOS/C4000000.108

    GHO BIOS updater - Linux 64 bit Version

    /home/rgomes/tmp/Flash_tools/AFU/Linux/64/DriverSource/amifldrv.c:128:2: error: ‘struct file_operations’ has no member named ‘ioctl’
    128 | ioctl : amifldrv_ioctl,
    | ^~~~~
    /home/rgomes/tmp/Flash_tools/AFU/Linux/64/DriverSource/amifldrv.c:128:12: error: positional initialization of field in ‘struct’ declared with ‘designated_init’ attribute [-Werror=designated-
    init]
    128 | ioctl : amifldrv_ioctl,
    | ^~~~~~~~~~~~~~
    /home/rgomes/tmp/Flash_tools/AFU/Linux/64/DriverSource/amifldrv.c:128:12: note: (near initialization for ‘amifldrv_fops’)
    /home/rgomes/tmp/Flash_tools/AFU/Linux/64/DriverSource/amifldrv.c:128:12: error: initialization of ‘int (*)(struct file *, loff_t, loff_t, int)’ {aka ‘int (*)(struct file *, long long int,
    long long int, int)’} from incompatible pointer type ‘int (*)(struct inode *, struct file *, unsigned int, long unsigned int)’ [-Werror=incompatible-pointer-types]
    /home/rgomes/tmp/Flash_tools/AFU/Linux/64/DriverSource/amifldrv.c:128:12: note: (near initialization for ‘amifldrv_fops.fsync’)
    cc1: some warnings being treated as errors
    make[3]: *** [/usr/src/linux-headers-5.10.0-8-common/scripts/Makefile.build:284: /home/rgomes/tmp/Flash_tools/AFU/Linux/64/DriverSource/amifldrv.o] Error 1
    make[2]: *** [/usr/src/linux-headers-5.10.0-8-common/Makefile:1845: /home/rgomes/tmp/Flash_tools/AFU/Linux/64/DriverSource] Error 2
    make[1]: *** [/usr/src/linux-headers-5.10.0-8-common/Makefile:185: __sub-make] Error 2
    mv: cannot stat 'amifldrv_mod.ko': No such file or directory
    make: *** [Makefile:20: default] Error 1
    +---------------------------------------------------------------------------+
    | AMI Firmware Update Utility Manufacture v5.12.05.2125 |
    | for SECO S.p.A. 64 bits |
    | Copyright (c) 1985-2020, American Megatrends International LLC. |
    | All rights reserved. Subject to AMI licensing agreement. |
    +---------------------------------------------------------------------------+
    ^Ceading flash ...................... 0x00157000 (16%)
    # ^C

    *** INTERRUPTED HERE BEFORE IT IS TOO LATE ***


    # dpkg --list | fgrep -i gcc
    ii gcc 4:10.2.1-1 amd64 GNU C compiler
    ii gcc-10 10.2.1-6 amd64 GNU C compiler
    ii gcc-10-base:amd64 10.2.1-6 amd64 GCC, the GNU Compiler Collection (base package)
    ii gcc-9-base:amd64 9.3.0-22 amd64 GCC, the GNU Compiler Collection (base package)
    ii libcc1-0:amd64 10.2.1-6 amd64 GCC cc1 plugin for GDB
    ii libgcc-10-dev:amd64 10.2.1-6 amd64 GCC support library (development files)
    ii libgcc-s1:amd64 10.2.1-6 amd64 GCC support library
    ii libgomp1:amd64 10.2.1-6 amd64 GCC OpenMP (GOMP) support library
    ii libquadmath0:amd64 10.2.1-6 amd64 GCC Quad-Precision Math Library
    ii libuno-cppuhelpergcc3-3 1:7.0.4-4 amd64 LibreOffice UNO runtime environment -- CPPU helper library
    ii libuno-purpenvhelpergcc3-3 1:7.0.4-4 amd64 LibreOffice UNO runtime environment -- "purpose environment" helper
    ii libuno-salhelpergcc3-3 1:7.0.4-4 amd64 LibreOffice UNO runtime environment -- SAL helpers for C++ library
    ii linux-compiler-gcc-10-x86 5.10.46-5 amd64 Compiler for Linux on x86 (meta-package)


    # dpkg --list | fgrep -i cpp
    ii cpp 4:10.2.1-1 amd64 GNU C preprocessor (cpp)
    ii cpp-10 10.2.1-6 amd64 GNU C preprocessor
    ii libmpeg2encpp-2.1-0:amd64 1:2.1.0+debian-6 amd64 MJPEG capture/editing/replay and MPEG encoding toolset (library)
    ii libpoppler-cpp0v5:amd64 20.09.0-3.1 amd64 PDF rendering library (CPP shared library)
    ii libqrcodegencpp1:amd64 1.6.0-1 amd64 QR Code generator library in multiple languages - C++ version
    ii libuno-cppu3 1:7.0.4-4 amd64 LibreOffice UNO runtime environment -- CPPU public library
    ii libuno-cppuhelpergcc3-3 1:7.0.4-4 amd64 LibreOffice UNO runtime environment -- CPPU helper library


    # dpkg --list | fgrep -i g++
    ii g++ 4:10.2.1-1 amd64 GNU C++ compiler
    ii g++-10 10.2.1-6 amd64 GNU C++ compiler
    ```
     
  2. Richard Gomes

    Richard Gomes UDOOer

    Joined:
    Dec 11, 2019
    Messages:
    5
    Likes Received:
    2
    Maybe I've forgot some crucial information:

    root@udoo:/home/rgomes/tmp# dpkg --list | fgrep linux-header
    ii linux-headers-5.10.0-8-amd64 5.10.46-5 amd64 Header files for Linux 5.10.0-8-amd64
    ii linux-headers-5.10.0-8-common 5.10.46-5 all Common header files for Linux 5.10.0-8
     

Share This Page