Get Memory Mapping Parameters With memmap Module

Last modified by Microchip on 2026/08/17 12:16

After booting the Linux® system, you can load the memmap module, which will output the memory mapping parameters to the console. This module is only used with the Manually Save and Load Snapshot Image mode.

Get mem_map information with the mem_map module.

Here are the steps to get runtime memory map information on the target board.

You can send modules via console input or from a USB flash drive.

 
First, send the mem_map_module.ko with ZMODEM. Type “lrz”.

# lrz
lrz waiting to receive.**B0100000023be50

Next, select File > Transfer > ZMODEM > Send from the menu as shown in the accompanying image:

COM7 File menu expanded

Then, select the mem_map_module.ko file under the mem_map folder. Run the module with the command as shown:

# insmod -f mem_map_module.ko

mem_map_module.ko command in terminal


Make a note of these parameters, as they will be required for Ultra-Fast Boot configuration in at91bootstrap. (See the "Configure Ultra-Fast Boot in at91bootstrap KCONFIG" page for more details.)

  • Start virtual address of kernel Page structures: c0d87a68
  • Maximum Number of Mapped Pages: 0x10000
  • Size of Page Structure: 0x20
  • Offset of page_type in Page structure: 0x18
  • Offset of private in Page structure: 0x14

Back to Top