Post Go back to editing

Building patched kernel failed during frequency hopping example

ostoto@ostoto:~/linux$ git apply --reject --whitespace=fix hopper.patch
Checking patch arch/arm/configs/zynq_xcomm_adv7511_defconfig...
error: while searching for:
CONFIG_ADIS16400=y
CONFIG_ADIS16460=y
CONFIG_ADIS16480=y
CONFIG_JESD204=y
CONFIG_AXI_ADXCVR=y
CONFIG_AXI_JESD204B=y

error: patch failed: arch/arm/configs/zynq_xcomm_adv7511_defconfig:359
Checking patch drivers/iio/Kconfig...
error: while searching for:
source "drivers/iio/health/Kconfig"
source "drivers/iio/humidity/Kconfig"
source "drivers/iio/imu/Kconfig"
source "drivers/iio/jesd204/Kconfig"
source "drivers/iio/light/Kconfig"
source "drivers/iio/logic/Kconfig"

error: patch failed: drivers/iio/Kconfig:80
Checking patch drivers/iio/Makefile...
error: while searching for:
obj-y += health/
obj-y += humidity/
obj-y += imu/
obj-y += jesd204/
obj-y += light/
obj-y += logic/

error: patch failed: drivers/iio/Makefile:25
Checking patch drivers/iio/ip/Kconfig...
error: drivers/iio/ip/Kconfig: already exists in working directory
Checking patch drivers/iio/ip/Makefile...
error: drivers/iio/ip/Makefile: already exists in working directory
Checking patch drivers/iio/ip/hopper.c...
error: drivers/iio/ip/hopper.c: already exists in working directory
Applying patch arch/arm/configs/zynq_xcomm_adv7511_defconfig with 1 reject...
Rejected hunk #1.
Applying patch drivers/iio/Kconfig with 1 reject...
Rejected hunk #1.
Applying patch drivers/iio/Makefile with 1 reject...
Rejected hunk #1.

I tried to run frequency hopping example on ADRv9361-z7035 board. While building kernel and applying patch as described here  gives following error. the terminal log is attaced above.

  • What kernel repo and branch are you using?

    -Travis

  • Thanks for the response. 

    I am using the patch as defined below. I am using Xilinx vivado 2019.1 version with HDl reference design for AD9361-z7035 ccfmc_lvds 2019_r2 master to build the design.

    #!/bin/bash
    
    # Build kernel
    git clone -b 2019_R2 --depth=1 https://github.com/analogdevicesinc/linux.git
    cd linux
    export ARCH=arm
    export CROSS_COMPILE=arm-linux-gnueabihf-
    source /home/ostoto/Documents/Xilinx/Vivado/2019.1/settings64.sh
    cp ../hopper.patch .
    git apply --reject --whitespace=fix hopper.patch
    make zynq_xcomm_adv7511_defconfig
    make -j4 UIMAGE_LOADADDR=0x8000 uImage
    

  • Looks like you need to reset your repository first, due to the previously applied patch.

    Assuming you have no uncommitted modifications in your tree or you don't care you can do the following:

    # git reset --hard

    # git clean  -fdx

    -Michael