Hi, I’m the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!
Did you like my answer?
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:
-
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
. -
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.
-
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.
- Locate the node that corresponds to the GPIO controller, often named something like
-
Recompile the Device Tree: After editing, recompile the device tree to generate the new device tree blob (DTB) file.
-
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: