101 | | This will copy the ''./hello'' to ''/bin/hello'' inside the ''hdd-img.bin'' file system image. |
| 103 | This will copy the ''hello'' program located in your current directory on your host machine (Linux) to ''/bin/hello'' inside the ''hdd-img.bin'' file system image. |
| 104 | |
| 105 | Now, lets go to the ''DISTRIB/test/pf1'' directory and launch the simulator: |
| 106 | |
| 107 | {{{ |
| 108 | $ cd ''DISTRIB/test/pf1'' |
| 109 | $ make sim1 |
| 110 | }}} |
| 111 | |
| 112 | Wait until you get a prompt on the ''tty1'' console, then type: |
| 113 | |
| 114 | {{{ |
| 115 | [/HOME/ROOT]>ls /bin |
| 116 | }}} |
| 117 | |
| 118 | The contents of ''/bin'' directory will be listed and the ''hello'' program must figure in the list. To run ''/bin/hello'' program, type the following command on the ''tty1'' console: |
| 119 | |
| 120 | {{{ |
| 121 | [/HOME/ROOT]>exec /bin/hello |
| 122 | }}} |
| 123 | |
| 124 | You can see some kernel log messages on the ''tty0'' and ''tty3'' until you see the output of your ''hello'' program arrives on the ''tty1''. |
| 125 | |
| 126 | That is it ... you are done !! |