Moderator Control Panel ]

Openelec for MatrixTBS

Re: Openelec for MatrixTBS

Postby mikebzh44 » Thu Oct 16, 2014 10:54 pm

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

Re: Openelec for MatrixTBS

Postby PeterB » Fri Oct 17, 2014 1:28 am

Wooo ... I've just managed to get a 1.3 board, without dip switches, to boot OpenELEC from SD card!

I wrote the u-boot-matrix.imx to an SD card.

Booted the system into MatrixTV from the builtin flash.

Inserted the SD card.

Then:
Code: Select All Code
[root@Matrix1 ~]# cd /media/mmcblk1p1
[root@Matrix1 /media/mmcblk1p1]# echo 0 > /sys/block/mmcblk0boot0/force_ro
[root@Matrix1 /media/mmcblk1p1]# dd if=u-boot-matrix.imx of=/dev/mmcblk0boot0 bs=1024 seek=1
263+0 records in
263+0 records out
269312 bytes (263.0KB) copied, 0.604129 seconds, 435.3KB/s
[root@Matrix1 /media/mmcblk1p1]# echo 1 > /sys/block/mmcblk0boot0/force_ro
[root@Matrix1 /media/mmcblk1p1]# echo 8 > /sys/devices/platform/sdhci-esdhc-imx3/mmc_host/mmc0/mmc0:0001/boot_config


Then I was able to reboot with the OpenELEC SD card inserted.

it's now 1.30 in the morning ... time for bed. I'll carry on playing tomorrow!


Edit:
The procedure to write the Master Boot Record is slightly different if performed from OE (this is when OE is booted from SD card):
Code: Select All Code
OpenELEC:~ # cd /flash
OpenELEC:/flash # echo 0 > /sys/block/mmcblk1boot0/force_ro
OpenELEC:/flash # dd if=u-boot-matrix.imx of=/dev/mmcblk1boot0 bs=1024 seek=1
263+0 records in
263+0 records out
269312 bytes (263.0KB) copied, 0.172252 seconds, 1.5MB/s
OpenELEC:/flash # echo 1 > /sys/block/mmcblk1boot0/force_ro
Last edited by PeterB on Sun Oct 19, 2014 11:20 am, edited 1 time in total.
PeterB
 
Posts: 52
Joined: Thu Apr 10, 2014 11:17 am

Re: Openelec for MatrixTBS

Postby vpeter » Fri Oct 17, 2014 1:34 am

PeterB, can you still boot matrixtv from eMMC? Probably not.
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 17, 2014 8:14 am

vpeter Wrote:PeterB, can you still boot matrixtv from eMMC? Probably not.


You're correct. It won't boot MatrixTV from internal flash or from SD card.

So, what are the capabilities of u-boot-matrix.imx. delivered with OE? I understood that it would boot from SD card, if present, otherwise boot from the internal flash - is that not the case ... or is it only capable of booting an OE system?

Could I write the OE files to eMMC partition 1 and boot OE without SD card?

Is there a u-boot which is truly universal - able to boot any OS from any device?

Anyway, I presume that I can still write an original u-boot back to the eMMC MBR, while running OE.

I understand that the
Code: Select All Code
echo 0(/1) > /sys/block/mmcblk0boot0/force_ro
lines enable/disable writing to eMMC. What does the
Code: Select All Code
echo 8 > /sys/devices/platform/sdhci-esdhc-imx3/mmc_host
line do, and what other values are possible?
PeterB
 
Posts: 52
Joined: Thu Apr 10, 2014 11:17 am

Re: Openelec for MatrixTBS

Postby PeterB » Fri Oct 17, 2014 1:16 pm

Errr... what is OE doing to the ethernet MAC? The MAC addresses are different to when the devices were running MatrixTV. What's worse is that the MAC addresses keep changing on every boot. It seemed okay when only one unit was running OE - now they're both on OE, they have consecutive MAC, but it keeps changing between units. I've been getting myself terribly confused trying to get my dhcp server tables correct!
PeterB
 
Posts: 52
Joined: Thu Apr 10, 2014 11:17 am

Re: Openelec for MatrixTBS

Postby vpeter » Fri Oct 17, 2014 2:51 pm

I will look into u-boot to make it really universal. You can see here all about what is doing:
https://github.com/OpenELEC/OpenELEC.tv ... ixes.patch
https://github.com/OpenELEC/OpenELEC.tv ... mage.patch
https://github.com/OpenELEC/OpenELEC.tv ... boot.patch
Basically u-boot with openelec is universal. But usually you need serial console to set some parameters for it. That's why I add this multiboot function which looks for file uEnv.txt on sd cards and in emmc. When it finds this file this device is used for booting. You could add uEnv.txt with correct data to emmc and it would boot matrixtv just fine. Mine main purpose is just running OpenELEC on matrix. Will look and prepare uEnv.txt which must be saved to emmc to boot matrixtv. But in this case no sd card must be present.

