monti Posted July 14, 2015 Posted July 14, 2015 Hi, I tried to switch on some LED during boot with script.bin. (connected to PH11). Decompiled script.bin, changed several times PH11 to be an output with value 1 (pin 15 on GPIO3). It works if I switch it on from Linux. ; Was the first I changed lcd_used=0 lcdd11 = port:PH11<1><1><default><1> ; Whats this? Not used, or? ms_used = 0ms_d3 = port:PH11<5><default><default><default> ; Both changed gpio_pin_19 = port:PH11<1><1><default><1> pin_19 = port:PH11<1><1><default><1>Compiled it again, copied it into /boot/script.bin, rebooted, nothing. Its the last statement used? I didn't change ms_d3, but all other. Using 3.4.105-lime2 with debian.... Any ideas? Is there a way to "debug" script.bin? Thanks, Jan
petrmaje Posted July 14, 2015 Posted July 14, 2015 Hi, I tried to switch on some LED during boot with script.bin. (connected to PH11). Decompiled script.bin, changed several times PH11 to be an output with value 1 (pin 15 on GPIO3). It works if I switch it on from Linux. ; Was the first I changed lcd_used=0 lcdd11 = port:PH11<1><1><default><1> ; Whats this? Not used, or? ms_used = 0 ms_d3 = port:PH11<5><default><default><default> ; Both changed gpio_pin_19 = port:PH11<1><1><default><1> pin_19 = port:PH11<1><1><default><1> Compiled it again, copied it into /boot/script.bin, rebooted, nothing. Its the last statement used? I didn't change ms_d3, but all other. Using 3.4.105-lime2 with debian.... Any ideas? Is there a way to "debug" script.bin? Thanks, Jan Hi Jan, lcd_used=0, so the following code where you switch on the pin will be not executed. I think that this is not the right way. Leave lcd_used=0 and register your LED as LED device: Try to add to script.fex following section (or modify existing) like this: [leds_para] leds_used = 1 leds_num = 1 leds_pin_1 = port:PH11<1><default><default><1> leds_name_1 = "my:special:led" leds_default_1 = 1 leds_trigger_1 = "default-on" Petr
monti Posted July 24, 2015 Author Posted July 24, 2015 Thanks, but its only partial working. On another port I defined a pullup resistor and this worked. But I can't set the direction to output on startup. Is there a device tree configured, which overrides the script.bin? (This would fit, because I cannot change the pullup/down-feature inside linux) jan
Recommended Posts