It seems that the procedure to install fli4l on large CF cards that I described in 2012 does not reliably work any more. This is probably due to changes from grub to grub2 within recent operating systems. Therefore I did some research again and tried various options and boot loaders to start fli4l from compact flash card.
In the end I found a solution that works with a syslinux MBR and syslinux itself installed to the boot partition. This is actually the solution that mkfli4l.sh should produce. But it my case it fiddled with fdisk to mark the boot partition as active. So I let mkfli4l.sh not install the boot loader to the card but instead did this manually. The whole procedure is described here.
By the way: The paths and names correspond to fli4l version 4.0. Differences from 3.10 are outlined where applicable. Host operating system is an Ubuntu Linux 14.04.2 LTS.
As I had done some experiments with various boot loaders on the same CF card before I wiped the MBR and thus also the partition table from the card. The device with the CF card is /dev/sdg in this case. The card is a 2GB SanDisk Ultra. The Alix 2D13 tells the physical structure as:
You will need to change this accordingly and make sure you chose the correct device. Otherwise you might damage your running operating system.
Partitioning and creation of filesystems
Before partitioning the card make sure that it is not mounted. If that is the case (Ubuntu auto-mounts my cards when I insert them) just unmount the card. For example:
After that I create two new partitions using fdisk. It is important to use the DOS compatibility flag because otherwise the Alix 2D13 board will not be able to boot (must be investigated further).
After that the DOS boot partition needs to be formatted and I also added a label in order to recognise the device after auto-mounting.
The same goes for the data partition that is used to save persistent data that needs to survive a system reboot:
From here just pull the card and re-plug it. On my Ubuntu system it is than auto-mounted unter /media/user/BOOT and /media/user/DATA. You can than go on with the installation of the fli4l system.
Installation of the Fli4l Base System
Here I executed mkfli4l.sh as follows:
In order to get the DATA partition mounted at boot time we need to add an entry to the hd.cfg file on the boot partition (/media/user/BOOT/hd.cfg in this case). Mine reads:
Installing syslinux loader
So the next step is the installation of syslinux into the boot section of the first partition.
And than write the syslinux MBR with (executed from the directory where all the fli4l archives are extracted):
For fli4l v3.10 the image of the MBR is to be found in opt/files/usr/share/. Now you can unmount the two drives again and put the CF card back into the Alix 2D13 board. It should now boot fli4l without any problems.