X-load compilation
From AlwaysInnovating
To compile X-load, you can either use the x-load recipe available in the AI OpenEmbedded branch, or download the sources and compile it with an external cross-compiler.
Download an external cross-compiler
Please follow the same instructions as in the Kernel compilation page.
Download the sources and compile
The source code is available here (219kB). Then expand it in your working directory and build everything. The CROSS_COMPILE argument must be filled with the prefix of your toolchain (ensure you have it in your PATH, or then pass the full path to the make command):
mkdir x-load cd x-load tar xzvf x-load.tgz make CROSS_COMPILE=arm-none-linux-gnueabi- touchbook_config make CROSS_COMPILE=arm-none-linux-gnueabi-
Using x-load on your SD card
Once built, you first have to sign x-load.bin with the signGP tool. Get the signGP.c source file, compile it for your machine (not cross-compile), and sign the file. It will output an x-load.bin.ift file,that you can copy to the first partition of your SD card by renaming it to mlo. Be sure the file is the first one copied on your first partition, otherwise it won't work on your device. Assuming the first partition of your SD card is under /media/disk/:
gcc signGP.c -o signGP ./signGP x-load.bin cat x-load.bin.ift > /media/disk/mlo sync
