Editted to highlight changes when using the new 'universal' boot (.imx) file.Okay, for what it's worth:
To create a bootable OpenELEC SD card, using a Linux desktop system:These instructions should work on most Linux distributions - I used ArchLinux, but Ubuntu/Debian should work just as well.
Tools which I used and which might not be installed, by default, in your system:
dosfstools - needed to create a fat format drive/partition
gnome-disk-utility - for identifying, formatting and partitioning, your SD card drive
a de-archiving tool of your choice.
To proceed, first of all extract the contents of the OpenELEC distribution zip file to a convenient area on your computer. Next, launch the gnome-disk-utility, normally simply called 'Disks' on the applications menu. Take note of what devices are shown in the left hand side of the Disks window. Now insert the SD card into the reader/connect the reader to the computer. One of the drives should change in the Disks window, or a new drive should appear. Click on this drive to select/highlight it. Now, near the bottom of the information on the right hand side of the window, you should see an entry for 'Device' - on my system it is /dev/sdg. Take a note of this device - be very careful here ... get it wrong and you could corrupt your system drive, or another device connected to the computer. Every time you issue a command via the 'Disks' utility, make sure that the correct drive is still highlighted. Also, make sure that the drive is not marked as 'Read-only' - if it is you need to eject the SD card and move the little write-protect switch on the side of the card.
Now, with the card inserted, select 'Format...' in the main menu at the top of the Disks window. In the window which pops up you can select 'Don't overwrite existing data (Quick)', and 'Compatible with all systems and devices (MBR/DOS)'. Now click the 'Format' button. This will clear any existing partitions and directory entries from the card, when you click the 'Format' button in the pop-up confirmation window.
Next we need to write the Master Boot Record to the SD card, so start up a terminal session and set your default directory to 3rdparty/bootloader directory in the area where you extracted the OpenELEC zip file.
Type the following command, having substituted the 'Device' name noted earlier (eg '/dev/sdg') where I have entered 'XXX':
- Code: Select All Code
sudo dd if=u-boot-matrix.imx of=XXX bs=1024 seek=1
After entering your password, if prompted, you should see output similar to the following:
- Code: Select All Code
263+0 records in
263+0 records out
269312 bytes (269 kB) copied, 0.294678 s, 914 kB/s
Now return to the 'Disks' window and select '+' at the bottom of the 'Volumes' pane. This opens the 'Create Partition' dialogue. Select 'Don't overwrite ...', 'Compatible ... (FAT)' and enter 'System' in the 'Name' field. Set the 'Partition Size' to 250MB. Click the 'Create' button.
Next, highlight the 'Free Space' area in the 'Volumes' pane, and select '+' again. This time, select 'Don't overwrite ...', 'Compatible with Linux systems (Ext4)' and enter the name: 'Storage'. Leave the 'Partition Size' as default - this should claim all the remaining free space for the new partition - and click the 'Create' button.
Now highlight the 'System' partition in the 'Volumes' pane and click the mount button at the bottom of the pane (normally appears as a right-pointing triangle, or 'play button' symbol).
This will mount the partition so that it is accessible to your computer. At the bottom of the window, click the directory path which appears after the text 'Mounted at'. This should open a directory view onto the System partition of your SD card.
Into this window, drag the following files from the area where you extracted the OpenELEC zip file:
target/KERNEL
target/SYSTEM
TBS-Matrix-MfgTool2/Profiles/MX6Q Linux Update/OS Firmware/oemsplash.png
<strike>3rdparty/bootloader/imx6q-sabresd.dtb</strike>3rdparty/bootloader/imx6q-tbs2910.dtb
[strike]3rdparty/bootloader/uEnv-matrix-vX.txt (where X is replaced by '1' for a v1.x Matrix board and '2' for a v2.x Matrix board)[/strike]3rdparty/bootloader/uEnv-matrix.txt
Hmmm ... strike doesn't appear to be implemented, so I've marked the old text in red.Finaly, rename that last file to uEnv.txt and then dismount the SD card by clicking the dismount (square or stop symbol) at the bottom of the 'Volumes' pane before ejecting or removing the card.
You should now be able to insert the SD card into your Matrix system, and boot into OpenELEC - provided that the dip-switches (v2.x board) or zero ohm links (v1.x board) have been set appropriately for SD card boot (01000010).
I have followed these instructions as I typed them, and proven that they result in a card which will boot in my system, so I hope that they make sense. Apologies for any errors, omissions or typing mistakes.