This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Building Linux Kernel - FMCOMMS1 + ZED + RT5370 USB WiFi adaptor

Hi,

I'm trying to include wifi support while building the linux from source, following below steps and getting a build error.

platform : FMCOMMS1 + ZED + RT5370 USB WiFi adaptor
branch : 2016_R1
tool : Vivado 2015.4.2

1. arch/arm/configs/zynq_xcomm_adv7511_defconfig: Add USB Wifi support
https://github.com/analogdevicesinc/linux/commit/d8ebbefa8413565994ae43c2b25e558a28d52ffa#diff-5e49967251938ce867d11f656df3ec37

2. Build the kernel
https://wiki.analog.com/resources/tools-software/linux-build/generic/zynq

Error:

$ make -j5 UIMAGE_LOADADDR=0x8000 uImage
CC scripts/mod/devicetable-offsets.s
CC scripts/mod/empty.o
: No such file or directory
make[1]: *** [scripts/Makefile.build:99: scripts/mod/devicetable-offsets.s] Erro
r 2
make[1]: *** Deleting file 'scripts/mod/devicetable-offsets.s'
make[1]: *** Waiting for unfinished jobs....
: No such file or directory
make[1]: *** [scripts/Makefile.build:266: scripts/mod/empty.o] Error 2
make[1]: *** Deleting file 'scripts/mod/empty.o'
make: *** [Makefile:1111: prepare0] Error 2

I'm not sure which file is missing ?

Is it possible to use the latest (master branch) to build the linux and use it with FMCOMMS1 ?




[locked by: travisfcollins at 9:46 PM (GMT -4) on 9 Jul 2021]
Parents
  • 0
    •  Analog Employees 
    on Feb 8, 2021 9:50 AM

    Hi,

    You can use the master branch to build FMCOMMS1.  Make sure to also update to Vivado 2020.1 to match everything along with HDL master branch for this project.

    Let me know if you still get errors.

    Regards,

    Mircea

  • +1
    •  Analog Employees 
    on Feb 8, 2021 2:41 PM in reply to ADIApproved

    Hello,

    FMCOMMS1 is discontinued starting from release 2016_r1, so you'll need to update the project yourself.

    Regards,

    Adrian

  • Hi,

    I am getting the same error (see below). How do I update my project? I am describing the background and the error below.

    Background: I am trying to build the device tree for dac-fmc-ebz reference design for ad9174-fmc-ebz board on zcu102 rev 1.1. I haven't modified any of the source code, but eventually, I want to modify it to build the device tree for jesd mode 20. For this I rebuilt the hw after modifying the config.tcl script to change the mode. As for the device tree I am trying to use the script approach as described on (https://wiki.analog.com/resources/tools-software/linux-build/generic/zynqmp). I have used the the 2019_r2 tags from github (HDL SHA: 061d024 and Linux SHA:a6ef26d ).

    Error Log

    $ ./build_zynqmp_kernel_image.sh zynqmp

    ~/adi/linux/zynqmp ~/adi/linux
    : invalid numberrsion.sh: line 20: printf: 8
    : invalid numberrsion.sh: line 20: printf: 2
    : invalid numberrsion.sh: line 20: printf: 0
    : invalid numberrsion.sh: line 20: printf: 8
    : invalid numberrsion.sh: line 20: printf: 2
    : invalid numberrsion.sh: line 20: printf: 0
    #
    # No change to .config
    #
    HOSTCC scripts/extract-cert
    UPD include/generated/utsrelease.h
    HOSTCC scripts/mod/mk_elfconfig
    CC scripts/mod/devicetable-offsets.s
    CC scripts/mod/empty.o
    : No such file or directory
    make[1]: *** [scripts/Makefile.build:99: scripts/mod/devicetable-offsets.s] Error 2
    make[1]: *** Deleting file 'scripts/mod/devicetable-offsets.s'
    make[1]: *** Waiting for unfinished jobs....
    : No such file or directory
    make[1]: *** [scripts/Makefile.build:266: scripts/mod/empty.o] Error 2
    make[1]: *** Deleting file 'scripts/mod/empty.o'
    make: *** [Makefile:1111: prepare0] Error 2

Reply
  • Hi,

    I am getting the same error (see below). How do I update my project? I am describing the background and the error below.

    Background: I am trying to build the device tree for dac-fmc-ebz reference design for ad9174-fmc-ebz board on zcu102 rev 1.1. I haven't modified any of the source code, but eventually, I want to modify it to build the device tree for jesd mode 20. For this I rebuilt the hw after modifying the config.tcl script to change the mode. As for the device tree I am trying to use the script approach as described on (https://wiki.analog.com/resources/tools-software/linux-build/generic/zynqmp). I have used the the 2019_r2 tags from github (HDL SHA: 061d024 and Linux SHA:a6ef26d ).

    Error Log

    $ ./build_zynqmp_kernel_image.sh zynqmp

    ~/adi/linux/zynqmp ~/adi/linux
    : invalid numberrsion.sh: line 20: printf: 8
    : invalid numberrsion.sh: line 20: printf: 2
    : invalid numberrsion.sh: line 20: printf: 0
    : invalid numberrsion.sh: line 20: printf: 8
    : invalid numberrsion.sh: line 20: printf: 2
    : invalid numberrsion.sh: line 20: printf: 0
    #
    # No change to .config
    #
    HOSTCC scripts/extract-cert
    UPD include/generated/utsrelease.h
    HOSTCC scripts/mod/mk_elfconfig
    CC scripts/mod/devicetable-offsets.s
    CC scripts/mod/empty.o
    : No such file or directory
    make[1]: *** [scripts/Makefile.build:99: scripts/mod/devicetable-offsets.s] Error 2
    make[1]: *** Deleting file 'scripts/mod/devicetable-offsets.s'
    make[1]: *** Waiting for unfinished jobs....
    : No such file or directory
    make[1]: *** [scripts/Makefile.build:266: scripts/mod/empty.o] Error 2
    make[1]: *** Deleting file 'scripts/mod/empty.o'
    make: *** [Makefile:1111: prepare0] Error 2

Children