sysclk-lwla: Extract LWLA1034 bitstreams in RBF format
authorDaniel Elstner <daniel.kitta@gmail.com>
Sat, 31 Oct 2015 21:25:28 +0000 (22:25 +0100)
committerDaniel Elstner <daniel.kitta@gmail.com>
Sat, 31 Oct 2015 21:25:28 +0000 (22:25 +0100)
Adjust offsets so that the extraction yields Raw Binary Files,
and adjust the filenames accordingly. This is the format expected
by the current LWLA1034 driver in libsigrok.

firmware/sysclk-lwla/sigrok-fwextract-sysclk-lwla1034

index c9e261e25ba82b2a3bb7ae6af9077b81d0d5577c..5809d420ce95592a8665bab2195d9c6e3f61171d 100755 (executable)
@@ -35,7 +35,7 @@ if [ "$2" != "$expectsum" ]; then
 fi
 
 # Extract the firmware binaries from the executable
-dd bs=1 skip=34110338 count=78398 if="$infile" of=sysclk-lwla1034-int.bitstream
-dd bs=1 skip=34266237 count=78247 if="$infile" of=sysclk-lwla1034-extpos.bitstream
-dd bs=1 skip=34344484 count=79145 if="$infile" of=sysclk-lwla1034-extneg.bitstream
-dd bs=1 skip=34578631 count=48525 if="$infile" of=sysclk-lwla1034-off.bitstream
+dd bs=1 skip=34110342 count=78394 if="$infile" of=sysclk-lwla1034-int.rbf
+dd bs=1 skip=34266241 count=78243 if="$infile" of=sysclk-lwla1034-extpos.rbf
+dd bs=1 skip=34344488 count=79141 if="$infile" of=sysclk-lwla1034-extneg.rbf
+dd bs=1 skip=34578635 count=48521 if="$infile" of=sysclk-lwla1034-off.rbf