<div dir="ltr"><div><div>when i see filo.elf with readelf -a :<br><br>ELF Header:<br> Magic: 7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00 <br> Class: ELF32<br> Data: 2's complement, little endian<br> Version: 1 (current)<br> OS/ABI: UNIX - System V<br> ABI Version: 0<br> Type: EXEC (Executable file)<br> Machine: Intel 80386<br> Version: 0x1<br> Entry point address: 0x100000<br> Start of program headers: 52 (bytes into file)<br> Start of section headers: 1255408 (bytes into file)<br> Flags: 0x0<br> Size of this header: 52 (bytes)<br> Size of program headers: 32 (bytes)<br> Number of program headers: 1<br> Size of section headers: 40 (bytes)<br> Number of section headers: 10<br> Section header string table index: 9<br><br>Section Headers:<br> [Nr] Name Type Addr Off Size ES Flg Lk Inf Al<br> [ 0] NULL 00000000 000000 000000 00 0 0 0<br> [ 1] .text PROGBITS 00100000 100000 01e416 00 AX 0 0 16<br> [ 2] .boot PROGBITS 0011e418 11e418 000064 00 AX 0 0 4<br> [ 3] .rodata PROGBITS 0011e480 11e480 0047f7 00 A 0 0 32<br> [ 4] .eh_frame PROGBITS 00122c78 122c78 00d144 00 A 0 0 4<br> [ 5] .data PROGBITS 0012fdc0 12fdc0 002980 00 WA 0 0 32<br> [ 6] .hdr.mb PROGBITS 00132740 132740 00000c 00 WA 0 0 4<br> [ 7] .initctx PROGBITS 00132760 132760 000048 00 WA 0 0 32<br> [ 8] .bss NOBITS 001327c0 1327a8 041920 00 WA 0 0 32<br> [ 9] .shstrtab STRTAB 00000000 1327a8 000045 00 0 0 1<br>Key to Flags:<br> W (write), A (alloc), X (execute), M (merge), S (strings)<br> I (info), L (link order), G (group), T (TLS), E (exclude), x (unknown)<br> O (extra OS processing required) o (OS specific), p (processor specific)<br><br>There are no section groups in this file.<br><br>Program Headers:<br> Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align<br> LOAD 0x000000 0x00000000 0x00000000 0x1327a8 0x1740e0 RWE 0x200000<br><br> Section to Segment mapping:<br> Segment Sections...<br> 00 .text .boot .rodata .eh_frame .data .hdr.mb .initctx .bss <br><br>There is no dynamic section in this file.<br><br>There are no relocations in this file.<br><br>The decoding of unwind sections for machine type Intel 80386 is not currently supported.<br><br>No version information found in this file.<br><br><br></div>readelf -a seabios:<br><br>ELF Header:<br> Magic: 7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00 <br> Class: ELF32<br> Data: 2's complement, little endian<br> Version: 1 (current)<br> OS/ABI: UNIX - System V<br> ABI Version: 0<br> Type: EXEC (Executable file)<br> Machine: Intel 80386<br> Version: 0x1<br> Entry point address: 0xff06e<br> Start of program headers: 52 (bytes into file)<br> Start of section headers: 114388 (bytes into file)<br> Flags: 0x0<br> Size of this header: 52 (bytes)<br> Size of program headers: 32 (bytes)<br> Number of program headers: 1<br> Size of section headers: 40 (bytes)<br> Number of section headers: 3<br> Section header string table index: 2<br><br>Section Headers:<br> [Nr] Name Type Addr Off Size ES Flg Lk Inf Al<br> [ 0] NULL 00000000 000000 000000 00 0 0 0<br> [ 1] .text PROGBITS 000e41a0 000060 01be60 00 WAX 0 0 32<br> [ 2] .shstrtab STRTAB 00000000 01bec0 000011 00 0 0 1<br>Key to Flags:<br> W (write), A (alloc), X (execute), M (merge), S (strings)<br> I (info), L (link order), G (group), T (TLS), E (exclude), x (unknown)<br> O (extra OS processing required) o (OS specific), p (processor specific)<br><br>There are no section groups in this file.<br><br>Program Headers:<br> Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align<br> LOAD 0x000060 0x000e41a0 0x000e41a0 0x1be60 0x1be60 RWE 0x20<br><br> Section to Segment mapping:<br> Segment Sections...<br> 00 .text <br><br>There is no dynamic section in this file.<br><br>There are no relocations in this file.<br><br>The decoding of unwind sections for machine type Intel 80386 is not currently supported.<br><br>No version information found in this file.<br><br><br><br><br></div>when i use seabios as payload :<br><br>Loading segment from ROM address 0xfff1c5f8<br> code (compression=1)<br> New segment dstaddr 0xe41a0 memsize 0x1be60 srcaddr 0xfff1c630 filesize 0xe6bb<br>Loading segment from ROM address 0xfff1c614<br> Entry Point 0x000ff06e<br>Payload being loaded at below 1MiB without region being marked as RAM usable.<br>Bounce Buffer at 7cbf8000, 397312 bytes<br>Loading Segment: addr: 0x00000000000e41a0 memsz: 0x000000000001be60 filesz: 0x000000000000e6bb<br>lb: [0x0000000000100000, 0x0000000000130800)<br>Post relocation: addr: 0x00000000000e41a0 memsz: 0x000000000001be60 filesz: 0x000000000000e6bb<br>using LZMA<br>[ 0x000e41a0, 00100000, 0x00100000) <- fff1c630<br>dest 000e41a0, end 00100000, bouncebuffer 7cbf8000<br>Loaded segments<br>Calling FspNotify(0x00000040)<br>POST: 0x95<br>src/soc/intel/braswell/southcluster.c/finalize_chipset ( 0x00000000 )<br>Finalizing SMM.<br>BS: BS_PAYLOAD_LOAD times (us): entry 0 run 105509 exit 28406<br>POST: 0x7b<br>Jumping to boot code at 000ff06e(7cc8e000)<br>POST: 0xf8<br>CPU0: stack: 00127000 - 00128000, lowest used address 00127a70, stack used: 1424 bytes<br>entry = 0x000ff06e<br>lb_start = 0x00100000<br>lb_size = 0x00030800<br>buffer = 0x7cbf8000<br>SeaBIOS (version rel-1.9.3-0-ge2fc41e)<br><br><br><div>for seabios New segment dstaddr 0xe41a0 memsize 0x1be60 srcaddr 0xfff1c630 filesize 0xe6bb<br> and filo New segment dstaddr 0x0 memsize 0x1740e0 srcaddr 0xfff1c630 filesize 0x179c3</div><div> <br><div><br>why dstaddr 0x0 for filo ? how to change ...<br><br><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-03-03 10:38 GMT+01:00 sebastien basset <span dir="ltr"><<a href="mailto:sbhome1@gmail.com" target="_blank">sbhome1@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi all,<br><br>- i use this config:<br><br> 582 CONFIG_PAYLOAD_FILO=y<br> 589 CONFIG_FILO_MASTER=y<br> 590 CONFIG_PAYLOAD_FILE="payloads/<wbr>external/FILO/filo/build/filo.<wbr>elf"<br> 591 CONFIG_PAYLOAD_OPTIONS=""<br><br>My logs:<br><br>BS: BS_WRITE_TABLES times (us): entry 166670 run 767112 exit 0<br>POST: 0x7a<br>CBFS: 'Master Header Locator' located CBFS at [700100:7fffc0)<br>CBFS: Locating 'fallback/payload'<br>CBFS: Found @ offset 1c4c0 size 179fb<br>Loading segment from ROM address 0xfff1c5f8<br> code (compression=1)<br> New segment dstaddr 0x0 memsize 0x1740e0 srcaddr 0xfff1c630 filesize 0x179c3<br>Loading segment from ROM address 0xfff1c614<br> Entry Point 0x00100000<br>SELF Payload doesn't target RAM:<br>Failed Segment: 0x0, 1523936 bytes<br> 0. 0000000000000000-<wbr>0000000000000fff: CONFIGURATION TABLES<br> 1. 0000000000001000-<wbr>000000000009ffff: RAM<br> 2. 00000000000a0000-<wbr>00000000000fffff: RESERVED<br> 3. 0000000000100000-<wbr>000000007cc58fff: RAM<br> 4. 000000007cc59000-<wbr>000000007cffffff: CONFIGURATION TABLES<br> 5. 000000007d000000-<wbr>000000007fffffff: RESERVED<br> 6. 00000000e0000000-<wbr>00000000efffffff: RESERVED<br> 7. 00000000fea00000-<wbr>00000000febfffff: RESERVED<br> 8. 00000000fed01000-<wbr>00000000fed01fff: RESERVED<br> 9. 00000000fed03000-<wbr>00000000fed03fff: RESERVED<br>10. 00000000fed06000-<wbr>00000000fed06fff: RESERVED<br>11. 00000000fed08000-<wbr>00000000fed08fff: RESERVED<br>12. 00000000fed1c000-<wbr>00000000fed1cfff: RESERVED<br>13. 00000000fed80000-<wbr>00000000fed83fff: RESERVED<br>Payload not loaded.<br clear="all"><br></div>Filo can't loading in ram memory at @ 0x0, can you change this address ? How to?<span class="HOEnZb"><font color="#888888"><br><div><br><br>-- <br><div class="m_2651726871688383642gmail_signature">Sébastien Basset</div>
</div></font></span></div>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Sébastien Basset</div>
</div>