Forum Discussion
Altera_Forum
Honored Contributor
19 years agoframe buffer error part2
After the zImage has been generated, I boot up uClinux but I am unable to run:
nano-X & nxterm & and the rest of them...the nio-terminal says bad command or filename I have followed the directions on your wiki step by step but I get this error: In file included from /home/user4/spring07/jk2461/uClinux-dist/user/microwin/src/include/device.h:11, from fblin8.c:19: /home/user4/spring07/jk2461/uClinux-dist/user/microwin/src/include/mwtypes.h:242:21: operator '==' has no left operand /home/user4/spring07/jk2461/uClinux-dist/user/microwin/src/include/mwtypes.h:245:22: operator '==' has no left operand /home/user4/spring07/jk2461/uClinux-dist/user/microwin/src/include/mwtypes.h:248:24: operator '==' has no left operand In file included from fblin8.c:19:12 Replies
- Altera_Forum
Honored Contributor
I ran through the build again. It works without problem.
I think your source may have problem in patch. Try remove all source and build again. I include a image of my test in the wiki, and you may try out with the sof in de2_vga.zip. http://nioswiki.jot.com/wikihome/operating.../zimage_de2_vga (http://nioswiki.jot.com/wikihome/operatingsystems/%c2%b5clinux/framebuffer/zimage_de2_vga) nano-X & nxview /home/ftp/rhino.jpg & The 8M memory on DE2 is very tight. So you should [NOT] add too many features/drivers in kernel , and user apps. - Altera_Forum
Honored Contributor
--- Quote Start --- originally posted by hippo@Apr 4 2007, 01:04 AM i ran through the build again. it works without problem.i think your source may have problem in patch.
try remove all source and build again.
i include a image of my test in the wiki, and you may try out with the sof in de2_vga.zip.
http://nioswiki.jot.com/wikihome/operating.../zimage_de2_vga (http://nioswiki.jot.com/wikihome/operatingsystems/%c2%b5clinux/framebuffer/zimage_de2_vga)
nano-x &
nxview /home/ftp/rhino.jpg &
the 8m memory on de2 is very tight. so you should add too many features/drivers in kernel , and user apps.
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=22785)
--- quote end ---
--- Quote End --- Thanks for your answer, I got rid off the error...but I am still getting this error: Any clues why this error? make[4]: Entering directory `/home/user4/spring07/jk2461/uClinux-dist/user/ntp/builddir' cd .. && true --run aclocal-1.7 cd .. && true --run automake-1.7 --foreign Makefile cd .. && true --run autoconf ( echo "This file is automatically generated from html/copyright.html" ; lynx -dump ../html/copyright.html ) > ../COPYRIGHT.new && mv ../COPYRIGHT.new ../COPYRIGHT /bin/sh: lynx: command not found make[4]: *** [../COPYRIGHT] Error 127 make[4]: Leaving directory `/home/user4/spring07/jk2461/uClinux-dist/user/ntp/builddir' make[3]: *** [all] Error 2 make[3]: Leaving directory `/home/user4/spring07/jk2461/uClinux-dist/user/ntp' make[2]: *** [ntp] Error 2 make[2]: Leaving directory `/home/user4/spring07/jk2461/uClinux-dist/user' make[1]: *** [all] Error 2 make[1]: Leaving directory `/home/user4/spring07/jk2461/uClinux-dist/user' make: *** [subdirs] Error 1
- Altera_Forum
Honored Contributor
I will try out your image...thanks.
--- Quote Start --- originally posted by bouyaka+apr 4 2007, 01:22 am--><div class='quotetop'>quote (bouyaka @ apr 4 2007, 01:22 am)</div>--- quote start ---
<!--quotebegin-hippo@Apr 4 2007, 01:04 AM i ran through the build again. it works without problem.
i think your source may have problem in patch.
try remove all source and build again.
i include a image of my test in the wiki, and you may try out with the sof in de2_vga.zip.
http://nioswiki.jot.com/wikihome/operating.../zimage_de2_vga (http://nioswiki.jot.com/wikihome/operatingsystems/%c2%b5clinux/framebuffer/zimage_de2_vga)
nano-x &
nxview /home/ftp/rhino.jpg &
the 8m memory on de2 is very tight. so you should add too many features/drivers in kernel , and user apps.
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=22785)
--- quote end ---
--- Quote End --- Thanks for your answer, I got rid off the error...but I am still getting this error: Any clues why this error? make[4]: Entering directory `/home/user4/spring07/jk2461/uClinux-dist/user/ntp/builddir' cd .. && true --run aclocal-1.7 cd .. && true --run automake-1.7 --foreign Makefile cd .. && true --run autoconf ( echo "This file is automatically generated from html/copyright.html" ; lynx -dump ../html/copyright.html ) > ../COPYRIGHT.new && mv ../COPYRIGHT.new ../COPYRIGHT /bin/sh: lynx: command not found make[4]: *** [../COPYRIGHT] Error 127 make[4]: Leaving directory `/home/user4/spring07/jk2461/uClinux-dist/user/ntp/builddir' make[3]: *** [all] Error 2 make[3]: Leaving directory `/home/user4/spring07/jk2461/uClinux-dist/user/ntp' make[2]: *** [ntp] Error 2 make[2]: Leaving directory `/home/user4/spring07/jk2461/uClinux-dist/user' make[1]: *** [all] Error 2 make[1]: Leaving directory `/home/user4/spring07/jk2461/uClinux-dist/user' make: *** [subdirs] Error 1 <div align='right'><{post_snapback}> (index.php?act=findpost&pid=22786)</div> [/b] --- Quote End ---
- Altera_Forum
Honored Contributor
--- Quote Start --- originally posted by hippo@Apr 4 2007, 02:04 AM i ran through the build again. it works without problem.i think your source may have problem in patch.
try remove all source and build again.
i include a image of my test in the wiki, and you may try out with the sof in de2_vga.zip.
http://nioswiki.jot.com/wikihome/operating.../zimage_de2_vga (http://nioswiki.jot.com/wikihome/operatingsystems/%c2%b5clinux/framebuffer/zimage_de2_vga)
nano-x &
nxview /home/ftp/rhino.jpg &
the 8m memory on de2 is very tight. so you should [not] add too many features/drivers in kernel , and user apps.
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=22785)
--- quote end ---
--- Quote End --- I try out with the sof in de2_vga.zip and the zImage_de2_vga in your test,but these happen: I run this command: />nano-x & then,this occur: nano-x:Bad command or filename [25] /> sh 19:child 25 died Could you list the whole information after you run this command?
- Altera_Forum
Honored Contributor
the 'X' of nano-X is upper case.
- Altera_Forum
Honored Contributor
--- Quote Start --- originally posted by hippo@Apr 4 2007, 09:30 AM the 'x' of nano-x is upper case.<div align='right'><{post_snapback}> (index.php?act=findpost&pid=22800)
--- quote end ---
--- Quote End --- When i make romfs: romfs-inst.sh -e CONFIG_USER_MICROWIN_BIN_LANDMINE /bin/landmine romfs-inst.sh -e CONFIG_USER_MICROWIN_BIN_LAUNCHER /bin/launcher romfs-inst.sh -e CONFIG_USER_MICROWIN_BIN_MOVE /bin/move romfs-inst.sh -e CONFIG_USER_MICROWIN_BIN_MTERM /bin/mterm romfs-inst.sh -e CONFIG_USER_MICROWIN_BIN_MTEST /bin/mtest romfs-inst.sh -e CONFIG_USER_MICROWIN_BIN_MTEST2 /bin/mtest2 romfs-inst.sh -e CONFIG_USER_MICROWIN_BIN_MUSERFD /bin/muserfd romfs-inst.sh -e CONFIG_USER_MICROWIN_BIN_NANO_X /bin/nano-X cp: stat‘nano-X’失败: 没有那个文件或目录 make[3]: *** [real_romfs] 错误 1 make[3]: Leaving directory `/home/nios/download/uClinux-dist/user/microwin/src/bin' make[2]: *** [romfs] 错误 1 make[2]: Leaving directory `/home/nios/download/uClinux-dist/user/microwin' make[1]: *** [romfs] 错误 2 make[1]: Leaving directory `/home/nios/download/uClinux-dist/user' make: *** [romfs.subdirs] 错误 1 Then i make: make[5]: Entering directory `/home/nios/download/uClinux-dist/user/microwin/src/nanox' make[5]: *** 没有规则可以创建“/home/nios/download/uClinux-dist/user/microwin/src/bin/nano-X”需要的目标“-ljpeg”。 停止。 make[5]: Leaving directory `/home/nios/download/uClinux-dist/user/microwin/src/nanox' make[4]: *** [subdir-nanox] 错误 2 make[4]: Leaving directory `/home/nios/download/uClinux-dist/user/microwin/src' make[3]: *** [all] 错误 1 make[3]: Leaving directory `/home/nios/download/uClinux-dist/user/microwin' make[2]: *** [microwin] 错误 2 make[2]: Leaving directory `/home/nios/download/uClinux-dist/user' make[1]: *** [all] 错误 2 make[1]: Leaving directory `/home/nios/download/uClinux-dist/user' I use the source uClinux-dist-20070130.tar.gz instead of uClinux-dist-20070130.tar.bz2 from http://www.uclinux.org/ports/coldfire/source.html. (http://www.uclinux.org/ports/coldfire/source.html.can) Can i do that.
- Altera_Forum
Honored Contributor
You need to select libjpeg,
6. in uClinux-dist user config, Library Configuration--> [*] Build libZ [*] Build libjpeg the content of .tar.gz is the same as .tar.bz2 . Just use, tar zxf xxxx.tar.gz - Altera_Forum
Honored Contributor
--- Quote Start --- originally posted by hippo@Apr 5 2007, 04:47 AM you need to select libjpeg,6. in uclinux-dist user config,
library configuration-->
[*] build libz
[*] build libjpeg
the content of .tar.gz is the same as .tar.bz2 .
just use, tar zxf xxxx.tar.gz
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=22836)
--- quote end ---
--- Quote End --- I belive i choose these: Library Configuration--> [*] Build libZ [*] Build libjpeg But the error is also the same! I use tar xvzf xxxx.tar.gz,is it OK?
- Altera_Forum
Honored Contributor
I didn't check the .tar.gz, but it should be the same.
Did you apply the nios2 patch once? Can you find uClinux-dist/lib/libjpeg ? - Altera_Forum
Honored Contributor
Hello!
I compiled TAR.GZ (from uClinux.org) with frame buffer and nano-X with no error. I see message fb0: Altera frame buffer device, using 600K of video memory. But when I wrote nano-X & in sdk shell it return [20]. What it means? Also I found some distinction in menuconfig. on my PC: Device Drivers --> Character devices ---> --- Virtual terminal [ ] Support for console on virtual terminal ... But on nioswiki Device Drivers --> Character devices ---> [*] Virtual terminal [ ] Support for console on virtual terminal so I can't select virtual terminal in my menucongif.