Moderator Control Panel ]

Openelec for MatrixTBS

Re: Openelec for MatrixTBS

Postby mikebzh44 » Thu Oct 23, 2014 2:59 am

vpeter Wrote:What you get when running autostart manually:
Code: Select All Code
sh /storage/.config/autostart.sh
And does remote now works or still not?


Running autostart.sh manually :

Code: Select All Code
MatrixELEC:~/.config # ./autostart.sh: line 19: progress: not found
./autostart.sh: line 19: progress: not found
Old keytable cleared
Read tbs_nec table
Wrote 34 keycode(s) to driver
Protocols changed to NEC LIRC other

MatrixELEC:~/.config # ls /sys/class/rc
rc0
MatrixELEC:~/.config # ls -l /sys/class/rc
total 0
lrwxrwxrwx    1 root     root             0 Jan  1  1970 rc0 -> ../../devices/soc0/ir-receiver.17/rc/rc0


Remote is not responding.

vpeter Wrote:Can you run in ssh console command mode2. Does it return something like this
Code: Select All Code
OpenELEC:~ # mode2
pulse 9036
space 4546
pulse 546
space 581
pulse 554
space 582
pulse 554
space 585
pulse 553
space 581
pulse 555


Execute mode2 command in ssh but no code display while pressing remote keys (UP, RIGHT, DOWN, LEFT then ENTER/OK) :(
mikebzh44
 
Posts: 56
Joined: Wed Oct 01, 2014 9:37 pm

Re: Openelec for MatrixTBS

Postby vpeter » Thu Oct 23, 2014 3:11 am

Try different autostart.sh
Code: Select All Code
curl -o /storage/.config/autostart.sh https://dl.dropboxusercontent.com/u/8224157/public/matrix/tbs_matrix_openelec_tbs_remote_1.autostart
and run again from ssh console.
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 » Thu Oct 23, 2014 3:16 am

OK Will give a try tomorrow mornign ;)

Thanks.
mikebzh44
 
Posts: 56
Joined: Wed Oct 01, 2014 9:37 pm

Re: Openelec for MatrixTBS

Postby PeterB » Thu Oct 23, 2014 9:30 am

vpeter Wrote:Creating SD card the easy way using SD card image- eject SD card and put it in Matrix
- boot Matrix and enjoy

Could be that I miss something ...


I think so! In order for the Matrix to boot the SD card, either you need to 'dd' the .imx file to emmc (my instructions in an earlier post), or (on a V2.1 board) set the dip switches.
PeterB
 
Posts: 52
Joined: Thu Apr 10, 2014 11:17 am

Re: Openelec for MatrixTBS

Postby mikebzh44 » Thu Oct 23, 2014 1:41 pm

@Vpeter : Sorry remote still KO with new autostart.sh. mode2 display any code.
Don't know if you post the right shell because I can't see any differences between old script :

Code: Select All Code
#!/bin/sh

# cp /storage/.config/autostart.sh /storage/.config/autostart.sh_orig
# curl -o /storage/.config/autostart.sh https://dl.dropboxusercontent.com/u/8224157/public/matrix/tbs_matrix_openelec_tbs_remote.autostart

(
  sleep 2
  while [ ! -e "/sys/class/rc/" ]; do
    sleep 1
    continue
  done
  MyRem=$(ls /sys/class/rc/)
  progress "using remotes $MyRem"
  for i in $MyRem; do
    progress "setting remote $i"
    ir-keytable --sysdev $i -c
    ir-keytable -s $i -p NEC,LIRC -w /etc/rc_keymaps/tbs_nec
  done
)&


and new one :

Code: Select All Code
#!/bin/sh

# cp /storage/.config/autostart.sh /storage/.config/autostart.sh_orig
# curl -o /storage/.config/autostart.sh https://dl.dropboxusercontent.com/u/8224157/public/matrix/tbs_matrix_openelec_tbs_remote.autostart

(
  sleep 2
  while [ ! -e "/sys/class/rc/" ]; do
    sleep 1
    continue
  done
  MyRem=$(ls /sys/class/rc/)
  progress "using remotes $MyRem"
  for i in $MyRem; do
    progress "setting remote $i"
    ir-keytable --sysdev $i -c
    ir-keytable -s $i -p NEC,LIRC -w /etc/rc_keymaps/tbs
  done
)&


