CAT874_boot

DDR3L main memory (2Gbyte)

4000_0000  start
C000_0000  end

boot stage

Boot stageException levelDescription
BL1EL3Trusted bootstrap; cold/warm boot detection
BL2EL1STrusted bootloader
BL31EL3Resident runtime firmware
BL32EL1S[Optional] Trusted operating system
BL33EL2Normal world bootloader

source

BL2, BL31

$ bitbake arm-trusted-firmware
source
    build/tmp/work/ek874-poky-linux/arm-trusted-firmware/v1.5+renesas+gitAUTOINC+236f8fbb57-r0/git

binary
    build/tmp/deploy/images/ek874
        bl2-ek874.srec
        bl31-ek874.srec
        bootparam_sa0.srec
        cert_header_sa6.srec

u-boot

$ bitbake u-boot
source
    build/tmp/work/ek874-poky-linux/u-boot/1_v2018.09+gitAUTOINC+d2e3e367b6-r0/git

binary
    build/tmp/deploy/images/ek874
        u-boot-elf-ek874.srec

memory map

BL2

NameSizeLMAFile off
ro0000c000e630400000004000
.data000000dce631000000010000
stacks00001000e6310100000100dc
.bss00000574e6311100000100dc
coherent_ram00000000e631200000011000

BL31

start address 0x44000000    (size 0x4000)

Program Header:
    LOAD off    0x00010000 vaddr 0x44000000 paddr 0x44000000 align 2**16
         filesz 0x000080b0 memsz 0x00011000 flags rwx
   STACK off    0x00000000 vaddr 0x00000000 paddr 0x00000000 align 2**4
         filesz 0x00000000 memsz 0x00000000 flags rw-
private flags = 0:

Sections:
Idx Name          Size      VMA       LMA               File off  Algn
  0 ro            00000480  44000000  44000000  00010000  2**3
  1 .             00007800  44000800  44000800  00010800  2**11
  2 .data         00000080  44008000  44008000  00018000  2**3
  3 data          00000030  44008080  44008080  00018080  2**3
  4 stacks        00002000  440080c0  440080c0  000180b0  2**6
  5 .bss          00001814  4400a0c0  4400a0c0  000180b0  2**6
  6 xlat_table    00004000  4400c000  4400c000  000180b0  2**12
  7 coherent_ram  00001000  44010000  44010000  000180b0  2**12
  8 .comment      0000002d  00000000  00000000  000180b0  2**0
  9 .debug_frame  000010c8  00000000  00000000  000180e0  2**3

u-boot

4000_0000  main memory start
              first 128MB is reserved for secure area(BL2, BL31)
4800_0000  dtb load address
4808_0000  Image load address

5000_0000  u-boot load address
C000_0000

kernel load

u-boot kernel load cmd

setenv bootcmd 'fatload mmc 0:1 0x4a000000 Image.gz; unzip 0x4a000000 0x48080000; fatload mmc 0:1 0x48000000 Image-r8a774c0-ek874.dtb; booti 0x48080000 - 0x48000000'

setenv bootargs 'root=/dev/mmcblk0p2 rootwait ro'

関連