Forum Discussion
107 Replies
- Altera_Forum
Honored Contributor
hi hippo
Do you have drive "dm9000" chip on DE2 board ? when i make kernel and occur error info: drivers/char/mem.c: In function `mmap_kmem': drivers/char/mem.c:276: warning: cast to pointer from integer of different size CC drivers/char/random.o drivers/char/random.c: In function `random_write': drivers/char/random.c:1032: warning: comparison of distinct pointer types lacks a cast CC drivers/char/tty_io.o CC drivers/char/n_tty.o CC drivers/char/tty_ioctl.o CC drivers/char/misc.o LD drivers/char/built-in.o CC drivers/hwmon/hwmon.o LD drivers/hwmon/built-in.o CC drivers/net/Space.o CC drivers/net/loopback.o CC drivers/net/dm9000x.o drivers/net/dm9000x.c:305: error: `na_dm9000_irq' undeclared here (not in a function) drivers/net/dm9000x.c: In function `dmfe_probe': drivers/net/dm9000x.c:362: error: `na_dm9000' undeclared (first use in this function) drivers/net/dm9000x.c:362: error: (Each undeclared identifier is reported only once drivers/net/dm9000x.c:362: error: for each function it appears in.) drivers/net/dm9000x.c:434:24: warning: "HDX32" is not defined drivers/net/dm9000x.c: At top level: drivers/net/dm9000x.c:291: warning: 'dmfe_debug' defined but not used drivers/net/dm9000x.c:295: warning: 'debug' defined but not used drivers/net/dm9000x.c:296: warning: 'mode' defined but not used drivers/net/dm9000x.c:785: warning: 'dmfe_reset_dm9000' defined but not used make[2]: *** [drivers/net/dm9000x.o] Error 1 make[1]: *** [drivers/net] Error 2 make: *** [drivers] Error 2 http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/sad.gif Before,i have make kernel on Window XP and occur same error info. Do you solve it ? Thx thx - Altera_Forum
Honored Contributor
--- Quote Start --- originally posted by jay_1025@Apr 13 2006, 12:56 AM hi hippodo you have drive "dm9000" chip on de2 board ?
when i make kernel and occur error info:
drivers/char/mem.c: in function `mmap_kmem':
drivers/char/mem.c:276: warning: cast to pointer from integer of different size
cc drivers/char/random.o
drivers/char/random.c: in function `random_write':
drivers/char/random.c:1032: warning: comparison of distinct pointer types lacks a cast
cc drivers/char/tty_io.o
cc drivers/char/n_tty.o
cc drivers/char/tty_ioctl.o
cc drivers/char/misc.o
ld drivers/char/built-in.o
cc drivers/hwmon/hwmon.o
ld drivers/hwmon/built-in.o
cc drivers/net/space.o
cc drivers/net/loopback.o
cc drivers/net/dm9000x.o
drivers/net/dm9000x.c:305: error: `na_dm9000_irq' undeclared here (not in a function)
drivers/net/dm9000x.c: in function `dmfe_probe':
drivers/net/dm9000x.c:362: error: `na_dm9000' undeclared (first use in this function)
drivers/net/dm9000x.c:362: error: (each undeclared identifier is reported only once
drivers/net/dm9000x.c:362: error: for each function it appears in.)
drivers/net/dm9000x.c:434:24: warning: "hdx32" is not defined
drivers/net/dm9000x.c: at top level:
drivers/net/dm9000x.c:291: warning: 'dmfe_debug' defined but not used
drivers/net/dm9000x.c:295: warning: 'debug' defined but not used
drivers/net/dm9000x.c:296: warning: 'mode' defined but not used
drivers/net/dm9000x.c:785: warning: 'dmfe_reset_dm9000' defined but not used
make[2]: *** [drivers/net/dm9000x.o] error 1
make[1]: *** [drivers/net] error 2
make: *** [drivers] error 2 http://forum.niosforum.com/work2/style_emoticons/<#emo_dir#>/sad.gif
before,i have make kernel on window xp and occur same error info.
do you solve it ?
thx
thx
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=14286)
--- quote end ---
--- Quote End --- you have the same question as goral, http://forum.niosforum.com/forum/index.php?showtopic=3692 (http://forum.niosforum.com/forum/index.php?showtopic=3692) please post your future questions on the uclinux forum.
- Altera_Forum
Honored Contributor
hi hippo
Thank you very much.... http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/smile.gif /include/nios2_system.h . define na_DM9000A define na_DM9000A_irq . /drivers/net/dm9000x.c:305: error: `na_dm9000_irq' undeclared here (not in a function) "na_dm9000_irq" update to "na_DM9000A_irq" drivers/net/dm9000x.c:162 # define DM9000_MIN_IO (na_dm9000) "na_dm9000" update to "DM9000A" I can make kernel succeed and ping DE2 board form the PC. Under NIOS II SDK shell# ifconfig eth0 163.26.227.227 # ifconfig eth0 eth0 Link encap:Ethernet HWaddr 00:07:ED:00:00:00 inet addr:163.26.227.227 Bcast:163.26.255.255 Mask:255.255.0.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/cool.gif TX bytes:0 (0.0 http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/cool.gif Interrupt:8 Under XP C:\Documents and Settings\Administrator>ping 163.26.227.226 Pinging 163.26.227.226 with 32 bytes of data: Reply from 163.26.227.226: bytes=32 time<1ms TTL=128 Reply from 163.26.227.226: bytes=32 time<1ms TTL=128 Reply from 163.26.227.226: bytes=32 time<1ms TTL=128 Reply from 163.26.227.226: bytes=32 time<1ms TTL=128 PS:i can't ping DE2 board,sometimes. Can i ifconfig ip before boot uClinux ? Thx - Altera_Forum
Honored Contributor
hi hippo
I wnat to add "ftpd" apps on my uClinuc OS. When i make menuconfig then occur error info........ [jay@localhost uClinux-dist-test]$ make menuconfig config/mkconfig > config.in make -C /home/jay/uClinux-dist-test/config/scripts/lxdialog all make[1]: Entering directory `/home/jay/uClinux-dist-test/config/scripts/lxdialog' /bin/sh: cc: command not found >> Unable to find the Ncurses libraries. >> >> You must have Ncurses installed in order >> to use 'make menuconfig' make[1]: *** [ncurses] Error 1 make[1]: Leaving directory `/home/jay/uClinux-dist-test/config/scripts/lxdialog' make: *** [menuconfig] Error 2 http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/sad.gif How to solve it ? thx - Altera_Forum
Honored Contributor
jay, hippo has asked you multiple times to post a new thread in the forum, yet you keep posting here... why?
- Altera_Forum
Honored Contributor
could you please explain:
su - # your root passwd yum install compat-gcc-32 cd /usr/bin mv gcc gcc4 ln -s gcc32 gcc exit i use redhat9 thank you ! - Altera_Forum
Honored Contributor
--- Quote Start --- originally posted by iriver@Apr 19 2006, 11:05 AM could you please explain:su - # your root passwd
yum install compat-gcc-32
cd /usr/bin
mv gcc gcc4
ln -s gcc32 gcc
exit
i use redhat9
thank you !
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=14464)
--- quote end ---
--- Quote End --- PLEASE post your future questions on the uclinux forum. login as root, install gcc32 and make symlink as gcc. You can not use redhat9, the make has problems. Try slackware linux or others.
- Altera_Forum
Honored Contributor
Hello all,
i tried to follow the howto step by step, but when compiling the kernel I get following errors:
anyone any idea what's going wrong? btw, hippo, thanks for the great work.$ make ARCH=nios2nommu CROSS_COMPILE=nios2-linux-uclibc- zImage CHK include/linux/version.h CHK include/nios2_system.h perl -I/home/jack/linux-2.6.x/arch/nios2nommu/scripts /home/jack/linux-2.6.x/arch/nios2nommu/scripts/gen_nios2_system.h.pl cpu sdram ext_flash < ../standard_1c12.ptf > include/nios2_system.h.tmp; if && cmp -s include/nios2_system.h include/nios2_system.h.tmp; then rm -f include/nios2_system.h.tmp; else echo ' UPD include/nios2_system.h'; mv -f include/nios2_system.h.tmp include/nios2_system.h; fi make: `arch/nios2nommu/kernel/asm-offsets.s' is up to date. CHK include/linux/compile.h CHK usr/initramfs_list arch/nios2nommu/boot/Makefile:29: warning: overriding commands for target `arch/nios2nommu/boot/zImage' arch/nios2nommu/boot/Makefile:12: warning: ignoring old commands for target `arch/nios2nommu/boot/zImage' arch/nios2nommu/boot/Makefile:33: warning: overriding commands for target `arch/nios2nommu/boot/compressed/vmlinux' arch/nios2nommu/boot/Makefile:16: warning: ignoring old commands for target `arch/nios2nommu/boot/compressed/vmlinux' arch/nios2nommu/boot/Makefile:46: warning: overriding commands for target `arch/nios2nommu/boot/zImage' arch/nios2nommu/boot/Makefile:29: warning: ignoring old commands for target `arch/nios2nommu/boot/zImage' arch/nios2nommu/boot/Makefile:50: warning: overriding commands for target `arch/nios2nommu/boot/compressed/vmlinux' arch/nios2nommu/boot/Makefile:33: warning: ignoring old commands for target `arch/nios2nommu/boot/compressed/vmlinux' arch/nios2nommu/boot/compressed/Makefile:58: warning: overriding commands for target `arch/nios2nommu/boot/compressed/vmlinux' arch/nios2nommu/boot/compressed/Makefile:22: warning: ignoring old commands for target `arch/nios2nommu/boot/compressed/vmlinux' arch/nios2nommu/boot/compressed/Makefile:62: warning: overriding commands for target `arch/nios2nommu/boot/compressed/vmlinux.bin' arch/nios2nommu/boot/compressed/Makefile:26: warning: ignoring old commands for target `arch/nios2nommu/boot/compressed/vmlinux.bin' arch/nios2nommu/boot/compressed/Makefile:65: warning: overriding commands for target `arch/nios2nommu/boot/compressed/vmlinux.bin.gz' arch/nios2nommu/boot/compressed/Makefile:29: warning: ignoring old commands for target `arch/nios2nommu/boot/compressed/vmlinux.bin.gz' arch/nios2nommu/boot/compressed/Makefile:72: warning: overriding commands for target `arch/nios2nommu/boot/compressed/piggy.o' arch/nios2nommu/boot/compressed/Makefile:36: warning: ignoring old commands for target `arch/nios2nommu/boot/compressed/piggy.o' arch/nios2nommu/boot/compressed/Makefile:94: warning: overriding commands for target `arch/nios2nommu/boot/compressed/vmlinux' arch/nios2nommu/boot/compressed/Makefile:58: warning: ignoring old commands for target `arch/nios2nommu/boot/compressed/vmlinux' arch/nios2nommu/boot/compressed/Makefile:98: warning: overriding commands for target `arch/nios2nommu/boot/compressed/vmlinux.bin' arch/nios2nommu/boot/compressed/Makefile:62: warning: ignoring old commands for target `arch/nios2nommu/boot/compressed/vmlinux.bin' arch/nios2nommu/boot/compressed/Makefile:101: warning: overriding commands for target `arch/nios2nommu/boot/compressed/vmlinux.bin.gz' arch/nios2nommu/boot/compressed/Makefile:65: warning: ignoring old commands for target `arch/nios2nommu/boot/compressed/vmlinux.bin.gz' arch/nios2nommu/boot/compressed/Makefile:108: warning: overriding commands for target `arch/nios2nommu/boot/compressed/piggy.o' arch/nios2nommu/boot/compressed/Makefile:72: warning: ignoring old commands for target `arch/nios2nommu/boot/compressed/piggy.o' AS arch/nios2nommu/boot/compressed/head.o arch/nios2nommu/boot/compressed/head.S: Assembler messages: arch/nios2nommu/boot/compressed/head.S:111: Error: symbol `_start' is already defined arch/nios2nommu/boot/compressed/head.S:117: Error: symbol `text_init' is already defined arch/nios2nommu/boot/compressed/head.S:126: Error: symbol `data_init' is already defined arch/nios2nommu/boot/compressed/head.S:146: Error: symbol `flush_cache' is already defined arch/nios2nommu/boot/compressed/head.S:151: Error: symbol `data_flush' is already defined arch/nios2nommu/boot/compressed/head.S:158: Error: symbol `text_flush' is already defined arch/nios2nommu/boot/compressed/head.S:169: Error: symbol `fake_headers_as_bzImage' is already defined arch/nios2nommu/boot/compressed/head.S:202: Error: symbol `_start' is already defined arch/nios2nommu/boot/compressed/head.S:208: Error: symbol `text_init' is already defined arch/nios2nommu/boot/compressed/head.S:217: Error: symbol `data_init' is already defined arch/nios2nommu/boot/compressed/head.S:237: Error: symbol `flush_cache' is already defined arch/nios2nommu/boot/compressed/head.S:242: Error: symbol `data_flush' is already defined arch/nios2nommu/boot/compressed/head.S:249: Error: symbol `text_flush' is already defined arch/nios2nommu/boot/compressed/head.S:260: Error: symbol `fake_headers_as_bzImage' is already defined make: *** Error 1 make: *** Error 2 make: *** Error 2 - Altera_Forum
Honored Contributor
--- Quote Start --- originally posted by piie@Apr 21 2006, 02:09 PM hello all,i tried to follow the howto step by step, but when compiling the kernel i get following errors:
$ make arch=nios2nommu cross_compile=nios2-linux-uclibc- zimage chk include/linux/version.h chk include/nios2_system.h perl -i/home/jack/linux-2.6.x/arch/nios2nommu/scripts /home/jack/linux-2.6.x/arch/nios2nommu/scripts/gen_nios2_system.h.pl cpu sdram ext_flash < ../standard_1c12.ptf > include/nios2_system.h.tmp; if && cmp -s include/nios2_system.h include/nios2_system.h.tmp; then rm -f include/nios2_system.h.tmp; else echo ' upd include/nios2_system.h'; mv -f include/nios2_system.h.tmp include/nios2_system.h; fi make: `arch/nios2nommu/kernel/asm-offsets.s' is up to date. chk include/linux/compile.h chk usr/initramfs_list arch/nios2nommu/boot/makefile:29: warning: overriding commands for target `arch/nios2nommu/boot/zimage' arch/nios2nommu/boot/makefile:12: warning: ignoring old commands for target `arch/nios2nommu/boot/zimage' arch/nios2nommu/boot/makefile:33: warning: overriding commands for target `arch/nios2nommu/boot/compressed/vmlinux' arch/nios2nommu/boot/makefile:16: warning: ignoring old commands for target `arch/nios2nommu/boot/compressed/vmlinux' arch/nios2nommu/boot/makefile:46: warning: overriding commands for target `arch/nios2nommu/boot/zimage' arch/nios2nommu/boot/makefile:29: warning: ignoring old commands for target `arch/nios2nommu/boot/zimage' arch/nios2nommu/boot/makefile:50: warning: overriding commands for target `arch/nios2nommu/boot/compressed/vmlinux' arch/nios2nommu/boot/makefile:33: warning: ignoring old commands for target `arch/nios2nommu/boot/compressed/vmlinux' arch/nios2nommu/boot/compressed/makefile:58: warning: overriding commands for target `arch/nios2nommu/boot/compressed/vmlinux' arch/nios2nommu/boot/compressed/makefile:22: warning: ignoring old commands for target `arch/nios2nommu/boot/compressed/vmlinux' arch/nios2nommu/boot/compressed/makefile:62: warning: overriding commands for target `arch/nios2nommu/boot/compressed/vmlinux.bin' arch/nios2nommu/boot/compressed/makefile:26: warning: ignoring old commands for target `arch/nios2nommu/boot/compressed/vmlinux.bin' arch/nios2nommu/boot/compressed/makefile:65: warning: overriding commands for target `arch/nios2nommu/boot/compressed/vmlinux.bin.gz' arch/nios2nommu/boot/compressed/makefile:29: warning: ignoring old commands for target `arch/nios2nommu/boot/compressed/vmlinux.bin.gz' arch/nios2nommu/boot/compressed/makefile:72: warning: overriding commands for target `arch/nios2nommu/boot/compressed/piggy.o' arch/nios2nommu/boot/compressed/makefile:36: warning: ignoring old commands for target `arch/nios2nommu/boot/compressed/piggy.o' arch/nios2nommu/boot/compressed/makefile:94: warning: overriding commands for target `arch/nios2nommu/boot/compressed/vmlinux' arch/nios2nommu/boot/compressed/makefile:58: warning: ignoring old commands for target `arch/nios2nommu/boot/compressed/vmlinux' arch/nios2nommu/boot/compressed/makefile:98: warning: overriding commands for target `arch/nios2nommu/boot/compressed/vmlinux.bin' arch/nios2nommu/boot/compressed/makefile:62: warning: ignoring old commands for target `arch/nios2nommu/boot/compressed/vmlinux.bin' arch/nios2nommu/boot/compressed/makefile:101: warning: overriding commands for target `arch/nios2nommu/boot/compressed/vmlinux.bin.gz' arch/nios2nommu/boot/compressed/makefile:65: warning: ignoring old commands for target `arch/nios2nommu/boot/compressed/vmlinux.bin.gz' arch/nios2nommu/boot/compressed/makefile:108: warning: overriding commands for target `arch/nios2nommu/boot/compressed/piggy.o' arch/nios2nommu/boot/compressed/makefile:72: warning: ignoring old commands for target `arch/nios2nommu/boot/compressed/piggy.o' as arch/nios2nommu/boot/compressed/head.o arch/nios2nommu/boot/compressed/head.s: assembler messages: arch/nios2nommu/boot/compressed/head.s:111: error: symbol `_start' is already defined arch/nios2nommu/boot/compressed/head.s:117: error: symbol `text_init' is already defined arch/nios2nommu/boot/compressed/head.s:126: error: symbol `data_init' is already defined arch/nios2nommu/boot/compressed/head.s:146: error: symbol `flush_cache' is already defined arch/nios2nommu/boot/compressed/head.s:151: error: symbol `data_flush' is already defined arch/nios2nommu/boot/compressed/head.s:158: error: symbol `text_flush' is already defined arch/nios2nommu/boot/compressed/head.s:169: error: symbol `fake_headers_as_bzimage' is already defined arch/nios2nommu/boot/compressed/head.s:202: error: symbol `_start' is already defined arch/nios2nommu/boot/compressed/head.s:208: error: symbol `text_init' is already defined arch/nios2nommu/boot/compressed/head.s:217: error: symbol `data_init' is already defined arch/nios2nommu/boot/compressed/head.s:237: error: symbol `flush_cache' is already defined arch/nios2nommu/boot/compressed/head.s:242: error: symbol `data_flush' is already defined arch/nios2nommu/boot/compressed/head.s:249: error: symbol `text_flush' is already defined arch/nios2nommu/boot/compressed/head.s:260: error: symbol `fake_headers_as_bzimage' is already defined make: *** error 1 make: *** error 2 make: *** error 2anyone any idea what's going wrong?
btw, hippo, thanks for the great work.
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=14536)</div> --- Quote End --- It looks like the zImage was patched twice? Please reinstall kernel source
Please post your future questions to uclinux forum.cd ~ rm -rf ~/linux-2.6.x# kernel 2.6.11-uc0 source ported by microtronix cp -a ~/download/mx140/plugins/com.microtronix.nios2linux.kernel_1.4.0/linux-2.6.x ~ cd ~/linux-2.6.x patch -p0 <~/download/kernel.diff cp ~/download/kernel.config ~/linux-2.6.x/.config - Altera_Forum
Honored Contributor
Hi,Hippo
I build the uclinux kernel as your guide.there is noting error occurred. When I download the vmlinux(elf) to my board using command "nios2-download -g vmlinux",there are nothing output in my com port? what is the matter? I cancel the jtag uart in menuconfig and do noting else. my board is a custom board using Cyclone EP1C6, the default board type in the menuconfig is stratix ,is this matter? waiting for your replay. Thanks in advance.