Skip to contentSkip to conversation

Generic LOGO support

PATCH New Rodolfo Giometti 3 participants 7 messages Jul 12, 2006 – Jul 13, 2006 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Generic LOGO support

Hello,

here a patch to allow several boards to define their own LOGO file.

At configuration time we can specify the LOGO file as follow:

wwpc1000_config : unconfig

           @ >include/config.h
           @echo "#define CONFIG_WWPC1000          100" >>include/config.h
           @./mkconfig -a wwpc1000 mips mips wwpc1000
           @echo "CROSS_COMPILE = mipsel-linux-" >>include/config.mk
           @echo "LOGO = wwpc1000.bmp" >>include/config.mk

Ciao,

Rodolfo

Signature · 5 lines
GNU/Linux Solutions                  e-mail:    giometti at enneenne.com
Linux Device Driver                             giometti at gnudd.com
Embedded Systems                     		giometti at linux.it
UNIX programming                     phone:     +39 349 2432127
-------------- next part --------------
Makefile +1 -1
index f7a5f06..3ae8e3f 100644
@@ -52,7 +52,7 @@ export	TOPDIR
 ifeq (include/config.mk,$(wildcard include/config.mk))
 # load ARCH, BOARD, and CPU configuration
 include include/config.mk
-export	ARCH CPU BOARD VENDOR SOC
+export	ARCH CPU BOARD VENDOR SOC LOGO
 ifndef CROSS_COMPILE
 ifeq ($(HOSTARCH),ppc)
 CROSS_COMPILE =
tools/Makefile +6 -4
index d3dcc7d..5b36ba2 100644
@@ -38,8 +38,10 @@ #endif
 
 LOGO_H	= $(TOPDIR)/include/bmp_logo.h
 
-ifeq ($(LOGO_BMP),)
-LOGO_BMP= logos/denx.bmp
+ifeq ($(LOGO),)
+LOGO_BMP= denx.bmp
+else
+LOGO_BMP= $(LOGO)
 endif
 
 #-------------------------------------------------------------------------
@@ -195,8 +197,8 @@ crc32.c:
 		@rm -f crc32.c
 		ln -s ../lib_generic/crc32.c crc32.c
 
-$(LOGO_H):	bmp_logo $(LOGO_BMP)
-		./bmp_logo $(LOGO_BMP) >$@
+$(LOGO_H):	bmp_logo logos/$(LOGO_BMP)
+		./bmp_logo logos/$(LOGO_BMP) >$@ 2>/tmp/gu
 
 #########################################################################
 
#1 lore raw

PATCH 1/1 Generic LOGO support

Quoted 3 lines · Rodolfo Giometti

Hello,

here a patch to allow several boards to define their own LOGO file.

Sorry... the patch is wrong... here the correction.

tools/Makefile +1 -1
index 5b36ba2..5ce7445 100644
@@ -198,7 +198,7 @@ crc32.c:
                ln -s ../lib_generic/crc32.c crc32.c
 
 $(LOGO_H):     bmp_logo logos/$(LOGO_BMP)
-               ./bmp_logo logos/$(LOGO_BMP) >$@ 2>/tmp/gu
+               ./bmp_logo logos/$(LOGO_BMP) >$@
 

Ciao,

Rodolfo

Signature · 4 lines
GNU/Linux Solutions                  e-mail:    giometti at enneenne.com
Linux Device Driver                             giometti at gnudd.com
Embedded Systems                     		giometti at linux.it
UNIX programming                     phone:     +39 349 2432127
#2 lore raw

PATCH 1/1 Generic LOGO support

Quoted 2 lines · In message <[email protected]> you wrote:

Sorry... the patch is wrong... here the correction.

May I ask you to debug and test your patches BEFORE posting, please? Thanks.

And then don't send bits and pieces of corrections, please repost a sane patch instead.

Best regards,

Wolfgang Denk

Signature · 4 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
        Ordnung ist die Lust der Vernunft,
        aber Unordnung die Wonne der Phantasie         - Paul Claudel
#3 lore raw

PATCH 1/1 Generic LOGO support

Quoted 3 lines · Wolfgang Denk

May I ask you to debug and test your patches BEFORE posting, please? Thanks.

Of course I did it, but... :)

Quoted 2 lines

And then don't send bits and pieces of corrections, please repost a sane patch instead.

Ok, attached.

Ciao,

Rodolfo

