[kernel] r18436 - in dists/trunk/firmware-free: debian linux-free/av7110 linux-free/dsp56k linux-free/keyspan_pda
Ben Hutchings
benh at alioth.debian.org
Thu Dec 29 23:17:58 UTC 2011
Author: benh
Date: Thu Dec 29 23:17:57 2011
New Revision: 18436
Log:
Add makefiles and scripts for av7110, dsp56k and keyspan_pda firmware
Added:
dists/trunk/firmware-free/linux-free/av7110/Makefile
dists/trunk/firmware-free/linux-free/dsp56k/Makefile
dists/trunk/firmware-free/linux-free/dsp56k/concat-bootstrap.pl
dists/trunk/firmware-free/linux-free/keyspan_pda/Makefile
Modified:
dists/trunk/firmware-free/debian/changelog
dists/trunk/firmware-free/linux-free/keyspan_pda/keyspan_pda.S
Modified: dists/trunk/firmware-free/debian/changelog
==============================================================================
--- dists/trunk/firmware-free/debian/changelog Thu Dec 29 23:14:55 2011 (r18435)
+++ dists/trunk/firmware-free/debian/changelog Thu Dec 29 23:17:57 2011 (r18436)
@@ -2,6 +2,7 @@
* Update to linux-support 3.1.0-1
* Add isci parameter blob
+ * Add makefiles and scripts for av7110, dsp56k and keyspan_pda firmware
-- Ben Hutchings <ben at decadent.org.uk> Thu, 29 Dec 2011 19:09:09 +0100
Added: dists/trunk/firmware-free/linux-free/av7110/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ dists/trunk/firmware-free/linux-free/av7110/Makefile Thu Dec 29 23:17:57 2011 (r18436)
@@ -0,0 +1,11 @@
+CC = arm-linux-gnueabi-gcc
+LD = arm-linux-gnueabi-ld
+OBJCOPY = arm-linux-gnueabi-objcopy
+
+bootcode.bin: Boot.S
+ $(CC) -mbig-endian -c Boot.S
+ $(LD) -Ttext 0x2c000000 -EB -o Boot Boot.o
+ $(OBJCOPY) -Obinary Boot bootcode.bin
+
+clean:
+ rm -f Boot.o Boot bootcode.bin
Added: dists/trunk/firmware-free/linux-free/dsp56k/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ dists/trunk/firmware-free/linux-free/dsp56k/Makefile Thu Dec 29 23:17:57 2011 (r18436)
@@ -0,0 +1,6 @@
+bootstrap.bin: bootstrap.asm concat-bootstrap.pl
+ a56 bootstrap.asm >/dev/null
+ perl concat-bootstrap.pl <a56.out >bootstrap.bin
+
+clean:
+ rm -f a56.out bootstrap.bin
Added: dists/trunk/firmware-free/linux-free/dsp56k/concat-bootstrap.pl
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ dists/trunk/firmware-free/linux-free/dsp56k/concat-bootstrap.pl Thu Dec 29 23:17:57 2011 (r18436)
@@ -0,0 +1,33 @@
+# Postprocessor for dsp56k bootstrap code.
+#
+# Copyright Ben Hutchings 2011.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
+use strict;
+use warnings;
+
+my @memory;
+my %symbol;
+
+# Reconstruct memory image and symbol table
+while (<>) {
+ if (/^P ([0-9A-F]{4}) ([0-9A-F]{6})\n/) {
+ $memory[hex($1)] = hex($2);
+ } elsif (/^I ([0-9A-F]{6}) (\w+)\n/) {
+ $symbol{$2} = hex($1);
+ } else {
+ print STDERR "W: did not recognise line $.\n";
+ }
+}
+
+# Concatenate first and second stage. Second stage is assembled
+# between 'upload' and 'upload_end', but initially loaded at
+# 'real' (end of the first stage).
+for (0 .. ($symbol{real} - 1), $symbol{upload} .. ($symbol{upload_end} - 1)) {
+ my $word = $memory[$_] || 0;
+ print pack('CCC', $word / 65536, ($word / 256) % 256, $word % 256);
+}
Added: dists/trunk/firmware-free/linux-free/keyspan_pda/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ dists/trunk/firmware-free/linux-free/keyspan_pda/Makefile Thu Dec 29 23:17:57 2011 (r18436)
@@ -0,0 +1,12 @@
+CC = gcc
+IHEX2FW = ihex2fw
+
+all: keyspan_pda.fw xircom_pgs.fw
+
+%.fw: %.S
+ $(CC) -x assembler-with-cpp -P -E -o $*.asm $<
+ as31 -l $*.asm
+ $(IHEX2FW) $*.hex $@
+
+clean:
+ rm -f *.asm *.fw *.hex *.lst *.obj
Modified: dists/trunk/firmware-free/linux-free/keyspan_pda/keyspan_pda.S
==============================================================================
--- dists/trunk/firmware-free/linux-free/keyspan_pda/keyspan_pda.S Thu Dec 29 23:14:55 2011 (r18435)
+++ dists/trunk/firmware-free/linux-free/keyspan_pda/keyspan_pda.S Thu Dec 29 23:17:57 2011 (r18436)
@@ -285,7 +285,12 @@
mov dptr,OUTC
movx @dptr, a
;; setup the serial port. 9600 8N1.
- mov a,#01010011 ; mode 1, enable rx, clear int
+ ;; Original source had:
+ ;;mov a,#01010011 ; mode 1, enable rx, clear int
+ ;; This was presumably meant to be a binary constant, but it's
+ ;; really decimal and out of 8-bit range. as31 used to treat
+ ;; it as 0 and that seems to have worked, so carry on with 0.
+ mov a,#0
mov SCON, a
;; using timer2, in 16-bit baud-rate-generator mode
;; (xtal 12MHz, internal fosc 24MHz)
More information about the Kernel-svn-changes
mailing list