Note that there are some explanatory texts on larger screens.

plurals
  1. POHow do we Load Linux Image to appropiate location in Memory
    primarykey
    data
    text
    <p>We are trying to load a linux image into our DRAM at a specific location ,DRAM end address is 0x80000000 which we come to know from boot log which says "mem device ending address is 0x80000000".We are loading our image at address "0x5000000" and before that variuos section in image getting loaded at some address which is greater than "0x80000000",for eaxmple again from boot logs </p> <pre><code> loading section to address 0xc5000000 from file position 0x1000, size is 0x5ac13e </code></pre> <p>Whats meaning of "from file position 0x1000" in above line.</p> <p>first section that loaded is .text section ,below is our vmlinux image dump of section header</p> <pre><code>[Nr] Name Type Addr Off Size ES Flg Lk Inf Al [ 0] NULL 00000000 000000 000000 00 0 0 0 [ 1] .text PROGBITS c5000000 001000 5ac13e 00 AX 0 0 4096 [ 2] .notes NOTE c55ac140 5ad140 000168 00 AX 0 0 4 [ 3] __ex_table PROGBITS c55ac2b0 5ad2b0 000fe0 00 A 0 0 4 [ 4] .rodata PROGBITS c55ae000 5af000 20a930 00 A 0 0 64 [ 5] __bug_table PROGBITS c57b8930 7b9930 0075fc 00 A 0 0 1 [ 6] .pci_fixup PROGBITS c57bff2c 7c0f2c 001a90 00 A 0 0 4 [ 7] .builtin_fw PROGBITS c57c19bc 7c29bc 0000cc 00 A 0 0 4 </code></pre> <p>Its quite a big list, so didn't post full .But one thing we can see here .text section is greater than DRAM end address ,so image should not be loded properly though we are not getting any error after loading first section it keeps on loading other sections but after this message it hangs.</p> <pre><code> program load complete, entry point: 0x5000000, size: 0x92e7fc </code></pre> <p>My question is how can I align these different sections address to our DRAM address, Is objcopy utility could be used here to change address of these Different sections.</p> <p>Is there any way to set these section addresses before compilation?? Second thing what could be reason for this Hang afer program load complete. </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.
 

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