Forum Discussion
Altera_Forum
Honored Contributor
21 years agoWeb Server
Hello, I'm using the uCLinux ported by Microtronix. I'm trying to use the web server but I can't see the initial page. I use the open core ethernet. I built the filesystem as des...
Altera_Forum
Honored Contributor
21 years ago- under /home/httpd are the files index.html and ukit.jpg (Microtronix example)
- boa is started by rc script (see below). In difference to the example, I added the line /bin/ifconfig... # !/bin/sh# # system startup. # set up the hostname /bin/hostname Nios2 # expand and mount the ramdisk /bin/expand /ramfs.img /dev/ram0 /bin/mount -t ext2 /dev/ram0 /var -n /bin/expand /ramfs.img /dev/ram1 /bin/mount -t ext2 /dev/ram1 /tmp -n # mount proc file system /bin/mount -t proc proc /proc -n # mount sysfs /bin/mount -t sysfs sysfs /sys -n # manually assign ip address (uncomment and edit as appropriate)# note: first ifattach (no args) sets local loopback /bin/ifattach# /bin/ifattach --addr 10.1.1.99 --mask 255.255.255.0 --net 10.1.1.0 --gw 10.1.1.11 --if eth0 /bin/ifconfig eth0 192.168.1.239 netmask 255.255.255.0 # try and get ip address automatically...# /bin/mkdir /var/dhcpc# /bin/dhcpcd -NRY & # start up the internet superserver /bin/inetd & # start up the web server /bin/boa & # mount Linux server:# (uncomment and edit as appropriate)# /bin/mount -t nfs 192.168.1.30:/home /mnt/nfs -n -o nolock # mount master ide disk partition(s):# (uncomment and edit as appropriate)# /bin/mount /dev/hda1 /mnt/ide0 -n # that's it... success exit 0