Skip to main content

Posts

Showing posts from December, 2008

DHCP Client Server Porting Guide Steps Here

Looking for DHCP Client Server Porting Guide Steps? read on, 1.Download udhcp-0.9.8.tar.gz and Untar it >tar -zxvf udhcp-0.9.8.tar.gz 2.You will get udhcp-0.9.8 directory.Go to that directory >cd udhcp-0.9.8 3.The code can be compiled directly for gcc.For arm-linux > Go to Makefile and uncomment the CROSS-COMPILE (line 19) and edit >CROSS-COMPILE=arm-linux- 4.Now run make command from that directory. >make 5.You will get two binaries 1.udhcpd -- DHCP Server 2.udhcpc -- DHCP Client 6.For DHCP server: 1.copy udhcpd(binary) to /usr/sbin 2.copy udhcpd.conf in the directory samples to /etc directory 3.create an empty file udhcpd.leases in /var/lib/misc directoty 7.For DHCP client: 1.copy udhcpc(binary) to /sbin directory 2.copy all the scripts except udhcpd.conf in samples directory to /usr/share/udhcpc directory 3.Create an empty directory udhcpc in /etc directory. (In thi

NFS Based ROOTFS Mounting From NFS

How to boot from NFS? Network File System (NFS) is a Network file system protocol allowing a user on a client computer to access files over a network as easily as if the network devices were attached to its local disks. All kernels after 2.2 support NFS over TCP. Mounting the root file system from NFS steps. 1) Go to kernel source directory and type "make menuconfig". 2) In order to configure root NFS support in the kernel, it is first necessary to enable "IP Autoconfiguration". This setting is accessed by selecting "Network" and then "Networking Options" in the menu. On the Network options screen select "IP: kernel level autoconfiguration". type / to search config options from make menucnfig. 3) Main menu select "File Systems" select "Network File Systems". On the Network File Systems page select the "NFS file system support" as built-in (select as *). Then scroll down and select "Root File system

Steps For Booting Linux Kernel From USB Pen Drive

Boot Linux kernel from USB: Here are the steps for Booting Linux kernel from USB pen drive. If you have kernel image in pen drive then use these steps to boot from pen drive. 1) Create ext2 file system on USB. 2) Copy the kernel image to USB. 3) Connect the USB to embedded board. 4) From u-boot: Execute following commands. 5) “usb start” :– This will probe for usb mass storage devices. 6) “usb storage”:- shows the details of mass storage device. 7) “ext2ls usb o” :- lists the files in the USB. 8) “ext2load usb 0 7fc0 scp_zimage “ :- copies the embedded linux kernel file from usb and stores it in RAM 7fc0 9) Then do “bootm” to boot Linux.

What is Boot loader in embedded System Init Steps

Lets talk about Boot loader in embedded system and its basics. What is Boot loader in embedded System and its initialization steps? What happens on power on? What does bootloader do on power on? Read on for answers to these question . Boot loader is a program which will execute on power-on in an embedded system. The main functionality of the boot loader is to initialize the hardware and make a platform for, and load the Operating system. Hardware initialization includes the CPU, memory controller, UART, etc. As system is up the CPU will be initialized then the memory controller (i.e. DDR controller, Flash controller) will be initialized. The Boot loader code will itself relocate to the RAM and do further hardware initialization like UART, MAC, PCI etc. The very first initialization code should be from a non-volatile memory on board, which will have the capability of XIP (execute in place). IF you have serial Flash as boot code holder, which cannot be used for XIP, then other options a

ntfsprogs and Fuse Compilation errors and Solution here

Got some luck to compile ntfsprogs. Ntfsprogs are a collection of utilities for doing stuff with NTFS volumes. Steps to compile ntfsprogs . 1. get the FUSE and compile it. $ tar xvzf fuse-2.7.4.tar.gz $ ./configure --disable-kernel-module $ make getting error while compiling examples dir. libtool: link: gcc -Wall -W -Wno-sign-compare -Wstrict-prototypes -Wmissing-declarations -Wwrite-strings -g -O2 -fno-strict-aliasing -o .libs/fusexmp fusexmp.o -pthread -pthread ../lib/.libs/libfuse.so -ldl ../lib/.libs/libfuse.so: undefined reference to `clock_gettime' make[1]: Leaving directory `/home/bhagwat/fuse-2.7.4/example' Solution is $ cd examples open Makefile go to line no 205 change the option from -ldl to -lrt $ cd ../make $ make install FUSE will be installed in default dir ie /usr/local/lib Get the ntfsprogs from linux-ntfs. untar ntfsprograms $ tar xvzf ntfsprogs-2.0.0.tar.gz $ ./configure --enable-ntfsmount still getting same error smount ntfsmount-ntfsmount.o ntfsmount-ut

Useful Windows DOS Commands For Linux Users

