Post Go back to editing

Failed to build ADI kernel for Raspberry PI.

Hello.

I tried to use the ToF camera in the OS of the environment built for me, but I couldn't start it due to kernel loading failure.

The operating systems are as follows

・AD-96TOF1-EBZ rev.C

・Raspberry Pi B+

In order to reproduce the problem, I tried using the latest official Raspberry Pi OS.

I downloaded the OS and wrote it to the SD card. Then I rewrote the kernel according to the instructions here

With “make menuconfig”, we have enabled the necessary settings for ADDI9036: VIDEO_ADDI9036, EEPROM_AT24

However, as shown in the figure, the kernel failed to load and I could not boot successfully. Is there anything else I should do?

KENTA

Parents
  • Hi,

    Sorry for late response.

    I would like to ask you if you replaced the kernel too or just the modules.

    Can you please check what's the output of "uname -a" and "ls -al /lib/modules"?

  • This is the first time for me to modify the kernel, so I don't know much about it. One thing I can say is that I followed the instructions exactly.

    I tried to type in a command to check the name, but the Raspy failed to boot, I couldn't connect to ssh, and the keyboard didn't respond when I connected to the display.

    If you replace only the kernel image with the initial one, it will boot as usual. The output is shown below.

     

  • The problem is that modules for rpi-4.19.y are not installed.

    When Linux boots it checks the version of the kernel and after that tries to load the corresponding modules for that specific kernel version.

    In your case the ADI kernel should be something like 4.19 but as it can be seen in the output of the "ls" command you have modules on SD card only for 5.4.79 version.

    The "export KERNEL_MODULES_PATH=kernel_modules_location" should be adapted to your requirements. For example insert SD card in PC, check where it does gets mounted and point the KERNEL_MODULES_PATH variable there.

    Can be something like: /run/media/rootfs but it greatly depends on your Linux distro.

    In the end you should get another folder on SD card in /lib/modules with modules for 4.19 adi kernel.

    After you have that you can copy the ADI kernel on SD card and that should be all. 

  • I have successfully loaded the camera by replacing the kernel to 4.19 and cross-compiling.
    However, I am having a small problem.
    It returns "fopen() failed. Error: Permission denied" and I can't read the camera properly.
    This problem can be solved by using the sudo command.
    Please let me know if there is a solution.

Reply
  • I have successfully loaded the camera by replacing the kernel to 4.19 and cross-compiling.
    However, I am having a small problem.
    It returns "fopen() failed. Error: Permission denied" and I can't read the camera properly.
    This problem can be solved by using the sudo command.
    Please let me know if there is a solution.

Children

Before You Switch


Switching languages will make ADI Explorer unavailable. Resume your session by switching back to English and reopening ADI Explorer.