https://bitbucket.org/hudson/magic-lantern
Revision 294d215958402c7187bc4c3a7942c84458b83fea authored by hudson@kremvax.wan on 11 March 2010, 03:11:56 UTC, committed by hudson@kremvax.wan on 11 March 2010, 03:11:56 UTC
- Use the gcc stdio library for common string functions
- Disable everything except early boot code for initial testing
- Find more functions in 2.0.3
1 parent ecc67d5
Raw File
Tip revision: 294d215958402c7187bc4c3a7942c84458b83fea authored by hudson@kremvax.wan on 11 March 2010, 03:11:56 UTC
Canon firmware 2.0.3 support
Tip revision: 294d215
string-dump
#!/usr/bin/perl
use warnings;
use strict;

while(<>)
{
	my ($val) = /:\s*([0-9A-Fa-f]+)\s*/ or next;
	$val = hex $val;
	while( $val )
	{
		print chr( $val & 0xFF );
		$val >>= 8;
	}
}

print "\n";
back to top