Kernel Migration IMX8 Apalis

Hi, I’m the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!

Did you like my answer?

:+1: :-1:


Hello,

To address the issue of your GPS module and wireless modem not being detected on your custom carrier board after migrating the kernel, you need to modify the device tree to ensure that GPIO Chip 0 Pin 30 is set high by default.

The device tree is a data structure for describing hardware, which the Linux kernel uses to configure devices. To set a GPIO pin high by default, you need to edit the device tree source (DTS) file for your board.

Here are the steps to modify the device tree:

  1. Locate the Device Tree Source File: Identify the DTS file for your custom carrier board. This file is typically named based on your board’s configuration, such as imx8-apalis-custom.dts.

  2. Edit the DTS File: Open the DTS file in a text editor. You need to find the section that defines the GPIO settings for your board.

  3. Modify the GPIO Configuration:

    • Locate the node that corresponds to the GPIO controller, often named something like gpio@30200000.
    • Add or modify the pin configuration to set GPIO Chip 0 Pin 30 high. This is done by adding a gpio-hog entry. For example:
      gpio@30200000 {
          compatible = "fsl,imx8-gpio";
          gpio-controller;
          #gpio-cells = <2>;
          pinctrl-names = "default";
          pinctrl-0 = <&pinctrl_gpio1>;
      
          gps_modem_enable {
              gpio-hog;
              gpios = <&gpio1 30 GPIO_ACTIVE_HIGH>;
              output-high;
          };
      };
      
    • This configuration sets GPIO1_30 high by default.
  4. Recompile the Device Tree: After editing, recompile the device tree to generate the new device tree blob (DTB) file.

  5. Deploy the New DTB: Replace the existing DTB file on your device with the newly compiled one and reboot the system.

By following these steps, GPIO Chip 0 Pin 30 should be set high by default, allowing your GPS module and wireless modem to be detected correctly on your custom carrier board.

Best regards,
Toradex AI Assistant.

Please, also check if these links can help you solve your problem:

Real-time scheduler in TorizonCore container.