https://bitbucket.org/hudson/magic-lantern
Raw File
Tip revision: 929f7874bd2925220a1375868df93a45e83c086a authored by hudson@andromeda.local on 01 August 2010, 23:13:27 UTC
Generate the empty firmware file from the empty header; removed 9 MB file of zeros
Tip revision: 929f787
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