Forum Discussion
Altera_Forum
Honored Contributor
20 years ago --- Quote Start --- originally posted by hippo@Jan 11 2006, 12:35 PM 9. you should try out the new kernel.
follow step5, build kernel as before, but "cd ~/linux-2.6.15.4" .
if you will develop drivers, you should use the new kernel. --- Quote End --- While testing the new kernel, I discovered that "socket.h" needs a patch. Also, the SMC91111 driver is missing its header file. This soon becomes apparent when you enable Networking -> Networking support, then attempt to build new kernel. Save the following as ~/download/linux-nios2-03.diff
--- include/asm-nios2nommu/socket.h 2006-03-10 11:50:53.000000000 +1000
+++ include/asm-nios2nommu/socket.h 2006-03-10 11:39:14.000000000 +1000
@@ -38,6 +38,8 @@
# define SO_BROADCAST 6
# define SO_SNDBUF 7
# define SO_RCVBUF 8
+#define SO_SNDBUFFORCE 32
+#define SO_RCVBUFFORCE 33
# define SO_KEEPALIVE 9
# define SO_OOBINLINE 10
# define SO_NO_CHECK 11 Apply the patch as follows.... cd ~/linux-2.6.15.4
# Patch socket.h
patch -p0 <~/download/linux-nios2-03.diff
# Salvage the missing SMC91111 header file
cp ~/linux-2.6.x/drivers/net/smc91111.h drivers/net
# Config the kernel
make ARCH=nios2nommu CROSS_COMPILE=nios2-linux-uclibc- menuconfig
# Compile the kernel
make ARCH=nios2nommu CROSS_COMPILE=nios2-linux-uclibc- Pls let me know how it goes