- Required key not available: Solution: disable Secure Boot in UEFI (BIOS) settings.
Since Ubuntu kernel build 4.4.0-21.37 this can be fixed by running
sudo apt install mokutil sudo mokutil --disable-validation
It will require to create a password. The password should be at least 8 characters long. After you reboot, UEFI will ask if you want to change security settings. Choose "Yes".
Help :- https://sourceware.org/systemtap/wiki/SecureBoot
-
printk() not displaying message: Solution: adding '\n' to the printed text on the display function
-
Could not open device file: This is because the file was created in superuser mode while using the mknod command. Refer to #1.
make
to compile using Makefilesudo insmod 'module-name'.ko
to install the moduledmesg
to display message
-
Install the arm-linux-gnueabi-gcc compiler
sudo apt-get install gcc-arm-linux-gnueabi g++-arm-linux-gnueabi
-
Install qemu-arm-static
sudo apt-get install qemu binfmt-support qemu-user-static
-
Make the binary file:
make CC=arm-linux-gnueabi-gcc
The Makefile can be found here: https://github.com/jadonk/gsoc-application
-
Execute the binary using QEMU emulator:
qemu-arm-static ./helloworld.bin
-
To compile a normal C program:
arm-linux-gnueabi-gcc helloworld.c