b43-tools.git
16 years agoAdd a python library to access device internals.
Michael Buesch [Thu, 19 Jun 2008 11:46:48 +0000 (13:46 +0200)]
Add a python library to access device internals.

Signed-off-by: Michael Buesch <mb@bu3sch.de>
16 years agossb-sprom: Fix typo.
Michael Buesch [Tue, 17 Jun 2008 13:59:25 +0000 (15:59 +0200)]
ssb-sprom: Fix typo.

Signed-off-by: Michael Buesch <mb@bu3sch.de>
16 years agoAdd generated files to .gitignore
Michael Buesch [Mon, 16 Jun 2008 18:38:46 +0000 (20:38 +0200)]
Add generated files to .gitignore

Signed-off-by: Michael Buesch <mb@bu3sch.de>
16 years agoFix compiler warning on certain architectures.
Michael Buesch [Mon, 16 Jun 2008 18:28:01 +0000 (20:28 +0200)]
Fix compiler warning on certain architectures.

Signed-off-by: Michael Buesch <mb@bu3sch.de>
16 years agossb_sprom: Fix segfault in parameter parsing code.
Michael Buesch [Mon, 16 Jun 2008 16:30:12 +0000 (18:30 +0200)]
ssb_sprom: Fix segfault in parameter parsing code.

Signed-off-by: Michael Buesch <mb@bu3sch.de>
16 years agoAllow passing CPP parameters right after the filenames.
Michael Buesch [Sat, 14 Jun 2008 13:30:38 +0000 (15:30 +0200)]
Allow passing CPP parameters right after the filenames.

Signed-off-by: Michael Buesch <mb@bu3sch.de>
16 years agoMerge branch 'master' of ssh://git.bu3sch.de/home/git/repos/b43-tools
Michael Buesch [Sat, 14 Jun 2008 12:58:03 +0000 (14:58 +0200)]
Merge branch 'master' of ssh://git.bu3sch.de/home/git/repos/b43-tools

16 years agoWarn on usage of offset register 6. It is broken.
Michael Buesch [Sat, 14 Jun 2008 12:57:37 +0000 (14:57 +0200)]
Warn on usage of offset register 6. It is broken.

Signed-off-by: Michael Buesch <mb@bu3sch.de>
16 years agob43-tools typos
Pavel Roskin [Fri, 13 Jun 2008 15:31:53 +0000 (11:31 -0400)]
b43-tools typos

Signed-off-by: Michael Buesch <mb@bu3sch.de>
16 years agossb-sprom: Fix for incorrect Subsystem and PCI Product IDs on rev 4 SPROMs
Larry.Finger@lwfinger.net [Fri, 13 Jun 2008 05:57:45 +0000 (00:57 -0500)]
ssb-sprom: Fix for incorrect Subsystem and PCI Product IDs on rev 4 SPROMs

In current ssb-sprom code, the Subsystem and Product ID's are wrong for rev 4
SPROM's.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Michael Buesch <mb@bu3sch.de>
16 years agob43-asm: Update some comments.
Michael Buesch [Mon, 9 Jun 2008 20:33:15 +0000 (22:33 +0200)]
b43-asm: Update some comments.

Signed-off-by: Michael Buesch <mb@bu3sch.de>
16 years agoAllow inline %assert inside of complex immediates.
Michael Buesch [Mon, 9 Jun 2008 16:16:39 +0000 (18:16 +0200)]
Allow inline %assert inside of complex immediates.

Signed-off-by: Michael Buesch <mb@bu3sch.de>
16 years agoAdd support for assemble-time assertions.
Michael Buesch [Mon, 9 Jun 2008 15:56:27 +0000 (17:56 +0200)]
Add support for assemble-time assertions.

Signed-off-by: Michael Buesch <mb@bu3sch.de>
16 years agob43-asm: Allow complex immediates in M and S operands.
Michael Buesch [Thu, 5 Jun 2008 15:50:14 +0000 (17:50 +0200)]
b43-asm: Allow complex immediates in M and S operands.

Signed-off-by: Michael Buesch <mb@bu3sch.de>
16 years agoUse gcc -E as preprocessor, as cpp will cause problems on OSX.
Michael Buesch [Mon, 26 May 2008 15:41:49 +0000 (17:41 +0200)]
Use gcc -E as preprocessor, as cpp will cause problems on OSX.

