Tuesday, July 26, 2011

How to mount the share folder into the linux virtual box?

Launch the linux virtual box. Open the shell terminal and create a folder in which the share folder contents to be accessible. Execute the below commands sequentially. This is tested in virtual box with ubuntu.


1. sudo mkdir winshare


2. mount.vboxsf   <share folder name>   winshare/


3. cd winshare


4. ls

How to cross compile in linux for mini2440

The below command need to be executed to cross compile the source file (it is assumed that the cross compiler is loaded and environment variables are set)


arm-linux-gcc -o objfile sourcefile.c -lpthread -lrt

Wednesday, March 9, 2011

Cross compile the embedded Linux code

Below is the Linux shell command to cross compile embedded Linux code.

./arm-none-linux-gnueabi-gcc -o ObjectName ./FileName.c -Wl,-rpath=/sysroot/lib:/sysroot/usr/lib -Wl,--dynamic-linker=/sysroot/lib/ld-linux.so.3 -lpthread -lrt