Author: adheybgz

Custom Rom Beelink X2 H3 quadcore

[Copy link]

0

threads

10

posts

40

credits

Novice

Rank: 1

credits
40
Published in 2015-11-3 08:29:39 | Show all floors
So far seems to work fine. I try to get my IR remote and KODI 15 to work with this. Will let you know. I have not tested the following SATA, Camera, Ethernet, analog audio/video, OTG.
I am running Orange Pi plus.
Pero nuestros perros son blancos.

0

threads

10

posts

40

credits

Novice

Rank: 1

credits
40
Published in 2015-11-4 10:36:54 | Show all floors
Edited by MDM63 at 2015-11-4 10:51

Found some time to fiddle with this today (night). I got my IR remote working and KODI 15.02 seems to work fine. Also mic works, but only in close range. I did not have heart to shout at my condo in the middle of the night.

I did the following things if anyone is interested.

Followed darqoq tutorial to setup the IR remote. I had to do some things little different.

Preparation:
Download the necessary lircd files from darqoq's mega account. (I haven't checked, but I have strong suspicion that the lircd might be already installed in this ROM...)
Find away to move the files to your Orange Pi. I tried to download them with the build in browser, but it required to install the MEGA android app an I could not find the folder where the MEGA app donwloaded the files.
You could use WinSPC (or any other SFTP app) to transfer the files to you Orange Pi plus. For this you will need SSH server for android. (I used SSHDroid). These apps are probably not necessary, but will ease the process, as one can use desktop computer to do all the commands and file editing. I had several issues using my wireless USB keyboard and the terminal emulator. (e.g. unable to edit files with nano, my arrow keys did not move the cursor for some reason.)

Installing:
Access the command line (Use the terminal emulator or SSH)

Become su

   
  1. su
Copy code


Remount /system as RW(read and write) to be enable to do the necessary changes.

   
  1. mount -o remount,rw /system
Copy code


Create dir

   
  1. mkdir /etc/lircd
Copy code


Copy the lircd files download from mega to to /etc/lircd

  1.    cp /sdcard/Download/evtest /system/bin/evtest
  2.     cp /sdcard/Download/lircd /system/bin/lircd
  3.     cp /sdcard/Download/irw /system/bin/irw
  4.     cp /sdcard/Download/irrecord /system/bin/irrecord
  5.     cp /sdcard/Download/start_lircd.sh /system/bin/start_lircd.sh
  6.     cp /sdcard/Download/stop_lircd.sh /system/bin/stop_lircd.sh
Copy code


Modify file permissions so we can run the necessary programs. (In this ROM chmod supports only octal mode descriptions!)
I used 777 for them all,(in general this is not very wise) if you are concerned with giving all access to every one to these files you are welcome to experiment with more restricted permissions. More information about user permissions can be found here.

  1.    chmod 777 /system/bin/evtest
  2.     chmod 777 /system/bin/lircd
  3.     chmod 777 /system/bin/irw
  4.     chmod 777 /system/bin/irrecord
  5.     chmod 777 /system/bin/start_lircd.sh
  6.     chmod 777 /system/bin/stop_lircd.sh
Copy code


Check that the module is loaded

  
  1. lsmod | grep sunxi_ir_rx
Copy code


You should get:

   
  1. sunxi_ir_rx 9154 0 - Live 0x00000000
Copy code


Find the correct event handler for the IR receiver.

   
  1. cat /proc/bus/input/devices
Copy code


You should get something on the lines of:
  1.    I: Bus=0019 Vendor=0001 Product=0001 Version=0100
  2.     N: Name="sunxi-ir"
  3.     P: Phys=RemoteIR/input1
  4.     S: Sysfs=/devices/virtual/input/input3
  5.     U: Uniq=
  6.     H: Handlers=sysrq kbd event5 cpufreq_interactive
  7.     B: PROP=0
  8.     B: EV=100003
  9.     B: KEY=ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe
Copy code


For me it was event5.

