Forum Discussion
Altera_Forum
Honored Contributor
8 years ago --- Quote Start --- Hi, 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 --- Quote End --- Now I understsand better. I updated my design in Qsys and added a second timer. Picture https://i.stack.imgur.com/2jywn.png If I try and use that design I get this error msg
Linux version 3.5.0-rc4-01329-ga227997-dirty (developer@1604) (gcLinux version 3.5.0-rc4-01329-ga227997-dirty (developer@1604) (gcc version 4.1.2)# 810 Sat Apr 1 14:23:20 CEST 2017
bootconsole enabled
early_console initialized at 0xe8001440
ERROR: Nios II MUL different for kernel and DTS
Unable to handle kernel NULL pointer dereference at virtual address 00000000
ea = c0238094, ra = c0238078, cause = 15
Kernel panic - not syncing: Oops
What does it mean?