Signature · 5 lines
GNU/Linux Solutions                  e-mail:    giometti at enneenne.com
Linux Device Driver                             giometti at gnudd.com
Embedded Systems                     		giometti at linux.it
UNIX programming                     phone:     +39 349 2432127
-------------- next part --------------
Makefile +1 -1
index f7a5f06..3ae8e3f 100644
@@ -52,7 +52,7 @@ export	TOPDIR
 ifeq (include/config.mk,$(wildcard include/config.mk))
 # load ARCH, BOARD, and CPU configuration
 include include/config.mk
-export	ARCH CPU BOARD VENDOR SOC
+export	ARCH CPU BOARD VENDOR SOC LOGO
 ifndef CROSS_COMPILE
 ifeq ($(HOSTARCH),ppc)
 CROSS_COMPILE =
tools/Makefile +6 -4
index d3dcc7d..5b36ba2 100644
@@ -38,8 +38,10 @@ #endif
 
 LOGO_H	= $(TOPDIR)/include/bmp_logo.h
 
-ifeq ($(LOGO_BMP),)
-LOGO_BMP= logos/denx.bmp
+ifeq ($(LOGO),)
+LOGO_BMP= denx.bmp
+else
+LOGO_BMP= $(LOGO)
 endif
 
 #-------------------------------------------------------------------------
@@ -195,8 +197,8 @@ crc32.c:
 		@rm -f crc32.c
 		ln -s ../lib_generic/crc32.c crc32.c
 
-$(LOGO_H):	bmp_logo $(LOGO_BMP)
-		./bmp_logo $(LOGO_BMP) >$@
+$(LOGO_H):	bmp_logo logos/$(LOGO_BMP)
+		./bmp_logo logos/$(LOGO_BMP) >$@
 
 #########################################################################
 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.denx.de/pipermail/u-boot/attachments/20060713/65e55afd/attachment.pgp

#4 lore raw

PATCH 1/1 Generic LOGO support

Quoted 5 lines · In message <[email protected]> you wrote:
Quoted 3 lines

And then don't send bits and pieces of corrections, please repost a sane patch instead.

Ok, attached.

Where is the CHANGELOG message, and your Signed-off-by line?

Also, I cannot find any cleanup code for make clen?

Best regards,

Wolfgang Denk

Signature · 4 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Schshschshchsch.
	-- The Gorn, "Arena", stardate 3046.2
#5 lore raw

PATCH 1/1 Generic LOGO support

Quoted 2 lines · Wolfgang Denk

Where is the CHANGELOG message, and your Signed-off-by line?

CHANGELOG:

Support for per board logo definition.

NOTE:

At configuration time we can specify the LOGO file as follow:

wwpc1000_config : unconfig

           @ >include/config.h
           @echo "#define CONFIG_WWPC1000          100" >>include/config.h
           @./mkconfig -a wwpc1000 mips mips wwpc1000
           @echo "CROSS_COMPILE = mipsel-linux-" >>include/config.mk
           @echo "LOGO = wwpc1000.bmp" >>include/config.mk
Quoted 1 line

Also, I cannot find any cleanup code for make clen?

What do you mean? My patch doesn't change file "include/bmp_logo.h" generation... maybe there is a previous bug during "make clean"? I'll check it.

Ciao,

Rodolfo

Signature · 11 lines
GNU/Linux Solutions                  e-mail:    giometti at enneenne.com
Linux Device Driver                             giometti at gnudd.com
Embedded Systems                     		giometti at linux.it
UNIX programming                     phone:     +39 349 2432127
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.denx.de/pipermail/u-boot/attachments/20060713/b5bbf93b/attachment.pgp 
#6 lore raw

[U-Boot-Users] Does the UBoot-1.1.4 support the RMII on PPC440GP?

In reply to Wolfgang Denk

I still failed to bring up my ethernet on my custom PPC440GP board,
1. auto-negotiations timeout
2. wrong speed(10M), and wrong mode (half duplex)
Can anyone tell me how the drivers for PPC440GP RMII interface goes, thanks a lot!

Below is my logs:
u-boot => tftp 0x100000 tmp.img
Trying ppc_4xx_eth0
the ZMII_FER = 0xe0000780
the ZMII_SSR = 0xe0000784
Waiting for PHY auto negotiation to complete..... TIMEOUT !
done
ENET Speed is 10 Mbps - HALF duplex connection
Using ppc_4xx_eth0 device
TFTP from server 192.168.65.235; our IP address is 192.168.65.239 Filename 'tmp.img'.
Load address: 0x100000
Loading: T T T T T T T

Thanks in advance!
- Denny

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20060713/bd51fc77/attachment.htm