Olimex Support Forum

OLinuXino Android / Linux boards and System On Modules => A20 => Topic started by: att2 on February 15, 2019, 04:48:14 PM

Title: A20 Lime2 Rev.K - using a20_Ubuntu_bionic_next_4.19.17 -> no "script.bin"/.fex?
Post by: att2 on February 15, 2019, 04:48:14 PM
Hello,
I'm sorry, I have another foolish question.
On a Olimex A20 Lime2 Revision K I am trying out now the latest, recommended, distro - i.e.
Quotea20_Ubuntu_bionic_next_4.19.17_desktop.img

At the moment, I can say it runs really neat from SD-card. However, I need an additional option, which I have only found on older software versions, but not here: I need to edit the /boot/script.bin file.
Previously, this was done with bin2fex, then editing the fex file, fex2bin script.bin, and rebooting. In my case, I had to edit the [gpio_para] section so that it read


gpio_used=1
gpio_pin_34=port:PB00<0><default><default><default>


With the new system and the newest kernel, 4.9.17-sunxi, it seems I am unable to locate any "script.bin"-file. So how do I get these little modifications into the system ?

Please let me know. (It is not in the how-to)... Thanks!

Title: Re: A20 Lime2 Rev.K - using a20_Ubuntu_bionic_next_4.19.17 -> no "script.bin"/.fex?
Post by: JohnS on February 15, 2019, 06:00:06 PM
fex files etc are not a Linux feature.  You need to do it using such as DT (Device Tree).

John
Title: Re: A20 Lime2 Rev.K - using a20_Ubuntu_bionic_next_4.19.17 -> no "script.bin"/.fex?
Post by: att2 on February 16, 2019, 03:17:29 AM
Can you elaborate on that? I don't know how to do that.
Title: Re: A20 Lime2 Rev.K - using a20_Ubuntu_bionic_next_4.19.17 -> no "script.bin"/.fex?
Post by: olimex on February 16, 2019, 08:44:14 AM
it would be simplier to explain what do you want to achieve

if you want to use GPIOs you can read this

https://olimex.wordpress.com/2019/01/25/working-with-a20-olinuxino-or-som-gpios-when-using-new-armbian-based-a20-universal-linux-image/
Title: Re: A20 Lime2 Rev.K - using a20_Ubuntu_bionic_next_4.19.17 -> no "script.bin"/.fex?
Post by: att2 on February 16, 2019, 05:39:48 PM
OK what I originally wanted to archive is this:

* Switch a LED on, when writing to the port

HOWEVER, I noticed another problem: I need to use Lines PI19 as RX of a serial and connected to /dev/ttyS1, and Line PI18 as TX of the same serial, connected to /dev/ttyS1

IN THE FORMER TIMES (Kernel 3.x), I was editing the script.bin via bin2fex -> script.fex -> texteditor -> fex2bin -> reboot and everything worked.
NOW, with Kernel 4.x and U-BOOT, I don't know how to do this.

Any help greatly appreciated.
Title: Re: A20 Lime2 Rev.K - using a20_Ubuntu_bionic_next_4.19.17 -> no "script.bin"/.fex?
Post by: filmacu on December 20, 2022, 05:32:45 PM
Hi, I am having the exact same issue and have not been able to finad a solution on the Olimex site. Did you ever get this resolved?

Many thanks,
phil