Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] svn commit: trunk/buildroot/package:  fbset
@ 2007-07-23  9:00 ulf at uclibc.org
  2007-07-23 10:52 ` Bernhard Fischer
  0 siblings, 1 reply; 7+ messages in thread
From: ulf at uclibc.org @ 2007-07-23  9:00 UTC (permalink / raw)
  To: buildroot

Author: ulf
Date: 2007-07-23 02:00:58 -0700 (Mon, 23 Jul 2007)
New Revision: 19209

Log:
Add fbset 'frame buffer set' package

Added:
   trunk/buildroot/package/fbset/
   trunk/buildroot/package/fbset/Config.in
   trunk/buildroot/package/fbset/fbset-2.1-avr32.patch
   trunk/buildroot/package/fbset/fbset.mk

Modified:
   trunk/buildroot/package/Config.in


Changeset:
Modified: trunk/buildroot/package/Config.in
===================================================================
--- trunk/buildroot/package/Config.in	2007-07-23 08:59:10 UTC (rev 19208)
+++ trunk/buildroot/package/Config.in	2007-07-23 09:00:58 UTC (rev 19209)
@@ -287,6 +287,7 @@
 source "package/directfb/Config.in"
 if !BR2_PACKAGE_BUSYBOX_HIDE_OTHERS || BR2_avr32
 source "package/fbv/Config.in"
+source "package/fbset/Config.in"
 endif
 source "package/jpeg/Config.in"
 source "package/libpng/Config.in"

Added: trunk/buildroot/package/fbset/Config.in
===================================================================
--- trunk/buildroot/package/fbset/Config.in	                        (rev 0)
+++ trunk/buildroot/package/fbset/Config.in	2007-07-23 09:00:58 UTC (rev 19209)
@@ -0,0 +1,9 @@
+config BR2_PACKAGE_FBSET
+	bool "fbset"
+	default n
+	help
+	  Fbset is a system utility to show or change the settings of the frame
+	  buffer device. The frame buffer device provides a simple and unique
+	  interface to access different kinds of graphic displays.
+
+	  http://users.telenet.be/geertu/Linux/fbdev/

Added: trunk/buildroot/package/fbset/fbset-2.1-avr32.patch
===================================================================
--- trunk/buildroot/package/fbset/fbset-2.1-avr32.patch	                        (rev 0)
+++ trunk/buildroot/package/fbset/fbset-2.1-avr32.patch	2007-07-23 09:00:58 UTC (rev 19209)
@@ -0,0 +1,108 @@
+diff -ru fbset-2.1/fb.h fbset-2.1-avr32/fb.h
+--- fbset-2.1/fb.h	1999-06-23 16:09:48.000000000 +0200
++++ fbset-2.1-avr32/fb.h	2005-12-09 16:00:07.000000000 +0100
+@@ -131,6 +131,7 @@
+ 					/* vtotal = 144d/288n/576i => PAL  */
+ 					/* vtotal = 121d/242n/484i => NTSC */
+ #define FB_SYNC_ON_GREEN	32	/* sync on green */
++#define FB_SYNC_PCLK_RISING     64      /* pixel data sampled on rising pclk */
+ 
+ #define FB_VMODE_NONINTERLACED  0	/* non interlaced */
+ #define FB_VMODE_INTERLACED	1	/* interlaced	*/
+diff -ru fbset-2.1/fbset.c fbset-2.1-avr32/fbset.c
+--- fbset-2.1/fbset.c	1999-06-23 16:11:46.000000000 +0200
++++ fbset-2.1-avr32/fbset.c	2005-12-09 16:04:53.000000000 +0100
+@@ -85,6 +85,7 @@
+ static const char *Opt_vsync = NULL;
+ static const char *Opt_csync = NULL;
+ static const char *Opt_gsync = NULL;
++static const char *Opt_pclk = NULL;
+ static const char *Opt_extsync = NULL;
+ static const char *Opt_bcast = NULL;
+ static const char *Opt_laced = NULL;
+@@ -122,6 +123,7 @@
+     { "-vsync", &Opt_vsync, 1 },
+     { "-csync", &Opt_csync, 1 },
+     { "-gsync", &Opt_gsync, 1 },
++    { "-pclk", &Opt_pclk, 1 },
+     { "-extsync", &Opt_extsync, 1 },
+     { "-bcast", &Opt_bcast, 1 },
+     { "-laced", &Opt_laced, 1 },
+@@ -344,6 +346,8 @@
+ 	var->sync |= FB_SYNC_COMP_HIGH_ACT;
+     if (vmode->gsync == HIGH)
+ 	var->sync |= FB_SYNC_ON_GREEN;
++    if (vmode->pclk == RISING)
++	var->sync |= FB_SYNC_PCLK_RISING;
+     if (vmode->extsync == TRUE)
+ 	var->sync |= FB_SYNC_EXT;
+     if (vmode->bcast == TRUE)
+@@ -389,6 +393,7 @@
+     vmode->vsync = var->sync & FB_SYNC_VERT_HIGH_ACT ? HIGH : LOW;
+     vmode->csync = var->sync & FB_SYNC_COMP_HIGH_ACT ? HIGH : LOW;
+     vmode->gsync = var->sync & FB_SYNC_ON_GREEN ? TRUE : FALSE;
++    vmode->pclk = var->sync & FB_SYNC_PCLK_RISING ? RISING : FALLING;
+     vmode->extsync = var->sync & FB_SYNC_EXT ? TRUE : FALSE;
+     vmode->bcast = var->sync & FB_SYNC_BROADCAST ? TRUE : FALSE;
+     vmode->grayscale = var->grayscale;
+@@ -420,11 +425,11 @@
+ 
+     if (!strcasecmp(var, "false") || !strcasecmp(var, "low") ||
+ 	!strcasecmp(var, "no") || !strcasecmp(var, "off") ||
+-	!strcmp(var, "0"))
++	!strcmp(var, "0") || !strcasecmp(var, "falling"))
+ 	value = 0;
+     else if (!strcasecmp(var, "true") || !strcasecmp(var, "high") ||
+ 	     !strcasecmp(var, "yes") || !strcasecmp(var, "on") ||
+-	     !strcmp(var, "1"))
++	     !strcmp(var, "1") || !strcasecmp(var, "rising"))
+ 	value = 1;
+     else
+ 	Die("Invalid value `%s'\n", var);
+@@ -559,6 +564,8 @@
+ 	vmode->csync = atoboolean(Opt_csync);
+     if (Opt_gsync)
+ 	vmode->gsync = atoboolean(Opt_gsync);
++    if (Opt_pclk)
++	vmode->pclk = atoboolean(Opt_pclk);
+     if (Opt_extsync)
+ 	vmode->extsync = atoboolean(Opt_extsync);
+     if (Opt_bcast)
+@@ -635,6 +642,8 @@
+ 	    puts("    csync high");
+ 	if (vmode->gsync)
+ 	    puts("    gsync true");
++	if (vmode->pclk)
++	    puts("    pclk rising");
+ 	if (vmode->extsync)
+ 	    puts("    extsync true");
+ 	if (vmode->bcast)
+@@ -875,6 +884,7 @@
+ 	"    -vsync <value>     : vertical sync polarity (low or high)\n"
+ 	"    -csync <value>     : composite sync polarity (low or high)\n"
+ 	"    -gsync <value>     : synch on green (false or true)\n"
++	"    -pclk <value>      : pclk edge on which pixeldata is valid (rising or falling)\n"
+ 	"    -extsync <value>   : external sync enable (false or true)\n"
+ 	"    -bcast <value>     : broadcast enable (false or true)\n"
+ 	"    -laced <value>     : interlace enable (false or true)\n"
+diff -ru fbset-2.1/fbset.h fbset-2.1-avr32/fbset.h
+--- fbset-2.1/fbset.h	1999-06-23 16:12:28.000000000 +0200
++++ fbset-2.1-avr32/fbset.h	2005-12-09 16:05:25.000000000 +0100
+@@ -26,6 +26,9 @@
+ #define LOW		(0)
+ #define HIGH		(1)
+ 
++#define FALLING		(0)
++#define RISING		(1)
++
+ #define FALSE		(0)
+ #define TRUE		(1)
+ 
+@@ -59,6 +62,7 @@
+     unsigned vsync : 1;
+     unsigned csync : 1;
+     unsigned gsync : 1;
++    unsigned pclk : 1;
+     unsigned extsync : 1;
+     unsigned bcast : 1;
+     unsigned laced : 1;

