ECE 320 · Week 4

Modern Computer: Embedded Systems

A load address, and why the kernel and the device tree do not share one.

Week 4 of 10 · Das Frite

ECE 320 · Week 4 · In class

A load address, and why the kernel and the device tree do not share one.

ECE 320 · Week 4 · In class

The lab stops at the stock bootloader prompt, loads the two images by hand, and draws the two addresses.

ECE 320 · Week 4 · Lecture

An image has an address and a size

ECE 320 · Week 4 · Lecture

Drawing a load map

RegionStarts atEnds before
Kernel imageKK + kernel size, plus room it needs at run time
Device treeDD + device-tree size, plus room to grow
Bootloader itselfwherever it moved itself, often near the top of DRAM

Draw each image as a bar on one address axis. Two bars must never touch.

ECE 320 · Week 4 · Lecture

Why the file size is not the whole story

ECE 320 · Week 4 · Lecture

What this lab leaves alone

ECE 320 · Week 4 · Lab

Lab

  1. Stop at the stock bootloader prompt. Load the kernel and the device tree by hand and boot them.
  2. Draw the load address of each image. Do not change the memory clock and do not rebuild. Second pass: stop at the prompt again and read the two addresses back without booting.

ECE 320 · Week 4 · Lab

Lab (continued)

  1. Assemble the lab hand-in: The command transcript that loaded the kernel and the device tree by hand from the stock bootloader prompt, and a memory map of those load addresses.

ECE 320 · Week 4 · Lab

Hand in

The command transcript that loaded the kernel and the device tree by hand from the stock bootloader prompt, and a memory map of those load addresses.

ECE 320 · Week 4 · Homework

Homework

ECE 320 · Week 4 · Homework

Turn in

A paragraph defining a load address and why the two images do not share one.

ECE 320 · Week 4 · Read

Read

On the lab site: Module 5, Memory bring-up, and Module 6, Software in DRAM. This week grades the hand-boot transcript and the load map.

ECE 320 · Week 4 · Next

Week 5

An EFI boot entry: what it names, and what it does not set.

Arrow keys or space to move, F for full screen, N for speaker notes, Home and End for the first and last slide. Print gives one slide per page.