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++

frame buffer error part2

Altera_Forum
Honored Contributor II
2,386 Views

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:
0 Kudos
12 Replies
Altera_Forum
Honored Contributor II
1,078 Views

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.
0 Kudos
Altera_Forum
Honored Contributor II
1,078 Views

 

--- 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&#39; 

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&#39; 

make[3]: *** [all] Error 2 

make[3]: Leaving directory `/home/user4/spring07/jk2461/uClinux-dist/user/ntp&#39; 

make[2]: *** [ntp] Error 2 

make[2]: Leaving directory `/home/user4/spring07/jk2461/uClinux-dist/user&#39; 

make[1]: *** [all] Error 2 

make[1]: Leaving directory `/home/user4/spring07/jk2461/uClinux-dist/user&#39; 

make: *** [subdirs] Error 1
0 Kudos
Altera_Forum
Honored Contributor II
1,078 Views

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&#39; 

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&#39; 

make[3]: *** [all] Error 2 

make[3]: Leaving directory `/home/user4/spring07/jk2461/uClinux-dist/user/ntp&#39; 

make[2]: *** [ntp] Error 2 

make[2]: Leaving directory `/home/user4/spring07/jk2461/uClinux-dist/user&#39; 

make[1]: *** [all] Error 2 

make[1]: Leaving directory `/home/user4/spring07/jk2461/uClinux-dist/user&#39; 

make: *** [subdirs] Error 1 

<div align='right'><{post_snapback}> (index.php?act=findpost&pid=22786)</div> 

[/b] 

--- Quote End ---  

0 Kudos
Altera_Forum
Honored Contributor II
1,078 Views

 

--- 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?
0 Kudos
Altera_Forum
Honored Contributor II
1,078 Views

the &#39;X&#39; of nano-X is upper case.

0 Kudos
Altera_Forum
Honored Contributor II
1,078 Views

 

--- Quote Start ---  

originally posted by hippo@Apr 4 2007, 09:30 AM 

the &#39;x&#39; 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’&#22833;&#36133;: &#27809;&#26377;&#37027;&#20010;&#25991;&#20214;&#25110;&#30446;&#24405; 

make[3]: *** [real_romfs] &#38169;&#35823; 1 

make[3]: Leaving directory `/home/nios/download/uClinux-dist/user/microwin/src/bin&#39; 

make[2]: *** [romfs] &#38169;&#35823; 1 

make[2]: Leaving directory `/home/nios/download/uClinux-dist/user/microwin&#39; 

make[1]: *** [romfs] &#38169;&#35823; 2 

make[1]: Leaving directory `/home/nios/download/uClinux-dist/user&#39; 

make: *** [romfs.subdirs] &#38169;&#35823; 1 

Then i make: 

make[5]: Entering directory `/home/nios/download/uClinux-dist/user/microwin/src/nanox&#39; 

make[5]: *** &#27809;&#26377;&#35268;&#21017;&#21487;&#20197;&#21019;&#24314;“/home/nios/download/uClinux-dist/user/microwin/src/bin/nano-X”&#38656;&#35201;&#30340;&#30446;&#26631;“-ljpeg”&#12290; &#20572;&#27490;&#12290; 

make[5]: Leaving directory `/home/nios/download/uClinux-dist/user/microwin/src/nanox&#39; 

make[4]: *** [subdir-nanox] &#38169;&#35823; 2 

make[4]: Leaving directory `/home/nios/download/uClinux-dist/user/microwin/src&#39; 

make[3]: *** [all] &#38169;&#35823; 1 

make[3]: Leaving directory `/home/nios/download/uClinux-dist/user/microwin&#39; 

make[2]: *** [microwin] &#38169;&#35823; 2 

make[2]: Leaving directory `/home/nios/download/uClinux-dist/user&#39; 

make[1]: *** [all] &#38169;&#35823; 2 

make[1]: Leaving directory `/home/nios/download/uClinux-dist/user&#39; 

 

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.
0 Kudos
Altera_Forum
Honored Contributor II
1,078 Views

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
0 Kudos
Altera_Forum
Honored Contributor II
1,078 Views

 

--- 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?
0 Kudos
Altera_Forum
Honored Contributor II
1,078 Views

I didn&#39;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 ?
0 Kudos
Altera_Forum
Honored Contributor II
1,078 Views

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&#39;t select virtual terminal in my menucongif.
0 Kudos
Altera_Forum
Honored Contributor II
1,078 Views

 

--- Quote Start ---  

originally posted by hippo@Apr 6 2007, 12:08 AM 

i didn&#39;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 ? 

<div align='right'><{post_snapback}> (index.php?act=findpost&pid=22861) 

--- quote end ---  

 

--- Quote End ---  

 

I check that there is uClinux-dist/lib/libjpeg. 

nios2 patch once?you mean the uClinux-dist-20070130-nios2-02.diff.gz? I apply that once!
0 Kudos
Altera_Forum
Honored Contributor II
1,078 Views

 

--- Quote Start ---  

originally posted by nick@Apr 6 2007, 02:08 PM 

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? 

--- Quote End ---  

 

It is running as process number 20. It should be OK. You can check the VGA screen. 

There should be an arrow cursor on the screeen. 

If you have mouse, you should be able to move the cursor. 

 

 

<div class='quotetop'>QUOTE </div> 

--- Quote Start ---  

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&#39;t select virtual terminal in my menucongif. 

<div align='right'><{post_snapback}> (index.php?act=findpost&pid=22862) 

--- Quote End ---  

[/b] 

--- Quote End ---  

 

It is OK. It is already selected.
0 Kudos
Reply