So assuming you have an iMX233-OLinuXino-MAXI and are running ArchLinux on it, here is how you you would go about running a HelloWorld application on it:
- Gain access to OLinuXino's console over serial port and login using the credentials (login: root & password:root)
- Issue the command to OLinuXino for performing a full system upgrade, make sure the board is connected to your WiFi router using an Ethernet cable as it will use the internet to fetch the latest packages:
pacman -Syu - Reboot the board by issuing the command:
reboot - Install the compiler and other basic development tools onto OLinuXino (When asked, press enter to keep all options at default):
pacman -S base-devel - Reboot the board.
- Use the nano text editor to write a helloworld program:
nano hello.c - Type the code:
#include <stdio.h>
#include <stdlib.h>
int main(void) {
puts("!!!Hello World!!!");
exit(EXIT_SUCCESS);
}
gcc hello.c
./a.out
In case you want to now try compiling kernel modules, look here.
Comments
Post a Comment