Added: trunk/buildroot/package/fbset/fbset.mk
===================================================================
--- trunk/buildroot/package/fbset/fbset.mk	                        (rev 0)
+++ trunk/buildroot/package/fbset/fbset.mk	2007-07-23 09:00:58 UTC (rev 19209)
@@ -0,0 +1,51 @@
+#############################################################
+#
+# fbset
+#
+#############################################################
+FBSET_VERSION:=2.1
+FBSET_SOURCE:=fbset-$(FBSET_VERSION).tar.gz
+FBSET_SITE:=http://users.telenet.be/geertu/Linux/fbdev
+FBSET_DIR:=$(BUILD_DIR)/fbset-$(FBSET_VERSION)
+FBSET_CAT:=$(ZCAT)
+FBSET_BINARY:=fbset
+FBSET_TARGET_BINARY:=usr/sbin/$(FBSET_BINARY)
+
+$(DL_DIR)/$(FBSET_SOURCE):
+	$(WGET) -P $(DL_DIR) $(FBSET_SITE)/$(FBSET_SOURCE)
+
+$(FBSET_DIR)/.unpacked: $(DL_DIR)/$(FBSET_SOURCE)
+	$(FBSET_CAT) $(DL_DIR)/$(FBSET_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
+	toolchain/patch-kernel.sh $(FBSET_DIR) package/fbset/ fbset-$(FBSET_VERSION)\*.patch\*
+	@touch $@
+
+$(FBSET_DIR)/$(FBSET_BINARY): $(FBSET_DIR)/.unpacked
+	($(TARGET_CONFIGURE_OPTS) \
+		CFLAGS="$(TARGET_CFLAGS)" \
+		LDFLAGS="$(TARGET_LDFLAGS)" \
+		$(MAKE) -C $(FBSET_DIR) CC=$(TARGET_CC) \
+	);
+	@touch -c $@
+
+$(TARGET_DIR)/$(FBSET_TARGET_BINARY): $(FBSET_DIR)/$(FBSET_BINARY)
+	$(INSTALL) -m 755 $(FBSET_DIR)/$(FBSET_BINARY) $(TARGET_DIR)/$(FBSET_TARGET_BINARY)
+	-$(STRIP) --strip-unneeded $(TARGET_DIR)/$(FBSET_TARGET_BINARY)
+	@touch -c $@
+
+fbset: linux26 uclibc $(TARGET_DIR)/$(FBSET_TARGET_BINARY)
+
+fbset-clean:
+	rm -f $(TARGET_DIR)/$(FBSET_TARGET_BINARY)
+	-$(MAKE) -C $(FBSET_DIR) clean
+
+fbset-dirclean:
+	rm -rf $(FBSET_DIR)
+
+#############################################################
+#
+# Toplevel Makefile options
+#
+#############################################################
+ifeq ($(strip $(BR2_PACKAGE_FBSET)),y)
+TARGETS+=fbset
+endif

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Buildroot] svn commit: trunk/buildroot/package:  fbset
  2007-07-23  9:00 [Buildroot] svn commit: trunk/buildroot/package: fbset ulf at uclibc.org
