Skip to content

Compile GLUED for a system

Tiago Sá Marques edited this page Aug 12, 2018 · 13 revisions

Compilation

1. Generate system's configuration

./mkconfig.bash <system's name>

E.g. if you want to compile GLUED for lauv-noptilus-2:

./mkconfig.bash lauv-noptilus-2. This will create a folder called lctr-a6xx with the configuration file lauv-noptilus-2.bash with all variables needed for GLUED. You can check the systems folder to check all available systems as well as their configuration and required packages.

2. Compile packages

In this step you'll compile all required packages by your system.

./mkconfig.bash <system-folder/system-name.bash>

E.g.

./mkconfig.bash lctr-a6xx/lauv-noptilus-2.bash

4. Generate rootfs

./pkrootfs.bash <system-folder/system-name.bash>

This step will generate an archive .tar.bz2 file with all the files and structure which will be your system disk's root partition (binaries, configuration files, etc)

5. Update GLUED in your system

What you have to do next to update your system's GLUED will depend. If you want to update an existing GLUED instalation then you just copy the archive into the folder /opt/lsts/glued in your system's disk:

scp <glued-archive-file.tar.bz2> <username>@<ip address>:/opt/lsts/glued/

and then you just need to reboot you system. Note that this will only change the / folder and nothing will happen to the files under /opt/lsts.

On the other hand if you want to do a clean or first install then connect the disk, sd card, etc to your computer and run:

./mkdisk.bash <system-folder/system-name.bash>

This will format the disk, create the necessary partitions and "flash" the rootfs into it. After it finishes just plug the disk into your system.