Documentation:Linux/SetupAccessToDevcies

From AVRFreaks Wiki

Jump to: navigation, search

Contents

[edit] Introduction

Devices must be initialised before they can be used. Devices are intialised by the kernel and the kernel is configured by the "setup.c" file. Each board has its own separate "setup.c" file.

The following information is based on the file and directory structure of Buildroot-2.3.0.

[edit] Peripherals

The peripherals that found in the AP7000 and supported by Linux are found in the following file:

 buildroot-avr32-vX.X.X/toolchain_build_avr32/linux-2.6.XX.X/arch/avr32/mach-at32ap/at32ap7000.c

[edit] Board specific configuration

Buildroot maintains a separate configuration for each board that it supports. A separate set of configuration files exists for each version of the kernel you have made.

The board-specific configuration files can be found at:

 buildroot-avr32-v2.x.x/project_build_avr32/{project_name}/linux-2.6.xx.x/arch/avr32/boards/

For example the configuration files for the NGW100 board, created using buildroot v2.3.0 and configured for a 2.6.27.6 kernel, for a Buildroot project called atngw100 are located at the following address:

 buildroot-avr32-v2.3.0/project_build_avr32/atngw100/linux-2.6.27.6/arch/avr32/boards/atngw100

[edit] Documentation

Each kernel includes human-readable documentation for each of the peripheral it supports. The relevant documentation can be found at:

 buildroot-avr32-vX.X.X/toolchain_build_avr32/linux-2.6.XX.X/Documentation

For example the documentation which accompanies the 2.6.27.6 kernel supported by Buildroot 2.3.0 is found at:

 buildroot-avr32-v2.3.0/toolchain_build_avr32/linux-2.6.27.6/Documentation
Personal tools