@ 2007-07-23 10:52 ` Bernhard Fischer
  2007-07-23 12:10   ` Ulf Samuelsson
  0 siblings, 1 reply; 7+ messages in thread
From: Bernhard Fischer @ 2007-07-23 10:52 UTC (permalink / raw)
  To: buildroot

On Mon, Jul 23, 2007 at 02:00:59AM -0700, ulf at uclibc.org wrote:
>Author: ulf
>Date: 2007-07-23 02:00:58 -0700 (Mon, 23 Jul 2007)
>New Revision: 19209
>
>Log:
>Add fbset 'frame buffer set' package
>
>Added:
>   trunk/buildroot/package/fbset/
>   trunk/buildroot/package/fbset/Config.in
>   trunk/buildroot/package/fbset/fbset-2.1-avr32.patch
>   trunk/buildroot/package/fbset/fbset.mk
>
>Modified:
>   trunk/buildroot/package/Config.in
>
>
>Changeset:
>Modified: trunk/buildroot/package/Config.in
>===================================================================
>--- trunk/buildroot/package/Config.in	2007-07-23 08:59:10 UTC (rev 19208)
>+++ trunk/buildroot/package/Config.in	2007-07-23 09:00:58 UTC (rev 19209)
>@@ -287,6 +287,7 @@
> source "package/directfb/Config.in"
> if !BR2_PACKAGE_BUSYBOX_HIDE_OTHERS || BR2_avr32

