Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

script.bin not working?

Featured Replies

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,

 

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

  • Author

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

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.