Moderator Control Panel ]

Openelec for MatrixTBS

Re: Openelec for MatrixTBS

Postby mikebzh44 » Thu Oct 23, 2014 9:50 pm

Yes, IR receiver is the black thing glued on USB bracket. Don't know where it's connected, I will have a look when go back home.

Thanks for the step by step ;)
mikebzh44
 
Posts: 56
Joined: Wed Oct 01, 2014 9:37 pm

Re: Openelec for MatrixTBS

Postby vpeter » Thu Oct 23, 2014 11:52 pm

What about if I created MatrixTV package with multiboot enabled? So no need to manually put new u-boot to eMMC? Just creating SD card for openelec based on image.
You can help me buy new work notebook with paypal donation, after 8 years it's time to upgrade.
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=FLVT7ACMYAPS6
vpeter
 
Posts: 427
Joined: Sun Jul 27, 2014 2:12 am
Location: Slovenia

Re: Openelec for MatrixTBS

Postby PeterB » Fri Oct 24, 2014 12:11 am

mikebzh44 Wrote:So I MUST write u-boot to eMMC with Peter's instructions but in this thread, u-boot-matrix.imx is written on SD card, not on eMMC.

See here: http://www.tbsdtv.com/forum/viewtopic.php?f=155&t=8859&start=130#p32126

If someone can summerize all operations, step by step, it would be great :
1 - Install MatrixTV 1.0.1.0
2 - Overwrite u-boot to eMMC (How ? From which archive ? ...)
3 - Install OE on SD cart (How ? From which tuto ? ...)
4 - Need to overwrite some file on SD card (Which ? Where source and target files are located ? ...)

Thanks.


I want to document my last step - creating the bootable OE on eMMC and then pull the three stages together into one new post/thread. I just have a slight problem that one of my TBS2910 PSUs has failed, so I need to work around the family using OE downstairs.

I've tried an off-the-shelf smpsu but that seems to have problems driving the hdmi interface correctly - the TBS2910 must be quite sensitive to the power. I've replaced the main electrolytic cap in the original psu and that has brought it back to life ... but the voltage drops when put on load .. so there's still another failed component ... still investigating.
PeterB
 
Posts: 52
Joined: Thu Apr 10, 2014 11:17 am

Re: Openelec for MatrixTBS

Postby mikebzh44 » Fri Oct 24, 2014 12:55 am

vpeter Wrote:mikebzh44, for your IR trouble you can try this
Code: Select All Code
curl -o /storage/.config/lircd.conf https://dl.dropboxusercontent.com/u/8224157/public/matrix/tbsnec32.conf
and then reboot the box.

But I'm wondering which IR receiver do you use? The one on matrix system or something else?


