Six runs in arm-linux our own is now running at skyeye arm-linux up, we can run the command, but these are the busybox and system procedures.
How can I run in arm-linux in our own program? there are two options, we may wish to discuss, selection and transcription of: 1. in making the root file system when the initrd.img to our own programs added to the list, for example in the/usr/bin, directory, and then rebuild the initrd.img, combined with the new root file system to run arm-linux. In fact, this is our product in the final release on arm-linux, but this has a disadvantage: in product development/debugging phase do more trouble, modify a code would have to build a root file system. 2. the use of hook NFS (Networkfilesystem) way, we visit/implementation of a network file system file like it locally, it is clear that to do so to avoid the abuse of a programmes! how to implement? along with me to: (1) on the host machine where arm-linux configured NFSServer (I use is Ubuntu, but also in vmware) # apt-getinstallnfs-kernel-server # apt-getinstallnfs-common (2) edit file/etc/exports, reads as follows (specific requirements by you):/test * (rw, sync, no_root_squas)/usr/local/arm/3.3.2/lib * (ro, sync, no_root_squas) (3) configure the host machine's IP # ifconfigeth1down # ifconfigeth110.0.0.1netmask255.0.0.0up Note: you may be eth0, IP address, you can also define your own, as long as they can and arm-liux communication (4) to restart the nfsserver #/usr/sbin/exports #/etc/init.d/nfs-kernel-serverrestart #/etc/init.d/portmaprestart (5) in the run arm-linux skyeye, to configure ip # ifconfiglodown # ifconfigeth0down # ifconfiglo127.0.0.1up # ifconfigeth010.0.0.2netmask255.0.0.0up Note: you can add these commands to the rcS script, let arm-linux startup help you (6) run in skyeye arm-linux, demo nfs mount # mount-onolock10.0.0.1:/usr/local/arm/3.3.2/lib/lib # exportLD_LIBRARY_PATH =/lib # mount-onolock10.0.0.1:/test/tmp in host machine/test build file hello.c, used cd/arm-linux-gcc3.3.2 compilation # test # arm-linux-gcc-ohellohello.c in arm-linux/tmp of look, there's a hello hello.c and both files? try running see: # cd/tmp #./hello Note: in order to confirm arm-linux can and host computer communication, you can try the following means: (1) on the host machine ping your arm-linux # ping10.0.0.2-c2 (2) in the ping your arm-linux homed # ping10.0.0.1-c2 (3) if each ping does not pass, you can do: reset at arm-linux network: # ifconfigeth0down # ifconfigeth0up then reset the host machine's network: # ifconfigeth1down # ifconfigeth1up then like the previous step, ping each other, until each ping Tung.
No comments:
Post a Comment