cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
vvanbeveren
Observer
Observer
1,479 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
gudishak
Moderator
Moderator
1,459 Views
Registered: ‎06-27-2017

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.

View solution in original post

4 Replies
gudishak
Moderator
Moderator
1,460 Views
Registered: ‎06-27-2017

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.

View solution in original post

stephenm
Xilinx Employee
Xilinx Employee
1,448 Views
Registered: ‎09-12-2007

Is the PL configured too:

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

0 Kudos
vvanbeveren
Observer
Observer
1,444 Views
Registered: ‎09-27-2018
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
vvanbeveren
Observer
Observer
1,440 Views
Registered: ‎09-27-2018
Hi Stephen,
Yes, the pl was loaded.
Vincent
0 Kudos