PetaLinux Configuration

PetaLinux have four main areas of configurations. Together they define a complete platform configration. The four areas include

  • Vendor / Product Settings
  • Kernel Settings
  • Vendor / User Settings
  • System Settings

Within this section, only a subset of the above listed configurations is used. The user can refer to the Customizing PetaLinux Section for more information.

Start the Configuration Menu

On the command prompt, change into the $PETALINUX/software/petalinux-dist directory. Use one of the four main kernel configuration methods to start the configuration menu.

$ cd $PETALINUX/software/petalinux-dist
$ make menuconfig

The Kernel/Library/Defaults Menu

In the main menu select the Kernel/Library/Defaults Selection submenu.

  ┌──────────────────────────────── Main Menu ────────────────────────────────┐
  │  Arrow keys navigate the menu.  <Enter> selects submenus --->.            │
  │  Highlighted letters are hotkeys.  Pressing <Y> includes, <N> excludes,   │
  │  <M> modularizes features.  Press <Esc><Esc> to exit, <?> for Help.       │
  │  Legend: [*] built-in  [ ] excluded  <M> module  < > module capable       │
  │ ┌───────────────────────────────────────────────────────────────────────┐ │
  │ │               Vendor/Product Selection  --->                          │ │
  │ │               Kernel/Library/Defaults Selection  --->                 │ │
  │ │               ---                                                     │ │
  │ │               Load an Alternate Configuration File                    │ │
  │ │               Save Configuration to an Alternate File                 │ │
  │ │                                                                       │ │
  │ │                                                                       │ │
  │ │                                                                       │ │
  │ │                                                                       │ │
  │ │                                                                       │ │
  │ │                                                                       │ │
  │ └───────────────────────────────────────────────────────────────────────┘ │
  ├───────────────────────────────────────────────────────────────────────────┤
  │                     <Select>    < Exit >    < Help >                      │
  └───────────────────────────────────────────────────────────────────────────┘

Configuring Linux Kernel Settings

It is not required to configure the kernel as the default configurations for the platform is selected in the previous section.

Configuring Vendor / User Settings

In the Kernel/Library/Defaults Selection menu, select the Customize Vendor/User Settings submenu.

  ┌─────────────────── Kernel/Library/Defaults Selection ───────────────────
  │  Arrow keys navigate the menu.  <Enter> selects submenus --->.          │
  │  Highlighted letters are hotkeys.  Pressing <Y> includes, <N> excludes, │
  │  <M> modularizes features.  Press <Esc><Esc> to exit, <?> for Help.     │
  │  Legend: [*] built-in  [ ] excluded  <M> module  < > module capable     │
  │ ┌─────────────────────────────────────────────────────────────────────┐ │
  │ │             (linux-2.6.x) Kernel Version                            │ │
  │ │             (None) Libc Version                                     │ │
  │ │             [ ] Default all settings (lose changes)                 │ │
  │ │             [ ] Customize Kernel Settings                           │ │
  │ │             [*] Customize Vendor/User Settings (NEW)                │ │
  │ │             [ ] Update Default Vendor Settings                      │ │
  │ │                                                                     │ │
  │ └─────────────────────────────────────────────────────────────────────┘ │
  ├─────────────────────────────────────────────────────────────────────────┤
  │                    <Select>    < Exit >    < Help >                     │
  └─────────────────────────────────────────────────────────────────────────┘

Save and exit the configuration menu.

  ┌──────────────────────────────────────────────────────────┐
  │   Do you wish to save your new kernel configuration?     │
  ├──────────────────────────────────────────────────────────┤
  │                 < (Yes) >      <  No  >                  │
  └──────────────────────────────────────────────────────────┘

The Customize Vendor/User Settings menu should appear as per the below example. Select the System Settings submenu.

  ┌──────────────────────────────── Main Menu ────────────────────────────────┐
  │  Arrow keys navigate the menu.  <Enter> selects submenus --->.            │
  │  Highlighted letters are hotkeys.  Pressing <Y> includes, <N> excludes,   │
  │  <M> modularizes features.  Press <Esc><Esc> to exit, <?> for Help.       │
  │  Legend: [*] built-in  [ ] excluded  <M> module  < > module capable       │
  │ ┌───────────────────────────────────────────────────────────────────────┐ │
  │ │               System Settings  --->                                   │ │
  │ │               Core Applications  --->                                 │ │
  │ │               Library Configuration  --->                             │ │
  │ │               Flash Tools  --->                                       │ │
  │ │               Filesystem Applications  --->                           │ │
  │ │               Network Applications  --->                              │ │
  │ │               Miscellaneous Applications  --->                        │ │
  │ │               BusyBox  --->                                           │ │
  │ │               Tinylogin  --->                                         │ │
  │ │               MicroWindows  --->                                      │ │
  │ │               Games  --->                                             │ │
  │ └───────────────┴(+)────────────────────────────────────────────────────┘ │
  ├───────────────────────────────────────────────────────────────────────────┤
  │                     <Select>    < Exit >    < Help >                      │
  └───────────────────────────────────────────────────────────────────────────┘

System Settings

The following example shows the steps to configure the System Settings.

  ┌───────────────────────────── System Settings ─────────────────────────────┐
  │  Arrow keys navigate the menu.  <Enter> selects submenus --->.            │
  │  Highlighted letters are hotkeys.  Pressing <Y> includes, <N> excludes,   │
  │  <M> modularizes features.  Press <Esc><Esc> to exit, <?> for Help.       │
  │  Legend: [*] built-in  [ ] excluded  <M> module  < > module capable       │
  │ ┌───────────────────────────────────────────────────────────────────────┐ │
  │ │                 Network Addresses  --->                               │ │
  │ │                      Default host name: "uclinux"                     │ │
  │ │                      Default root password: "root"                    │ │
  │ │                 (CRAMFS) Root filesystem type                         │ │
  │ │                 [ ] Copy final image to tftpboot                      │ │
  │ │                 [ ] Build u-boot                                      │ │
  │ │                 Flash Partition Table  --->                           │ │
  │ │                                                                       │ │
  │ │                                                                       │ │
  │ │                                                                       │ │
  │ │                                                                       │ │
  │ └───────────────────────────────────────────────────────────────────────┘ │
  ├───────────────────────────────────────────────────────────────────────────┤
  │                     <Select>    < Exit >    < Help >                      │
  └───────────────────────────────────────────────────────────────────────────┘

Network Addresses

Select the 'Network Addresses' submenu and set the Ethernet MAC address, IP Address and the Server IP address for your development environment. Refer to Network Addresses Section for detailed description of the options.

Default Host Name

Change the 'Default Host Name' to suit your target platform. Refer to Detault Host Name Section for detailed description of the options.

Default Root Password

Change the default root password for your target platform. Refer to Default Root Password Section for detailed description of the options.

Copy final image to tftpboot

Select the 'Copy final image to tftpboot' option and keep the default tftp directory to /tftpboot. Refer to Copy final image to tftpboot Section for detailed description of the options.

Build U-Boot

Select the 'Build U-Boot' option.

Flash Partition Table

Use this submenu to view and modify the flash partitions in your system.

Save and Exit

Save and exit all the menu.

  ┌──────────────────────────────────────────────────────────┐
  │   Do you wish to save your new kernel configuration?     │
  ├──────────────────────────────────────────────────────────┤
  │                 < (Yes) >      <  No  >                  │
  └──────────────────────────────────────────────────────────┘