Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>What loader do you use? What is the form of the "image"? U-boot image, raw one, vmlinux ELF file? I guess the last one judging by the existence of sections, etc. From ELF file you should load not sections but rather so called program headers. For example this is the OpenRISC linux kernel program headers listing (obtained using <code>readelf -l</code>):</p> <pre><code>Elf file type is EXEC (Executable file) Entry point 0xc0000000 There are 2 program headers, starting at offset 52 Program Headers: Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align LOAD 0x002000 0xc0000000 0x00000000 0x231728 0x232000 RWE 0x2000 LOAD 0x234000 0xc0232000 0x00232000 0x17c78c 0x18bfcc RWE 0x2000 Section to Segment mapping: Segment Sections... 00 .text .rodata __ksymtab __ksymtab_gpl __ksymtab_strings __param __modver 01 .data __ex_table .head.text .init.text .init.data .bss </code></pre> <p>See the difference between <code>VirtAddr</code> and <code>PhysAddr</code> (dropped <code>c</code> due to usual Linux kernel mapping). Naturally, the physical address should be used for loading.</p> <p>The reason kernel is using virtual addresses for symbols, sections etc is that during boot you quickly enter the moment when the MMU is initialized, the virtual addresses are then the only valid ones.</p> <p>And finally, about changing those addresses. Indeed, as pointed by Alexey, linker script is the key. You can find these in <code>arch/(your arch)/kernel/vmlinux.lds.S</code>. But the point is this is IMO not your problem, the problem lies probably in the loader or its options.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload