UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Visitor vvanbeveren
Visitor
254 Views
Registered: ‎09-27-2018

Petalinux 2019.1 u-boot crash when using gpio_led driver

Jump to solution

I am in the process of upgrading a project from petalinux 2018.2 to 2019.1. Everything in 2019.1 builds fine, but when booting u-boot crashes with the following remark:

U-Boot 2019.01 (Oct 08 2019 - 09:44:32 +0000) Xilinx Zynq ZC702

CPU:   Zynq 7z030
Silicon: v3.1
DRAM:  ECC disabled 1 GiB
Error binding driver 'gpio_led': -22
Some drivers failed to bind
initcall sequence 3ffbb34c failed at call 00412dd4 (err=-22)
### ERROR ### Please RESET the board ###

I think this may be releated to the usage of the gpio-leds driver, because I have extended by device-tree with the following (which worked fine in 2018.2):

    /* Configure blinky LEDs! */
    leds {
            compatible = "gpio-leds";
            heartbeat {
                    gpios = <&gpio0 0 0>;
                    default-state = "off";
                    linux,default-trigger = "heartbeat";
            };

    };

So, what could cause this to fail in 2019.1? Any help is welcome!

Kind regards,
Vincent

1 Solution

Accepted Solutions
Moderator
Moderator
234 Views
Registered: ‎06-27-2017

Re: Petalinux 2019.1 u-boot crash when using gpio_led driver

Jump to solution

Hi @vvanbeveren 

 

I see below device tree node in final device tree in zynqMP zcu102 board.

 

Could you please take below device tree as reference?

 

leds {
compatible = "gpio-leds";

heartbeat_led {
label = "heartbeat";
gpios = <0x14 0x17 0x0>;
linux,default-trigger = "heartbeat";
};
};

Best Regards
Kranthi
--------------------------
Don't forget to reply, kudo, and accept as solution.
4 Replies
Moderator
Moderator
235 Views
Registered: ‎06-27-2017

Re: Petalinux 2019.1 u-boot crash when using gpio_led driver

Jump to solution

Hi @vvanbeveren 

 

I see below device tree node in final device tree in zynqMP zcu102 board.

 

Could you please take below device tree as reference?

 

leds {
compatible = "gpio-leds";

heartbeat_led {
label = "heartbeat";
gpios = <0x14 0x17 0x0>;
linux,default-trigger = "heartbeat";
};
};

Best Regards
Kranthi
--------------------------
Don't forget to reply, kudo, and accept as solution.
Moderator
Moderator
223 Views
Registered: ‎09-12-2007

Re: Petalinux 2019.1 u-boot crash when using gpio_led driver

Jump to solution

Is the PL configured too:

petalinux-package --boot --fpga system.bit --u-boot

0 Kudos
Visitor vvanbeveren
Visitor
219 Views
Registered: ‎09-27-2018

Re: Petalinux 2019.1 u-boot crash when using gpio_led driver

Jump to solution
Hi Kranthi,

I modified my device tree entry similar to yours (renamed heartbeat to heartbeat_led and added the label statement) and it works! I don't know exactly what did it , but thanks!

Kind regards,
Vincent
0 Kudos
Visitor vvanbeveren
Visitor
215 Views
Registered: ‎09-27-2018

Re: Petalinux 2019.1 u-boot crash when using gpio_led driver

Jump to solution
Hi Stephen,
Yes, the pl was loaded.
Vincent
0 Kudos