January 3rd, 2021, 15:14
Offset(h) 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
00000000 5D 00 80 00 00 00 71 83 BC 0E 20 73 F2 70 63 5A
5D lc, lp and pb in encoded form
00800000 dictionary size (little endian) = 0x8000
The LZMA header is not well documented. It's also a bit usual: it doesn't appear to have a magic byte prefix, as one would expect from a modern file format, and it not word-aligned. Nevertheless:
Offset Size Description
0 1 lc, lp and pb in encoded form
1 4 dictSize (little endian)
5 8 uncompressed size (little endian)
-lc{N}: number of literal context bits - [0, 8]
-lp{N}: number of literal pos bits - [0, 4]
-pb{N}: number of pos bits - [0, 4]
offset filesize size2 dlen attr flag lnam lblk
-------- -------- -------- ---- ---- ---- ---- ----
4820 2444A 740B0 1C 0004 .c.. 8 0 \epos.img
...d = directory
..e. = extra block
.c.. = compressed file
Offset(h) 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
00000000 5D 00 80 00 00 B0 40 07 00 00 00 00 00 00 71 83
January 5th, 2021, 1:11
Offset(h) 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
00000000 41 5A 31 30 36 70 17 00 5D 00 00 01 00 AZ106p..]....
Offset(h) 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
00000000 5D 00 00 01 00 00 00 02 00 00 00 00 00
Offset(h) 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
00000000 42 4D 36 70 17 00 FF FF FF FF 36 00 00 00 28 00 BM6p..ÿÿÿÿ6...(.
00000010 00 00 20 03 00 00 20 FE FF FF 01 00 20 00 00 00
00000020 00 00 00 70 17 00 00 00 00 00 00 00 00 00 00 00
00000030 00 00 00 00 00 00 FE FE FE FF FE FE FE FF FE FE
00000040 FE FF FE FE FE FF FE FE FE FF FE FE FE FF FE FE
........
0001FFF0 FE FF FE FE FE FF FE FE FE FF FE FE FE FF FE FE
Offset(h) 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
00000000 42 4D 36 70 17 00 FF FF FF FF 36 00 00 00 28 00 BM6p..ÿÿÿÿ6...(.
00000010 00 00 20 03 00 00 20 FE FF FF 01 00 20
January 5th, 2021, 1:50
Offset(h) 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
00000000 5D 00 00 01 00 36 70 17 00 00 00 00 00
January 5th, 2021, 2:38
January 5th, 2021, 17:43
-1 5d 00 00 01 00
{ 0, 16, 64, L"hc4", 3, 0, 2}, // -1
struct lzma_option {
short compression_mode; // -a
short dictionary; // -d
short fast_bytes; // -fb
const wchar_t *match_finder; // -mf
short literal_context_bits; // -lc
short literal_pos_bits; // -lp
short pos_bits; // -pb
};
"C:\Program Files\7-Zip\7z.exe" a logo_bmp.7z logo.bmp -m0=LZMA:a=0:d=16:fb=64:mf=hc4:lc=3:lp=0:pb=2
January 5th, 2021, 21:02
January 5th, 2021, 23:32
January 5th, 2021, 23:46
= Help Information: v2.0 =
= cat <filename> [/x] : show specific text file content(/x: hex) =
= cd <dst_path> : change current diretory =
= copy <srcfile> <dstfile> : copy one file =
= cpustatstart : start cpu stat =
= cpustatstop : stop cpu stat =
= cpustatreport : report cpu stat =
= create <filename> : creat a file =
= del <filename> : delete a file =
= dir : show content of current or specific dir =
= fs : fs debug control =
= help : help information =
= history : display the history command =
= insmod \drv\<drvname> : install module =
= keysim : keyboard simulation =
= mkdir <dirname> : creat a direntory =
= mount <driver> <res> : mount one specific driver =
= poweroff : power off =
= quit : jump out shell Be careful use 'quit' =
= reset : reset the system =
= rmdir <dirname : delete a direntory =
= run <programme> [/w] : run axf file under current or specific dir =
= set : set the debug envirnment =
= setpath : set app seach path =
= src <script file> : execute one script file =
= startx : start x window =
= sysinfo : list process/thread info and memory info =
January 5th, 2021, 23:54
HaQue wrote:No, This is really informative. I've been following but don't have anything better to add!
January 6th, 2021, 0:18
January 9th, 2021, 13:50
Offset(h) 00 04 08 0C
00000000 A80000EA 65474F4E 2E425430 62F4BE6E ¨..êeGON.BT0bô¾n
^^^^^^^^
00000010 003A0000 30000000 32303030 31313030 .:..0...20001100
00000020 31323030 31313030 53554E49 49000000 12001100SUNII...
00000030 78020000 31323030 00000080 00000000 x...1200...€....
00000040 A0000000 01000000 01000000 00000000 ...............
00000050 01000000 10000000 0A000000 0D000000 ................
00000060 04000000 04000000 01000000 05050501 ................
00000070 01FF0000 05050501 01FF0000 00000000 .ÿ.......ÿ......
00000080 06000301 01FF0000 06050301 01FF0000 .....ÿ.......ÿ..
00000090 06030301 01FF0000 06010301 01FF0000 .....ÿ.......ÿ..
000000A0 00000000 00000000 03010201 01010000 ................
000000B0 03000201 01010000 03030201 01010000 ................
000000C0 03020201 01010000 00000000 00000000 ................
Structure of Boot0
Offset Name Size Notes
0x00 B_INS 4 Branch instruction to Code Starting Point
0x04 Magic 8 Ascii string "eGON.BT0" (No Null-terminated )
0x0c Checksum 4 Simple 4-bytes Checksum (Before calculate checksum this must be 0x5F0A6C39 )
0x10 Size 4 Size of Boot0, it's must be 8-KiB aligned in NAND and 512-Bytes aligned in MMC
0x14 Code - Code of SPL. The size depends on the processor and if it 's loaded from SPI, NAND or MMC
Offset(h) 00 04 08 0C
00006000 AA2000EA 65474F4E 2E425431 7F4B1CA6 ª .êeGON.BT1.K.¦
00006010 00160100 B0820000 32303030 31313030 ....°‚..20001100
00006020 31323030 31313030 53554E49 49000000 12001100SUNII...
00006030 80820000 31323030 01000000 05050501 €‚..1200........
January 12th, 2021, 11:47
April 14th, 2021, 6:45
April 15th, 2021, 16:42
April 16th, 2021, 1:08
April 16th, 2021, 6:38
April 16th, 2021, 7:46
April 16th, 2021, 10:11
April 16th, 2021, 10:15
April 16th, 2021, 10:19
Powered by phpBB © phpBB Group.