Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
soc:2009:pravin:journal:pxeknifedsl [2009/06/12 14:30] less1 |
soc:2009:pravin:journal:pxeknifedsl [2009/06/13 15:05] (current) less1 |
||
|---|---|---|---|
| Line 38: | Line 38: | ||
| with this, I am able to mount the remote KNOPPIX. | with this, I am able to mount the remote KNOPPIX. | ||
| - | ===== loading KNOPPIX over HTTP __Problem__ ===== | + | ===== loading KNOPPIX over HTTP ===== |
| if I start DSL and if does not find the KNOPPIX anywhere, then it gives a emergency shell. | if I start DSL and if does not find the KNOPPIX anywhere, then it gives a emergency shell. | ||
| I have written a following script that can be run from that shell and it will load the KNOPPIX on /cdrom/ | I have written a following script that can be run from that shell and it will load the KNOPPIX on /cdrom/ | ||
| Line 49: | Line 49: | ||
| insmod /modules/pcnet32.o | insmod /modules/pcnet32.o | ||
| insmod /modules/r8169.o | insmod /modules/r8169.o | ||
| + | insmod /modules/e100.o | ||
| + | insmod /modules/e1000.o | ||
| insmod /modules/sis900.o | insmod /modules/sis900.o | ||
| insmod /modules/via-rhine.o | insmod /modules/via-rhine.o | ||
| Line 57: | Line 59: | ||
| udhcpc -s /static/udhcpc.sh 1 | udhcpc -s /static/udhcpc.sh 1 | ||
| insmod /modules/fuse.o | insmod /modules/fuse.o | ||
| - | httpfs http://145.116.233.189/KNOPPIX /cdrom/ | + | echo "testing networking" |
| + | mkdir /ntest | ||
| + | httpfs http://145.116.233.189/reach /ntest | ||
| + | echo "checking content" | ||
| + | cat /ntest/reach | ||
| + | |||
| + | |||
| + | echo "mounting KNOPPIX" | ||
| + | mkdir /cdrom/KNOPPIX | ||
| + | httpfs http://145.116.233.189/KNOPPIX /cdrom/KNOPPIX | ||
| </code> | </code> | ||
| - | This script can be run as follows | + | This script is invoked automatically from linuxrc.\\ |
| + | I have also added the busybox in ///static/busybox// and it supports meny commands.\\ | ||
| + | Networking can be tested with __wget__ but one need to give IP address as URL's are not supported right now. | ||
| <code> | <code> | ||
| - | # /static/loader.sh | + | # wget http://145.116.233.189/reach |
| - | # ls /cdrom/ | + | # cat reach |
| - | KNOPPIX | + | |
| + | # mount | ||
| + | rootfs / rootfs rw 0 0 | ||
| + | /dev/root.old / ext2 rw 0 0 | ||
| + | /proc /proc proc rw 0 0 | ||
| + | /dev/pts /dev/pts devpts rw 0 0 | ||
| + | httpfs /ntest fuse rw,nosuid,nodev,user_id=0,group_id=0 0 0 | ||
| + | httpfs /cdrom fuse rw,nosuid,nodev,user_id=0,group_id=0 0 0 | ||
| </code> | </code> | ||
| - | It shows that KNOPPIX is loaded.\\ | + | It shows that KNOPPIX is available and __networking__ is working fine\\ |
| + | |||
| + | ===== Mounting the KNOPPIX ===== | ||
| Now, one of the question is when do I call loader.sh from within linuxrc?\\ | Now, one of the question is when do I call loader.sh from within linuxrc?\\ | ||
| - | Here is the code for [[http://pastebin.com/f265d01b0|linuxrc]] | + | Here is the code for [[http://pastebin.com/f265d01b0|linuxrc]]\\ |
| + | My guess is that I just need to find correct place, and then it should happen automatically.\\ | ||
| + | |||
| + | Finally, I got it working. | ||
| + | the modified __linuxrc__ file is [[http://pastebin.com/f5eb77a27|here]].\\ | ||
| + | and latest one which works with [http://rom.etherboot.org/share/pravin/pxeknife/]] is [[http://paste.etherboot.org/?page=view&id=1244928477|here]] | ||
| + | |||
| + | ===== Test the linux over HTTP ===== | ||
| + | |||
| + | [http://rom.etherboot.org/share/pravin/pxeknife/]] | ||
| + | |||