Signed-off-by: Michael Buesch <mb@bu3sch.de>
16 years agob43-asm: Only warning, not error, on RET after JMP
Michael Buesch [Sat, 24 May 2008 18:24:55 +0000 (20:24 +0200)]
b43-asm: Only warning, not error, on RET after JMP

Sometimes it's valid to have a RET after a JMP

Signed-off-by: Michael Buesch <mb@bu3sch.de>
16 years agob43-asm: Add trivial selftest.
Michael Buesch [Sat, 24 May 2008 17:29:05 +0000 (19:29 +0200)]
b43-asm: Add trivial selftest.

It currently fails due to a too strict ret-after-jmp sanity check.

Signed-off-by: Michael Buesch <mb@bu3sch.de>
16 years agob43-asm: Allow complex immediates in initvals.
Michael Buesch [Thu, 22 May 2008 18:03:08 +0000 (20:03 +0200)]
b43-asm: Allow complex immediates in initvals.

Signed-off-by: Michael Buesch <mb@bu3sch.de>
16 years agob43-asm: Change the filenames of the binaries.
Michael Buesch [Thu, 22 May 2008 12:42:29 +0000 (14:42 +0200)]
b43-asm: Change the filenames of the binaries.

Signed-off-by: Michael Buesch <mb@bu3sch.de>
16 years agob43-asm: Add an option to print the code sizes after assembling.
Michael Buesch [Sun, 18 May 2008 22:32:46 +0000 (00:32 +0200)]
b43-asm: Add an option to print the code sizes after assembling.

Signed-off-by: Michael Buesch <mb@bu3sch.de>
16 years agob43-asm: Change JMP emulation from JE to JEXT
Michael Buesch [Sun, 18 May 2008 12:31:19 +0000 (14:31 +0200)]
b43-asm: Change JMP emulation from JE to JEXT

The external condition 0x7F is always true. This is what is supposed to be used
for an unconditional jump.

Signed-off-by: Michael Buesch <mb@bu3sch.de>
16 years agob43-asm: Fix the reverse search for JMPs before RETs
Michael Buesch [Sun, 18 May 2008 11:10:59 +0000 (13:10 +0200)]
b43-asm: Fix the reverse search for JMPs before RETs

We must ignore labels.

Signed-off-by: Michael Buesch <mb@bu3sch.de>
16 years agob43-asm: Fix memory allocation bug.
Michael Buesch [Sun, 18 May 2008 10:58:16 +0000 (12:58 +0200)]
b43-asm: Fix memory allocation bug.

Signed-off-by: Michael Buesch <mb@bu3sch.de>
16 years agoasm/dasm: Let's simply comment out these lines that generate the ext jmp operands.
Michael Buesch [Sun, 18 May 2008 10:51:03 +0000 (12:51 +0200)]
asm/dasm: Let's simply comment out these lines that generate the ext jmp operands.

Nothing bad can happen from commenting out a few stupid lines of code, right?

Signed-off-by: Michael Buesch <mb@bu3sch.de>
16 years agob43-asm: Throw error when using RET after a jump
Michael Buesch [Sat, 17 May 2008 19:41:56 +0000 (21:41 +0200)]
b43-asm: Throw error when using RET after a jump

Signed-off-by: Michael Buesch <mb@bu3sch.de>
16 years agob43-asm: Terminate instructions with ; instead of |
Michael Buesch [Fri, 16 May 2008 12:59:45 +0000 (14:59 +0200)]
b43-asm: Terminate instructions with ; instead of |

This removes support for assembly comments with ";"
Use C/C++ style comments, please
/* comment */
// comment
The preprocessor will take care of them.

Signed-off-by: Michael Buesch <mb@bu3sch.de>
16 years agoExtend README file.
Larry Finger [Fri, 25 Apr 2008 14:04:32 +0000 (16:04 +0200)]
Extend README file.

16 years agofwcutter: Extend the help text
Michael Buesch [Tue, 12 Feb 2008 22:06:41 +0000 (23:06 +0100)]
fwcutter: Extend the help text

