[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [microblaze-uclinux] microwindows compile error (and also about loadable module support)



I'm new to embedded linux programming so I tried the
following trick to compile the microwindows. It may
not be a 'neat' way but it seems to be working (I
hope!)

* download the "microwindows-src-0.91.tar.gz" from the
official site

* I modified the configure file "config.fb" to use
"LINUX-POWERPC" as the target arch, BIGENDIAN=y,
"microblaze-ulinux-" prefix.

* I compiled the nano-X using "make". This produced
successfully the binaries and lib under ..../bin and
..../lib. The nano-X sever. the nano window manager,
and all the demos "except nscriblles" compiled
successfully. I attached the config file used.

I still can't test the binaries because of some
framebuffer problems.

I'm trying to enable a framebuffer on the
Spartan-3E1600 Rev A board. I modified the vfb.c
virtual framebuffer driver to allocate memory using
kmalloc() instead of vmalloc(). I hope kmalloc() will
allocate a contigous framebuffer in the on-board DDR
memory. Then, using DMA, I'll transfer the framebuffer
line by line to our custom IP core linebuffer dual
port memory. Then, the line should be displayed on the
screen using our custom IP core CRT controller. 

I had to do this because I don't have available a dual
port hardware memory. I've to make it a softcore on
the FPGA chip, the maximum size of memory cannot reach
1MB at all !
Any better ideas ??


--- John Williams <jwilliams@xxxxxxxxxxxxxx> wrote:

> Hi Aslam,
> 
> Islam Samir wrote:
> 
> > PetaLinux v. 0.2-rc3
> > I try to compile microwindows (Nano-X) . First I
> got an error:
> 
> We're in the process of cleaning up microwin so it
> will build.  It 
> sounds like you are making progress too.
> 
> 
> > Creating library 
> >
>
/home/ihhs/petalinux/petalinux-v0.20-rc3/software/petalinux-dist/user/microwin/src/lib/libnano-X.a
> 
> > ...
> > Linking 
> >
>
/home/ihhs/petalinux/petalinux-v0.20-rc3/software/petalinux-dist/user/microwin/src/bin/nano-X
> 
> > ...
> >
>
/home/ihhs/petalinux/petalinux-v0.20-rc3/software/petalinux-dist/user/microwin/src/bin/nano-X.elf2flt:
> 
> > In function `main':
> >
>
/home/ihhs/petalinux/petalinux-v0.20-rc3/software/petalinux-dist/user/microwin/src/nanox/srvmain.c:173:
> 
> > undefined reference to `GsSelect'
> >
>
/home/ihhs/petalinux/petalinux-v0.20-rc3/software/petalinux-dist/user/microwin/src/bin/nano-X.elf2flt:
> 
> > In function `GdCreateFont':
> >
>
/home/ihhs/petalinux/petalinux-v0.20-rc3/software/petalinux-dist/user/microwin/src/engine/devfont.c(.text+0x108d8):
> 
> > undefined reference to `strcmpi'
> 
> convert these obsolete strcmpi calls to strcasecmp
> and so on.
> 
> > Another thing, the hello world module attached
> here did not compile due 
> > to the following error:
> > 
> > make[1]: Entering directory 
> >
>
`/home/ihhs/petalinux/petalinux-v0.20-rc3/software/linux-2.6.x-petalogix'
> >   CC [M]  
> >
>
/home/ihhs/petalinux/2007.07.07_loadable_modules/hello_modules/hello.o
> > In file included from include/linux/wait.h:26,
> >                  from include/linux/kobject.h:28,
> >                  from include/linux/module.h:17,
> >                  from 
> >
>
/home/ihhs/petalinux/2007.07.07_loadable_modules/hello_modules/hello.c:2:
> > include/asm/current.h:19: error: invalid register
> name for ?current?
> > make[2]: *** 
> 
> This error is coming because you are trying to
> compile a microblaze 
> kernel module with the host (i386) toolchain.
> 
> Try something like
> 
> make ARCH=microblaze
> 
> It may not be all that is required, but will be a
> step in the righth 
> direction.
> 
> Regards,
> 
> John
> ___________________________
> microblaze-uclinux mailing list
> microblaze-uclinux@xxxxxxxxxxxxxx
> Project Home Page :
> http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
> Mailing List Archive :
>
http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/
> 
> 



       
____________________________________________________________________________________
Looking for a deal? Find great prices on flights and hotels with Yahoo! FareChase.
http://farechase.yahoo.com/

Attachment: config
Description: 3341867309-config