Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
12748 Discussions

problem of building uclinux

Altera_Forum
Honored Contributor II
1,420 Views

hi 

I met the following problem when I build uclinux with niosII ide: 

 

Kind Status Priority Description Resource In Folder Location 

Warning unused variable `fhp'[/cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_0.1.5/linux-2.6.x/fs/lockd/svcsubs.c] kernel_1c20 line 58 

 

Kind Status Priority Description Resource In Folder Location 

Warning long unsigned int format, size_t arg (arg 7)[/cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_0.1.5/linux-2.6.x/drivers/base/dmapool.c] kernel_1c20 line 73 

 

who can help me ,thanks.
0 Kudos
4 Replies
Altera_Forum
Honored Contributor II
703 Views

ok,I am success! 

now I have run uClinux successfully on niosII (cyclone board)and configure my IP address on it.uClinux/Nios II 

 

 

--- Quote Start ---  

 

Altera Nios II support © 2004 Microtronix Datacom Ltd. 

On node 0 totalpages: 4096 

DMA zone: 0 pages, LIFO batch:1 

Normal zone: 4096 pages, LIFO batch:1 

HighMem zone: 0 pages, LIFO batch:1 

Built 1 zonelists 

Kernel command line: root=/dev/mtdblock0 ro 

PID hash table entries: 16 (order 4: 128 bytes) 

Memory available: 14596k/4096k RAM, 0k/0k ROM (1298k kernel code, 285k d 

Calibrating delay loop... 24.62 BogoMIPS 

Dentry cache hash table entries: 2048 (order: 1, 8192 bytes) 

Inode-cache hash table entries: 1024 (order: 0, 4096 bytes) 

Mount-cache hash table entries: 512 (order: 0, 4096 bytes) 

POSIX conformance testing by UNIFIX 

NET: Registered protocol family 16 

Serial: JTAG UART driver $Revision: 1.3 $ 

ttyJ0 at MMIO 0x80920820 (irq = 1) is a jtag_uart 

RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize 

smc_probe: 50000 Khz Nios 

SMSC LAN91C111 Driver (v2.1), (Linux Kernel 2.6) 

eth0: SMC91C11xFD(rev:1) at 0x80910300 IRQ:6 MEMSIZE:8192b NOWAIT:0 ADDR 

ed:0b:0c:6c 

smc_probe: 50000 Khz Nios 

Using anticipatory io scheduler 

microtronix[mtd]: RAM probe address=0x200000 size=0x1ee000 

Creating 1 MTD partitions on "RAM": 

0x00000000-0x001ee000 : "ROMfs" 

microtronix[mtd]: set ROMfs to be root filesystem 

NET: Registered protocol family 2 

IP: routing cache hash table of 512 buckets, 4Kbytes 

TCP: Hash tables configured (established 1024 bind 2048) 

NET: Registered protocol family 1 

NET: Registered protocol family 17 

VFS: Mounted root (romfs filesystem) readonly. 

Freeing unused kernel memory: 44k freed (0x1172000 - 0x117c000) 

expand: from=/ramfs.img to=/dev/ram0 

expand: from=/ramfs.img to=/dev/ram1 

 

/etc/issue www.microtronix.com July 2004 

 

 

Welcome to Linux on the Nios II 

 

Nios2 login: nios 

Password: 

 

Login incorrect 

 

/etc/issue www.microtronix.com July 2004 

 

 

Welcome to Linux on the Nios II 

 

Nios2 login: nios 

Password: 

# ls 

ftp httpd# ifconfig eth0 211.65.88.227 netmask 255.255.255.128 

eth0:PHY 100BaseT 

eth0:PHY Half Duplex#
0 Kudos
Altera_Forum
Honored Contributor II
703 Views

yes,the next step is build a rw filesystem,that&#39;s very annoying http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/sad.gif  

 

good luck http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/smile.gif
0 Kudos
Altera_Forum
Honored Contributor II
703 Views

hi,tazok 

do you know how to builder a rw file system? 

I am a newer, can you help me? 

thanks a lot.
0 Kudos
Altera_Forum
Honored Contributor II
703 Views

 

--- Quote Start ---  

originally posted by xlking@Dec 6 2004, 04:30 AM 

hi,tazok 

do you know how to builder a rw file system? 

i am a newer, can you help me? 

thanks a lot. 

--- Quote End ---  

 

To successfully build an rw filesystem copy the filesystem files on Compact Flash previously partitioned with an ext2fs on hda1, try mknod for all device in /dev directory, then specify the root=0301 in kernel config, recompile the kernel and upload it. 

 

Good Luck
0 Kudos
Reply