There is some issue with the sunxi_ir_rx module. It needs to be uninstalled and the reinstalled to work properly. If you type
  1. evtest /dev/input/event5
Copy code
and press buttons of your remote, it will only give one result and then hang. (You can press ctrl+c to exit the evtest. You will probably need to become sudo again
  1. su
Copy code
)

Reload the sunxi_ir_rx  module.
  1. rmmod sunxi_ir_rx
  2. insmod /system/vendor/modules/sunxi-ir-rx.ko
Copy code


These next couple of steps are not as necessary as the others, but I leave them here for debugging purposes. You can skip straight to recording the IR remote commands.

Test the driver.

   
  1. evtest /dev/input/event5
Copy code

You should get something like this.
  1.     ...
  2.         Event code 254 (?)
  3.         Event code 255 (?)
  4.         Event type 20 (Repeat)
  5.     Testing ... (interrupt to exit)
  6.     Event: time 1444933051.375784, -------------- Report Sync ------------
Copy code


Check again that the module is loaded

   
  1. lsmod | grep sunxi_ir_rx
Copy code


Again you should get:

   
  1. sunxi_ir_rx 9154 0 - Live 0x00000000
Copy code


Check that you are still getting the same handler.

   
  1. cat /proc/bus/input/devices
Copy code

  1.    I: Bus=0019 Vendor=0001 Product=0001 Version=0100
  2.     N: Name="sunxi-ir"
  3.     P: Phys=RemoteIR/input1
  4.     S: Sysfs=/devices/virtual/input/input5
  5.     U: Uniq=
  6.     H: Handlers=sysrq kbd event5 cpufreq_interactive
  7.     B: PROP=0
  8.     B: EV=100003
  9.     B: KEY=ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe
Copy code


Test that you get input events from the driver and that it won't hang after the fist key press.

   
  1. evtest /dev/input/event5
Copy code


Pressing any key on your IR remote, should add line with event.


  1.     ...
  2.         Event code 255 (?)
  3.       Event type 20 (Repeat)
  4.     Testing ... (interrupt to exit)
  5.     Event: time 1444933164.078062, type 1 (Key), code 123 (Hanja), value 1
  6.     Event: time 1444933164.078073, -------------- Report Sync ------------
  7.     Event: time 1444933164.276381, type 1 (Key), code 123 (Hanja), value 0
  8.     Event: time 1444933164.276389, -------------- Report Sync ------------
  9.     Event: time 1444933164.477201, type 1 (Key), code 123 (Hanja), value 1
  10.     Event: time 1444933164.477211, -------------- Report Sync ------------
  11.     Event: time 1444933164.676388, type 1 (Key), code 123 (Hanja), value 0
  12.     Event: time 1444933164.676396, -------------- Report Sync ------------
Copy code


Record your remote key presses.

  
  1. /system/bin/irrecord -H devinput -d name=sunxi-ir /etc/lircd/lircd.conf
Copy code


You can list accepted key names with following command.

   
  1. /system/bin/irrecord -l
Copy code


Check /etc/lircd/lircd.conf, if your key codes are doubled like these.

  1. begin codes
  2. KEY_0                    0x0100FF00000001 0x00000000000000
  3. KEY_1                    0x01000100000001 0x00000000000000
  4. end codes
Copy code


Edit /etc/lircd/lircd.conf manually remove the second code part (0x00000000000000) (I have not tested if this is really necessary.)

  1. begin codes
  2. KEY_0                    0x0100FF00000001
  3. KEY_1                    0x01000100000001
  4. end codes
Copy code


Edit /etc/lircd/lircd.conf and change the 'name' from lircd.conf  to devinput or linux-input-layer (this remote names are predefined in Kodi configuration, I used devinput)

  1. begin remote
  2. name  devinput
Copy code


Bare minimum keys to record are:
KEY_DOWN, KEY_UP, KEY_LEF, KEY_ENTER, KEY_BACK

Test that it works.
Start lirc daemon.

  
  1. /system/bin/start_lirc.sh
Copy code


