Forum Discussion
Altera_Forum
Honored Contributor
8 years agoHi,
--- Quote Start --- It's the Makefile that assumes the sc.cfg and syslog.conf I don't know what do to about it. If I remove those two variables then it builds, but they should be somewhere shouldn't they? The other changes was because of deprecation in Perl about define statement and a header in serve_image.c that I had to comment out but I don't know what I'm doing. --- Quote End --- The files which are indicated by the tag ETC_FILES-y#
ETC_FILES-y =
filesystems group issue mdev.conf mime.types modprobe.conf motd
passwd profile rc TZ nsswitch.conf syslog.conf sc.cfg
are copied from your /nios2-linux/uClinux-dist/vendors/Altera/common directory ro /etc. #
for f in $(ETC_FILES-y) ; do
$(ROMFSINST) ../common/$$f /etc/$$f ;
done ;
So you must create the 'syslog.conf' file (which is used for rsyslogd) and 'sc.cfg' (I don't know what's this). And you have 4 errors which are caused by your 'rc' script file. 1) ifconfig: SIOCSIFADDR: No such device ifconfig: SIOCSIFADDR: No such device are caused by the lines 86 and 87. # Set up eth1 IP address
ifconfig eth0 192.168.11.4 up
ifconfig eth1 192.168.1.4 up
2) cp: can't stat '/etc/sc.cfg': No such file or directory is caused by the line 93. # Move SoftClock config file to where it is accessed by application, location is hardcoded in application
cp /etc/sc.cfg /var/log
3) insmod: can't insert '/usr/sbin/fpga.ko': No such file or directory Usage: mknod [-m MODE] NAME TYPE MAJOR MINOR are caused by the lines 96 and 101. # Set up device driver, insert kernel module
insmod /usr/sbin/fpga.ko# create device node using major number /proc/devices table
CURRWD=`pwd`
cd /dev
MAJOR_NUM=$(awk 'BEGIN {FS=" "}; {if ($2 == "fpgasymm") print $1;}' /proc/devices)
mknod -m=777 fpgasymm c $MAJOR_NUM 0
cd $CURRWD 4) sh: can't execute 'rsyslogd': No such file or directory is caused by the line 105. # start rsyslogd daemon
rsyslogd -n -m0 -f /etc/syslog.conf &
If you don't require these, please delete or comment out those lines and recompile the kernel. Kazu