r1042 - in developers/werner: . splash-jtag
werner at sita.openmoko.org
werner at sita.openmoko.org
Mon Feb 19 13:00:34 CET 2007
Author: werner
Date: 2007-02-19 13:00:31 +0100 (Mon, 19 Feb 2007)
New Revision: 1042
Added:
developers/werner/splash-jtag/
developers/werner/splash-jtag/README
developers/werner/splash-jtag/img.pl
Log:
Load a splash screen image into the frame buffer with JTAG.
Added: developers/werner/splash-jtag/README
===================================================================
--- developers/werner/splash-jtag/README 2007-02-18 16:20:24 UTC (rev 1041)
+++ developers/werner/splash-jtag/README 2007-02-19 12:00:31 UTC (rev 1042)
@@ -0,0 +1,22 @@
+Trade show mode
+===============
+
+This README describes how to load the splash screen directly into
+the frame buffer, using JTAG.
+
+Download the image (must be a 640x480 PNG):
+ wget http://wiki.openmoko.org/images/c/c2/System_boot.png
+
+Convert it into RGB 5:6:5 with half-words swapped:
+ ./img.pl >/tmp/out
+
+Fire up openocd, start u-boot, enter the prompt.
+
+Connect to openocd and get control:
+ telnet localhost 4444
+ halt
+
+Finally, load the image:
+ load_binary /tmp/out 0x33d00000
+
+Loading takes about two minutes.
Added: developers/werner/splash-jtag/img.pl
===================================================================
--- developers/werner/splash-jtag/img.pl 2007-02-18 16:20:24 UTC (rev 1041)
+++ developers/werner/splash-jtag/img.pl 2007-02-19 12:00:31 UTC (rev 1042)
@@ -0,0 +1,23 @@
+#!/usr/bin/perl
+system("pngtopnm System_boot.png | ppmtorgb3");
+for ("red", "grn", "blu") {
+ open(FILE,"noname.$_") || die "noname.$_";
+ $f = join("",<FILE>);
+ close FILE;
+ $f =~ s/^P5\s+(\d+)\s+(\d+)\s+(\d+)\s//s;
+ ($w,$h,$p) = ($1,$2,$3);
+ $p{$_} = $f;
+}
+print STDERR "$w x $h ($p)\n";
+for ($i = 0; $i != $w*$h; $i++) {
+ $r = unpack("C",substr($p{"red"},$i,1));
+ $g = unpack("C",substr($p{"grn"},$i,1));
+ $b = unpack("C",substr($p{"blu"},$i,1));
+ $v = ($r >> 3) << 11 | ($g >> 2) << 5 | ($b >> 3);
+ if ($i & 1) {
+ print pack("vv",$v,$t);
+ }
+ else {
+ $t = $v;
+ }
+}
Property changes on: developers/werner/splash-jtag/img.pl
___________________________________________________________________
Name: svn:executable
+ *
More information about the commitlog
mailing list