Run irw and press some keys, check that you get correct output that correlates to your /etc/lircd/lircd.conf.

   
  1. /system/bin/irw /dev/lircd
Copy code

Return should be something on the line of this:
  1.    000100c300000001 00 KEY_OK myremote
  2.     000100c500000001 00 KEY_DOWN myremote
  3.     000100a800000001 00 KEY_KPPLUS myremote
  4.     000100a000000001 00 KEY_POWER myremote
  5.     0001000800000001 00 KEY_8 myremote
  6.     0001000100000001 00 KEY_1 myremote
  7.     0001000600000001 00 KEY_6 myremote
Copy code


To stop the lircd deamon use:
  1. /system/bin/stop_lirc.sh
Copy code


Now you should have fully functioning IR remote.

To keep these setting after restart you need to make a script, save it somewhere you can find it and run it at start up.

First use your favourite editor to create a script. (I named mine startup.sh and saved it to /etc/lircd. It really does not matter much where you store your script and what name you give to it, as long as you can find it and the android can access it at boot.

Here is mine:
  1. [list=1]
  2. [*]#!/system/bin/sh
  3. [*]mount -o remount,rw /system
  4. [*]rmmod sunxi_ir_rx
  5. [*]insmod /system/vendor/modules/sunxi-ir-rx.ko
  6. [*]/system/bin/start_lircd.sh
  7. [/list]
Copy code


You need to give you script proper premissions.
  1. chmod 777 /etc/lircd/startup.sh
Copy code


Then I used Script Manager to run my script after boot.

Now only thing left is to uninstall the old Kodi (14) and install newest Kodi (15.02) from play store.

I will keep you updated as I get further with my fiddling. I am quite busy with my day job and other projects, but will come back to this time to time.

Pero nuestros perros son blancos.

5

threads

42

posts

331

credits

Intermediate member

Rank: 3Rank: 3

credits
331
Published in 2015-11-5 04:37:08 | Show all floors
I just tried this on my OPI-PC and it won't boot. I format my Lexar 32GB U1 with Trendy SDFormatter V4.0 and burn it with Phoenix Card. I can boot Loboris's, Zidoo and sun8iw7p1 but with Beelink I don't even get red or green lights.

1

threads

115

posts

709

credits

Senior member

Rank: 4

credits
709
Published in 2015-11-5 05:02:32 | Show all floors
I have the same issues on OPI-PC... Simply won't boot.

1

threads

115

posts

709

credits

Senior member

Rank: 4

credits
709
Published in 2015-11-5 05:28:59 | Show all floors
I got it to boot, but looks like i'm stuck at a red square. Also red led is blinking and green is solid.

What does that mean ?

18

threads

303

posts

9888

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
9888
Published in 2015-11-5 07:26:17 from mobile | Show all floors
For those not boot, just press the Power Button of the board.

18

threads

303

posts

9888

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
9888
Published in 2015-11-5 07:34:21 from mobile | Show all floors
User Kernel Toolkit to set the Max CPU freq.

18

threads

303

posts

9888

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
9888
Published in 2015-11-5 07:35:21 from mobile | Show all floors
This ROM has to press power button to boot.

5

threads

42

posts

331

credits

Intermediate member

Rank: 3Rank: 3

credits
331
Published in 2015-11-5 10:02:02 | Show all floors
Edited by Kortsen at 2015-11-5 10:15
jacer replied at 2015-11-5 07:26
For those not boot, just press the Power Button of the board.

That did it for me.

1

threads

23

posts

4292

credits

Forum patriarch

Rank: 8Rank: 8

credits
4292
Published in 2015-11-10 00:27:43 | Show all floors
Hi
Orange Pi plus my device is, I made up the EMMC storage OS (Beelink_X2-SC_V1.1-Custom_ROM.img) Sofware the PhoenixSuite. Unfortunately it does not work on LAN.
The network activity indicator LEDs are not working.
The ethernet cable works great because the factory Android.
How can we stand up to the LAN port operation?
Can anyone help?
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list