Forum Discussion
Altera_Forum
Honored Contributor
20 years agokernal build error
dear hippo,
Thank you help me , now i bulild the kernal in my custom board (EP1C6,SDRAM(8MB),FLASH(8MB),uart *2,jtat uart ) ,when i run menuconfig ,i select the ALTERA JTAG UARTsupport,and the nios serial support, then compile : [wangzhiwunpu@localhost linux-2.6.x]$ make ARCH=nios2nommu CROSS_COMPILE=nios2-linux-uclibc- no emulation specific options. CHK include/nios2_system.h CHK include/linux/version.h SPLIT include/linux/autoconf.h -> include/config/* CC init/main.o CHK include/linux/compile.h CC init/do_mounts.o LD init/mounts.o LD init/built-in.o CHK usr/initramfs_list CC arch/nios2nommu/kernel/signal.o CC arch/nios2nommu/kernel/setup.o CC arch/nios2nommu/kernel/start.o arch/nios2nommu/kernel/start.c: In function `main': arch/nios2nommu/kernel/start.c:523: warning: label `badshiftci_label' defined but not used LD arch/nios2nommu/kernel/built-in.o CC kernel/printk.o CC kernel/exit.o CC kernel/signal.o CC kernel/sys.o CC kernel/power/console.o LD kernel/power/built-in.o CC kernel/acct.o LD kernel/built-in.o CC fs/open.o CC fs/dquot.o CC fs/devpts/inode.o LD fs/devpts/devpts.o LD fs/devpts/built-in.o CC fs/proc/array.o CC fs/proc/proc_tty.o CC fs/proc/proc_misc.o LD fs/proc/proc.o LD fs/proc/built-in.o LD fs/built-in.o CC drivers/char/mem.o 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/tty_io.o In file included from include/linux/selection.h:11, from drivers/char/tty_io.c:104: include/linux/vt_buffer.h:19:21: asm/vga.h: No such file or directory make[2]: *** [drivers/char/tty_io.o] Error 1 make[1]: *** [drivers/char] Error 2 make: *** [drivers] Error 222 Replies
- Altera_Forum
Honored Contributor
for these command:
cd uClinux-dist-test zcat uClinux-dist.diff.gz | patch -p0 i want to known the where the uClinux-dist.diff.gz i should palce! the uClinux-dist-test dir or anywhere??? - Altera_Forum
Honored Contributor
--- Quote Start --- originally posted by iriver@Jun 4 2006, 09:14 PM for these command:cd uclinux-dist-test
zcat uclinux-dist.diff.gz | patch -p0
i want to known the where the uclinux-dist.diff.gz i should palce!
the uclinux-dist-test dir or anywhere???
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=15882)
--- quote end ---
--- Quote End --- You can place it in uClinux-dist-test, but anywhere should work if you give the path.
- Altera_Forum
Honored Contributor
hi hippo:
I set Link address offset for booting to 0x500000, but,when i nios2-download,the load address 0x00D000000 show up! I don't know why? - Altera_Forum
Honored Contributor
The zImage load address is ( your sdram base address + link address offset ) .
You problem is cuased by the sof. The sof included in the DE2 disc (v1.3,v1.4,v1.5) is no good. You should recompile the sof or use older sof, the one attached in the wiki is v1.1 . - Altera_Forum
Honored Contributor
--- Quote Start --- The zImage load address is ( your sdram base address + link address offset ) . You problem is cuased by the sof. The sof included in the DE2 disc (v1.3,v1.4,v1.5) is no good. You should recompile the sof or use older sof, the one attached in the wiki is v1.1 . I use the .sof file you offer, and i download my linux.but i can not work.Then i download the zImage you offer,it can work.So i think the problem may not be cansed by the sof. - Altera_Forum
Honored Contributor
Please try "make clean",
Start the make all over again. with "make menuconfig" to default, [*] Default all settings (lose changes) - Altera_Forum
Honored Contributor
I try again as you tell me,but there is also the problem!Could you give me a DE2_NET project? This is my EMAIL:[email protected].
Thanks!! - Altera_Forum
Honored Contributor
- Altera_Forum
Honored Contributor
I follow the step in the new wiki,
http://nioswiki.jot.com/wikihome/operating...nux/uclinuxdist (http://nioswiki.jot.com/wikihome/operating...nux/uclinuxdist) Where you guys getting this error: I tried following the instructions from the wiki http://nioswiki.jot.com/wikihome/operating...ems/framebuffer (http://nioswiki.jot.com/wikihome/operating...ems/framebuffer) but I ran into this error when trying to run make in the uClinux-dist/ fs/buffer.c: In function `__find_get_block_slow': fs/buffer.c:292: warning: long unsigned int format, size_t arg (arg 3) LD fs/built-in.o CC drivers/char/tty_io.o In file included from include/linux/selection.h:11, from drivers/char/tty_io.c:103: include/linux/vt_buffer.h:18:21: asm/vga.h: No such file or directory make[3]: *** [drivers/char/tty_io.o] 错误 1 make[2]: *** [drivers/char] 错误 2 make[1]: *** [drivers] 错误 2 make[1]: Leaving directory `/home/nios/download/uClinux-dist/linux-2.6.x' make: *** [linux] 错误 1 - Altera_Forum
Honored Contributor
--- Quote Start --- originally posted by liuxiaoping@Apr 2 2007, 08:14 PM i follow the step in the new wiki,http://nioswiki.jot.com/wikihome/operating...nux/uclinuxdist (http://nioswiki.jot.com/wikihome/operating...nux/uclinuxdist)
where you guys getting this error:
i tried following the instructions from the wiki http://nioswiki.jot.com/wikihome/operating...ems/framebuffer (http://nioswiki.jot.com/wikihome/operating...ems/framebuffer)
but i ran into this error when trying to run make in the uclinux-dist/
fs/buffer.c: in function `__find_get_block_slow':
fs/buffer.c:292: warning: long unsigned int format, size_t arg (arg 3)
ld fs/built-in.o
cc drivers/char/tty_io.o
in file included from include/linux/selection.h:11,
from drivers/char/tty_io.c:103:
include/linux/vt_buffer.h:18:21: asm/vga.h: no such file or directory
make[3]: *** [drivers/char/tty_io.o] 错误 1
make[2]: *** [drivers/char] 错误 2
make[1]: *** [drivers] 错误 2
make[1]: leaving directory `/home/nios/download/uclinux-dist/linux-2.6.x'
make: *** [linux] 错误 1
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=22732)
--- quote end ---
--- Quote End --- You must disable these two console, Device Drivers --> Graphics support ---> Console display driver support ---> [ ] VGA text console < > Framebuffer Console support