Dear coreboot folks,
I got a known working 8 MB coreboot image emailed for the ASRock E350M1. The chip size of the mounted flash chip is 4 MB. Looking at the contents less than 4 MB are used.
$ build/util/cbfstool/cbfstool /tmp/coreboot.rom print coreboot.rom: 8192 kB, bootblocksize 1288, romsize 8388608, offset 0x0 Alignment: 64 bytes
Name Offset Type Size cmos_layout.bin 0x0 cmos layout 1956 pci1002,9802.rom 0x800 optionrom 65536 bootsplash.jpg 0x10840 bootsplash 170591 fallback/romstage 0x3a300 stage 339852 fallback/coreboot_ram 0x8d300 stage 195164 fallback/payload 0xbcdc0 payload 53322 config 0xc9e80 raw 3807 (empty) 0xcadc0 null 7556336
Looking at the contents the empty area is also at the end besides the following section at the very end.
007FFAD8 4F 52 42 43 31 31 31 31 00 80 00 00 00 00 05 08 00 00 00 40 00 00 00 00 FF FF FF FF ORBC1111...........@........ 007FFAF4 FF FF FF FF FA 66 89 C5 B0 01 E6 80 66 31 C0 0F 22 D8 8C C8 C1 E0 04 BB 44 FB 29 C3 .....f......f1..".......D.). 007FFB10 2E 0F 01 1F BB 3C FB 29 C3 2E 66 0F 01 17 0F 20 C0 66 25 D1 FF FA 7F 66 0D 01 00 00 .....<.)..f.... .f%....f.... 007FFB2C 60 0F 22 C0 66 89 E8 66 EA 73 FB FF FF 08 00 90 17 00 4C FB FF FF 66 90 00 00 00 00 `.".f..f.s........L...f..... 007FFB48 00 00 00 00 17 00 4C FB FF FF 00 00 FF FF 00 00 00 9B CF 00 FF FF 00 00 00 93 CF 00 ......L..................... 007FFB64 2E 0F 01 15 4C FB FF FF EA 73 FB FF FF 08 00 89 C5 B0 10 E6 80 66 B8 10 00 8E D8 8E ....L....s...........f...... 007FFB80 C0 8E D0 8E E0 8E E8 89 E8 89 C5 B9 1B 00 00 00 0F 32 25 00 01 00 00 85 C0 0F 84 40 .................2%........@ 007FFB9C 02 00 00 B8 44 A3 00 80 66 BA F8 0C EF 66 BA FC 0C ED B8 44 A3 00 80 66 BA F8 0C EF ....D...f....f.....D...f.... 007FFBB8 B8 FF FF FF FF 66 BA FC 0C EF B8 48 A3 00 80 66 BA F8 0C EF 66 BA FC 0C ED 0D 53 00 .....f.....H...f....f.....S. 007FFBD4 20 00 89 C4 B8 48 A3 00 80 66 BA F8 0C EF 66 BA FC 0C 89 E0 EF B8 6C A3 00 80 66 BA ....H...f....f.......l...f. 007FFBF0 F8 0C EF 66 BA FC 0C 66 ED B8 6C A3 00 80 66 BA F8 0C EF 66 B8 80 FF 66 BA FC 0C 66 ...f...f..l...f....f...f...f 007FFC0C EF B8 B8 A3 00 80 66 BA F8 0C EF 66 BA FC 0C ED 0D 00 00 00 01 89 C4 B8 B8 A3 00 80 ......f....f................ 007FFC28 66 BA F8 0C EF 66 BA FC 0C 89 E0 EF BC 00 00 00 A0 B8 A0 A3 00 80 66 BA F8 0C EF 66 f....f................f....f 007FFC44 BA FC 0C ED 89 C7 89 E6 83 CE 02 B8 A0 A3 00 80 66 BA F8 0C EF 66 BA FC 0C 89 F0 EF ................f....f...... 007FFC60 89 E6 83 C6 0C 8B 36 81 E6 FF 00 00 00 81 E6 FF 3F FF FF 81 CE 00 40 00 00 89 E2 83 ......6.........?.....@..... 007FFC7C C2 0C 89 32 89 E6 83 C6 00 8B 36 81 CE 00 00 04 00 83 C4 00 89 34 24 B8 A0 A3 00 80 ...2......6..........4$..... 007FFC98 66 BA F8 0C EF 66 BA FC 0C 89 F8 EF BC 40 0E D8 FE B0 24 66 BA D6 0C EE 66 BA D7 0C f....f.......@....$f....f... 007FFCB4 EC 0F B6 F8 83 CF 01 83 E7 FD 89 F8 66 BA D7 0C EE 8B 3C 24 83 E7 FA 83 CF 02 89 3C ............f.....<$.......< 007FFCD0 24 EB 00 B0 0D E6 70 E4 71 0F B6 E0 81 E4 80 00 00 00 83 FC 00 0F 94 C0 0F B6 F8 83 $.....p.q................... 007FFCEC FC 00 0F 84 81 00 00 00 BC 00 00 00 00 BF 31 00 00 00 EB 45 89 F8 BE 00 00 00 00 81 ..............1....E........ 007FFD08 FF 80 00 00 00 7C 0F BE 02 00 00 00 89 FA 81 EA 80 00 00 00 88 D0 89 F2 83 C2 70 83 .....|....................p. 007FFD24 C2 00 EE 83 C6 70 83 C6 01 66 89 F2 EC 0F B6 F0 01 F4 81 E4 FF FF 00 00 83 C7 01 81 .....p...f.................. 007FFD40 E7 FF 00 00 00 83 FF 7A 7E B6 EB 00 B0 7B E6 70 E4 71 0F B6 F8 C1 E7 08 81 E7 FF FF .......z~....{.p.q.......... 007FFD5C 00 00 EB 00 B0 7C E6 70 E4 71 0F B6 F0 09 F7 39 FC 0F 95 C0 0F B6 E0 89 E7 85 FF 74 .....|.p.q.....9...........t 007FFD78 66 BE E0 FE FF FF BC 85 FD FF FF EB 79 89 C6 85 F6 74 54 BF 0E 00 00 00 EB 45 89 FC f...........y....tT......E.. 007FFD94 89 F2 01 E2 0F B6 22 89 FA 81 E2 FF 00 00 00 88 D0 B9 00 00 00 00 81 FA 80 00 00 00 ......"..................... 007FFDB0 7C 0D B9 02 00 00 00 81 EA 80 00 00 00 88 D0 89 CA 83 C2 70 83 C2 00 EE 83 C1 70 83 |..................p......p. 007FFDCC C1 01 66 89 CA 89 E0 EE 83 C7 01 81 FF 80 00 00 00 7C B3 BE ED FE FF FF BC EB FD FF ..f..............|.......... 007FFDE8 FF EB 13 89 C4 83 C4 04 8B 24 24 85 E4 74 04 89 E8 FF E4 F4 EB FD FC A1 FC FF FF FF .........$$..t.............. 007FFE04 8B 48 08 0F C9 BB 00 00 00 00 29 CB 8B 48 14 0F C9 01 CB B8 00 00 00 00 80 3C 30 00 .H........)..H...........<0. 007FFE20 74 05 83 C0 01 EB F5 83 C0 01 8B 3B 39 3D AC FE FF FF 75 69 8B 7B 04 39 3D B0 FE FF t..........;9=....ui.{.9=... 007FFE3C FF 75 5E 89 DF 83 C7 18 89 C1 F3 A6 75 09 8B 43 14 0F C8 01 D8 FF E4 29 DF 83 EF 18 .u^.........u..C.......).... 007FFE58 29 FE 8B 4B 14 0F C9 01 D9 8B 7B 08 0F CF 01 F9 8B 3D FC FF FF FF 8B 7F 10 0F CF 83 )..K......{......=.......... 007FFE74 EF 01 01 F9 F7 D7 21 F9 39 D9 76 16 89 CB 8B 0D FC FF FF FF 8B 49 0C 0F C9 F7 D1 83 ......!.9.v..........I...... 007FFE90 C1 01 39 CB 76 94 B8 00 00 00 00 FF E4 8B 3D FC FF FF FF 8B 7F 10 0F CF 01 FB EB D6 ..9.v.........=............. 007FFEAC 4C 41 52 43 48 49 56 45 FF FF FF FF FF FF FF FF FF FF FF FF FF 00 00 00 00 00 00 00 LARCHIVE.................... 007FFEC8 00 00 00 00 00 00 00 00 FF FF 00 00 00 00 00 00 00 00 00 00 00 00 00 00 63 6D 6F 73 ........................cmos 007FFEE4 2E 64 65 66 61 75 6C 74 00 66 61 6C 6C 62 61 63 6B 2F 72 6F 6D 73 74 61 67 65 00 00 .default.fallback/romstage.. 007FFF00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ............................ 007FFF1C 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ............................ 007FFF38 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 34 2E 30 2D ........................4.0- 007FFF54 32 34 32 31 2D 67 32 30 36 63 38 39 30 00 41 53 52 4F 43 4B 00 45 33 35 30 4D 31 00 2421-g206c890.ASROCK.E350M1. 007FFF70 B0 00 00 00 9E 00 00 00 97 00 00 00 00 00 80 00 00 00 00 00 00 00 00 00 00 00 00 00 ............................ 007FFF8C 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ............................ 007FFFA8 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ............................ 007FFFC4 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ............................ 007FFFE0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 E9 05 FB FF FF 00 00 00 E9 67 FB FF .........................g.. 007FFFFC D8 FA FF FF ....
So just `dd`ing the first 4 MB to another image does not seem the way to go. Can you give me a fool proof way to get that 8 MB image converted to 4 MB? That would be awesome.
Thanks,
Paul
Am 08.06.2012 11:30, schrieb Paul Menzel:
fallback/romstage 0x3a300 stage 339852
Looking at the contents the empty area is also at the end besides the following section at the very end.
The problem is that the romstage resides in a rather low position - it is hard coded to its absolute position in ROM.
Patrick