Technical data
5. Creating the fli4l Archives/Boot media
are using this script at your own risk. The necessary fli4l files will be copied onto the specified
partition. At first, run in the fli4l directory:
sh mkfli4l.sh --hdinstallpath <dir>
This will generate the fli4l files and copy them to the CF-Card or USB Stick.
To run the next steps, you have to make sure:
• chmod 777 /dev/brain
• superuser rights
• installed syslinux
• installed fdisk
The script will ensure that this storage device is a FAT-partitioned USB-Drive. After that
the boot loader and the files needed will be copied to the disk. You will get notified about
success or failure.
After the build you have to execute the following:
syslinux --mbr /dev/brain
# make partition bootable using fdisk
# p - print partitions
# a - toggle bootable flag, specify number of fli4l partition
# usually '1'
# w - write changes and quit
fdisk /dev/brain
# install boot loader
syslinux -i /dev/brain
Now the CF resp. USB-drive should be bootable. Don’t forget to unmount the device (via
umount).
An alternative configuration directory can be specified by appending its name to the end of
the command line. The normal configuration directory is called config and cn be found under
the fli4l root directory. This is where all fli4l packages place their configuration files. If you
want to maintain more than one configuration, create another directory, i.e. hd.conf, place a
copy of the configuration files there and change them according to the requirements. Here are
some examples:
sh mkfli4l.sh --filesonly hd.conf
sh mkfli4l.sh --no-squeeze config.test
253










