Linux Kernel config options

I connected Arria 10 SoC DK and AD-FMCLIDAR1-EBZ and confirmed that 2019_R1-2019_12_20.img can be booted.

I need to modify the FPGA design and rebuild the Linux Kernel.

AD-FMCLIDAR1-EBZ is not included in Linux Drivers, so I do not understand the option setting of Configure kernel.

https://wiki.analog.com/resources/tools-software/linux-drivers-all

Can you tell me which options to set in menuconfig?

Regards,

Parents
  • 0
    •  Analog Employees 
    on Jan 28, 2020 12:30 PM

    Hi,

    What do you mean by "AD-FMCLIDAR1-EBZ is not included in Linux Drivers" or what branch are you referring to? For the Arria 10 SoC DK, at this moment, you should use altera_4.14  branch - all the necessary drivers should be enabled by socfpga_adi_defconfig (have a look at https://github.com/analogdevicesinc/linux/commit/c314fdf079ac50dfda58f66655776545e7a466bc).

    Thanks,
    Dragos

  • Hello Dragos

    Thanks for your reply.

    and Sorry for the late reply.

    I've confirmed. However, Linux boot is not completed before confirming the operation.

    The work I did is shown below.

    1. Software preparation

    1-1. Download "2019_R1-2020_02_04.img" from here and write it to SD-CARD.

    https://wiki.analog.com/resources/tools-software/linux-software/zynq_images

    1-2. Copy all files in "socfpga_arria10_socdk_fmclidar1" folder of BOOT partition to Root.

    1-3. "preloader_bootloader.bin" was written to the 3'rd partition using the dd command.

    2. Hardware preparation

    2-1. Change Arria10 SoC Devkit referring to "Changes required" and "The Lidar boards do not power up" here.

    https://github.com/analogdevicesinc/hdl/blob/master/projects/ad_fmclidar1_ebz/README.md

    2-2. Connect LiDAR board to FMC-A of Arria10 SoC Devlit. (LiDAR board switch is OFF)

    In addition, this LiDAR board is work normally with Zynq.

    2-3. Insert SD-CARD into Arria10 SoC Devkit and power on.

    [Result]

    ........

    [ 27.581726] axi_laser_fault_handler: 1357281 callbacks suppressed
    [ 27.581734] axi-pulse-capture ff260000.axi-pulse-capture: IRQ enter, pending:0x06, otw:0, saved_en:0
    [ 27.596896] axi-pulse-capture ff260000.axi-pulse-capture: IRQ enter, pending:0x06, otw:1, saved_en:0
    [ 27.606000] axi-pulse-capture ff260000.axi-pulse-capture: IRQ enter, pending:0x06, otw:0, saved_en:0
    [ 27.615101] axi-pulse-capture ff260000.axi-pulse-capture: IRQ enter, pending:0x06, otw:1, saved_en:0
    [ 27.624200] axi-pulse-capture ff260000.axi-pulse-capture: IRQ enter, pending:0x06, otw:0, saved_en:0
    [ 27.633301] axi-pulse-capture ff260000.axi-pulse-capture: IRQ enter, pending:0x06, otw:1, saved_en:0
    [ 27.642400] axi-pulse-capture ff260000.axi-pulse-capture: IRQ enter, pending:0x06, otw:0, saved_en:0
    [ 27.651494] axi-pulse-capture ff260000.axi-pulse-capture: IRQ enter, pending:0x06, otw:1, saved_en:0
    [ 27.660592] axi-pulse-capture ff260000.axi-pulse-capture: IRQ enter, pending:0x06, otw:0, saved_en:0
    [ 27.669690] axi-pulse-capture ff260000.axi-pulse-capture: IRQ enter, pending:0x06, otw:1, saved_en:0
    [ 32.591727] axi_laser_fault_handler: 1448662 callbacks suppressed
    [ 32.591732] axi-pulse-capture ff260000.axi-pulse-capture: IRQ enter, pending:0x06, otw:0, saved_en:0
    [ 32.606892] axi-pulse-capture ff260000.axi-pulse-capture: IRQ enter, pending:0x06, otw:1, saved_en:0
    [ 32.615991] axi-pulse-capture ff260000.axi-pulse-capture: IRQ enter, pending:0x06, otw:0, saved_en:0
    [ 32.625092] axi-pulse-capture ff260000.axi-pulse-capture: IRQ enter, pending:0x06, otw:1, saved_en:0
    [ 32.634190] axi-pulse-capture ff260000.axi-pulse-capture: IRQ enter, pending:0x06, otw:0, saved_en:0
    [ 32.643288] axi-pulse-capture ff260000.axi-pulse-capture: IRQ enter, pending:0x06, otw:1, saved_en:0
    [ 32.652387] axi-pulse-capture ff260000.axi-pulse-capture: IRQ enter, pending:0x06, otw:0, saved_en:0
    [ 32.661480] axi-pulse-capture ff260000.axi-pulse-capture: IRQ enter, pending:0x06, otw:1, saved_en:0
    [ 32.670578] axi-pulse-capture ff260000.axi-pulse-capture: IRQ enter, pending:0x06, otw:0, saved_en:0
    [ 32.679681] axi-pulse-capture ff260000.axi-pulse-capture: IRQ enter, pending:0x06, otw:1, saved_en:0
    [ 37.601725] axi_laser_fault_handler: 1447616 callbacks suppressed

    The above log is output continuously and boot is not completed.

    This symptom may not occur, but it does occur relatively frequently.

    What is the problem?

    Regards,

  • Hi. Dragos

    Thank you for your reply.

    I wait for your test results.

    best regards

  • 0
    •  Analog Employees 
    on Mar 6, 2020 1:07 PM in reply to Taka@3140

    Hi,

    We found out that the image doesn't contain the latest version of Linux/HDL. Please use these files instead: https://wiki.analog.com/_media/resources/eval/user-guides/ad-fmclidar1-ebz/socfpga_arria10_socdk_fmclidar1_2019_r1.zip

    Thanks,
    Dragos

  • Hi. Dragos

    I appreciate your quick response.

    After replacing it with the downloaded file and executing it, it was confirmed that it worked properly.
    Also, rebuilding using github data (Linux, DTB, Quartus Project) gave the same results.

    This will take you to the next step.
    Thank you !!!

    best regards

  • 0
    •  Analog Employees 
    on Mar 11, 2020 12:06 PM in reply to Taka@3140

    By the way, we have fixed another issue - the AD5627 I2C interface was not properly configured. I've updated: https://wiki.analog.com/_media/resources/eval/user-guides/ad-fmclidar1-ebz/socfpga_arria10_socdk_fmclidar1_2019_r1.zip - make sure to update the preloader partition too.

    Thanks,
    Dragos

  • Hi. Dragos

    Thanks for your new information.

    I exchanged the file that I received and confirmed the operation.

    I have some questions.

    (1) The reply says " make sure to update the preloader partition too." Do you need to change the u-boot source code?

    ->  I am using u-boot 19.04. This was due to the need to work SPI in u-boot.

    (2) What problem did you fix this for?

    -> There was no major change in the work of iio osc.

    (3) Are the only changes I need to make are u-boot and hdl?

    ->   I am adding HDMI output and PCIe to HDL. Therefore, the Linux config options also needed to be changed.

    best regards

Reply
  • Hi. Dragos

    Thanks for your new information.

    I exchanged the file that I received and confirmed the operation.

    I have some questions.

    (1) The reply says " make sure to update the preloader partition too." Do you need to change the u-boot source code?

    ->  I am using u-boot 19.04. This was due to the need to work SPI in u-boot.

    (2) What problem did you fix this for?

    -> There was no major change in the work of iio osc.

    (3) Are the only changes I need to make are u-boot and hdl?

    ->   I am adding HDMI output and PCIe to HDL. Therefore, the Linux config options also needed to be changed.

    best regards

Children