* FX2 FW: conversion from Intel HEX to DVB USB "hexline"
@ 2011-11-06 14:26 Antti Palosaari
2011-11-06 17:58 ` Patrick Boettcher
0 siblings, 1 reply; 4+ messages in thread
From: Antti Palosaari @ 2011-11-06 14:26 UTC (permalink / raw)
To: linux-media
Is there any simple tool (or one liner script :) to convert normal Intel
HEX firmware to format used by DVB USB Cypress firmware loader?
Or is there some other way those are created?
Loader is here:
dvb-usb-firmware.c
int usb_cypress_load_firmware()
Antti
--
http://palosaari.fi/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: FX2 FW: conversion from Intel HEX to DVB USB "hexline"
2011-11-06 14:26 FX2 FW: conversion from Intel HEX to DVB USB "hexline" Antti Palosaari
@ 2011-11-06 17:58 ` Patrick Boettcher
2011-11-06 18:07 ` Antti Palosaari
0 siblings, 1 reply; 4+ messages in thread
From: Patrick Boettcher @ 2011-11-06 17:58 UTC (permalink / raw)
To: Antti Palosaari; +Cc: linux-media
[-- Attachment #1: Type: Text/Plain, Size: 538 bytes --]
Hi Antti,
On Sunday, November 06, 2011 03:26:20 PM Antti Palosaari wrote:
> Is there any simple tool (or one liner script :) to convert normal Intel
> HEX firmware to format used by DVB USB Cypress firmware loader?
>
> Or is there some other way those are created?
>
> Loader is here:
> dvb-usb-firmware.c
> int usb_cypress_load_firmware()
I'm sure that you have found something yourself in the meantime, but I used
the attached script to convert .hex to binaries.
HTH,
--
Patrick Boettcher - KernelLabs
http://www.kernellabs.com/
[-- Attachment #2: hex2bin.pl --]
[-- Type: application/x-perl, Size: 304 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: FX2 FW: conversion from Intel HEX to DVB USB "hexline"
2011-11-06 17:58 ` Patrick Boettcher
@ 2011-11-06 18:07 ` Antti Palosaari
2011-11-06 18:13 ` Patrick Boettcher
0 siblings, 1 reply; 4+ messages in thread
From: Antti Palosaari @ 2011-11-06 18:07 UTC (permalink / raw)
To: Patrick Boettcher; +Cc: linux-media
Many thanks!
Actually, I was just started to write similar Python script! You got
maybe 15min late but still 15min before mine was ready :)
Format was nothing more than convert ASCII hex values to binary bytes
and stripping out all white spaces and Intel HEX start code ":".
Why it was initially converted to binary and not used Intel HEX as it
is? I think you know, as a original author, history about that decision?
regards
Antti
On 11/06/2011 07:58 PM, Patrick Boettcher wrote:
> Hi Antti,
>
> On Sunday, November 06, 2011 03:26:20 PM Antti Palosaari wrote:
>> Is there any simple tool (or one liner script :) to convert normal Intel
>> HEX firmware to format used by DVB USB Cypress firmware loader?
>>
>> Or is there some other way those are created?
>>
>> Loader is here:
>> dvb-usb-firmware.c
>> int usb_cypress_load_firmware()
>
> I'm sure that you have found something yourself in the meantime, but I used
> the attached script to convert .hex to binaries.
>
> HTH,
>
> --
> Patrick Boettcher - KernelLabs
> http://www.kernellabs.com/
--
http://palosaari.fi/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: FX2 FW: conversion from Intel HEX to DVB USB "hexline"
2011-11-06 18:07 ` Antti Palosaari
@ 2011-11-06 18:13 ` Patrick Boettcher
0 siblings, 0 replies; 4+ messages in thread
From: Patrick Boettcher @ 2011-11-06 18:13 UTC (permalink / raw)
To: Antti Palosaari; +Cc: linux-media
On Sunday, November 06, 2011 07:07:31 PM Antti Palosaari wrote:
> Many thanks!
>
> Actually, I was just started to write similar Python script! You got
> maybe 15min late but still 15min before mine was ready :)
>
> Format was nothing more than convert ASCII hex values to binary bytes
> and stripping out all white spaces and Intel HEX start code ":".
>
> Why it was initially converted to binary and not used Intel HEX as it
> is? I think you know, as a original author, history about that decision?
Because doing string-parsing and evaluation in the kernel is something I
usually avoid. And it can't sure be done within 300 bytes (the size of the
perl script). Also the .bin is smaller in term of size compared to the .hex.
--
Patrick Boettcher - KernelLabs
http://www.kernellabs.com/
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-11-06 18:13 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-06 14:26 FX2 FW: conversion from Intel HEX to DVB USB "hexline" Antti Palosaari
2011-11-06 17:58 ` Patrick Boettcher
2011-11-06 18:07 ` Antti Palosaari
2011-11-06 18:13 ` Patrick Boettcher
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox