Use following command to set DNS server:
setprop net.dns1 xxx.xxx.xxx.xxx
Use following command to set gateway:
route add default gw 192.168.1.1 dev eth0
This blog is dedicated to all those thecno-crats and the techno freaks who love to learn new emerging technology. This blog is open to share your knowledge and help others to grow their knowledge. "Knowledge grows when shared with others"
Use following command to set DNS server:
setprop net.dns1 xxx.xxx.xxx.xxx
Use following command to set gateway:
route add default gw 192.168.1.1 dev eth0
Steps required to compile individual application package in Android SDK.
1. Go to build directory under Android sdk directorysuhas@ubuntu:~$ cd myandroid/build
2. Execute source source envsetup.shsuhas@ubuntu:~/myandroid/build$ . ./envsetup.sh
3. Go to corresponding application directorysuhas@ubuntu:~/myandroid$ cd hardware/module4. Issue mm command to build the application only
suhas@ubuntu:~/myandroid/hardware/module$ mm
It had been a hard time for me to dig this problem. I was trying to cross-compile a simple hello world “C” application for Android. Whenever I tried to execute the application, it gave a error as file not found. I was using the same toolchain that I used for compiling Android kerenel. However, after some googling I found following important information; We need to follow these commands to compile “C” application for Android.
$ ANDROID_NDK=~/android-ndk-1.6_r1
$ export PATH=$PATH:${ANDROID_NDK}/build/prebuilt/linux-x86/arm-eabi-4.2.1/bin
$ alias agcc='arm-eabi-gcc --sysroot ${ANDROID_NDK}/build/platforms/android-4/arch-arm -fPIC -mandroid -DANDROID -DOS_ANDROID'
I hope this help you as well !!!
STEP 1:
Download QT from
http://qt.nokia.com/downloads/embedded-linux-cpp
Direct link to download:
http://get.qt.nokia.com/qt/source/qt-everywhere-opensource-src-4.6.2.tar.gz
STEP 2:
untar this downloaded tar to your home directory
tar xvzf qt-everywhere-opensource-src-4.6.2.tar.gz
[Note:] You can find the further steps at following location as well
http://doc.trolltech.com/4.4/qt-embedded-crosscompiling.html
STEP 3:
Create your custom platform directory. Platform and toolchain specific files are located in mkspec/qws/ directory.
Copy an already existing directory in mkspecs/qws/ and modify the toolchain and platform specific files.
STEP 4:
Configure QT: for embedded platorm use
./configure –embedded arm –xplatform qws/<custom platform name> <other options>
To have look at available components use:
./configure –help
STEP 5:
make
make install
This will copy the binaries to the directory specified by –prefix
Compile alsa-utils-1.0.22
CC=arm_v5t_le-gcc ./configure --host=i686-linux --target=arm-linux --disable-alsamixer --disable-xmlto --disable-largefile --without-librt --prefix=`pwd`/../alsa-lib-1.0.22/_install/ --without-libintl-prefix --without-libiconv-prefix --disable-nls --with-alsa-prefix=../alsa-lib-1.0.22/_install/lib/ --with-alsa-inc-prefix=../alsa-lib-1.0.22/_install/include/ --disable-alsaconf
more details to be added… for time being use this command.
Replace path with your alsa source code directory
The purpose of this document is to share my understanding on Windows based Network Drivers. This document provides an overview of NDIS, its functionality and features. The implementation details provided in document will surely help you develop your driver quickly and the flow diagrams will enlighten you to visualize how actually a miniport driver functions.
Windows CE has gained a booming fame in embedded OS market within a very short span of time. The speed at which the OS has risen in popularity has left both network chip developers and systems integrators scrambling to produce software drivers for their products. NDIS interface by Microsoft makes development of network driver for WinCE certainly non-trivial.
This document provides a general overview on functioning and implementation of NDIS based network driver.
These implementation details would be almost similar for development of network driver on all OS supporting NDIS. An ideal network driver developed using NDIS wrapper routines will be portable against all Microsoft Windows OS.
Suhas Jain is an Associate in AFTEK Limited located in Pune, India. With over 4 years of development experience in the embedded domain, he has consistently developed and implemented new ideas and techniques which have lead to dramatic improvement within projects. He has a diversified experience in working on embedded platforms like Linux and Windows CE in BSP, device drivers and application development.
Reach him at: -