Signed-off-by: Michael Buesch <mb@bu3sch.de>
16 years agofwcutter: Print the ID in the --identify output
Michael Buesch [Tue, 12 Feb 2008 21:55:35 +0000 (22:55 +0100)]
fwcutter: Print the ID in the --identify output

Signed-off-by: Michael Buesch <mb@bu3sch.de>
16 years agofwcutter: Increment version number
Michael Buesch [Tue, 12 Feb 2008 21:51:10 +0000 (22:51 +0100)]
fwcutter: Increment version number

Signed-off-by: Michael Buesch <mb@bu3sch.de>
16 years agofwcutter: Mark all files as "supported" that are needed for recent kernel versions.
Michael Buesch [Tue, 12 Feb 2008 21:49:53 +0000 (22:49 +0100)]
fwcutter: Mark all files as "supported" that are needed for recent kernel versions.

Signed-off-by: Michael Buesch <mb@bu3sch.de>
16 years agofwcutter: Start ID numbering at 10 to avoid clashes and confusion with v3 and v4...
Michael Buesch [Fri, 8 Feb 2008 23:05:43 +0000 (00:05 +0100)]
fwcutter: Start ID numbering at 10 to avoid clashes and confusion with v3 and v4 firmware.

Signed-off-by: Michael Buesch <mb@bu3sch.de>
16 years agofwcutter: Add unique firmware IDs
Michael Buesch [Fri, 8 Feb 2008 23:02:50 +0000 (00:02 +0100)]
fwcutter: Add unique firmware IDs

Signed-off-by: Michael Buesch <mb@bu3sch.de>
16 years agob43-asm: Make use of complex immediates as memory offsets possible.
Michael Buesch [Sun, 27 Jan 2008 18:41:45 +0000 (19:41 +0100)]
b43-asm: Make use of complex immediates as memory offsets possible.

Signed-off-by: Michael Buesch <mb@bu3sch.de>
16 years agob43-dasm: Add a space char after comma to improve asm code readability.
Michael Buesch [Sat, 26 Jan 2008 14:26:59 +0000 (15:26 +0100)]
b43-dasm: Add a space char after comma to improve asm code readability.

Signed-off-by: Michael Buesch <mb@bu3sch.de>
16 years agob43-asm: Allow terminating lines with |
Michael Buesch [Sat, 26 Jan 2008 00:03:47 +0000 (01:03 +0100)]
b43-asm: Allow terminating lines with |

This improves macro handling

Signed-off-by: Michael Buesch <mb@bu3sch.de>
16 years agob43-asm: Pass external conditions as immediates
Michael Buesch [Fri, 25 Jan 2008 23:01:17 +0000 (00:01 +0100)]
b43-asm: Pass external conditions as immediates

This allows using any hex and decimal numbers and even complex immediates for external conditions.

Signed-off-by: Michael Buesch <mb@bu3sch.de>
16 years agoBump fwcutter version
Michael Buesch [Tue, 15 Jan 2008 23:17:08 +0000 (00:17 +0100)]
Bump fwcutter version

Signed-off-by: Michael Buesch <mb@bu3sch.de>
16 years agoAdd .gitignore
Michael Buesch [Sun, 13 Jan 2008 23:36:06 +0000 (00:36 +0100)]
Add .gitignore

Signed-off-by: Michael Buesch <mb@bu3sch.de>
16 years agofwcutter: Change support status flags.
Michael Buesch [Sun, 13 Jan 2008 23:32:59 +0000 (00:32 +0100)]
fwcutter: Change support status flags.

Signed-off-by: Michael Buesch <mb@bu3sch.de>
16 years agofwcutter: Add firmware file offsets
Johannes Berg [Sun, 13 Jan 2008 23:30:01 +0000 (00:30 +0100)]
fwcutter: Add firmware file offsets

16 years agoRemove the broken endianness check in the md5 code.
Michael Buesch [Fri, 4 Jan 2008 20:40:19 +0000 (21:40 +0100)]
Remove the broken endianness check in the md5 code.

