Subsystem AUTO Hardware Settings - 2024.2 English

PetaLinux Tools Documentation: Reference Guide (UG1144)

Document ID
UG1144
Release Date
2024-11-13
Version
2024.2 English

The Subsystem AUTO Hardware settings menu allows you to customize how the Linux system interacts with the underlying hardware platform.

Figure 1. Subsystem AUTO Hardware Settings Generated by Your Tool

System Processor

The System processor menu specifies the CPU processor on which the system runs.

Memory Settings

The memory settings menu allows you to:

  • Select which memory IP is the primary system memory
  • Set the system memory base address
  • Set the size of the system memory
  • Set the U-Boot text base address offset to a memory high address

The configuration in this menu impacts the memory settings in the device tree and U-Boot automatic configuration (autoconfig) files.

If manual is selected as the primary memory, you are responsible for ensuring proper memory settings for the system.

Serial Settings

The Serial Settings submenu allows you to select which serial device is the system’s primary STDIN/STDOUT interface. If manual is selected as the primary serial, you are responsible for ensuring proper serial interface settings for the system.

Configure PetaLinux project with CoreSight dcc/Arm dcc:

To enable CoreSight dcc options go to petalinux-config > Auto hardware settings > serial settings > select the coresight(dcc)

Generated by Your Tool

To configure kernel use Petalinux-config -c kernel > ARM JTAG DCC Console

Generated by Your Tool
petalinux-build
petalinux-package  boot --uboot
petalinux-boot  --jtag --kernel --rootfs images/linux/rootfs.cpio.gz.u-boot --hw_server-url < board name>

Note: CoreSight/dcc ip is supported only on Arm based processors like FSBL, TF-A, U-BOOT, and LINUX.

Ethernet Settings

The Ethernet Settings submenu allows you to:

  • Select which Ethernet is the systems’ primary Ethernet
  • Select to randomize MAC address
  • Set the MAC address of the selected primary Ethernet. By default, the address is set to ff:ff:ff:ff:ff:ff invalid mac.

If a MAC address is programmed into the EEPROM and you want to use EEPROM mac, due to the previous invalid MAC address, it reads from the EEPROM if there is no ENV MAC from U-Boot. If no MAC address is configured in the EEPROM, the U-Bootgenerates a random MAC address if mac address is not defined from the U-Boot environment.

The order in which the U-Boot picks the MAC address is as follows. Refer to the U-Boot documentation for commands to program EEPROM and to configure for the same.

  • The MAC address from the U-Boot environment has the highest priority.
  • The MAC address from the device tree has the next highest priority. Anything configured in the petalinux-config > Subsystem > Auto Hardware Settings > Ethernet Settings > MAC address goes to the device tree.
  • If there is no MAC address in the device tree or invalid mac address(ff:ff:ff:ff:ff:ff), it checks in EEPROM.
  • If there is no MAC address in the EEPROM, it generates a random MAC address.
  • Set whether to use DHCP or static IP on the primary Ethernet.

If manual is selected as the primary Ethernet, you are responsible for ensuring proper Ethernet settings for the system.

Netmask address changes for sysvinit and systemd

  • Set the static IP from petalinux-config → Subsystem Auto Hardware Settings → Ethernet Settings. By default, obtain IP address is enabled. Disable it to set the static IP address. By default Static IP netmask address in 255.255.255.0, Edit/Specify netmask address accordingly.
  • In case of sysvinit /etc/network/interfaces file is invoked, it generates with netmask address in dot-decimal notation for example, 255.255.255.0, dot-decimal notation format is supported.
    address 192.168.0.10
       netmask 255.255.255.0
  • In case of systemd wired.network file is invoked, it is generated with netmask address in CIDR notation for example, 24 CIDR notation format is supported.
    Address=192.168.0.10/24

Ethernet submask changes when static IP generation is enabled

Set the static IP from $ petalinux-config → Subsystem Auto Hardware Settings → Ethernet Settings.

Specify the netmask address accordingly.

Figure 2. Obtain IP Address Generated by Your Tool

In the case of sysvinit, /etc/network/interfaces file is invoked, and 255.255.255.0 netmask address is supported.

Figure 3. Static IP netmask Generated by Your Tool

In the case of systemd, specify the address (255.255.255.0)and calculate the bits. Pass netmask as bits (24) to the wired network.

System Architecture Menu

Menu configuration option to the know system architecture petalinux-config -> System Architecture based on the design is created. The system architecture menu is for user information.

Figure 4. System Architecture Menu Generated by Your Tool