And you can still write old u-boot to emmc from openelec. What command echo 8 do I don't know. It's from flash script in matrixtv. And I don't really care what it does. It works what it needs to do ;)


About MAC address. This is matrix issue and not openelec. On mine matrix there is no MAC address set. And I got random MAC address always with openelec AND matrixtv. That's why there are two uEnv.txt files - one for matrix v1 and one for matrix v2. If you compare it you see that v1 sets mac address manually
Code: Select All Code
fec.macaddr=0x1E,0xED,0x19,0x27,0x1A,0xB2
and v2 doesn't have this part. Seems you used wrong uEnv.txt file. If you have more than one device you need manually change that before flashing with MfgTool2 or when making SD card. I newer mentioned that because there has been no issue with that.
Last edited by vpeter on Fri Oct 17, 2014 4:28 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

Re: Openelec for MatrixTBS

Postby mikebzh44 » Fri Oct 17, 2014 3:26 pm

After quickly test OpenELEC Gotham (viewtopic.php?f=155&t=8859&start=80#p32005), can someone confirm that :
- IR receiver is not recognize (yes, I have MatrixTV v1.3 with IR receiver near WiFi antenna)
- WiFi is not recognize

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

Re: Openelec for MatrixTBS

Postby vpeter » Fri Oct 17, 2014 4:14 pm

mikebzh44 Wrote:- IR receiver is not recognize (yes, I have MatrixTV v1.3 with IR receiver near WiFi antenna)
- WiFi is not recognize
I tested IR receiver only external one on matrix v1.2 which doesn't have build-in receiver. But now I have matrix v2.1 where I can also check this.
WiFi was working for me.
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 17, 2014 5:37 pm

vpeter Wrote:I will look into u-boot to make it really universal.


That would be extremely useful, if it can be done. However, like you, my intended use for these boxes is to run xbmc/kodi, preferably as OpenELEC.

You can see here all about what is doing:
https://github.com/OpenELEC/OpenELEC.tv ... ixes.patch
https://github.com/OpenELEC/OpenELEC.tv ... mage.patch
https://github.com/OpenELEC/OpenELEC.tv ... boot.patch
Basically u-boot with openelec is universal. But usually you need serial console to set some parameters for it. That's why I add this multiboot function which looks for file uEnv.txt on sd cards and in emmc. When it finds this file this device is used for booting. You could add uEnv.txt with correct data to emmc and it would boot matrixtv just fine. Mine main purpose is just running OpenELEC on matrix. Will look and prepare uEnv.txt which must be saved to emmc to boot matrixtv. But in this case no sd card must be present.


Thanks for the information. I will have a look at those other threads, and have a play.

And you can still write old u-boot to emmc from openelec. What command echo 8 do I don't know. It's from flash script in matrixtv. And I don't really care what it does. It works what it needs to do ;)


Yes, I presumed that it would be possible to re-instate an original u-boot from OE. Re echo 8 - lol ... I understand your point of view ... but the engineer in me wants to understand, and find out whether there's anything useful that can be achieved.


About MAC address. This is matrix issue and not openelec. On mine matrix there is no MAC address set. And I got random MAC address always with openelec AND matrixtv.


I was never aware of a mac problem while running MatrixTV, but I was running a 1.0.0.6? from emmc, and a 1.0.0.7 from SD.

That's why there are two uEnv.txt files - one for matrix v1 and one for matrix v2. If you compare it you see that v1 sets mac address manually
Code: Select All Code
fec.macaddr=0x1E,0xED,0x19,0x27,0x1A,0xB2
and v2 doesn't have this part. Seems you used wrong uEnv.txt file. If you have more than one device you need manually change that before flashing with MfgTool2 or when making SD card. I newer mentioned that because there has been no issue with that.


No, I have the correct uEnv.txt - but identical on both boxes, hence a conflict and an automatic change to 1e:ed:19:27:1a:b3 on one of them.

I will adjust uEnv.txt to use alternate addresses.

Many thanks for all your advice and assistance - it is much appreciated.
PeterB
 
Posts: 52
Joined: Thu Apr 10, 2014 11:17 am

Re: Openelec for MatrixTBS

Postby vpeter » Fri Oct 17, 2014 6:19 pm

If you didn't have mac problems then just remove fec.macaddr data. Seems your systems has them set in factory.

u-boot I will look into. Must run matrixtv to see what arguments it needs.
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 13 guests