Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
21 years ago

Unable to create socket

When i booting uClinux the folling message i get:

uClinux/Nios II
Altera Nios II support (C) 2004 Microtronix Datacom Ltd.
Built 1 zonelists
Kernel command line: root=/dev/mtdblock0 ro
PID hash table entries: 128 (order: 7, 2048 bytes)
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Memory available: 14944k/16384k RAM, 0k/0k ROM (992k kernel code, 254k data)
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
NET: Registered protocol family 16
NIOS serial driver version 0.0
ttyS0 (irq = 4) is a builtin NIOS UART
Serial: JTAG UART driver $Revision: 1.3 $
ttyJ0 at MMIO 0x821208b0 (irq = 1) is a jtag_uart
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
smc_probe: 70000 Khz Nios
SMSC LAN91C111 Driver (v2.1), (Linux Kernel 2.6)
eth0: SMC91C11xFD(rev:1) at 0x82110300 IRQ:6 MEMSIZE:8192b NOWAIT:0 ADDR: 00:07:
ed:0d:b1:df
smc_probe: 70000 Khz Nios
Using anticipatory io scheduler
Altera NDK flash (AMD): Found 1 x16 devices at 0x0 in 8-bit bank
 Amd/Fujitsu Extended Query Table at 0x0040
Altera NDK flash (AMD): CFI does not contain boot bank location. Assuming top.
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
cmdlinepart partition parsing not available
RedBoot partition parsing not available
Using Altera NDK partition definition
Creating 4 MTD partitions on "Altera NDK flash (AMD)":
0x00200000-0x00600000 : "romfs/jffs2"
0x00000000-0x00200000 : "loader/kernel"
0x00600000-0x00700000 : "User configuration"
0x00700000-0x00800000 : "safe configuration"
VFS: Mounted root (romfs filesystem) readonly.
Freeing unused kernel memory: 40k freed (0x1120000 - 0x1129000)
expand: from=/ramfs.img to=/dev/ram0
expand: from=/ramfs.img to=/dev/ram1
SIOCSIFADDR=-1: 9
SIOCGIFFLAGS = -1: Bad file descriptor (9)
SIOCADDRT=-1: 9
Unable to create socket
close on exec: : Bad file descriptor
setsockopt: : Bad file descriptor
Unable to bind server socket: : Bad file descriptor
Unable to listen to socket
Unable to create socket
close on exec: : Bad file descriptor
setsockopt: : Bad file descriptor
Unable to bind server socket: : Bad file descriptor
Unable to listen to socket
Unable to create socket
close on exec: : Bad file descriptor
setsockopt: : Bad file descriptor
Unable to bind server socket: : Bad file descriptor
Unable to listen to socket

The i can login and so on.

I am using a altera nios dev board stratix2s60es

And i am using the sof file at the location C:\altera\kits\nios2\examples\vhdl\niosII_stratixII_2s60_ES\standard

Can someone help ?

1 Reply