Please select To the mobile version | Continue to access the desktop computer version

OrangePi

 Login            
 Register            
Search
Hot search: orangepi
View: 3705|Reply: 5

orangePi Lite bin2fex Malformed data

[Copy link]

4

Threads

14

Posts

97

Credits

Registered member

Rank: 2

Credits
97
Post time 2017-12-9 01:48:28 | Show all posts |Read mode
Edited by mistofeles at 2017-12-9 02:37

Is there anything to do ?
I'm trying to enable ttyS3 and I should do some editing to FEX.
There was some help in:
https://docs.armbian.com/Hardware_Allwinner/

It is told that sunxi-fexc ver 1.4.1 works. In Ubuntu server there comes ver 1.3.1.
Where to get this ver 1.4.1 ?

bin2fex does not work:
root@orangepilite:/boot# bin2fex script.bin
fexc-bin: script.bin: version: 34704.1.2
fexc-bin: script.bin: size: 34704 (81 sections)
E: fexc-bin: Malformed data: version 34704.1.2.

DISTRIB_DESCRIPTION="Ubuntu 16.04.3 LTS"
Linux orangepilite.neva 3.4.113-sun8i #4 SMP PREEMPT Wed Nov 22 13:45:28 CET 2017 armv7l armv7l armv7l GNU/Linux


3

Threads

79

Posts

1071

Credits

Gold member

Rank: 6Rank: 6

Credits
1071
Post time 2017-12-9 03:26:58 | Show all posts
Edited by JRios at 2017-12-9 03:35

In Armbian you should have a correct version of fexc tool (bin2fex and fex2bin), or are you referring to a Host sytem (Ubuntu in PC)?

You can get the correct fexc version in linux-sunxi sunxi-tools repository:
https://github.com/linux-sunxi/sunxi-tools

git clone https://github.com/linux-sunxi/sunxi-tools
cd sunxi-tools
make
sudo ln -s bin2fex /usr/bin
sudo ln -s fex2bin /usr/bin

4

Threads

14

Posts

97

Credits

Registered member

Rank: 2

Credits
97
 Author| Post time 2017-12-9 18:11:55 From the mobile phone | Show all posts
Great ! Many thanks.

4

Threads

14

Posts

97

Credits

Registered member

Rank: 2

Credits
97
 Author| Post time 2017-12-9 18:18:29 From the mobile phone | Show all posts
Your advice works. Still, it installs the packet to the directory, where I'm in. So I made a change to the ln - commands and copied the sunxi-* files to /usr/ bin. This is not an ideal way, but works. I tested it by connecting ttyS3 and ttyS3, opened two ssh connections to the device, installed picocom and opened it in both terminals. Works good

4

Threads

14

Posts

97

Credits

Registered member

Rank: 2

Credits
97
 Author| Post time 2017-12-9 18:25:12 From the mobile phone | Show all posts
I'm running Ubuntu server in OrangePi Lite, because there is no Jessie for Lite. Of course I have Linux in .my PC too, not anything from M$. Btw: /boot/script.bin is by default linked to /boot/bin/orangepipc.bin not tl /boot/bin/orangepilite.bin

3

Threads

79

Posts

1071

Credits

Gold member

Rank: 6Rank: 6

Credits
1071
Post time 2017-12-9 19:58:10 | Show all posts
Armbian or official images?
You have to log in before you can reply Login | Register

Points Rules

Archiver|Mobile edition|Darkroom|OrangePi En ( 粤ICP备14086627号-2

2020-11-25 07:22 GMT+8 , Processed in 0.030832 second(s), 22 queries .

Powered by Discuz! X3.2

© 2014-2015 orangepibbs en.

Quick Reply To Top Return to the list