Sorry, remote still KO :(

I don't know if it's helpfull but I have listed devices presents under OpenELEC Gotham :

Code: Select All Code
MatrixELEC:~/.config # for i in /sys/class/input/input* ; do echo -n "$(basename "$i"): "; cat "$i/name"; done
input0: Rx504B  Ver:1.00
input1: Rx504B  Ver:1.00
input2: gpio_ir_recv
input3: MCE IR Keyboard/Mouse (gpio-rc-recv)


I think I need to use input3

When I look into XBMC running instance, I have :

Code: Select All Code
MatrixELEC:~/.config # ps -aef |grep xbmc
  954 root       1:20 /usr/lib/xbmc/xbmc.bin --standalone -fs --lircdev /run/lirc/lircd --debug
 1068 root       0:00 grep xbmc


But /run/lirc/lircd does not exist :

Code: Select All Code
MatrixELEC:~/.config # cat /run/lirc/lircd
cat: can't open '/run/lirc/lircd': No such device or address


Will reflash MatrixTV 1.0.1.0 to try dual boot and to see how lirc is defined.
mikebzh44
 
Posts: 56
Joined: Wed Oct 01, 2014 9:37 pm

Re: Openelec for MatrixTBS

Postby vpeter » Fri Oct 24, 2014 12:58 am

mikebzh44, still don't know which IR receiver you use and how is connected? Seems you are using some USB based on? In this case can you run
Code: Select All Code
lsusb -v
command.
You can help me buy new work notebook with paypal donation, after 8 years it's time to upgrade.
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=FLVT7ACMYAPS6
vpeter
 
Posts: 427
Joined: Sun Jul 27, 2014 2:12 am
Location: Slovenia

Re: Openelec for MatrixTBS

Postby mikebzh44 » Fri Oct 24, 2014 1:05 am

Yes, I have an USB dongle for my keyboard with track ball.

After removing this dongle :

Code: Select All Code
MatrixELEC:~ # for i in /sys/class/input/input* ; do echo -n "$(basename "$i"): "; cat "$i/name"; done
input2: gpio_ir_recv
input3: MCE IR Keyboard/Mouse (gpio-rc-recv)


lsusb -v : http://pastebin.com/pB5p8gvC

After plug in USB dongle :

Code: Select All Code
MatrixELEC:~ # for i in /sys/class/input/input* ; do echo -n "$(basename "$i"): "; cat "$i/name"; done
input2: gpio_ir_recv
input3: MCE IR Keyboard/Mouse (gpio-rc-recv)
input5: Rx504B  Ver:1.00
input6: Rx504B  Ver:1.00


lsusb -v : http://pastebin.com/KvbLQX63
mikebzh44
 
Posts: 56
Joined: Wed Oct 01, 2014 9:37 pm

Re: Openelec for MatrixTBS

Postby mikebzh44 » Fri Oct 24, 2014 1:43 am

After flashing MatrixTV 1.0.1.0

When setting LIRC to use lirc0 rc-core loopback dev and mceremote.conf from Matrix setting menu :

Remote is KO

Code: Select All Code
[root@matrixtv ~]# for i in /sys/class/input/input* ; do echo -n "$(basename "$i"): "; cat "$i/name"; done
input0: gpio-keys
input1: rc-core loopback device
input2: Rx504B  Ver:1.00
input3: Rx504B  Ver:1.00


But now, even after reenter Matrix settings and set LIRC to lirc1 lirc-matrix :

Image

Remote is still KO and lirc device is wrong :

Code: Select All Code
[root@matrixtv ~]# for i in /sys/class/input/input* ; do echo -n "$(basename "$i"): "; cat "$i/name"; done
input0: gpio-keys
input1: rc-core loopback device
input2: Rx504B  Ver:1.00
input3: Rx504B  Ver:1.00


Will reflash MatrixTV 1.0.1.0 :S
mikebzh44
 
Posts: 56
Joined: Wed Oct 01, 2014 9:37 pm

Re: Openelec for MatrixTBS

Postby vpeter » Fri Oct 24, 2014 2:18 am

So I prepared few files which makes MatrixTV multiboot capable. Two files are replaced (ucl2.xml, u-boot-mx6q-sabresd.bin) and two files are extra (u-boot-matrix.imx, uEnv.txt). Files from archive TBS-MatrixTV-V1.0.1.0-multiboot.zip must be copied and overwrite to folder "OS Firmware" in original MatrixTV files from TBS-MatrixTV-V1.0.1.0.zip.

When this is flashed to eMMC new multiboot u-boot is already there and also uEnv.txt file. MatrixTV boots as before. But now we can also boot anything from SD card. Like OpenELEC ;)
Then only SD card for OpenELEC must be made.

TBS-MatrixTV-V1.0.1.0-multiboot.zip: https://drive.bitcasa.com/send/w-uggk55 ... vjy0AKFLa2


mikebzh44, can you blacklist internal gpio IR receiver and reboot? Maybe then you will get IR working.
Also try mode2 program. And you still need to use first autostart.sh I posted.

Code: Select All Code
echo "blacklist gpio_ir_recv" >>/storage/.config/modprobe.d/blacklist.conf
Last edited by vpeter on Sat Dec 20, 2014 3:12 am, edited 1 time in total.
You can help me buy new work notebook with paypal donation, after 8 years it's time to upgrade.
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=FLVT7ACMYAPS6
vpeter
 
Posts: 427
Joined: Sun Jul 27, 2014 2:12 am
Location: Slovenia

Re: Openelec for MatrixTBS

Postby mikebzh44 » Fri Oct 24, 2014 3:01 am

Now, I'm still running MatrixTV 1.0.1.0, just make a fresh install, press key for entering setup when MatrixTV splash screen is displayed.
Setup MatrixTV to use lirc1 lirc_matrix but after rebooting, remote is KO and LIRC driver is not the one choosen in setup program :

Code: Select All Code
[root@matrixtv ~]# ir-keytable
Found /sys/class/rc/rc0/ (/dev/input/event1) with:
        Driver rc-loopback, table rc-empty
        Supported protocols: NEC RC-5 RC-6 JVC SONY LIRC RC-5-SZ
        Enabled protocols: LIRC
        Repeat delay = 1000 ms, repeat period = 125 ms


Is there a way to blacklist this receiver in MatrixTV (because /storage does not exist) or to force good one (lirc1) ?
mikebzh44
 
Posts: 56
Joined: Wed Oct 01, 2014 9:37 pm

Re: Openelec for MatrixTBS

Postby vpeter » Fri Oct 24, 2014 3:17 am

mikebzh44 Wrote:Is there a way to blacklist this receiver in MatrixTV (because /storage does not exist) or to force good one (lirc1) ?
Use standard location /etc/modprobe.d/blacklist.conf. And module name is lirc_matrix (I think).
You can help me buy new work notebook with paypal donation, after 8 years it's time to upgrade.
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=FLVT7ACMYAPS6
vpeter
 
Posts: 427
Joined: Sun Jul 27, 2014 2:12 am
Location: Slovenia

PreviousNext

Return to Announcements

Who is online

Users browsing this forum: No registered users and 5 guests