bringing any arch into play here is wrong. Remove this, please.

> source "package/fbv/Config.in"
>+source "package/fbset/Config.in"
> endif
> source "package/jpeg/Config.in"
> source "package/libpng/Config.in"

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Buildroot] svn commit: trunk/buildroot/package:  fbset
  2007-07-23 12:10   ` Ulf Samuelsson
@ 2007-07-23 11:29     ` Bernhard Fischer
  2007-07-23 12:37       ` Ulf Samuelsson
  0 siblings, 1 reply; 7+ messages in thread
From: Bernhard Fischer @ 2007-07-23 11:29 UTC (permalink / raw)
  To: buildroot

On Mon, Jul 23, 2007 at 02:10:26PM +0200, Ulf Samuelsson wrote:

>OK, I'll fix that, but AFAIK it is broken in busybox so It needs

hm? IIRC it builds fine for me. How is it broken?

>to be visible even if it is a busybox package 
>until someone fixes busybox.
>
>I will remove the complete conditional until then.

fair enough. Please comment this out then (if it's really broken in
1.6.1).

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Buildroot] svn commit: trunk/buildroot/package:  fbset
  2007-07-23 10:52 ` Bernhard Fischer
@ 2007-07-23 12:10   ` Ulf Samuelsson
  2007-07-23 11:29     ` Bernhard Fischer
  0 siblings, 1 reply; 7+ messages in thread
From: Ulf Samuelsson @ 2007-07-23 12:10 UTC (permalink / raw)
  To: buildroot

m?n 2007-07-23 klockan 12:52 +0200 skrev Bernhard Fischer:
> On Mon, Jul 23, 2007 at 02:00:59AM -0700, ulf at uclibc.org wrote:
> >Author: ulf
> >Date: 2007-07-23 02:00:58 -0700 (Mon, 23 Jul 2007)
> >New Revision: 19209
> >
> >Log:
> >Add fbset 'frame buffer set' package
> >
> >Added:
> >   trunk/buildroot/package/fbset/
> >   trunk/buildroot/package/fbset/Config.in
> >   trunk/buildroot/package/fbset/fbset-2.1-avr32.patch
> >   trunk/buildroot/package/fbset/fbset.mk
> >
> >Modified:
> >   trunk/buildroot/package/Config.in
> >
> >
> >Changeset:
> >Modified: trunk/buildroot/package/Config.in
> >===================================================================
> >--- trunk/buildroot/package/Config.in	2007-07-23 08:59:10 UTC (rev 19208)
> >+++ trunk/buildroot/package/Config.in	2007-07-23 09:00:58 UTC (rev 19209)
> >@@ -287,6 +287,7 @@
> > source "package/directfb/Config.in"
> > if !BR2_PACKAGE_BUSYBOX_HIDE_OTHERS || BR2_avr32
> 
> bringing any arch into play here is wrong. Remove this, please.
> 

OK, I'll fix that, but AFAIK it is broken in busybox so It needs
to be visible even if it is a busybox package 
until someone fixes busybox.

I will remove the complete conditional until then.
I could do:
if !BR2_PACKAGE_BUSYBOX_HIDE_OTHERS || BR2_ADD_BROKEN_BUSYBOX
instead.

I dont want that all BUSYBOX packages becomes visible just
because fbv and fbset needs to be visible.