When running MatrixTV 1.0.1.0 and entering setup by pressing key during splash screen, I can set up Remote receiver but I have the choice :

lirc0 rc-core loopback dev
lirc1 lirc-matrix

When using lirc0, remote is KO. I have to select lirc1 to get remote usable in XBMC, don't know if it's helpfull.

@PeterB, Vpeter : for getting dual boot, I have flashed MatrixTV 1.0.1.0 in eMMC then create OE SD card using the latest OE-Gotham TAR archive but when I insert the SD card and power on the box, OE doesn't boot and only MatrixTV is run.
mikebzh44
 
Posts: 56
Joined: Wed Oct 01, 2014 9:37 pm

Re: Openelec for MatrixTBS

Postby vpeter » Thu Oct 23, 2014 2:34 pm

PeterB Wrote:
vpeter Wrote:Creating SD card the easy way using SD card image- eject SD card and put it in Matrix
- boot Matrix and enjoy
Could be that I miss something ...

I think so! In order for the Matrix to boot the SD card, either you need to 'dd' the .imx file to emmc (my instructions in an earlier post), or (on a V2.1 board) set the dip switches.


I though this was already known as public knowledge ;)
My only contribution was making this card image which can be used on Windows on Linux. Without partitioning the SD card.

mikebzh44, I'm affraid I'm out of ideas. My remote from TBS5980 works and this is the only thing I can test. And there is a little change in scripts (look for /etc/rc_keymaps/tbs_nec and /etc/rc_keymaps/tbs). Seems not important.

mikebzh44 Wrote:OE doesn't boot and only MatrixTV is run.

Because you NEED to write new u-boot to eMMC with PeterB's instructions. Without this only SD card can be boot only if you set correctly dip switches (but I didn't test this variant).
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 » Thu Oct 23, 2014 2:59 pm

OK, may by remote from TBS5980 is different from MCE remote.

For having dual boot (SD card and eMMC), you were not very clear :

mikebzh44 Wrote:Sorry, it's not clear for me.

If I flash MatrixTV 1.0.1.0 in emmc then u-boot and uEnv.txt are OK, right ?

So I just have to install OE on SD card so uEnv.txt will also be OK, right ?

As my Matrix box already run MatrixTV 1.0.1.0, I just have to follow OE on SD card tuto from PeterB to get dual boot.


vpeter Wrote:Correct.


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.

I have installed OE on SD card using the latest tuto : viewtopic.php?f=155&t=8859&start=170#p32223

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.
mikebzh44
 
Posts: 56
Joined: Wed Oct 01, 2014 9:37 pm

Re: Openelec for MatrixTBS

Postby vpeter » Thu Oct 23, 2014 9:15 pm

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?
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 » Thu Oct 23, 2014 9:28 pm

I'm using inboard IR receiver, you can see it on this picture :

Image

BTW, could you tell where I can find u-boot I need to flash in eMMC and how to flash so I can have dual boot (eMMC / SD card).

Thanks.
mikebzh44
 
Posts: 56
Joined: Wed Oct 01, 2014 9:37 pm

Re: Openelec for MatrixTBS

Postby vpeter » Thu Oct 23, 2014 9:47 pm

IR receiver is that black thing on right side? Where is it connected?

To multiboot matrixtv and openelec.
You need to install matrixtv in emmc. This is probably already done.
Write new u-boot from openelec archive to eMMC from running matrixtv: viewtopic.php?f=155&t=8859&start=130#p32126
Also write uEnv.txt to eMMC from this post: viewtopic.php?f=155&t=8859&start=140#p32143
Create SD card for openelec: viewtopic.php?f=155&t=8859&start=170#p32223

OpenELEC files: viewtopic.php?f=155&t=8859&start=142
Last edited by vpeter on Thu Oct 23, 2014 9:52 pm, 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

PreviousNext

Return to Announcements

Who is online

Users browsing this forum: No registered users and 10 guests