Useful Windows DOS Commands For Linux Users the most useful DOS commands available in Windows XP. DOS Commands must be run at the prompt of the Cmd.exe. To open Command Prompt, click Start, click Run, type cmd, and then click OK. Now try some useful commands; 1. To convert FAt32 volume into NTFS volume use :- CONVERT F: /FS:NTFS converts F drive into NTFS format. 2. Disconnect all the connection using net use use : - net use * /del /yes This will delete all the connection to your windows system; means If you have already connected to some system with shared folders and provided log in and password. After using this command you need to type login and password again. One can disconnect specific connection using net use. : net use will display all the connection list. 3. Today I learn about SDelete command. (works on Windows NT/2000's (Win2K) ) SDelete is a command line utility that takes a number of options. In any given use, it allows you to delete one or more files and/or direc

dda housing scheme 2008 results at www.dda.org.in

Housing Scheme 08 — the Delhi Development Authority’s latest offering of affordable houses for citizens. The much-awaited draw of lots to the Delhi Development Authority (DDA) Housing Scheme 2008 – under which 5,010 flats are up for sale. The DDA will, however, upload the list of successful allottees on its website www.dda.org.in by 3 p.m. To view your Registration/Allotment/Application Status please: 1. Select Scheme, either enter Registration/Application No. or Priority No., and select Flat category. Scheme: Of the 12.64 lakh application forms which were sold, 5,60,000 forms were found eligible for inclusion in the lottery by DDA. The list will also appear in all national newspapers on Wednesday,” said Dhar. DDA Draw Result Website ALLOTMENTS TO CTRL GOV PSU, AMBEDKAR AWAS YOJNA, CGHS, DDA HOUSING SCHEME 2006, DDA HOUSING SCHEME 2008, DWARKA HIG HOUSING SCHEME 2003 ... www.dda.org.in direct link is dda.org.in/housing/results/reg_results.asp dda,

Calling User Space Program From Kernel Space

Invoking user mode application from kernel modules, yes its possible with help of CALL_USERMODEHELPER . With the following kernel API, we can invoke user mode application from Kernel modules/threads. int call_usermodehelper (char * path, char ** argv, char ** envp, int wait); path: pathname for the application. argv: null-terminated argument list. envp: null-terminated environment list. wait: wait for application to finish and return status. Example: Kernel Module: #include #include char name[]="user_program"; static int init_function(void) { int ret; char *argv[] = {name, "hello", "world", NULL }; static char *envp[] = { "HOME=/", "TERM=linux", "PATH=/sbin:/usr/sbin:/bin:/usr/bin", NULL }; printk("We r in init_function\n"); ret= call_usermodehelper(name, argv, envp, 1); if ( ret <> #in

Ruby.rewrite Ruby Fringe talk by Braithwaite

Ruby.rewrite(Ruby).In this RubyFringe talk, Reginald Braithwaite shows how to write Ruby that reads, writes, and rewrites Ruby. The demos include extending the Ruby language with conditional expressions, new forms of evaluation such as call-by-name and call-by-need, and more. RubyFringe is an avant-garde conference for developers that are excited about emerging Ruby projects and technologies. They're mounting a unique and eccentric gathering of the people and projects that are driving things forward in our community. about Author Reginald Braithwaite was the tech lead on the team that created JProbe Threadalyzer, a tool that did automatic detection of potential threading-related bugs. check out the presentation here.

The 10 Most Puzzling Ancient Artifacts

What are we to make of these finds? There are several possibilities: * Intelligent humans date back much, much further than we realize. * Other intelligent beings and civilizations existed on earth far beyond our recorded history. * Our dating methods are completely inaccurate, and that stone, coal and fossils form much more rapidly than we now estimate. In any case, these examples - and there are many more - should prompt any curious and open-minded scientist to reexamine and rethink the true history of life on earth. clipped from www.ancientx.com There is a great deal of archeological evidence that the history of life on earth might be far different than what current geological and anthropological texts tell us. Could it be, however, that conventional science is just as mistaken as the Bible stories? Consider these astonishing finds: The Grooved Spheres Over the last few decades, miners in South Africa have been digging up mysterious metal spheres . The kicker is that th

Nanotechnology vs. God

A team of American and Singaporean scientists conducted a survey of attitudes towards nanotechnology, and found that the more religious the community, the more they opposed the science of nanotechnology clipped from www.dailygalaxy.com The U.S. is experiencing an apocalyptic showdown even as we speak.  In one corner we have nanotechnology, which could potentially end the world through rogue replication or uncontrolled alteration.  In the other we have God, who has - and this according to his fans, remember - killed almost everything on Earth at least once and will do so again the very instant he decides he wants to, under the euphemistic name of "Rapture".  The public is the referee and, amazingly, they're on the "I drowned all but one family of you people once" guy's side. A team of American and Singaporean scientists conducted a survey of attitudes towards nanotechnology, and found that the more religious the community, the more they opposed the science o

Taking A Shower Improves Moral Judgment

The research was conducted through two experiments with university students. In the first, they were asked to complete a scrambled sentence task involving 40 sets of four words each. By underlining any three words, a sentence could be formed. For the neutral condition, the task contained 40 sets of neutral words, but for the cleanliness condition, half of the sets contained words such as ‘pure, washed, clean, immaculate, and pristine’. The participants were then asked to rate a series of moral dilemmas including keeping money found inside a wallet, putting false information on a resume and killing a terminally ill plane crash survivor in order to avoid starvation. The second experiment saw the students watch a ‘disgusting’ film clip before rating the same moral dilemmas. However, half the group were asked to first wash their hands. clipped from www.scientificblogging.com The next time you have to make a difficult moral decision, you might think twice about mulling it over in the bath