Re: [ptxdist] custom FIT image

2020-10-09 Thread Alejandro Vázquez
Thanks!
That was just what I needed.


El mié., 7 oct. 2020 a las 9:18, Michael Olbrich ()
escribió:

> On Wed, Sep 30, 2020 at 12:41:13PM +0200, Alejandro Vázquez wrote:
> > El mar., 29 sept. 2020 a las 15:13, Roland Hieber ()
> > escribió:
> >
> > > On Tue, Sep 29, 2020 at 01:28:34PM +0200, Alejandro Vázquez wrote:
> > > > Hi all!
> > > > I need to create a FIT image kernel and I need to add the arguments:
> > > load
> > > > and entry.
> > > > These arguments are not defined in the script ptxd_make_fit_image.sh
> > > >
> > > > Is there a way to indicate these arguments?
> > > > Can I use a custom "its" file?
> > > > Can I modify the script locally in my BSP?
> > >
> > > You can overwrite the functions by placing their new definition in a
> > > script (name doesn't matter) in scripts/lib/ in your BSP. PTXdist
> > > sources all files in there automatically after the scripts in PTXdist
> > > itself.
> > >
> > >
> > Thanks! work!
> >
> > Now, I would like to put the arguments load and entry as customizable
> > parameters in kernel-fit.in
> > Ex:
> > config KERNEL_FIT_LOAD
> > string
> > default "0xABC12340"
> > prompt "Load address"
> >
> > I tried to get the value in the script (ptxd_make_fit_image.sh) but it
> > doesn't work.
> > Ex:
> > load = "${PTXCONF_KERNEL_FIT_LOAD}";
> >
> > Would it be possible to access these variables from the script?
>
> load="$(ptxd_get_ptxconf PTXCONF_KERNEL_FIT_LOAD)"
>
> Michael
>
>
> --
> Pengutronix e.K.   | |
> Steuerwalder Str. 21   | http://www.pengutronix.de/  |
> 31137 Hildesheim, Germany  | Phone: +49-5121-206917-0|
> Amtsgericht Hildesheim, HRA 2686   | Fax:   +49-5121-206917- |
>
> ___
> ptxdist mailing list
> ptxdist@pengutronix.de
> To unsubscribe, send a mail with subject "unsubscribe" to
> ptxdist-requ...@pengutronix.de
>
___
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to 
ptxdist-requ...@pengutronix.de


Re: [ptxdist] custom FIT image

2020-09-30 Thread Alejandro Vázquez
El mar., 29 sept. 2020 a las 15:13, Roland Hieber ()
escribió:

> On Tue, Sep 29, 2020 at 01:28:34PM +0200, Alejandro Vázquez wrote:
> > Hi all!
> > I need to create a FIT image kernel and I need to add the arguments:
> load
> > and entry.
> > These arguments are not defined in the script ptxd_make_fit_image.sh
> >
> > Is there a way to indicate these arguments?
> > Can I use a custom "its" file?
> > Can I modify the script locally in my BSP?
>
> You can overwrite the functions by placing their new definition in a
> script (name doesn't matter) in scripts/lib/ in your BSP. PTXdist
> sources all files in there automatically after the scripts in PTXdist
> itself.
>
>
Thanks! work!

Now, I would like to put the arguments load and entry as customizable
parameters in kernel-fit.in
Ex:
config KERNEL_FIT_LOAD
string
default "0xABC12340"
prompt "Load address"

I tried to get the value in the script (ptxd_make_fit_image.sh) but it
doesn't work.
Ex:
load = "${PTXCONF_KERNEL_FIT_LOAD}";

Would it be possible to access these variables from the script?

 - Roland
>
> --
> Roland Hieber, Pengutronix e.K.  | r.hie...@pengutronix.de |
> Steuerwalder Str. 21 | https://www.pengutronix.de/ |
> 31137 Hildesheim, Germany| Phone: +49-5121-206917-0|
> Amtsgericht Hildesheim, HRA 2686 | Fax:   +49-5121-206917- |
>
___
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to 
ptxdist-requ...@pengutronix.de


[ptxdist] custom FIT image

2020-09-29 Thread Alejandro Vázquez
Hi all!
I need to create a FIT image kernel and I need to add the arguments:  load
and entry.
These arguments are not defined in the script ptxd_make_fit_image.sh

Is there a way to indicate these arguments?
Can I use a custom "its" file?
Can I modify the script locally in my BSP?

Thanks!
Alex
___
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to 
ptxdist-requ...@pengutronix.de


Re: [ptxdist] The second symbolic links are not copied to the target

2018-07-05 Thread Alejandro Vázquez
Thanks, Guillermo!

None of the two I think. This was changed in commit
> f13787aca6bc51976cbc34be7262683ccd134474, log message was:
> ptxd_install_shared: don't install last link
> It's only needed at build time.


Fine but in the ptxdist documentation
<https://www.ptxdist.org/doc/ref_manual.html#install-lib> it indicates that
the file *.so is copied.

Is this causing any actual problems?


Yes. At least it gives problems with Java applications.
...
 [Failed to open library /usr/lib/classpath/libjavanio.so:
/usr/lib/classpath/libjavanio.so: cannot open shared object file: No such
file or directory]
 [Failed to open library ./libjavanio.so: ./libjavanio.so: cannot open
shared object file: No such file or directory]
 [Failed to open library /usr/lib/jni/libjavanio.so:
/usr/lib/jni/libjavanio.so: cannot open shared object file: No such file or
directory]
..

It also happens with some Gstreamer plugins.

(gst-plugin-scanner:252): GStreamer-WARNING **: Failed to load plugin
'/usr/lib/gstreamer-1.0/libgstimxg2d.so': libGAL.so: cannot open shared
object file: No such file or directory


2018-07-05 10:25 GMT+02:00 Guillermo Rodriguez Garcia <
guille.rodrig...@gmail.com>:

> Hi there,
>
> 2018-07-01 6:28 GMT+02:00 Alejandro Vázquez :
> > Hi!
> > I've come across the following problem:
> > When installing classpath, the second symbolic links are not copied to
> the
> > target.
> > This should not happen as the library is installed as install_lib and you
> > should install the second symbol links.
> > I came from an older version of ptxdist and this didn't happen.
> > ptxdist --version: 2018.06.0
> >
> > I'm not sure if it's a bug or a problem of mine.
>
> None of the two I think. This was changed in commit
> f13787aca6bc51976cbc34be7262683ccd134474, log message was:
>
> ptxd_install_shared: don't install last link
> It's only needed at build time.
>
> Is this causing any actual problems?
>
> BR,
>
> Guillermo Rodriguez Garcia
> guille.rodrig...@gmail.com
>
> ___
> ptxdist mailing list
> ptxdist@pengutronix.de
___
ptxdist mailing list
ptxdist@pengutronix.de

[ptxdist] The second symbolic links are not copied to the target

2018-06-30 Thread Alejandro Vázquez
Hi!
I've come across the following problem:
When installing classpath, the second symbolic links are not copied to the
target.
This should not happen as the library is installed as install_lib and you
should install the second symbol links.
I came from an older version of ptxdist and this didn't happen.
ptxdist --version: 2018.06.0

I'm not sure if it's a bug or a problem of mine.

Paste Log:

install link:
  src=libjavalangreflect.so.0.0.0
  dst=/usr/lib/classpath/libjavalangreflect.so.0

install file:

src=DistroKit/platform-rpi/packages/classpath-0.99/usr/lib/classpath/libjavanio.so.0.0.0
  dst=/usr/lib/classpath/libjavanio.so.0.0.0
  owner=0
  group=0
  permissions=0644

install link:
  src=libjavanio.so.0.0.0
  dst=/usr/lib/classpath/libjavanio.so.0
-> MISSING COPY libjavaio.so
install file:

src=DistroKit/platform-rpi/packages/classpath-0.99/usr/lib/security/classpath.security
  dst=/usr/lib/security/classpath.security
  owner=0
  group=0
  permissions=0644


Regards!
___
ptxdist mailing list
ptxdist@pengutronix.de

[ptxdist] antlr3 in ptxdist

2018-02-19 Thread Alejandro Vázquez
Hi,All.
I'm trying to compile a library that uses antlr3.
Previously I had already been able to compile this library but in the last
updates have changed from autotools to CMake and  it doesn't compile me
because It can't find the command.

Could NOT find Antlr3 (missing: ANTLR3_COMMAND)

Antlr is a java file and I'm not sure how I can integrate this tool in
ptxdist.

Thank you!
Greetings!
___
ptxdist mailing list
ptxdist@pengutronix.de

Re: [ptxdist] use waf in ptxdist

2017-01-31 Thread Alejandro Vázquez
Hi Markus!!
I have other question.
When I try configure this lib, I need imx-vpu 3.10.17 or newer.
How do I install it through ptxdist so that it detects it and does not give
me error?

Thanks!



2017-01-30 16:05 GMT+01:00 Markus Niebel <nieb...@tqsc.de>:

> Hello,
>
> should be working this way (just copied from an older project):
>
> 8<---
>
> LIBIMXVPUAPI_CONF_TOOL  := NO
>
> LIBIMXVPUAPI_CONF_OPT   := \
> --prefix="/usr"
> --kernel-headers="$(KERNEL_HEADERS_INCLUDE_DIR)"
>
> LIBIMXVPUAPI_CONF_OPT += \
>
> LIBIMXVPUAPI_ENV:= \
> $(CROSS_ENV)
>
> #
> 
> 
> # prepare
> #
> 
> 
> $(STATEDIR)/libimxvpuapi.prepare:
> @$(call targetinfo)
> cd $(LIBIMXVPUAPI_DIR) && \
> $(LIBIMXVPUAPI_PATH) $(LIBIMXVPUAPI_ENV) \
> python2 ./waf configure $(LIBIMXVPUAPI_CONF_OPT)
> @$(call touch)
>
> #
> 
> 
> # Compile
> #
> 
> 
> $(STATEDIR)/libimxvpuapi.compile:
> @$(call targetinfo)
> cd $(LIBIMXVPUAPI_DIR) && \
> $(LIBIMXVPUAPI_PATH) $(LIBIMXVPUAPI_ENV) \
> python2 ./waf build -j 1
> @$(call touch)
>
> #
> 
> 
> # Install
> #
> 
> 
> $(STATEDIR)/libimxvpuapi.install:
> @$(call targetinfo)
> rm -rf "$(LIBIMXVPUAPI_PKGDIR)"
> mkdir -p "$(LIBIMXVPUAPI_PKGDIR)"
> cd "$(LIBIMXVPUAPI_DIR)" && \
> $(LIBIMXVPUAPI_PATH) $(LIBIMXVPUAPI_ENV) \
> python2 ./waf --destdir=$(LIBIMXVPUAPI_PKGDIR) install
> @$(call touch)
>
> 8<---
>
>
> Am Montag, den 30.01.2017, 13:13 +0100 schrieb Alejandro Vázquez:
> > Hi all.
> > I have found a project (libimxvpuapi) that is configured and built
> > using waf.
> > Is there any way I can build this project with ptxdist?
> >
> >
> >
> > Thanks!
> >
> >
> > ___
> > ptxdist mailing list
> > ptxdist@pengutronix.de
>
>
>
> ___
> ptxdist mailing list
> ptxdist@pengutronix.de
___
ptxdist mailing list
ptxdist@pengutronix.de

Re: [ptxdist] kernel headers in ptxdist

2017-01-31 Thread Alejandro Vázquez
Perfect. This way work fine.

Thanks!


2017-01-31 10:49 GMT+01:00 Juergen Borleis <j...@pengutronix.de>:

> Hi Alejandro,
>
> On Tuesday 31 January 2017 10:27:04 Alejandro Vázquez wrote:
> > I need use kernel headers to build a IPU app.
> > I select KERNEL_HEADERS in ptxdist and I add
> > CFLAGS="-I$(KERNEL_HEADERS_INCLUDE_DIR)" in *.make.
> > Also I have added in the makefile -I$(KERNEL_HEADERS_INCLUDE_DIR)
> >
> > But it still does not compile because it does not find the headers.
> > It looks like the variable KERNEL_HEADERS_INCLUDE_DIR is empty, this can
> > be seen in the output of the compilation.
> >
> > -
> > > target: alpha_ex1.compile
> > > -
> > > make[1]: Entering directory `/ptxdist/BSP/local_src/alpha_ex1'
> > > arm-v7a-linux-gnueabihf-gcc -g -O0 -o alpha_ex1 alpha_ex1.c -I \
> > > -I/uapi
> > > alpha_ex1.c:26:25: fatal error: linux/mxcfb.h: No such file or
> > > directory #include 
> >
> > Is there something wrong?
>
> Yes. You modify CFLAGS but you do not use it in your local Makefile.
>
> Try this instead:
>
> [...]
> ALPHA_EX1_MAKE_ENV  := $(CROSS_ENV) \
> "KERNEL_HEADERS_INCLUDE_DIR=$(KERNEL_HEADERS_INCLUDE_DIR)"
> [...]
>
> This should set and forward the variable to 'make' when it works through
> your local Makefile.
>
> Happy hacking
> Juergen
>
> --
> Pengutronix e.K.  | Juergen Borleis
>   |
> Industrial Linux Solutions| http://www.pengutronix.de/
>  |
>
___
ptxdist mailing list
ptxdist@pengutronix.de

[ptxdist] kernel headers in ptxdist

2017-01-31 Thread Alejandro Vázquez
Hi, All.

I need use kernel headers to build a IPU app.
I select KERNEL_HEADERS in ptxdist and I add
CFLAGS="-I$(KERNEL_HEADERS_INCLUDE_DIR)" in *.make.
Also I have added in the makefile -I$(KERNEL_HEADERS_INCLUDE_DIR)

But it still does not compile because it does not find the headers.
It looks like the variable KERNEL_HEADERS_INCLUDE_DIR is empty, this can be
seen in the output of the compilation.

-
> target: alpha_ex1.compile
> -
> make[1]: Entering directory `/ptxdist/BSP/local_src/alpha_ex1'
> arm-v7a-linux-gnueabihf-gcc -g -O0 -o alpha_ex1 alpha_ex1.c -I \
> -I/uapi
> alpha_ex1.c:26:25: fatal error: linux/mxcfb.h: No such file or directory
>  #include 


Is there something wrong?

Thanks!
/*
* Copyright 2013 Freescale Semiconductor, Inc. All Rights Reserved.
*/

/*
* The code contained herein is licensed under the GNU Lesser General
* Public License. You may obtain a copy of the GNU Lesser General
* Public License Version 2.1 or later at the following locations:
*
* http://www.opensource.org/licenses/lgpl-license.html
* http://www.gnu.org/copyleft/lgpl.html
*/

#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 

static unsigned int fmt_to_bpp(unsigned int pixelformat)
{
	unsigned int bpp;
 
switch (pixelformat)
{
case IPU_PIX_FMT_RGB565:
   /*interleaved 422*/
case IPU_PIX_FMT_YUYV:
case IPU_PIX_FMT_UYVY:
/*non-interleaved 422*/
case IPU_PIX_FMT_YUV422P:
case IPU_PIX_FMT_YVU422P:
bpp = 16;
break;
case IPU_PIX_FMT_BGR24:
case IPU_PIX_FMT_RGB24:
case IPU_PIX_FMT_YUV444:
case IPU_PIX_FMT_YUV444P:
bpp = 24;
break;
case IPU_PIX_FMT_BGR32:
case IPU_PIX_FMT_BGRA32:
case IPU_PIX_FMT_RGB32:
case IPU_PIX_FMT_RGBA32:
case IPU_PIX_FMT_ABGR32:
bpp = 32;
break;
/*non-interleaved 420*/
case IPU_PIX_FMT_YUV420P:
case IPU_PIX_FMT_YVU420P:
case IPU_PIX_FMT_YUV420P2:
case IPU_PIX_FMT_NV12:
case IPU_PIX_FMT_TILED_NV12:
bpp = 12;
break;
default:
bpp = 8;
break;
}
return bpp;
}

int main (int argc, char *argv[])
{
	struct ipu_task task;
	struct timeval begin, end;
	struct fb_var_screeninfo fb_var;
	struct fb_fix_screeninfo fb_fix;
	dma_addr_t outpaddr;

	int sec, usec, run_time;
	int fd_ipu, fd_fb, isize, ovsize, osize;
	int ret, i;
 
	void *inbuf = NULL;
	void *ovbuf = NULL;
	void *outbuf = NULL;

	// Clear 	
	memset(, 0, sizeof(task));
 
	// Input image size and format
	task.input.width= 1024;
	task.input.height   = 768;
	task.input.format   = v4l2_fourcc('R', 'G', 'B', 'P');
 
	// Overlay image size and format
	task.overlay.width= 1024;
	task.overlay.height   = 768;
	task.overlay.format   = v4l2_fourcc('R', 'G', 'B', 'P');
	task.overlay_en = 1;
	task.overlay.alpha.mode = 0; //0 - Global alpha blending
	task.overlay.alpha.gvalue = 0;

	// Output image size and format
	task.output.width   = 1024;
	task.output.height  = 768;
	task.output.format  = v4l2_fourcc('R', 'G', 'B', 'P');
 
	// Open IPU device
	fd_ipu = open("/dev/mxc_ipu", O_RDWR, 0);
	if (fd_ipu < 0) {
		printf("open ipu dev fail\n");
		ret = -1;
		goto done;
	}

	// Calculate input size from image dimensions and bits-per-pixel
	// according to format
	isize = task.input.paddr =
		task.input.width * task.input.height
		* fmt_to_bpp(task.input.format)/8;

	// Allocate contingous physical memory for input image
	// input.paddr contains the amount needed
	// this value will be replaced with physical address on success
	ret = ioctl(fd_ipu, IPU_ALLOC, );
	if (ret < 0) {
		printf("ioctl IPU_ALLOC fail: (errno = %d)\n", errno);
		goto done;
	}

	// Create memory map and obtain the allocated memory virtual address
	inbuf = mmap(0, isize, PROT_READ | PROT_WRITE,
		MAP_SHARED, fd_ipu, task.input.paddr);
	if (!inbuf) {
		printf("mmap fail\n");
		ret = -1;
		goto done;
	}

	// Fill input buffer with white color
	memset(inbuf, 0xff, isize);

	// Calculate the overlay size 
	ovsize = task.overlay.paddr =
		task.overlay.width * task.overlay.height
		* fmt_to_bpp(task.overlay.format)/8;

	// Allocate contiguous  physical memory for overlay buffer
	ret = ioctl(fd_ipu, IPU_ALLOC, );
	if (ret < 0) {
		printf("ioctl IPU_ALLOC fail\n");
		goto done;
	}

	// Map the overlay buffer
	ovbuf = mmap(0, ovsize, PROT_READ | PROT_WRITE,
			MAP_SHARED, fd_ipu, task.overlay.paddr);
	if (!ovbuf) {
		printf("mmap fail\n");
		ret = -1;
		

[ptxdist] use waf in ptxdist

2017-01-30 Thread Alejandro Vázquez
Hi all.
I have found a project (libimxvpuapi) that is configured and built using
waf.
Is there any way I can build this project with ptxdist?

Thanks!
___
ptxdist mailing list
ptxdist@pengutronix.de

[ptxdist] create an minimal kernel

2016-10-28 Thread Alejandro Vázquez
Hi !!
I would like to create an image of a minimal kernel that integrates all.
Kernel + device tree + initramfs. My idea is to have the device tree
and initramfs image into the kernel.
In initramfs image I want to integrate the minimum (busybox and some own
application).

I'm stuck with this problem. Is it possible to generate this kernel using
ptxdist?
What would be the next steps?

Thanks!
Regards!
___
ptxdist mailing list
ptxdist@pengutronix.de

[ptxdist] Create alias for device event

2016-02-25 Thread Alejandro Vázquez
Hi.
In my /dev/input I have some device (touchscreen, gpios, etc) and I want to
know if it's posible create a alias for a device event automatically with
ptxdist to identify devices faster. Also I have the problem that if I add a
new device, it  change the order of device event.
This has taken up an issue with tslib for the order change.

Regards!
___
ptxdist mailing list
ptxdist@pengutronix.de

[ptxdist] Gstreamer in mini2440

2015-08-01 Thread Alejandro Vázquez
Hi All.
I want to use gstreamer in mini2440 to show a video on the screen. My
problem is that i don't know which is the best video sink to use with
mini2440.
someone already has a ptxdistconfig configured with gstreamer to mini2440?
Thanks.
Regards!
-- 
ptxdist mailing list
ptxdist@pengutronix.de


[ptxdist] change orientation landscape portrait

2015-07-11 Thread Alejandro Vázquez
Hi all!
By default the orientation  is landscape but i want to change it
to portrait.
Where can I do this change?
Thanks!
Regards!
-- 
ptxdist mailing list
ptxdist@pengutronix.de


Re: [ptxdist] u-boot link down

2015-07-06 Thread Alejandro Vázquez
Hello Marc!
I try download but is down too.

Error 404:

Not Found

The requested URL /pub/u-boot/u-boot-2011.12.tar.bz2 was not found on this
server.

Thanks!

2015-07-06 14:45 GMT+02:00 Marc Kleine-Budde m...@pengutronix.de:

 On 07/06/2015 02:32 PM, Alejandro Vázquez wrote:
  Hi All.
  I am trying create a image to mini2440 but the package u-boot is down.
  Is there any way to fix this or I have to wait becomes available ?
  The error is:

 Just downlaod http://ftp.denx.de/pub/u-boot/u-boot-2011.12.tar.bz2 by in
 hand in your browser, ignore the warning message and place the file into
 your source folder.

 Marc

 --
 Pengutronix e.K.  | Marc Kleine-Budde   |
 Industrial Linux Solutions| Phone: +49-231-2826-924 |
 Vertretung West/Dortmund  | Fax:   +49-5121-206917- |
 Amtsgericht Hildesheim, HRA 2686  | http://www.pengutronix.de   |


 --
 ptxdist mailing list
 ptxdist@pengutronix.de


-- 
ptxdist mailing list
ptxdist@pengutronix.de


Re: [ptxdist] makefile to directFB and cairo

2015-05-05 Thread Alejandro Vázquez
Hi!
I can solve the problem. i add in the makefile the next code:
examplecairo:examplecairo.c
$(CC) $^ -Wall `pkg-config --cflags --libs cairo directfb` -o $@

this way compile correctly


2015-04-23 11:18 GMT+02:00 Alejandro Vázquez vaz...@gmail.com:

 Hi!,
 i am trying the compile of a example for the library directFB and other
 for library cairo. I have isntall the libraries directFB and Cairo.
 The first step: i create a new package type src-make-prog.
 2: copy the example hello world in the new file helloworld*.c
 3: I modify the Makefile file  and i  add:
 CFLAGS   = -g -Wall -O2 -MD `pkg-config --cflags directfb`
 LDFLAGS  = -g -Wall -O2 `pkg-config --libs directfb`

 for cairo is the same but the flags are:
 CFLAGS   = -g -Wall -O2 -MD `pkg-config --cflags cairo`
 LDFLAGS  = -g -Wall -O2 `pkg-config --libs cairo`

 In both cases, the compiler say me:
 undefined reference to `DirectFBInit', etc...
 undefined reference to `cairo_image_surface_create',etc...

 Am I doing it the right way or I need something more to add?


-- 
ptxdist mailing list
ptxdist@pengutronix.de


Re: [ptxdist] board tq2440

2015-05-05 Thread Alejandro Vázquez
I can solve this problem.
finally it is a problem of the board. The touchscreen works with the
settings mini2440
-- 
ptxdist mailing list
ptxdist@pengutronix.de


[ptxdist] mini2440 cairo example black screen

2015-04-27 Thread Alejandro Vázquez
Hi, I'm trying to run an example program with cairo.
The program compile and run but don't display nothing on the screen.

Someone has run some example cairo to know if I need more than enabled in
ptxdist.
-
OSELAS.BSP-Pengutronix-Mini2440-2013.10.0
cairo settings is directfb backend and Freetype font backend.
-
Thanks!
Regards!
-- 
ptxdist mailing list
ptxdist@pengutronix.de


[ptxdist] makefile to directFB and cairo

2015-04-23 Thread Alejandro Vázquez
Hi!,
i am trying the compile of a example for the library directFB and other for
library cairo. I have isntall the libraries directFB and Cairo.
The first step: i create a new package type src-make-prog.
2: copy the example hello world in the new file helloworld*.c
3: I modify the Makefile file  and i  add:
CFLAGS   = -g -Wall -O2 -MD `pkg-config --cflags directfb`
LDFLAGS  = -g -Wall -O2 `pkg-config --libs directfb`

for cairo is the same but the flags are:
CFLAGS   = -g -Wall -O2 -MD `pkg-config --cflags cairo`
LDFLAGS  = -g -Wall -O2 `pkg-config --libs cairo`

In both cases, the compiler say me:
undefined reference to `DirectFBInit', etc...
undefined reference to `cairo_image_surface_create',etc...

Am I doing it the right way or I need something more to add?
#include stdio.h
#include unistd.h
#include directfb.h

static IDirectFB *dfb = NULL;
static IDirectFBSurface *primary = NULL;
static int screen_width  = 0;
static int screen_height = 0;

#define DFBCHECK(x...) \
  {\
DFBResult err = x; \
   \
if (err != DFB_OK) \
  {\
fprintf( stderr, %s %d:\n\t, __FILE__, __LINE__ ); \
DirectFBErrorFatal( #x, err ); \
  }\
  }

int main (int argc, char **argv)
{
  DFBSurfaceDescription dsc;

  DFBCHECK (DirectFBInit (argc, argv));
  DFBCHECK (DirectFBCreate (dfb));
  DFBCHECK (dfb-SetCooperativeLevel (dfb, DFSCL_FULLSCREEN));  

  dsc.flags = DSDESC_CAPS;
  dsc.caps  = DSCAPS_PRIMARY | DSCAPS_FLIPPING;

  DFBCHECK (dfb-CreateSurface( dfb, dsc, primary ));
  DFBCHECK (primary-GetSize (primary, screen_width, screen_height));
  DFBCHECK (primary-FillRectangle (primary, 0, 0, screen_width, screen_height));

  DFBCHECK (primary-SetColor (primary, 0x80, 0x80, 0xff, 0xff));
  DFBCHECK (primary-DrawLine (primary,
			  0, screen_height / 2,
			   screen_width - 1, screen_height / 2));
  DFBCHECK (primary-Flip (primary, NULL, 0));

  sleep (5);

  primary-Release( primary );
  dfb-Release( dfb );

  return 23;
}


Makefile
Description: Binary data
-- 
ptxdist mailing list
ptxdist@pengutronix.de


Re: [ptxdist] directFB mini2440

2015-04-17 Thread Alejandro Vázquez
Hi!
Thanks you.
Now work almost every examples, but some fails e.g. df_palette
   ~~| DirectFB 1.4.3 |~~
(c) 2001-2009  The world wide DirectFB Open Source Community
(c) 2000-2004  Convergence (integrated media) GmbH
  

(*) DirectFB/Core: Single Application Core. (2015-04-17 07:43) [ DEBUG ][
TRACE ]
(*) Direct/Memcpy: Using armasm_memcpy()
(*) Direct/Thread: Started 'VT Switcher' (-1) [CRITICAL OTHER/OTHER 0/0]
8388608...
(*) Direct/Thread: Started 'VT Flusher' (-1) [DEFAULT OTHER/OTHER 0/0]
8388608...
(*) DirectFB/FBDev: Found 's3c2410fb' (ID 0) with frame buffer at
0x3398, 150k (MMIO 0x, 0k)
(*) Direct/Thread: Started 'Linux Input' (-1) [INPUT OTHER/OTHER 0/0]
8388608...
(*) DirectFB/Input: S3C24XX TouchScreen (1) 0.1 (directfb.org)
(*) Direct/Thread: Started 'Linux Input' (-1) [INPUT OTHER/OTHER 0/0]
8388608...
(*) DirectFB/Input: pwm-beeper (2) 0.1 (directfb.org)
(*) Direct/Thread: Started 'Linux Input' (-1) [INPUT OTHER/OTHER 0/0]
8388608...
(*) DirectFB/Input: gpio-keys (3) 0.1 (directfb.org)
(*) Direct/Thread: Started 'Linux Input' (-1) [INPUT OTHER/OTHER 0/0]
8388608...
(*) DirectFB/Input: Dell Dell USB Mouse (4) 0.1 (directfb.org)
(*) Direct/Thread: Started 'tslib Input' (-1) [INPUT OTHER/OTHER 0/0]
8388608...
(*) DirectFB/Input: tslib touchscreen 0 0.1 (tslib)
(*) DirectFB/Graphics: Generic Software Rasterizer 0.6 (directfb.org)
(*) DirectFB/Core/WM: Default 0.3 (directfb.org)
(!) DirectFB/DirectFBCreate: Setting desktop resolution to 0x0 failed!
 - Using default resolution.
(!) DirectFB/DirectFBCreate: Setting desktop format failed!
 - Using default format.
(!) DirectFB/DirectFBCreate: Setting desktop buffer mode failed!
 - No virtual resolution support or not enough memory?
Falling back to system back buffer.
df_palette.c 140:
(#) DirectFBError [dfb-CreateSurface( dfb, sdsc, primary )]: Not
supported!
 (!!!)  *** WARNING [Application exited without deinitialization of
DirectFB!] *** [core.c:862 in dfb_core_deinit_check()]
 (!!!)  *** WARNING [still objects in 'Layer Region Pool'] ***
[object.c:241 in fusion_object_pool_destroy()]
 (!!!)  *** WARNING [still objects in 'Layer Context Pool'] ***
[object.c:241 in fusion_object_pool_destroy()]
 (!!!)  *** WARNING [still objects in 'Surface Pool'] *** [object.c:241 in
fusion_object_pool_destroy()]
Interface instances remaining (2):
  - 'IDirectFB' at 0x1dfdd8 (dfb) allocated in DirectFBCreate (directfb.c:
197)
  - 'IDirectFBEventBuffer' at 0x1e1a00 (iface) allocated in
IDirectFB_CreateInputEventBuffer (idirectfb.c: 1097)

Do I have to configure something else?

Thanks!
Regards, Alex.

2015-04-16 14:45 GMT+02:00 Juergen Borleis j...@pengutronix.de:

 On Thursday 16 April 2015 13:28:34 Alejandro Vázquez wrote:
  Hi, I'm trying to use directfb in mini2440, but when I try to launch
  dfbinfo gives me an error:
 
 
 ~~| DirectFB 1.4.3 |~~
  (c) 2001-2009  The world wide DirectFB Open Source Community
  (c) 2000-2004  Convergence (integrated media) GmbH

 
  (*) DirectFB/Core: Single Application Core. (2015-04-16 11:05) [ DEBUG
 ][TRACE]
  (*) Direct/Memcpy: Using armasm_memcpy()
  (!) DirectFB/core/vt: Couldn't open neither `/dev/tty0' nor `/dev/vc/0'!
  -- No such file or directory
  [...]

 Enable TTY and virtual terminal support in the kernel for this target.

 Regards,
 Juergen

 --
 Pengutronix e.K.  | Juergen Borleis
   |
 Industrial Linux Solutions| http://www.pengutronix.de/
 |

-- 
ptxdist mailing list
ptxdist@pengutronix.de


[ptxdist] board tq2440

2015-04-17 Thread Alejandro Vázquez
Hi all!
I've bought the development board tq2440 3.5 . It is very similar to
mini2440. I wish I could enable the touch screen, but can not find
information about the type of screen and how to enable it in the kernel.
The only thing I find is: Integrated 4 wires resistive touch screen
interface
Does anyone have the plate and have managed to operate the touchscreen??
Thanks you!
Regards, Alex.
-- 
ptxdist mailing list
ptxdist@pengutronix.de


Re: [ptxdist] ptxdist and Rpi

2015-03-31 Thread Alejandro Vázquez
Hi.
I think the problem is in the creation of the bootloader.
I uploaded the image, if someone can to try if it works correctly.

https://drive.google.com/folderview?id=0B5UG6eK__Z_SfmZvSlpsWWNSZ1Z4d1JXc0h1RjZQei16eUdJdV9vYkVoRTdrRzZNdUdlRTAusp=sharing

Thanks!

2015-03-30 13:23 GMT+02:00 Alexander Dahl p...@lespocky.de:

 Hei hei,

 On 30.03.2015 12:08, Bernhard Walle wrote:
  there's already a BSP for RPi
 
  http://git.pengutronix.de/?p=DistroKit.git;a=summary
 
 http://git.pengutronix.de/?p=platform-pengutronix-raspberrypi.git;a=summary

 I tried that last year and had some trouble getting it to run in the
 first place. Unfortunatly I didn't take some time to get my changes
 upstream, but if anyone is interested in a more recent version where
 ptxdist version of distrokit and platform matches, see the branches
 called migrate on those three forks:

 https://github.com/LeSpocky/platform-pengutronix-raspberrypi
 https://github.com/LeSpocky/platform-pengutronix-beaglebone
 https://github.com/LeSpocky/DistroKit

 HTH  Greets
 Alex



 --
 ptxdist mailing list
 ptxdist@pengutronix.de


-- 
ptxdist mailing list
ptxdist@pengutronix.de


[ptxdist] ptxdist and Rpi

2015-03-30 Thread Alejandro Vázquez
Hello!
I am trying to create an image for raspberry using ptxdist, but I can not
create an image that works well.

I followed the tutorial OSELAS.BSP-Pengutronix-Generic-arm-Quickstart.pdf

Step:

Compile and install 2014.05.0.
Donwload toolchain.
Download OSELAS.BSP-Pengutronix-Generic-2014.07.0
Download platform-pengutronix-raspberrypi
ptxdist migrate (version plarform is ptxdist 2014.05.0)
ptxdist go
ptxdist image
sudo dd bs=1M if=hd.img of=/dev/sdc

The image is successfully created, copy it to a card but don't work only
black screen but if I change the files * .elf by the Raspbian. the Rpi
starts and I can access via telnet. This is a temporal solutions i don't
want copy this files every times that i create the image.

ptxdist someone previously used and has managed to create a functional
image?

System:

OSELAS.BSP-Pengutronix-Generic-2014.07.0
platform-pengutronix-raspberrypi
Toolchain
:OSELAS.Toolchain-2013.12.0-arm-1136jfs-linux-gnueabihf-gcc-4.8.2-glibc-2.18-binutils-2.24-kernel-3.12-sanitized
ptxdist-2014.05.0
Ubuntu 14.04
Raspberry Pi model B.

Thanks! Regards!
-- 
ptxdist mailing list
ptxdist@pengutronix.de


Re: [ptxdist] ptxdist and Rpi

2015-03-30 Thread Alejandro Vázquez
Something I'm doing wrong.
I re-create the image, but and I have the same problem as before.
any ideas?
The steps I am already following the've said it before, but changing I'm
now using DistroKit
Thanks!
Alex

2015-03-30 12:08 GMT+02:00 Bernhard Walle bernh...@bwalle.de:

  Hello,

 there's already a BSP for RPi

 http://git.pengutronix.de/?p=DistroKit.git;a=summary
 http://git.pengutronix.de/?p=platform-pengutronix-raspberrypi.git;a=summary
 and



 Regards,
 Bernhard

 Am 2015-03-30 12:04, schrieb Alejandro Vázquez:

  Hello!
 I am trying to create an image for raspberry using ptxdist, but I can not
 create an image that works well.

 I followed the tutorial OSELAS.BSP-Pengutronix-Generic-arm-Quickstart.pdf

 Step:

 Compile and install 2014.05.0.
 Donwload toolchain.
 Download OSELAS.BSP-Pengutronix-Generic-2014.07.0
 Download platform-pengutronix-raspberrypi
 ptxdist migrate (version plarform is ptxdist 2014.05.0)
 ptxdist go
 ptxdist image
 sudo dd bs=1M if=hd.img of=/dev/sdc

 The image is successfully created, copy it to a card but don't work only
 black screen but if I change the files * .elf by the Raspbian. the Rpi
 starts and I can access via telnet. This is a temporal solutions i don't
 want copy this files every times that i create the image.

 ptxdist someone previously used and has managed to create a functional
 image?

 System:

 OSELAS.BSP-Pengutronix-Generic-2014.07.0
 platform-pengutronix-raspberrypi
 Toolchain
 :OSELAS.Toolchain-2013.12.0-arm-1136jfs-linux-gnueabihf-gcc-4.8.2-glibc-2.18-binutils-2.24-kernel-3.12-sanitized
 ptxdist-2014.05.0
 Ubuntu 14.04
 Raspberry Pi model B.

 Thanks! Regards!



 --
 ptxdist mailing list
 ptxdist@pengutronix.de


-- 
ptxdist mailing list
ptxdist@pengutronix.de