> > source "package/fbv/Config.in"
> >+source "package/fbset/Config.in"
> > endif
> > source "package/jpeg/Config.in"
> > source "package/libpng/Config.in"

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Buildroot] svn commit: trunk/buildroot/package:  fbset
  2007-07-23 11:29     ` Bernhard Fischer
@ 2007-07-23 12:37       ` Ulf Samuelsson
  2007-07-24 14:13         ` [Buildroot] alleged fbset brokenness Bernhard Fischer
  0 siblings, 1 reply; 7+ messages in thread
From: Ulf Samuelsson @ 2007-07-23 12:37 UTC (permalink / raw)
  To: buildroot

m?n 2007-07-23 klockan 13:29 +0200 skrev Bernhard Fischer:
> On Mon, Jul 23, 2007 at 02:10:26PM +0200, Ulf Samuelsson wrote:
> 
> >OK, I'll fix that, but AFAIK it is broken in busybox so It needs
> 
> hm? IIRC it builds fine for me. How is it broken?
> 

I do not know the exact details, since I am applying the
patches from an internal buildroot for AVR32 generated
by someone else which claims it is broken.
It might be AVR32 related, or it might be that he is slightly behind
in versions.

I decided to put a comment in front of the packages,
letting users know that this might be broken

He also generated the *_VER etc.
Will fix that and your other comments.

> >to be visible even if it is a busybox package 
> >until someone fixes busybox.
> >
> >I will remove the complete conditional until then.
> 
> fair enough. Please comment this out then (if it's really broken in
> 1.6.1).

B.R:
Ulf Samuelsson

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Buildroot] alleged fbset brokenness
  2007-07-23 12:37       ` Ulf Samuelsson
@ 2007-07-24 14:13         ` Bernhard Fischer
  2007-07-26  7:01           ` Hans-Christian Egtvedt
  0 siblings, 1 reply; 7+ messages in thread
From: Bernhard Fischer @ 2007-07-24 14:13 UTC (permalink / raw)
  To: buildroot

On Mon, Jul 23, 2007 at 02:37:16PM +0200, Ulf Samuelsson wrote:
>m?n 2007-07-23 klockan 13:29 +0200 skrev Bernhard Fischer:
>> On Mon, Jul 23, 2007 at 02:10:26PM +0200, Ulf Samuelsson wrote:
>> 
>> >OK, I'll fix that, but AFAIK it is broken in busybox so It needs
>> 
>> hm? IIRC it builds fine for me. How is it broken?
>> 
>
>I do not know the exact details, since I am applying the
>patches from an internal buildroot for AVR32 generated
>by someone else which claims it is broken.
>It might be AVR32 related, or it might be that he is slightly behind
>in versions.

Looking forward to hear some details about how fbset from busybox-(1.6.1)
is broken for you.

TIA,
Bernhard

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Buildroot] alleged fbset brokenness
  2007-07-24 14:13         ` [Buildroot] alleged fbset brokenness Bernhard Fischer
@ 2007-07-26  7:01           ` Hans-Christian Egtvedt
  0 siblings, 0 replies; 7+ messages in thread
From: Hans-Christian Egtvedt @ 2007-07-26  7:01 UTC (permalink / raw)
  To: buildroot

On Tue, 2007-07-24 at 16:13 +0200, Bernhard Fischer wrote:
> On Mon, Jul 23, 2007 at 02:37:16PM +0200, Ulf Samuelsson wrote:
> >m?n 2007-07-23 klockan 13:29 +0200 skrev Bernhard Fischer:
> >> On Mon, Jul 23, 2007 at 02:10:26PM +0200, Ulf Samuelsson wrote:
> >> 
> >> >OK, I'll fix that, but AFAIK it is broken in busybox so It needs
> >> 
> >> hm? IIRC it builds fine for me. How is it broken?
> >> 
> >
> >I do not know the exact details, since I am applying the
> >patches from an internal buildroot for AVR32 generated
> >by someone else which claims it is broken.
> >It might be AVR32 related, or it might be that he is slightly behind
> >in versions.
> 
> Looking forward to hear some details about how fbset from busybox-(1.6.1)
> is broken for you.

It does just not work, I am not able to set the timing parameters. The
depth parameter is the only one I have gotten to work with the fbset
supplied by busybox.

This was with 1.6.0, will test with 1.6.1 when I get my buildroot
working again.

-- 
With kind regards,

Hans-Christian Egtvedt, siv.ing. (M.Sc.)
Applications Engineer - AVR32 System Solutions - Atmel Norway
-- 
Mvh
Hans-Christian Egtvedt

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2007-07-26  7:01 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-23  9:00 [Buildroot] svn commit: trunk/buildroot/package: fbset ulf at uclibc.org
2007-07-23 10:52 ` Bernhard Fischer
2007-07-23 12:10   ` Ulf Samuelsson
2007-07-23 11:29     ` Bernhard Fischer
2007-07-23 12:37       ` Ulf Samuelsson
2007-07-24 14:13         ` [Buildroot] alleged fbset brokenness Bernhard Fischer
2007-07-26  7:01           ` Hans-Christian Egtvedt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox