|
@@ -63,7 +63,7 @@ public class HexHennenGegacker {
|
|
|
f.write(frame);
|
|
|
}
|
|
|
f.close();*/
|
|
|
- byte[] separatorframe = {0x1b, (byte)0x88,
|
|
|
+ byte[] separatorframe = {(byte)0xcb, (byte)0x88,
|
|
|
0x7F, 0x00,0x00,0x00,
|
|
|
0x0F, 0x0F,0x0F,0x0F,
|
|
|
0x0F, 0x0F,0x0F,0x0F,
|
|
@@ -74,14 +74,19 @@ public class HexHennenGegacker {
|
|
|
0x00, 0x00,0x00,0x00,
|
|
|
0x00, 0x00,0x00,0x7F,
|
|
|
};
|
|
|
+ RandomAccessFile s = new RandomAccessFile("/home/tgoerner/loa/000030/flash-fsckable.bin","r");
|
|
|
+ byte[] flash = new byte[262144];
|
|
|
+ s.read(flash);
|
|
|
for(int fi=0;fi<16;fi++)
|
|
|
{
|
|
|
- RandomAccessFile f = new RandomAccessFile("D:\\LOA\\000030\\HexHenne\\flash"+fi+".replacesection","rw");
|
|
|
+ RandomAccessFile f = new RandomAccessFile("/home/tgoerner/loa/000030/HexHenne/modF-"+fi+".bin","rw");
|
|
|
+ f.write(flash);
|
|
|
+ f.seek(0xd5f2);
|
|
|
f.write(separatorframe);
|
|
|
for(int i=0;i<256;i++)
|
|
|
{
|
|
|
byte[] frame = new byte[34];
|
|
|
- frame[0]=(byte)0x1B;
|
|
|
+ frame[0]=(byte)0xFB;
|
|
|
int modifier = (i>>4);
|
|
|
modifier |=fi<<4;
|
|
|
//int modifier = 0x52;
|