Professional Documents
Culture Documents
6 LH7A40x BSP
Date 10/23/2009
Table of contents
1 Introduction......................................................................................................................................... 5 1.1 1.2 Copyrights and limitations .......................................................................................................... 5 Where to start .............................................................................................................................. 5
1.3 Required hardware and software ................................................................................................ 5 1.3.1 Host system requirements....................................................................................................... 5 1.3.2 Target board requirements ...................................................................................................... 6 1.4 2 About this document .................................................................................................................... 6
2.2 BSP information .......................................................................................................................... 7 2.2.1 LTIB integration ..................................................................................................................... 7 2.2.2 Apex 1.6.8 .............................................................................................................................. 7 2.2.3 Linux 2.6.29.6......................................................................................................................... 8 3 Building your Linux system ............................................................................................................... 9 3.1 Downloading and installing LTIB ............................................................................................... 9
3.2 Configuring LTIB ........................................................................................................................ 9 3.2.1 First time running LTIB.......................................................................................................... 9 3.2.2 LTIB options ........................................................................................................................ 10 3.2.3 LTIB build cycle................................................................................................................... 11 3.2.4 Re-building the system ......................................................................................................... 11 3.2.5 More on LTIB....................................................................................................................... 11 4 Linux deployment methods .............................................................................................................. 12 4.1 Load and install Apex on the board........................................................................................... 12 4.1.1 Booting Apex from a Compact Flash card ........................................................................... 13 4.1.2 Booting Apex from a TFT server over the network.............................................................. 13 4.1.3 Booting Apex from a NOR FLASH ..................................................................................... 13 4.2 Booting the Linux kernel ........................................................................................................... 13 4.2.1 Kernel command line............................................................................................................ 13 4.2.2 Automating Apex boot ......................................................................................................... 14 4.2.3 NFS mounted root filesystem ............................................................................................... 14 4.2.4 EXT2 mounted root filesystem............................................................................................. 14 5 Additional information..................................................................................................................... 15 5.1 Getting the BSP files.................................................................................................................. 15 5.1.1 Where to get the Linux Apex and kernel patches ................................................................. 15 5.1.2 LTIB and GCC toolchain compatibility and dependency issues .......................................... 15 5.1.3 Known issues........................................................................................................................ 15 5.1.4 TFTP and NFS help.............................................................................................................. 15 5.1.5 ALSA device support ........................................................................................................... 16 5.1.6 Compact Flash (IDE) support............................................................................................... 16 5.1.7 Other links ............................................................................................................................ 17
2008-2009 NXP Semiconductors. All rights reserved.
1 Introduction
This document details the Linux 2.6.29.6 BSP for the NXP LH7A40x SoC (System on Chip). The BSP provides a complete Linux port for the Logic PD LPD7A404 platform using the LH7A404 MCU, but can be easily ported to other platforms. This document covers many aspects of the Linux and the Linux operating system. Some of the areas covered include: System and target board setup on the Logic PD LH7A40x board Using LTIB to build a complete Linux system Deployment methods for the target board
2 BSP overview
This section gives a brief overview of the BSP contents, features, and supported peripherals. This BSP has been developed to support Linux kernel 2.6.29.6. The term BSP refers to the files specific to the LH7A40x Linux port. These include the kernel and u-boot patch file(s), pre-built GCC toolchain, and necessary LTIB files to build a Linux distribution. Note that most of the drivers and architecture files for the LH7A40x SoC are part of the Linux mainline. Developers are welcome to use their own toolchains or develop a Linux system without using LTIB.
The next time you LTIB, the LTIB configuration menu will not show up and the build process will start again with the previously saved options. You can show the menu again with the LTIB config option.
10
11
12
13
NXP Linux 2.6 LH7A40x BSP The cmdline environment variable in Apex is used to setup the kernel command line parameter. The following is an example of how it is setup in Apex. apex>setenv cmdline console=ttyAM1,115200n81 rw root=/dev/hdc1 ip=dhcp For most setups, the default initial console will be on ttyAM1, but the mount point for the root filesystem may be located on an EXT2 partition of the Compact Flash card or over the network using NFS.
14
5 Additional information
5.1 Getting the BSP files
5.1.1 Where to get the Linux Apex and kernel patches
A comprehensive patch that contains all the necessary support and updates to the 2.6.29.6 kernel can be downloaded from NXPs website.
15
16
NXP Linux 2.6 LH7A40x BSP 5 /dev/console 5 /dev/ptmx 7 vcs 10 misc 13 input 14 sound 29 fb 90 mtd 116 alsa 128 ptm 136 pts 180 usb 189 usb_device 204 ttyAM 254 usb_endpoint Block devices: 3 ide0 259 blkext 7 loop 22 ide1 31 mtdblock [root@nxp snd]#cd /dev [root@nxp snd]#mknod hdc b 22 0 [root@nxp snd]#mknod hdc1 b 22 1 [root@nxp snd]#mknod hdc2 b 22 2
17
NXP Linux 2.6 LH7A40x BSP https://savannah.nongnu.org/projects/ltib Link to the GPP used for the LTIB package pool http://www.bitshrine.org/
18