Signed-off-by: Michael Buesch <mb@bu3sch.de>
16 years agoAdd support for version 4 SPROM.
Michael Buesch [Wed, 2 Jan 2008 18:08:34 +0000 (19:08 +0100)]
Add support for version 4 SPROM.

From: Larry Finger <larry.finger@lwfinger.net>
Signed-off-by: Michael Buesch <mb@bu3sch.de>
17 years agob43-fwcutter: make sparse happier
Johannes Berg [Fri, 23 Nov 2007 11:21:59 +0000 (12:21 +0100)]
b43-fwcutter: make sparse happier

Just for the fun of it.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Michael Buesch <mb@bu3sch.de>
17 years agob43-fwcutter: unsupported file support
Johannes Berg [Fri, 23 Nov 2007 11:17:26 +0000 (12:17 +0100)]
b43-fwcutter: unsupported file support

This patch makes fwcutter support only those files we know are working
and marks the other one unsupported. To allow developers to still work
with such files, an --unsupported command line option is added that
allows one to extract firmware from such unsupported files. Some code
restructuring was necessary to support the --unsupported flag with other
flags in any order.

Also, because this is a significant change, bump the version number.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Michael Buesch <mb@bu3sch.de>
17 years agodasm: Move some definitions around.
Michael Buesch [Sun, 18 Nov 2007 14:10:24 +0000 (15:10 +0100)]
dasm: Move some definitions around.

Signed-off-by: Michael Buesch <mb@bu3sch.de>
17 years agodasm: Rewrite cmdline arg parsing and remove the bin wrapper script.
Michael Buesch [Sun, 18 Nov 2007 13:57:35 +0000 (14:57 +0100)]
dasm: Rewrite cmdline arg parsing and remove the bin wrapper script.

Signed-off-by: Michael Buesch <mb@bu3sch.de>
17 years agodasm: list_empty() can use a const pointer.
Michael Buesch [Sat, 17 Nov 2007 23:37:49 +0000 (00:37 +0100)]
dasm: list_empty() can use a const pointer.

Signed-off-by: Michael Buesch <mb@bu3sch.de>
17 years agoasm: Cleanup makefile.
Michael Buesch [Sat, 17 Nov 2007 23:35:17 +0000 (00:35 +0100)]
asm: Cleanup makefile.

Signed-off-by: Michael Buesch <mb@bu3sch.de>
17 years agoasm: Fix the preprocessing script.
Michael Buesch [Sat, 17 Nov 2007 23:29:21 +0000 (00:29 +0100)]
asm: Fix the preprocessing script.

Allow stdin as input and properly pass the filename up to the
assembler, so it appears in the error messages.
(The filename is passed through CPPs special line markers)

Signed-off-by: Michael Buesch <mb@bu3sch.de>
17 years agodasm: Fix %arch statement.
Michael Buesch [Fri, 16 Nov 2007 22:03:00 +0000 (23:03 +0100)]
dasm: Fix %arch statement.

Signed-off-by: Michael Buesch <mb@bu3sch.de>
17 years agoassembler: Remove two fixmes.
Michael Buesch [Fri, 16 Nov 2007 22:01:08 +0000 (23:01 +0100)]
assembler: Remove two fixmes.

Signed-off-by: Michael Buesch <mb@bu3sch.de>
17 years agoassembler: Fix label-immediate for v15
Michael Buesch [Sun, 11 Nov 2007 01:38:44 +0000 (02:38 +0100)]
assembler: Fix label-immediate for v15

Signed-off-by: Michael Buesch <mb@bu3sch.de>
17 years agoPartial support for the new v15 architecture.
Michael Buesch [Sun, 11 Nov 2007 01:31:40 +0000 (02:31 +0100)]
Partial support for the new v15 architecture.

Signed-off-by: Michael Buesch <mb@bu3sch.de>
17 years agoRename bcm43xx -> b43
Michael Buesch [Sat, 10 Nov 2007 22:28:15 +0000 (23:28 +0100)]
Rename bcm43xx -> b43

Signed-off-by: Michael Buesch <mb@bu3sch.de>
17 years agoInitial commit.
Michael Buesch [Sat, 10 Nov 2007 22:12:26 +0000 (23:12 +0100)]
Initial commit.

Signed-off-by: Michael Buesch <mb@bu3sch.de>