I write a socket program on uClinux to test my kernel modification.
If you want to test it, you may need to follow the steps below:
-
- bash$ cd uClinux_arm_cortexm/
- bash$ . ACTIVATE.sh
- bash$ cd projects/my_developer
- bash$ make
-
- M2S-COM> setenv ipaddr yourip
- M2S-COM> setenv serverip serverip
- M2S-COM> setenv image my_developer.uImage
- M2S-COM> run update
- M2S-SOM> reset
And if you can see the following, means you have successfully make it work :
resetting ...
U-Boot 2010.03-linux-cortexm-1.9.1 (Jan 23 2013 - 17:19:37)
...
Starting kernel ...
...
init started: BusyBox v1.17.0 (Jan 23 2013 - 17:21:30)
~ # -
~ # insmod sample.ko
~ # ./app