Home

VX304x, VX3035, VM6050 & VM6052/54 « Release Notes

image

Contents

1. tt HELL MU i il 16 VM6050 amp VM6052 54 Release Notes Fedora on VX304x VX3035 ersion 3 4 ID 15111 SD DT G11 6e May 2015 o ra Preface Fedora 16 Release Notes Revision History Publication Title Fedora 16 Release Notes Doc ID SD DT G11 6e AG Brief Description of Changes Date of Issue New version 3 4 ID15111 05 2015 Updated chapters sections 2 Release Content 4 2 4 VM6052 VM6054 Board 6 5 SATA Hotplug 7 12 1 Almavme 742 2 Almavmechan New section 6 1 2 Udev Rule 7 13 Temperature Sensors Threshold and Alarm Report 7 1 4 Voltage Sensors Threshold and Alarm Report 7 12 3 VME IRQ Response Time Improvement 5e Section 8 1 How to manage the lack of RTC battery updated 02 2015 4e VM6052 VM6054 boards added 04 2014 3e Chapter 8 RC boards added 10 2013 Section 8 3 RC Specifications added 2e Chapters 8 and 9 added 08 2013 1e VX3035 and VM6050 boards added 06 2013 0e Initial Version 04 2013 Copyright 2015 Kontron AG All rights reserved All data is for information purposes only and not guaranteed for legal purposes Information has been carefully checked and is believed to be accurate however no responsibility is assumed for inaccuracies Kontron and the Kontron logo and all other trademarks or registered trademarks are the property of their respective owners and are recognized Specifications are subject to change without notice Pagei SD DT G11 6e
2. This routine returns the CPU physical address on success and 1 on failure The CPU physical address to be used by the Operating System or a user program can be mapped using the routine mmap This routine can be called from user space with the ioctl VMEIOCTL VME CHAN ALLOC alma vme channel free int alma vme channel free unsigned long address This is used by the VME driver to free a PCI VME channel allocated by alma vme channel alloc address is the pointer returned by alma vme channel alloc This routine returns O on success and SYSERR on failure It can be called from user space with the ioctl VMEIOCTL VME CHAN FREE alma cpuadr to vmeadr u32 alma cpuadr to vmeadr unsigned long address This returns the VME address that can be used to get at the given cpu physical address or 1 if not visible from the VME User Space Mapping Service ioctl fd VMEIOCTL PCI CHAN ALLOC 8A does alma pci channel alloc A pcichan name A pcichan vmeaddr A pcichan pciaddr A pcichan size A pcichan flag ioctl fd VMEIOCTL PCI CHAN FREE 8A calls alma pci channel free A index ioctl fd VMEIOCTL VME CHAN ALLOC 8A returns alma vme channel alloc A vmechan name A vmechan vmeaddr A vmechan size A vmec han flag ioctl fd VMEIOCTL VME CHAN FREE 8A calls alma vme channel free A addr For example from MasterSgl c char devName mychan alma ioctl vmechan name devName Name alma ioctl vmechan vmeaddr aBaseAddr VME Ph
3. 109 not 272 220 and 230 LIN N In PowerPC terminology multiple bit fields are numbered from O to n where O is the MSB and n is the LSB PCI and CompactPCI terminology follows the more familiar convention that bit 0 is the LSB and n is the MSB Signal names ending with an asterisk or a hash denote active low signals all other signals are active high Signal names follow the PICMG 2 0 R3 0 CompactPCI Specification and the PCI Local Bus 2 3 Specification For Your Safety Your new Kontron product was developed and tested carefully to provide all features necessary to ensure its compliance with electrical safety requirements It was also designed for a long fault free life However the life expectancy of your product can be drastically reduced by improper treatment during unpacking and installation Therefore in the interest of your own safety and of the correct operation of your new Kontron product you are requested to conform with the following guidelines High Voltage Safety Instructions Warning All operations on this device must be carried out by sufficiently skilled personnel only Caution Electric Shock Before installing a not hot swappable Kontron product into a system always ensure that your mains power is switched off This applies also to the installation of piggybacks Serious electrical shock hazards can exist during all installation repair and maintenance operations with this product Therefore always unpl
4. lt F12 gt next screen Select Skip if you do not want to verify the validity of the media At the end the following messages are displayed Running anaconda 14 22 the Fedora system installer please wait 19 01 12 Starting VNC 19 01 14 The VNC server is now running 19 01 14 WARNING VNC server running with NO PASSWORD You can use the vncpassword lt password gt boot option if you would like to secure the server 19 01 14 Please manually connect your vnc client to 172 20 144 95 1 to begin the install Press lt enter gt for a shell 19 01 18 Starting graphical installation Then on a workstation launch a VNC client to connect to the server running on the board In the example above the VNC server is 172 20 144 95 1 Then continue the installation process On a Fedora workstation you can use the TigerVNC Viewer VNC client supplied with the distribution IN can be launched from menu Application Internet N SD DT G11 6e Page 15 Installation Fedora 16 Release Notes 5 1 2 Fedora 16 Installation on Ki7 Boards This section describes the installation procedure from a USB DVD ROM drive There is no major difference between the installation on the Ki7 boards and the standard Fedora 16 installation so refer to the Fedora documentation to get more details on all the Fedora installation menus Nevertheless the Ki7 boards are a graphic board so the installation may be done in graphic mode or in text mode on the s
5. HDD SATA device There are 2 USB ports available one on the front panel and the other one on the RTM board if an RTM is available So in order to use a USB keyboard and a USB mouse plus a USB DVD ROM a USB HUB is N required Page 10 SD DT G11 6e Fedora 16 Release Notes Required Configuration 4 4 5 DVD ROM Installation Example for VM6050 1 Plug a DVD ROM USB device to the front panel USB connector using a standard USB cable 2 Plug the HDD SATA device on the SATAO A connector of the Rear Transition Module VM6050 RTM USB 2 m E Standard USB cable DVD ROM USB device MMU MMMM TT ee TT AA gt TEASE HDD SATA device SATAO A Standard SATA cable un Graphic configuration on VM6050 requires a specific order code and a specific graphic module VM6050 2SA34 12110 and MOD GX SA 00 The module provides two DP ports and a VGA connector There are 2 USB ports available one on the front panel and the other one on the RTM board if an RTM is pr mata so N available So in order to use a USB keyboard and a USB mouse plus a USB DVD ROM a USB HUB is A required SD DT G11 6e Page 11 Required Configuration Fedora 16 Release Notes 4 4 8 DVD ROM Installation Example for VM6052 VM6054 1 Plug a DVD ROM USB device to the front panel USB connector using a standard USB cable 2 Plug the HDD SATA device on the SATAO A connector of the Rear Transition Module VM6052 VM6054 RTM TO 10e ue USB 2 Sta
6. cece eect eens 35 7 5 4 Configure the DHCP and PXE Services in MAC Ethernet Address Mode 35 7 5 5 Configure the DHCP and PXE Services in GEOID Ethernet Address Mode 36 7 5 6 Export the Root File System e e 37 7 5 7 Boot the Target through the Network en 37 7 5 8 Diskless Service 2 sm 38 7 5 9 Initiate a Reset of the Remote Targets eene 38 ABE LA LUPA PAA 39 Ac NES 40 TS lt Cpldtooll yi oiv RR gpRIESLRRRESELRCRESDENEPRHRDeM SERERE EE pPODOPPS beb s 42 7 9 JI2CBUSS6S 0lmeselSbEReR ER APR RE Ghd thai toate Rare eR RR ne RR RR acie 44 2 10 BIOS Update iuo ue Tess inna RENE who Uu RERO Med Pio RO Rn RENE dw rdi KES 44 7 11 FMRAM Example sseueeuleeee eel n n nm nn nn 46 PME 47 712b sABMAVME maa AGA NG AA cea tus fu ace tures 47 12 2 almavmecham sls eR EevRDUER I S URP Ee ele CDU NLA PLAN wand 60 7 12 3 VME IRQ Response Time Improvement 2 00 cee eee cece eee eee 63 KELLER 64 Chapt r 8 RC Boards lt scccaccesitecediebatscctstvesesbatetsebigisaceduadect odds 66 8 1 How to Manage the Lack of RTC Battery 0 c cee eee ees 66 8 2 External Devices Connection ccc cece eee eee hn 66 8 3 RC Specifications 5 ness Be kw se aha wand aa hw dren a ward dee dw waren ma 67 Chapter 9 Power Management 2 2 cece cece eee eee nnn 68 9d Introduction oos anid aot enn pees Be ae lee eee oP Oda NEUE I
7. mbm3k 1 E 7 12 3 VME IRQ Response Time Improvement By default the Linux kernel uses the C State mode in the IDLE loop This feature impacts the performance of waking up a IDLE CPU The VME IRQ response time can have some relationship with the IDLE CPU mode in the Linux kernel To avoid a lack of VME IRQ response time the idl e po11 can be given to the linux kernel command line SD DT G11 6e Page 63 BSP Specific Features Fedora 16 Release Notes 713 CPLD NAME cpld Kontron board facilities cpld i2c cpld smi cpld leds cpld gpio cpld wdt DESCRIPTION Page 64 This man page describes some of the facilities made available by the cPLD complex programmable logic device on several Kontron boards Not all boards provide all the facilities The cPLD is a small device that controls some low level aspects of the board including power up sequencing reset gpios i2c buses including one for communication to the backplane timer watchdog leds and many configuration and control features The device is visible through 1 byte registers in i o port space from addresses 0x0800 to 0x08FF The facilities are implemented in several drivers each in its own rpm The driver sources are provided cpld The cpld driver is needed by the other drivers It provides the geographical id slot number of the board in the file proc geo id Some other basic features can be accessed with the cpldtool 1 utility or by direct i o on
8. sdb Attached SCSI disk Nov 10 15 22 43 Ki7 kernel 10396 928398 sd 1 sd 0 Nov 10 15 22 43 Ki7 kernel 10396 928443 1 0 If automount services are enabled the partitions should be mounted too 6 6 VITA 57 Using VX3830 IO cards for VPX boards or VM6050 it is possible to use the VITA 57 option Kontron is delivering a toolkit to help the setup and development of application using the onboard FPGA and the FMC modules defined though the VITA 57 standard Refer to your representative to get more information about this option 6 7 VXFabric Kontron VXFabric is an open infrastructure which implements efficient inter board communication at hardware speed The architecture is compliant with the OpenVPX standard VITA 65 which defines two main hardware topologies of the backplane distributed and centralized topologies To get more information about this software go to the www kontron com web site and enter the key word vxfabric into the search engine Page 24 SD DT G11 6e Fedora 16 Release Notes Chapter7 BSP Specific Features 7 1 Sensors 7 1 1 Sensors Overview BSP Specific Features The BSP contains an RPM named sensors addons that configures the standard 1m sensor software for the Ki7 boards To display sensors information root ki7 sensors gt gt Example on VX304x root ki7 sensors acpitz virtual 0 Adapter Virtual device templ 37 0 C crit 106 0 C temp2 36 0 C crit 106
9. CO active POLL e 0 0 o C1 9 6 6 131 c2 93 4 1058 SD DT G11 6e Page 71 Power Management Fedora 16 Release Notes The different C states of the CPU are defined as follows gt CO Running state the CPU is working with no idle at all gt C1 Halt a state where the processor is not executing any instruction but is typically not in a lower power state gt C2 Stop clock a state where the clock is frozen for the processor but it keeps the complete state for its registers and caches gt C3 sleep a state where the processor really goes to sleep gt C6 specific to Nehalem architecture the power supply of the CPU can be reduced to 0 Then run the following process in order to load the CPUs root ki7 while true do rm rf squashfs root unsquashfs squashfs img done amp Analyse the impact on the Idle Stats Run Powertop with the command root ki7 powertop And move to the Idle Stats option Fichier Edition Affichage Rechercher Terminal Aide Idle stats Frequency stats Device stats Tunables Package Core CPU 0 CPU 4 CO active 88 85 72 94 POLL 9 085 ims O C1 7 554 4 ms 11 c2 25 8 9 ms 33 7 cc3 cc6 7 cc7 CO active POLL C1 C2 cc3 5 cc6 cc7 CO active POLL cl Page 72 SD DT G11 6e Fedora 16 Release Notes Analyse the frequencies of the different CPUs with the command root ki7 powertop And move to the Frequency Stats option root
10. FILES proc geo id dev cpld smi dev port dev i2c 0 COPYRIGHT Kontron SD DT G11 6e Page 65 RC Boards Fedora 16 Release Notes Chapter8 RC Boards 8 1 How to Manage the Lack of RTC Battery Some hardware constraints may prevent the use of the RTC s battery on the boards This implies to workaround or disable some standard behaviour of Fedora services The very first one is fsck which is run at boot time fsck checks that the date of the last mount of the checked partition is prior to the current date If not the boot is stopped in a maintenance mode This could happen after with the power off and without the RTC s battery To workaround this simply create a file named etc e2fsck conf with the following content options broken system clock true The same file has to be added to the initramfs too To do this simply run the command root ki7 dracut force I etc e2fsck conf Without the right date for the system some other services and functions may present problems For example the command make warns if there is some previous build detected in the future and this could lead to bad recompilation If the network is available it is recommended to setup the service ntpd to adjust the system date with a date server 8 2 External Devices Connection One impact of the RC board is the missing of front panel As a consequence devices requiring access to the system such as gt Serial line console USB mo
11. sys devices system cpu root ki7 for i in0123 do cd cpu i echo 1300000 cpufreq scaling max freq cd done This sets frequency 1 3 GHZ for all the CPUs If you want to know the set of available frequencies root ki7 cd sys devices system cpu root ki7 for i in0123 do cd cpu i cat cpufreq scaling available frequencies cd done Page 70 SD DT G11 6e Fedora 16 Release Notes Power Management 9 3 Impact of the Power Management Policy Boot linux and login as root The powertop tool identifies specific components of kernel and user space applications that frequently wake up the CPU Install the powertop package with the command root ki7 yum install powertop Next run powertop with the command root ki7 powertop while it runs powertop gathers statistics from the system 9 3 1 Hyper Threading Turbo Mode Enabled The purpose of this configuration is to obtain as much performance as possible This is the default configuration Except on Kontron RC Rugged Conduction Cooled board which implies disabling the turbo mode in order to fit the maximal temperature constraint Run PowerTop with the command root ki7 powertop And move to the Idle Stats option root Inx2 at Fichier Edition Affichage Rechercher Terminal Aide Idle stats Frequency stats Device stats Package Core CO active POLL C1 pc2 9 c2 pc3 C c pc6 pc7 CO active POLL C1 c2 CO active POLL C1 c2
12. 0 C nct7802y i2c 22 28 Adapter I2C CPLD adapter 3V3 SB A D REF 3 24 V min 0 18 V Processor Vcore 0 86 V min 0 00 V 1V5 Memory 1 52 V min 0 40 V 12V VPX VS1 12 10 V min 0 13 V 5V VPX VS3 4 99 V min 0 78 V VPX 3V3 aux 8 0 00 V nct7802y local temp 30 0 C low 40 0 C coretemp isa 0000 Adapter ISA adapter max max max max max 0 38 V 0 00 V 0 04 V 1 34 V 1 15 V high 85 0 C Physical id 0 38 0 C high 87 0 C crit 105 0 C 105 0 C 105 0 C 105 0 C 105 0 C Core 0 35 0 C high Core 1 31 0 C high Core 2 34 0 C high Core 3 32 0 C high pchtemp pci 00fe Adapter PCI adapter temp1 43 5 C 87 0 C 87 0 C 87 0 C 87 0 C crit crit crit crit The sensor command reveals the presence of low high and critical thresholds When the temperature temp1 goes beyond the critical threshold an automatic reset of the board will occur When the temperature or the voltage goes beyond one of the limits low and high an explicit alarm message will occur in the sensors command output So in order to track down this kind of event run the following command root ki7 sensors grep ALARM SD DT G11 6e Page 25 BSP Specific Features Fedora 16 Release Notes On the other hand it is possible to synchronize the execution of an application on a high limit temperature event For example at first create a fi
13. Fedora 16 Release Notes Preface Proprietary Note This document contains information proprietary to Kontron It may not be copied or transmitted by any means disclosed to others or stored in any retrieval system or media without the prior written consent of Kontron or one of its authorized agents The information contained in this document is to the best of our knowledge entirely correct However Kontron cannot accept liability for any inaccuracies or the consequences thereof or for any liability arising from the use or application of any circuit product or example shown in this document Kontron reserves the right to change modify or improve this document or the product described herein as seen fit by Kontron without further notice Trademarks This document may include names company logos and trademarks which are registered trademarks and therefore proprietary to their respective owners Environmental Protection Statement This product has been manufactured to satisfy environmental protection requirements where possible Many of the components used structural parts printed circuit boards connectors batteries etc are capable of being recycled Final disposition of this product after its service life must be accomplished in accordance with applicable country state or local laws or regulations Environmental protection is a high priority with Kontron Kontron follows the DEEE WEEE directive You are encourage
14. The parameter id is the channel identifier returned by alma pci channel alloc It returns O on success 1 on failure It can be called from user space with the ioctl VMEIOCTL PCI CHAN FREE alma vme channel alloc unsigned long alma vme channel alloc char name u32 vmeaddr u32 size u32 flag This allocates an outgoing master channel from PCI to VME The parameters of the routine describe the desired PCI VME channel name is the name of this channel It can be up to 12 bytes long including the final null char It is only used to label this channel in the list of channels printed by the alma vmechan utility vmeaddr is the VME physical address generated by the board It must be aligned to 8 MB size is the size of the channel It must be a multiple of 8 MB and less than 256 MB flag contains the options for the channel Options are ored from the following VMEFG WRTPOST access is write posted default NO It must be used with a BLT or MBLT channel SD DT G11 6e Page 49 BSP Specific Features Fedora 16 Release Notes VMEFG READAHEAD access is read ahead default NO It must be used with a BLT or MBLT channel VMEFG LEBE xx defines the little big endian conversion mode default address coherency VMEFG PCIIO access is from PCI IO to VME default is access from PCI MEM to VME There is no difference between PCI MEM and PCI IO AM code One of the predefined VMEFG AM xxx flags The default is VMEFG AM A32SDATA OxOD AM code
15. This is below the defined set of available AMs A32 USER MBLT AM 0x08 fg 0x00201013 A32 USER DATA AM 0x09 fg 0x00202013 A32 USER PROG AM 0x04 fg 0x00204013 A32 USER BLT AM 0x0B fg 0x00208013 A32 SUPER USER MBLT AM 0x0C fg 0x00210013 A32 SUPER USER DATA AM 0x0D fg 0x00220013 A32 SUPER PROG AM Ox0E fg 0x00240013 A32 SUPER BLT AM OxOF fg 0x00280013 A24 USER MBLT AM 0x38 fg 0x08001013 A24 USER DATA AM 0x39 fg 0x08002013 A24 USER PROG AM 0x34 fg 0x08004013 A24 USER BLT AM 0x3B fg 0x08008013 A24 SUPER USER MBLT AM 0x3C fg 0x08010013 A24 SUPER USER DATA AM 0x3D fg 0x08020013 A24 SUPER USER PROG AM OxSE fg 0x08040013 A24 SUPER USER BLT AM 0x3F fg 0x08080013 A16 USER AM 0x29 fg 0x02002013 A16 SUPER AM 0x2D fg 0x02020013 A16 LCK AM 0x2C fg 0x02010013 A16 USER A16 SUPER A16 LCK can not be used to initialize a VME to PCI memory window due to the current driver window size definition that must be higher or equal to 1MB A24 USER MBLT A24 SUPER USER MBLT are identify as AM that present some transfer error For these cases please contact the Kontron support This routine returns an identifier from 0 to 15 on success and 1 on failure It can be called from user space with the ioctl VMEIOCTL PCI CHAN ALLOC alma pci channel free int alma pci channel free int id This is used by the VME driver to free a VME PCI channel allocated by alma pci channel alloc
16. a write error of EPERM Permission denied or EIO Input output error For example S cat sys class cpld gpio gpio5 intr stat 12 value it on read waits for an interrupt on the gpio and then returns a string of length zero If interrupts have not been enabled the file acts like the value file The file acts like the value file for all writes To get an interrupt you must set the direction polarity mode toggle and interrupt files appropriately and then read value it until it returns or poll the intr stat value until it changes Dual Purpose GPIO On some boards gpio2 is a dual purpose gpio which can also be used to generate a Maskable Reset It is configured using cpld registers that can be set using cpldtool or low level port accesses To check if the board provides this feature run the command root ki7 cpldtool a grep MSKR2LOC If MSKR2LOC is not found gpio2 is not dual purpose To configure gpio2 as a standard gpio which does not issue a local reset on a VPX board root ki7 cpldtool f VPX CONTROL MSKR2LOC 0 on a VME board root ki7 cpldtool f VME CONTROL MSKR2LOC 0 or on either type of board specify the register by number instead root ki7 cpldtool f 0x70 MSKR2LOC 0 Use the same command with value 1 to restore the configuration To do the same using low level port accesses read the register and calculate the new value before writing it back For example root ki7 port 0x870 0x870 Oxld root ki7 por
17. alarms Alarms are set by the driver and reported by sensors command When the temperature fetches on one of these sensor devices is lower than the minimum threshold the alarm is set and the sensors command report ALARM LOW When the temperature fetches on one of these sensor devices is higher than the maximum threshold the alarm is set and the sensors command report ALARM HIGH The interrupt mode is available only for the nct7802y by the module parameter nct7802y smbalert This parameter is set at 0 that means the interrupt mode is not active If the interrupt mode is activated the thresholds must be modified It is necessary to fit the mode pre configured by the BIOS This mode set the interrupt when the temperature is higher than the maximum threshold and unset the interrupt when the temperature is lower than the minimum threshold In this case both threshold must have positive values The lower temperature threshold is a negative value UN Re The higher temperature threshold is a positive value Page 26 SD DT G11 6e Fedora 16 Release Notes BSP Specific Features B 7 1 4 X Voltage Sensors Threshold and Alarm Report Only the Nuvoton NCT7802Y manages lower and higher limits Only the polling mode is implemented in the Nuvoton NCT7802Y device driver ALARM MIN is reported by sensors command when sensor value is lower than the minimum threshold ALARM MAX is reported by sensors command when sensor value
18. and for the required environment SD DT G11 6e Page 67 Power Management Fedora 16 Release Notes Chapter9 Power Management 9 1 Introduction At the core of power management is an understanding of how to effectively optimize energy consumption of each system component By studying the different tasks that your system performs and configuring each component to ensure that its performance is just sufficient for the job you can save energy generate less heat Many of the principles for analysis and tuning of a system in regard to power consumption are similar to those for performance tuning To some degree power management and performance tuning are opposite approaches to system configuration because systems are usually optimized either towards performance or power Two types of tools are available The ones to set up the power management configuration BIOS menu and cpufreq under linux The ones to evaluate the impact of this setting on the system powertop under linux 9 2 Power Management Setting 9 2 1 Under BIOS A way to reduce the power consumption the drawback being the decreasing of performance is to disable the Hyper Threading mode as well as the Turbo Mode To disable the Hyper Threading gt Enter the bios and select the submenu Advanced gt CPU Configuration Then set the option hyper threading to Disabled To disable the Turbo Mode Enter bios and select the submenu Advanced 5 CPU PPM
19. driver provides an API using files in the sys filesystem Reads and writes to the files are directly handled by the driver provoking reads and writes of hardware registers Reads normally return a short string terminated with a newline Further reads need to seek back to the start of the file or re open it Writes should normally be of a single string optionally terminated with a newline Writing values other than those described below are undefined but usually result in a write error with errno EINVAL Invalid argument Usage from Program Operations can be easily done from a shell script When used from a program open the files for simul taneous read and write except for intr stat read only Read in one go into a buffer big enough to accept the whole reply including newline i e 11 characters Use Iseek 2 to rewind the file descriptor before each read Write each value using a single system call There is no need to Iseek before writes Permissions By default the files are owned by root and only writeable by the owner If necessary these ownerships and permissions can be changed each time the driver is loaded for example by a udev rule Sysfs Files There is one directory per gpio starting with gpio1 under the class directory sys class cpld gpio The number of gpios depends on the board Each directory has the following files The string values described are those that can be written or will be read direction holds the
20. eee teens 6 4 1 3 Hardware Requirements for VM6050 Board 2 2 6 4 1 4 Hardware Requirements for VM6052 VM6054 Board 22 7 4 2 Firmware Requirements suseseeseellees e nnn 7 42 1 VX304x BOATS Ha KAKA GANANG EERERAREC ER AA WADA LAN KLANG OUR UDIN DS E ONES ERA eR 7 4 2 2 VX3035 Board 4 1 kaan mss oa bet ed ie nd DEE E LCD DOCTORE URL LAGA 7 4 2 3 VM6050 Board 2 2 2 s aen 7 4 2 4 VM6052 VM6054 Board 2 22 ss 7 4 3 Software Requirements 2 eee hse 8 4 4 DVD ROM Installation Example mh 9 4 4 1 DVD ROM Installation Example for VX304x Board 00 eee eee eee 9 4 4 2 DVD ROM Installation Example for VX3035 0c e eee eee 10 4 4 3 DVD ROM Installation Example for VM6050 002 c eee eee 11 4 4 58 DVD ROM Installation Example for VM6052 VM6054 eee ee eee 12 Chapter 5 Installation RH 13 5 1 Disk Installation iine p be Re ke Re Ren bee ACE AR eR amine ACRES E 13 5 1 1 Fedora 16 DVD Menu ssssssssssses ll etna 13 5 1 2 Fedora 16 Installation on Ki7 Boards 2 16 5 1 3 LiveDVD Installation on SSD SATA Flash or USB Flash 202 2a 16 Chapter 6 Fedora System Configuration 0 0 cece eee eee eee eee 18 BAT Network XT cR 18 6 1 1 Network Manager 0666 0 cee ee eee eee E R eens 18 6 1 2 Udev Rule only for VX304x and VM6052 VM6054 2 002 naarn 18 6 1 3 MAC Addre5S wiki en te
21. generated as described in chapter 11 Additional Information page 77 A graphical display with mini DisplayPort interface USB keyboard and USB mouse for a graphics install OR Aconsole on serial line text or VNC install 4 1 2 Hardware Requirements for VX3035 Board gt A Kontron VX3035 board The Fedora 16 release may be installed on one of the following bootable disks a SATA disk connected to the SATA connectors available on VX3035 RTM board Optional onboard USB Flash Disk A USB DVD ROM device for installation from DVD ROM or a USB Flash disk generated as described in chapter 10 Create a USB Flash Disk from DVD Iso Image page 76 Graphical display USB keyboard and USB mouse for a graphics install or a console on serial line text or VNC install 4 1 3 Hardware Requirements for VM6050 Board gt A Kontron VM6050 board The Fedora 16 release may be installed on one of the following bootable disks a SATA disk connected to the SATA connectors available on VM6050 RTM board gt Optional onboard USB Flash Disk A USB DVD ROM device for installation from DVD ROM or a USB Flash disk generated as described in chapter 10 Create a USB Flash Disk from DVD Iso Image page 76 A console on serial line text or VNC install For a graphic configuration on VM6050 a specific order code and a specific graphic module are voll required VM6050 2SA34 12110 and MOD GX SA 00 The module provides two DP ports a
22. iptables service and disable SELINUX by running the commands root ki7 chkconfig iptables off root ki7 service iptables stop gt Set the variable SELINUX disabled in the file etc selinux config The following steps describe how to initialize a diskless configuration and how to boot it on a given number of targets 7 5 2 Get the whole Fedora 16 Distribution on a Local Repository The very first step is to get a local repository on the diskless server of the Fedora 16 RPM packages To do this insert the Fedora 16 DVD and run these commands root ki7 mkdir p dist Fedora 16 ki7 boards BSP RPMS root ki7 mount dev dvd mnt root ki7 cp mnt Packages dist Fedora 16 ki7 boards RPMS root ki7 cd dist Fedora 16 ki7 boards root ki7 createrepo Page 34 SD DT G11 6e Fedora 16 Release Notes BSP Specific Features Then code the right value into the following field of the etc diskless diskless fs xml baseurl file dist Fedora 16 ki7 boards s baseur15 In this way the diskless tool will know the location of the Fedora 16 RPMs just installed The next step is to build a diskless root file system based on these Fedora 16 RPMs 7 5 3 Build the diskless RFS root file system Force the layer building even if it already exists by running root ki7 diskless B The command will take a few minutes to complete The content of the RFS is defined in the section named lt rpms gt present in the xml file etc di
23. is higher than the maximum threshold SD DT G11 6e Page 27 BSP Specific Features Fedora 16 Release Notes 7 2 CPLD WDT NAME cpld wdt Kontron board cpld wdt watchdog driver DESCRIPTION This man page describes how to use the watchdog implemented by the cpld on various Kontron boards including the VX304x VX3035 and VM605x families The principle of a watchdog is to automatically provoke some action after a given time passes without the watchdog being prodded by some process This would indicate that the process is no longer working correctly The cpld wdt watchdog actions are to do nothing to reset the board to generate an interrupt that can wake up some other process or to reboot The prodding is done by writing to the wat chdog device which restarts the timeout The cpld wdt module implements the standard Linux watchdog API detailed in file Documentation watchdog watchdog api txt in the kernel source rpm The supported features are described below Loading Module There can be many devices and modules providing the watchdog API Ensure only the cpld wdt module is being used For example the standard iTCO wdt watchdog module is usually blacklisted by a file in etc modprobe d to avoid it being loaded The cpld wdt module has to be explicitly loaded for example by creating a systemd file with a name ending in conf in etc modules load d listing the modules to load one per line for example cpld wdt Module
24. network has been modified Jy 6 1 2 Udev Rule only for VX304x and VM6052 VM6054 Kontron udev rule exists to set the onboard Ethernet device name with ethx where x is the interface number This rule is not applied by default and it is convenient only for users For example on VM6050 VM6052 VM6054 to set this rule users need to type the following commands cp etc udev rules 75 ki7 vm605x etc udev rules 75 ki7 rules dracut force I etc udev rules d 75 ki7 rules The extension file of the udev rule indicates the name of the board In this example vm605x is a udev rule IN for VM6050 VM6052 VM6054 After relaunching the udev daemon or by rebooting the Linux distribution the onboard Ethernet device name should be eth0 eth Page 18 SD DT G11 6e Fedora 16 Release Notes Fedora System Configuration 6 1 3 MAC Address By default the MAC address is stored with the configuration parameters of each interface If the MAC address of a device is found different from the one expected board changed for example the interface is not brought up This is not suitable for an embedded system when boards must be changed for maintenance without requiring additional configuration To workaround this behavior do not bind an Ethernet interface to a MAC address Run system config network For each interface gt click on Edit click on Hardware Device tab unselect Bind to MAC address gt Exit from system config network saving change
25. phys mem alloc struct alma phys mem object phys mem This allocates a contiguous physical memory area In the phys mem parameter only phys mem size needs to be set to the requested size which can be up to 64 Mbytes It returns O on success 1 on fai lure It can be called from user space with the ioctl VMEIOCTL PHYSICAL MEM ALLOC alma phys mem free int alma phys mem free struct alma phys mem object phys mem This frees a previously allocated contiguous physical memory area In the phys mem parameter only phys mem cpu phys addr needs to be set to the address of the physical memory area It returns 0 on success 1 on failure It can be called from user space with the ioctl VMEIOCTL PHY SICAL MEM FREE User Space Contiguous Memory Allocation ioctl fd VMEIOCTL PHYSICAL MEM ALLOC struct alma phys mem object phys mem calls alma phys mem alloc phys mem Page 52 SD DT G11 6e Fedora 16 Release Notes BSP Specific Features ioctl fd VMEIOCTL PHYSICAL MEM FREE struct alma phys mem object phys mem calls alma phys mem free phys mem For example taken from the almavmechan tool mem obj size rc ioctl fd VMEIOCTL PHYSICAL MEM ALLOC amp mem obj printf Ox xMn mem obj cpu phys addr mem obj cpu phys addr re ioctl fd VMEIOCTL PHYSICAL MEM FREE amp mem obj Locking The VME bus can be explicitly locked before one or more accesses are done It must always be paired with a free These routines return 0 on suc
26. that field v more verbose output for the a and d options detailing what some values mean EXAMPLES Describe register 9 root ki7 cpldtool i 9 Ref 0x9 FLASH MEMORY PROTECT Field name Boot flash CS swap DIP 7 Explanation Boot flash chip select configuration 0 Normal configuration 1 Rescue configuration Field name USER WP 3 Explanation USER level WP hardware protection 0 No USER level WP correction 1 USER level WP active Page 42 SD DT G11 6e Fedora 16 Release Notes BSP Specific Features Show the current value of fields in register 9 root ki7 cpldtool d 9 Reg 0x9 FLASH MEMORY PROTECT 0x00 Boot flash CS swap DIP 0x0 Boot flash CS swap Valid 0x0 Boot both flash 0x0 USER WP 0x0 SYS WP 0x0 VPD WP 0x0 VPX NVMRO 0x0 Set the USER WP bitfield in register 9 root ki7 cpldtool f 9 USER WP 1 SEE ALSO cpld 4 COPYRIGHT Kontron SD DT G11 6e Page 43 BSP Specific Features Fedora 16 Release Notes 7 9 12C Busses The cpld i2c driver is supporting the local i2c bus I2C bus number 22 which is local to the board and used to address sensors and system eeproms There are also two other I2C busses routed to the backplane the bus numbers are 23 and 24 gt dev i2c 23 is the SMB bus connecting it to the I2C devices in the chassis if any dev i2c 24 is the IPMB bus connecting all boards through the backplane By default those two busses are available only on the sy
27. the board BIOS Update tool A command and script to update the BIOS of the board CPLD register Tool cpldtool Tool to deal with hardware registers of the onboard CPLD FRAM support Driver and special API file to read write from to the FRAM Diskless Tool to configure boot and manage diskless boards PBIT report Sysvartool gives the report of the PBIT 2C buses drivers i2c bus drivers for the local i2c bus and the two backplane i2c busses The VXFabric product is delivered apart from the BSP LIN N More information on Ki7 boards BSP in Chapter 7 BSP Specific Features page 25 Information on Fedora 16 is available at http fedoraproject org SD DT G11 6e Page 3 Release Content Fedora 16 Release Notes The Fedora 16 x86 64 DVD for Ki7 boards contains Kontron source packages These packages are present in the SRPMS folder Below an example of source packages available cpld 1 2 15111 src rpm e1000e 2 3 2 15111 src rpm hwtools 1 3 7 15111 src rpm k17 bsp 3 4 15111 fc16 src rpm turbostat 1 0 1 fc16 src rpm cpld smi 1 3 15111 src rpm flashrom 0 9 9 15111 src rpm ixgbe 3 18 7 1 src rpm sysvartool 1 7 15111 src rpm vmetoolkit 1 6 15111 src rpm cpldtool 1 5 15111 src rpm fmram 1 1 15111 src rpm kerne1 3 4 9 15111 ki7 fc16 src rpm vpdtool 1 11 15111 src rpm Page 4 SD DT G11 6e Fedora 16 Release Notes Associated Documentation Chapter3 Associated Documentation Kontron Documentation Har
28. 6 dns 172 20 144 1 and press ENTER The following menu should be displayed the Ethernet device list is an example Welcome to Fedora for x86 64 lt Tab gt lt Alt Tab gt between elements Page 14 kkkkkkkkkkkkkkkkk Networking Device kkkkkkkkkkkkkkkkk k You have multiple network devices on this system Which would you like to install through eth0 Ethernet device eth0 00 00 de 40 39 b5 ethl Ethernet device ethl 00 00 de 40 39 b6 eth2 Ethernet device eth2 00 00 de 40 39 b7 eth3 Ethernet device eth3 00 00 de 40 39 b8 eth4 Ethernet device eth4 00 30 f7 98 2b 00 eth5 Ethernet device eth5 00 30 f7 98 2b 01 kx kkkkkkkkkkkk kkkkkkkk OK Identify Back kx kkkkkkkkkkkk kkkkkkkk e e ob HA 0X ok HA KK ok ook ok oko F kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk lt Space gt selects lt F12 gt next screen SD DT G11 6e Fedora 16 Release Notes Installation Select the interface to use during installation to connect with the VNC client Welcome to Fedora for x86 64 kkkkkkkkkkkkk Disc Found kkkkkkkkkkkkk To begin testing the media before installation press OK P Choose Skip to skip the media test and start the installation x kk kk kkkkkkkk OK Skip kkkkkk kkkkkkkk kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk lt Tab gt lt Alt Tab gt between elements lt Space gt selects
29. Configuration Then set the option Turbo mode to Disabled An alternative is to use the BIOS TDP menu This option is specific to the VX3044 board The thermal design power TDP sometimes called thermal design point refers to the maximum amount of power the cooling system in a computer is required to dissipate The move to a 22nm process and Tri Gate transistors alone should already account for some pretty significant power savings But there are a few other changes in Ivy Bridge meant to optimize power consumption An important addition brought to mobile Ivy Bridge processors is the inclusion of a configurable TDP that allows them to switch between three different ratings nominal a lower configurable TDP and an upper configurable TDP The lower configurable TDP implies the lowest power comsumption of course The BIOS TDP menu is accessible under enhanced CPU Configuration CPU PPM Configuration Page 68 SD DT G11 6e Fedora 16 Release Notes Power Management 9 2 2 Under Linux The main power management tool available under linux is CPUFreq CPUfreq allows the clock speed of the processor to be adjusted on the fly This enables the system to run at a reduced clock speed to save power Different types of CPUfreq governors are available cpufreq performance The performance governor forces the CPU to use the highest possible clock frequency no power saving benefit at all cpufreq powersave By contrast the Powersave gove
30. E NO CUR RI ESTIS MES 68 9 2 Power Management Setting 222 2 nnne 68 SD DT G11 6e Page vi Table Of Contents Fedora 16 Release Notes 9 24 UnderBIOS 1 5 2L a NAA AARAL aa 68 92 2 Under NUX i ceased Posten bang Tan eden d eee Hah haan PALA NANA YEA ha UR ORA Ha 69 9 3 Impact of the Power Management Policy 2 22 eere 71 9 3 1 Hyper Threading Turbo Mode Enabled 2 24 71 9 3 2 Turbo mode disabled CpuFreq policyzPowersave a 74 9 3 3 TDP LOW mode low power comsumption oriented eee eee eee 75 Chapter 10 Create a USB Flash Disk from DVD Iso Image llselussssss 76 Chapter 11 Additional Information nh 77 11 1 Known Limitations uk e 4G oe he NANG eed esa NG BENT cae POR dade epESGO GG M RS MER 77 11 2 BSP Installation on Ki7 Boards for BSP ID lt 14085 eee eee 78 Page vii SD DT G11 6e Fedora 16 Release Notes Overview Chapter1 Overview Functional changes that differ from previous version of the document are identified by a vertical bar in the IN margin N Linux the Open Source Operating System is now taking a significant share of the OS market in Defense and Aerospace after having taken ground initially in the enterprise server sector The goal of this document is to help you through the installation process of the Fedora 16 BSP distribution on the Kontron VX304x VX3035 VM6050 amp VM6052 54 boards In this documen
31. FTPD one 7 5 6 Export the Root File System The diskless RFS based on aufs which implements the different stackable layers must be exported now To do this use this command root ki7 diskless e Finally start the NFSD service with the command root ki7 service nfs server start and verify the status is correct root ki7 service nfs server status grep Active At this step the remote target should be ready to be booted in diskless mode Reboot the server to take into account the previous changes 7 5 7 Boot the Target through the Network On the diskless target and after a power on enter BIOS setup on CPUB by pressing lt F2 gt Under BIOS Setup select successively the menus Chipset gt South Bridge gt Ibex Peak Option and enable the PXE boot example given on VM6050 Save the changes and after reset press again lt F2 gt Select the menu boot and put the network device at the top of the list Save the change and exit As a result the PXE boot will happen and the following should be displayed CLIENT MAC ADDR 00 00 DE 40 36 F9 GUID 00020003 0004 0005 0006 000700080009 DHCP You should notice the occurence of a login at the end of the boot step Log in as root and verify the system is operational SD DT G11 6e Page 37 BSP Specific Features Fedora 16 Release Notes 7 5 8 Diskless Service To automate the launching of the diskless at the boot step simply enable the related service by running c
32. ID mode in this mode the IP address delivered by the DHCP server depends on the location of the target board in the chassis SD DT G11 6e Page 35 BSP Specific Features Fedora 16 Release Notes This section presents the MAC Ethernet adress mode The next one presents the GEOID Ethernet addres mode Of course both of them are exclusive At first uncomment if needed the XML structure called snodemap id MAC ADDR diskless cluster in the file etc diskless image xml and comment out the one related to the GEOID mode Then code the right MAC Ethernet address related to the network interface used during the boot step into this field match criterium macaddress gt lt value gt 00 00 xx xx xx Xx lt value gt lt match gt From the server side configure the network interface em1 for example with the right address with the command root ki7 ifconfig em1 192 168 1 1 If you want to use a different network base address simply code this in the field lt ip gt 192 168 1 1 order value lt ip gt of the structure lt nodemap gt Start the required service tftpd by running the command root ki7 chkconfig tftp on Finally run the command root ki7 diskless x Verify the right files have been created under diskless tftp root ki7 cd diskless tftp root ki7 find The created files should be pxelinux 0 pxelinux cfg pxelinux cfg default Another impact of the diskless x command is the starting
33. Inx2 Package Turbo Mode 89 15 2 10 SD DT G11 6e GHz GHz GHz GHz GHz GHz MHz MHz MHz 0 054 0 1 0 1 0 1 0 3 Rechercher Turbo Mode 2 10 2 00 1 91 1 80 1 71 1 60 1500 1400 1300 Turbo Mode 2 10 2 00 1 91 1 80 1 71 1 60 1500 1400 1300 Turbo Mode 2 10 2 00 1 91 1 80 1 71 1 60 1500 1400 1300 Turbo Mode 2 10 GHz GHz GHz GHz GHz GHz MHz MHz MHz GHz GHz GHz GHz GHz GHz MHz MHz MHz GHz GHz GHz GHz GHz GHz MHz MHz MHz GHz Terminal Core 83 74 0 0 0 1 0 1 0 1 0 3 0 2 0 1 0 2 0 2 Core 80 9 0 0 0 1 0 1 0 1 0 3 0 2 0 1 0 2 Core 79 0 0 0 0 1 0 1 0 1 0 2 0 2 0 0 0 2 0 1 Core 30 2 0 0 Aide Frequency stats CP Actual 2 8 Turbo Mode 2 2 10 GHz 2 00 GHz 1 91 GHz 1 80 GHz 1 71 GHz 1 60 GHz 1500 MHz 1400 MHz 1300 MHz CP Actual 2 8 Turbo Mode 2 2 10 GHz 2 00 GHz 1 91 GHz 1 80 GHz 1 71 GHz 1 60 GHz 1500 MHz 1400 MHz 1300 MHz CP Actual 2 8 Turbo Mode 1 2 10 GHz 2 00 GHz 1 91 GHz 1 80 GHz 1 71 GHz 1 60 GHz 1500 MHz 1400 MHz 1300 MHz CP Actual 2 8 Turbo Mode 2 2 10 GHz U 0 GHz 8 754 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 U 1 GHz 0 754 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 U2 GHz 9 7 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 U3 GHz 5 3 0 0 Power Management Page 73
34. ME PCI Bridge Configuration ioctl fd VMEIOCTL SET ALMACFG 8A calls alma ctrl ACTL SET CONFIG A almacfg ioctl fd VMEIOCTL GET ALMACFG 0 returns alma ctrl ACTL GET CONFIG 0 Read and Write Primitives The VME driver read and write primitives offer direct user access to VMEbus space using the AM code specified by the VMEIOCTL SET RWAM ioctl command The DMA is used to do reads and writes without remapping of VME buffers in kernel or user space dev almavme and any dev vmexX may be used to read write on the VME The usual Iseek 2 system call can be used to change the vmeaddar User Space Read and Write Configuration ioctl fd VMEIOCTL SET RWAM 8A sets the AM code to be used by the driver s read and write entry points from A defam ioctl fd VMEIOCTL GET RWAM 8A returns in A defam the current AM code used by the driver s read and write entry points For example vmeaddr strtoul argv 1 NULL 0 VME address size strtoul argv 2 NULL 0 buffer malloc size DMA buffer Page 54 SD DT G11 6e Fedora 16 Release Notes BSP Specific Features if buffer NULL fprintf stderr Error allocating DMA buffer n exit 1 if argc lt 3 Optional channel flags VMEFG AM A32SDATA else flags strtoul argv 3 NULL 0 printf VME Addr 0x x DMA buf Ox p Size 0x x Flags Ox xWn vmeaddr buffer size flags err ioctl fd VMEIOCTL SET RWAM amp flags Set the AM err lseek f
35. Options To provide initial options to the module create a file with a name ending in conf in etc modprobe d holding a line such as options cpld wdt timeout 50 trigger mode 1 nowayout 1 The module options shown by the command modinfo cpld wdt include timeout the integer timeout in seconds from 0 to 510 with a resolution of 2 seconds The default is 30 trigger mode the action to do when the timeout expires An integer value e 0 to simply countdown with no action e 1 the default to reset the board e 2 to generate an interrupt that can be used to wake up a read on the device or to reboot if no read is pending nowayout an integer 1 if there is no way to stop the watchdog The default is O which stops the timer if the magic character V is written just before the device is closed Usage from Scripts The watchdog is implemented with the standard device dev watchdog This file can accept ioctls to Page 28 SD DT G11 6e Fedora 16 Release Notes BSP Specific Features configure the watchdog but can be used simply from a shell script as follows Load the module with the required configuration for example to interrupt with a timeout of 10 seconds root ki7 rmmod cpld wdt root ki7 modprobe cpld wdt timeout 10 trigger mode 2 nowayout 0 Start the watchdog by writing to the device root ki7 echo gt dev watchdog Prod the watchdog faster than every 10 seconds root ki7 while sleep 5 do echo de
36. Power Management Fedora 16 Release Notes 9 3 2 Turbo mode disabled CpuFreq policyzPowersave Select the CpuFreq powersave mode by running root ki7 cd sys devices system cpu root ki7 for i in01234567 do cd cpu i echo powersave cpufreq scaling governor cd done Then run this process in order to load the CPU root ki7 while true do rm rf squashfs root unsquashfs squashfs img done amp Notice the impact using the powertop tool LIN N root ki7 powertop And move to the Idle Stats option The result should look like mc pcbelenet Fichier Edition Affichage Rechercher Terminal Aide PowerTOP 2 1 Overview Idle stats Frequency stats Device stats Tunab Package Core CPU 0 CPU 2 CO active 36 45 36 45 POLL 0 05 0 ms 0 Cl 0 05 O ms O C2 0 05 0 ms 60 CPU 1 CO active 36 45 POLL 0 05 Gl 0 0 C2 0 0 Then move to the Frequency Stats option Page 74 SD DT G11 6e Fedora 16 Release Notes Power Management 9 3 3 TDP LOW mode low power comsumption oriented Select the appropriate option in the BIOS TDP menu Then run this loop in order to load the system as much as possible root ki7 while true do rm rf squashfs root unsquashfs squashfs img done 8 And analyse the result with powertop Applications Raccourcis jeu 27 juin 16 04 MW EE Jean Mar Ca T Je x roo LI 5 X Fichier Edition Affichage Rechercher Terminal Aide Fichier Edition Affichage Recherche
37. Sales Order MAR Toulon kontron com ZI TOULON EST Support GSS MAR Toulon kontron com 83078 TOULON CEDEX France For further information about other Kontron products please visit our Internet web site www kontron com www kontron com
38. a 16 Release Notes BSP Specific Features COM1 Console Redirection Enabled To have Linux use the ttyS1 console ensure it has the boot option console ttyS1 115200 cpld_i2c The cpld_i2c driver implements an i2c algorithm made available through the standard OS i2c interface cpld_smi The cpld_smi driver provides a file and utility to program the onboard ethernet switch over the smi Serial Management Interface bus The device dev cpld_smi has 2 ioctls to read and write a given register in the switch snd the swsmi utility uses this device cpld leds The cpld leds driver provides standard OS led class devices in sys class leds They have filenames of the form devicename colour Each cpu has 2 user settable leds with devices named led2 and led3 On the VM6050 each cpu also has 2 additional user settable leds named led4 and led5 They implement 3 brightness levels by writing a value to devicename colour brightness 0 on e 1 slow blink e 2 fast blink This switches each LED to user mode Write O to devicename OFF brightness to switch an LED off or any other value to exit from user mode See the discussion in file Documentation leds class txt from rpm kernel doc cpld gpio See the separate man page for the driver providing gpios implemented by the cpld cpld wdt See the separate man page for the driver providing a watchdog implemented by the cpld SEE ALSO cpld gpio 4 cpld wdt 4 cpldtool 1
39. a E aed RM RARE RE RR ER Shi edd ea ha eee hale RD e 19 Cele AA eee 19 6 2 SELINUX ac teak evant L w 20 6 3 GRUB Boot Loader 0 0 ccc nent n een e ete ene rnnr 20 0 4 SATA Speed NANANA deed eee eniin eei kah ANNA KATANA AA 21 6 5 SATA Holplug nene om AA NN BRA Aa AD BA a Am d Ro 23 6 6 VITA ST maa a a eb von BAG DELETE we by wide nn a edd ned eden at ed we BN nae a 24 Page v SD DT G11 6e Fedora 16 Release Notes Table Of Contents 6T WXFabriG ceste nnnm RR Reg ce tod ne Rene ies nce DURAN KAL haa n AR RR RR t 24 Chapter 7 BSP Specific Features eee 25 T1 SOMSOMS MER 25 TAA Sensors OVervIeW orales babe paa dee Oed ned oa adem Re een IDA DE Re Rs 25 7 1 2 Sensors Values Limitations ss 26 7 1 3 Temperature Sensors Threshold and Alarm Report 2 2 cece eee 26 7 1 4 Voltage Sensors Threshold and Alarm Report 00 ce eee eens 27 2 QCOPED WDT eerie Ba a Rote ahah Eden NALNG UNAN GANAN ate e B d LNAG wand 28 To MWPDBUTOOL reete eet kie BA NEA UR a Ke hy chert hy w psum o caca i EP dr RR Cnt UR 31 TA EEDS T 33 7 5 Multinodes Diskless e mnn 34 FAA ntrod ctlOn uve bre Ree EAR e e Wane dag d ACA C bee E od 34 7 5 2 Getthe whole Fedora 16 Distribution on a Local Repository 34 7 5 3 Build the diskless RFS root file system
40. ackuped root ki7 fmram h Usage fmram options a tool to read or write the FerroMagnetic RAM Options are h this help p lt value gt read at offset value default 0 w value write at offset value default 0 s value data size to read or write default 4 f filename file name used to store optional or read mandatory data Example fmram w 0x10 s 0x11 f data file store 17 bytes read from data file to the ferromagnetic RAM at offset 16 With src package the C code of this command is delivered as an example Page 46 SD DT G11 6e Fedora 16 Release Notes BSP Specific Features 7 12 VME EB 7 12 1 ALMAVME NAME almavme Alma VME Linux toolkit driver API SYNOPSIS Kernel API from a kernel driver include almavme h int alma pci channel alloc char name u32 vmeaddr unsigned long pciaddr u32 size u32 flag int alma pci channel free int id unsigned long alma vme channel alloc char name u32 vmeaddr u32 size u32 flag int alma vme channel free unsigned long address u32 alma cpuadr to vmeadr unsigned long address int alma user dma u32 vmeaddr unsigned long pciaddr u32 size u32 flags int alma user dma mcast u32 vmeadar unsigned long pciaddr u32 size u32 flags u32 select int alma get vme void int alma free vme void int alma ctrl int command int config int request vmeirq unsigned int vector void handler int free vmeirq unsigned int vec
41. ass vme almavme These can be read or written sys class vme almavme vme bus error A read of this file returns as a string the number of VME bus errors seen by the driver Any write will clear the counter 2ESST The Alma PCI VME bridge implements 2ESST Two Edge Source Synchronous Vme Transfer This is an extension to the VME64 standard to allow the VME bus to operate at much greater speeds of nomi nally 160 267 and 320 Mbytes second between boards supporting the extension 2ESST transfers use a new address modifier AM code and so are ignored by boards that do not support them The supervisory non privileged and program data sub modes are replaced by a new extended address modifier XAM The data transmitter uses both edges of the clock to strobe data and does not wait for any acknowedgement two edge source synchronous 64 bits 8 bytes of data are clocked on each edge Transmissions must use an even number of edges so the minumum unit of transfer is 16 bytes though it is possible to flag the last cycle as ignored It is not optimal to transfer only 16 bytes of data A maximum of 128 beats of 2 edges of 8 bytes ie 2048 bytes is allowed per transfer The initiator specifies in a three part setup phase the maximum transfer rate The slave can terminate the transfer with an error if it is unable to perform at this rate It can also suspend the transfer if it does not currently have the resources and the transfer will be retried later T
42. ation file under etc polkit 1 localauthority vi etc polkit 1 localauthority 50 local d 50 disable suspend pkla gt Copy the following code into that file Disable Suspend Identity unix user Action org freedesktop upower hibernate org freedesktop upower suspend ResultAny no ResultInactive no ResultActive no Finally check that the permission was successfully revoked pkcheck action id org freedesktop upower suspend process Not authorized If you get no output from the pkcheck command make sure to run it as a normal user not root the permission is still there That is it after re login the annoying Suspend will be replaced by a friendly Power Off SATA interface on VM6052 VM6054 For the PCB level A the SATA interface speed must be limited to 1 5 Gbps The file etc grub d 80 ki7 must have the following line modified as shown below APPEND LINUX pcie aspm off console ttyS0 115200 vmalloc 512MB selinux 0 acpi enforce resources lax libata force 1 5G Follow the instruction in section 6 4 SATA Speed page 21 SD DT G11 6e Page 77 Additional Information Fedora 16 Release Notes 11 2 BSP Installation on Ki7 Boards for BSP ID 14085 During the installation the Kontron Fedora 16 BSP DVD provides and installs all necessary standard and Kontron BSP packages automatically After the installation manpages specific Kontron drivers and tools are already installed In this section the following explana
43. cess On the VM605x board the VME bus should be locked before issuing a simgle VME access concurrently with VME DMA accesses alma_get_vme int alma get vme void alma free vme int alma free vme void User Space Locking ioctl fd VMEIOCTL GET VME 0 calls alma get vme ioctl fd VMEIOCTL FREE VME 0 calls alma free vme For example void fcop withcapturevmebus u32 dst u32 src u32 size int ret ioctl fd VMEIOCTL GET VME 0 Capture the VME Bus if ret 0 fcop dst src size Do the job ret ioctl fd VMEIOCTL FREE VME 0 Release the VME Bus VME PCI Bridge Configuration Some parameters can be changed in the VME PCI bridge such as request level release mode and arbitration alma ctrl int alma ctrl int command int config If command is ACTL GET CONFIG the config is ignored and the current configuration is returned If command is ACTL SET CONFIG the given config becomes the new VME PCI bridge configuration and O is returned The config format is the following bit O is the LSB request level is coded in the 3 LSB ALMACFG REQLEVELx for level x from O to 3 inclusive The default value is level 3 SD DT G11 6e Page 53 BSP Specific Features Fedora 16 Release Notes fair mode is coded in bit 3 ALMACFG FAIRMODE If active the VME PCI bridge does not request the VME if another VME device requests it on the same level bus release mode is coded in bits 4 6 ALMACFG BUSREL MSK Four modes ar
44. ctrl or the almavmechan 1 option setal mastate Addresses for 2ESST dma must be aligned on 16 bytes The 2ESST protocol also provides for a broadcast transfer where one board can do a single write that is received simultaneously by several boards The boards to receive the broadcast are selected during the address phase by their geographic id Broadcast AM therefore need to provide a bitmask selecting the remote boards that are to receive the write Each board has a geographic id which is the slot num ber in which it is positioned The bitmask is an or of 1 n where n is the geographic id of a targeted board Select mask decoding by the slave is not currently supported by the Alma device and it will accept all broadcasts even if it is not selected One workaround is to setup several separate slave A64 windows targetting the same physical memory and only enable the appropriate ones for a given select mask The almavmechan 1 command has an option dmabdcst to generate 2ESST broadcasts EXAMPLES Refer also to the example files Dma c Dma2 c GEN intr c RECV intr c MasterSgl c in usr share vmetoolkit examples RESTRICTIONS Currently the driver and ioctls do not provide meaningful errno values on error SEE ALSO almavmechan 1 mbm3k 1 Alma2f User Manual CI DT A00 FILES dev almavme dev vmeX SD DT G11 6e Page 59 BSP Specific Features Fedora 16 Release Notes EB 7 12 2 almavmechan NAME almavmechan VME b
45. d vmeaddr SEEK SET Set vmeaddr offset err read fd buffer size Read data into buffer if err 1 unsigned int ptr unsigned int buffer for i 0 i lt size 28 i printf 0x p x x x x x x xWMn ptr ptr 0 ptr 1 ptr 2 ptr 3 ptr 4 ptr 5 ptr 6 ptr 7 Interrupt Service Calls The VME driver associates interrupt vectors with handlers by calling the routines request vmeirq and free vmeirq The VME irq level may be masked unmasked using alma vmeintcontrol request vmeirq int request vmeirq unsigned int vector void handler Assign a handler to a specific VME vector If the vector is between 8 and 15 it is for an addressed inter rupt see below Otherwise it is a VME irq vector from O to 255 free vmeirq int free vmeirq unsigned int vector Release the specified vector alma vmeintcontrol void alma vmeintcontrol unsigned int mask unsigned int ienable This masks or unmasks one or several interrupt levels mask is a 16 bit bitfield where each bit is associated with an interrupt level except bit O Bit n corresponds to the interrupt level n on the VMEbus ienable is O to mask and non zero to unmask all the interrupt levels set in mask disable vmeirq int disable vmeirq u32 level This deprecated routine disables a single VME interrupt level from 1 to 7 enable vmeirq int enable vmeirq u32 level SD DT G11 6e Page 55 BSP Specific Features Fedora 16 Release N
46. d to return our BA products for proper disposal The Waste Electrical and Electronic Equipment WEEE Directive aims to reduce waste arising from electrical and electronic equipment EEE make producers of EEE responsible for the environmental impact of their products especially when they become waste encourage separate collection and subsequent treatment reuse recovery recycling and sound environmental disposal of EEE improve the environmental performance of all those involved during the lifecycle of EEE SD DT G11 6e Page ii Preface Fedora 16 Release Notes Conventions This guide uses several types of notice Note Caution ESD Note this notice calls attention to important features or instructions LIN N Caution this notice alert you to system damage loss of data or risk of personal injury A ESD This banner indicates an Electrostatic Sensitive Device All numbers are expressed in decimal except addresses and memory or register data which are expressed in hexadecimal The prefix Ox shows a hexadecimal number following the C programming language convention The multipliers k M and G have their conventional scientific and engineering meanings of 103 108 and 109 respectively The only exception to this is in the description of the size of memory areas when K M and G mean 210 220 and 230 respectively When describing transfer rates k M and G mean 103 105 and
47. dware gt VX304x 3U VPX Computing Node User s Guide a CA DT A98 gt VX304x Hardware Release Notes ssssssee eee CA DT A99 gt VX3035 3U VPX SBC User s Guide sees I CA DT A95 gt VX3035 Hardware Release Notes 0 ne CA DT A96 gt VM6050 6U VME SBC User s Guide 2 0 eee CA DT A93 gt VM6050 Hardware Release Notes s see n CA DT A94 gt VM6052 VM6054 6U VME SBC User s Guide 0 aa CA DT B16 gt VM6052 VM6054 Hardware Release Notes sess enn CA DT B17 Firmware gt VX304x BIOS User Manual 2222 000000 eee SD DT F96 gt VX3035 BIOS User Manual 0 0 00 00 eee SD DT F97 gt VM6050 BIOS User Manual sssseeseee eee SD DT F89 gt VM6052 VM6054 BIOS User Manual seseee ee SD DT G34 Fedora 16 Documentation Documentation available at http fedoraproject org SD DT G11 6e Page 5 Required Configuration Fedora 16 Release Notes Chapter4 Required Configuration 4 1 Hardware Requirements 41 1 Hardware Requirements for VX304x Boards gt gt A Kontron VX304x board The Fedora 16 release may be installed on one of the following bootable disks a SATA disk connected to the SATA connectors available on VX304x RTM board gt an optional onboard USB Flash Disk gt an optional onboard SSD Flash Disk A USB DVD ROM device for installation from DVD ROM or a USB Flash disk
48. e Requirements gt The DVD ROMs b Fedora 16 x86 64 DVD for Ki7 boards b Fedora 16 x86 64 LiveDVD for Ki7 boards After the release is installed the release version is saved in etc ki7 release IN cat etc ki7 release N Ki7 Board Support Package 3 3 14085 SO file image the Kontron DVD can be delivered as ISO image format to customer To know how to create a USB flash disk from ISO image on Fedora 16 see chapter 10 Create a USB Flash Disk from DVD Iso Image page 76 Page 8 SD DT G11 6e Fedora 16 Release Notes Required Configuration 4 4 DVD ROM Installation Example 4 4 1 DVD ROM Installation Example for VX304x Board 1 Plug a DVD ROM USB device to the front panel USB connector using a standard USB cable 2 Plug the HDD SATA device on the SATAO A connector of the Rear Transition Module VX304x RTM HDD SATA device There are 2 USB ports available one on the front panel and the other one on the RTM board if an RTM is available So in order to use a USB keyboard and a USB mouse plus a USB DVD ROM a USB HUB is A required SD DT G11 6e Page 9 Required Configuration Fedora 16 Release Notes 44 2 DVD ROM Installation Example for VX3035 1 Plug a DVD ROM USB device to the front panel USB connector using a standard USB cable 2 Plug the HDD SATA device on the SATAO A connector of the Rear Transition Module VX3035 RTM Standard USB cable DVD ROM USB device 7 SATAO A Standard SATA cable
49. e dart or iommu is programmed and the address converted to a pci bus physical address If the flag VMEFG DMA PCIADDR is set it is the pci bus physical DRAM address and DMA buffers are not allocated and no change is made to the address no dart or iommu entries are made size is the size of the transfer in bytes It is divided by 4 kB to get the number of DMA transfers flags contains the options for the channel Options are ored from the following VMEFG DMA VMEPCI the DMA is VME read and PCI write default is PCI read VME write VMEFG_LEBE_xx define the little big endian conversion mode default is address coherency AM code One of the predefined VMEFG AM xxx flags can be used The default is VMEFG AM A32SDATA 0x0D AM code VMEFG DMA CHBKSIZ changes the number of VME cycles in each block default is 8 Note that the maximum number of cycles in a block is 256 and that the number of cycles are numbered starting from O 0 1 cycle 1 2 cycles etc The number of cycles uses the bitmask 0x0000FF00 so the blocksize has to be shifted left 8 and then ored with a flag For example to set 256 VME cycles in each block or 256 1 8 VMEFG DMA CHBKSIZ with the other flags Usually performance is improved by increasing the blocksize This does as alma user dma but uses 2ESST broadcast cycles Flags should include VMEFG AM 2ESST and VMEFG XAM A64BDCST The select mask has a bit set for the geo graphic id of each remote board that s
50. e device Remove the device from any md and LVM volume using it If the device is a member of an LVM Volume group then it may be necessary to move data off the device using the pymove command then use the vgreduce com mand to remove the physical volume and optionally pyremove to remove the LVM metadata from the disk If the device uses multipathing run multipath 1 and note all the paths to the device Afterwards remove the multipathed device using multipath f device Run blockdev flushbufs device to flush any outstanding I O to all paths to the device This is particularly important for raw devices where there is no umount or vgreduce operation to cause an I O flush Remove any reference to the device s path based name like dev sd dev disk by path or the major minor number in applications scripts or utilities on the system This is important in ensuring that different devices added in the future will not be mistaken for the current device Finally remove each path to the device from the SCSI subsystem To do so use the command root ki7 echo 1 gt sys block device name device delete where device name may be sde for example Nov 10 15 16 24 Ki7 kernel 10018 256462 sd 1 0 0 0 sdb Synchronizing SCSI cache Nov 10 15 16 24 Ki7 kernel 10018 534156 sd 1 0 0 0 sdb Stopping disk Nov 10 15 16 24 Ki7 kernel 10018 934519 ata2 00 disabled Then you can shut off the device gt gt To add a SATA device Wh
51. e physical address generated on the board when the PCI VME bridge responds to the vmeadar address on the VME bus The address can be in PCI IO space PCI MEM space or DRAM space the flag field defines which one is used It must be aligned to a 1 MB boundary and to the rounded up channel size size is the size of the channel It must be a multiple of 1 MB and it is rounded up to a power of 2 flag contains the options for the channel Options are ored from the following MEFG_WRTPOST access is write posted default NO VMEFG_READAHEAD access is read ahead default NO VMEFG LEBE xx defines the little big endian conversion mode default is address coherency The pci space which is one of VMEFG_PCIIO access PCI IO VMEFG_PCIMEM access PCI MEM VMEFG_DRAM access DRAM default The AM code which is decoded on the VMEbus for this channel The default is VMEFG_AM_A32SDATA 0x0D An AM code is specified as either VMEFG AM xxx flags that predefine standard AM codes or SD DT G11 6e Fedora 16 Release Notes BSP Specific Features VMEFG AM DIRECT ored with multiple AM selecting bitmasks The bitmask OxOFFO0000 defines which AM 5 3 are valid and the bitmask 0x000FF000 defines which AM 2 0 are valid Each acceptable value of AM 2 0 i e the eight values O to 7 is selected by setting a bit in the bitmask 1 lt lt 12 for O 1 lt lt 13 for 1 etc To simplify the VMEFG AMSLV xxx flags can be used when several AM codes must be decoded
52. e supported ALMACFG BUSREL ROR release on request ALMACFG BUSREL RWD release when done ALMACFG BUSREL ROC release on clear and ALMACFG BUSREL RNE release never The default mode is ALMACFG BUSREL ROR fair mode timeout is coded in bit 7 ALMACFG FAIRTIMEOUT system controller is coded in bit 17 ALMACFG SYS CTRL It is READ ONLY If active the VME PCI bridge is the VME system controller arbitration type is coded in bit 16 ALMACFG ROT PRIO If the VME PCI bridge is the system controller this bit sets the arbitration type O fixed priority 1 rotating priority timeout is coded in bits 8 15 ALMACFG TIMEOUTMSK If the VME PCI bridge is the system controller these bits are the timeout value in microseconds for data transfer on the VMEbus For example if the timeout is 120 and if there is no response to a VME request after 120 microseconds the VME PCI bridge will generate a bus error on the VMEbus VME speed is coded in bit 20 and 21 with ALMACFG SPEED XXXX There are three modes slow medium and fast It programs the device to different speeds for VME 2ESST cycles This routine can be called from user space with the ioctls VMEIOCTL SET ALMACFG and VMEIOCTL GET ALMACFG It is possible to get the VMEbus and release the VMEbus by software alma get vme gets the VMEbus and alma free vmef releases the VME bus These routines can be called from user space with the ioctls VMEIOCTL GET VME and VMEIOCTL FREE VME User Space V
53. en the system is up and running power on the hotpluggable SATA device and the system should be warned that a new SATA device is available root ki7 dmesg Nov 10 15 22 40 Ki7 kernel 10394 408164 ata2 irq stat 0x00400040 connection status changed Nov 10 15 22 40 Ki7 kernel 10394 414149 ata2 SError RecovComm PHYRdyChg CommWake DevExch Nov 10 15 22 40 Ki7 kernel 10394 420310 ata2 hard resetting link Nov 10 15 22 43 Ki7 kernel 10396 923493 ata2 SATA link up 3 0 Gbps SStatus 123 SControl 300 Nov 10 15 22 43 Ki7 kernel 10396 925408 ata2 00 ATA 8 ST9160314AS 0001SDM1 max UDMA 133 Nov 10 15 22 43 Ki7 kernel 10396 925414 ata2 00 312581808 sectors multi 16 LBA48 NCQ depth 31 32 SD DT G11 6e Page 23 Fedora System Configuration Fedora 16 Release Notes Nov 10 15 22 43 Ki7 kernel 10396 927836 ata2 00 configured for UDMA 133 Nov 10 15 22 43 Ki7 kernel 10396 927846 ata2 EH complete Nov 10 15 22 43 Ki7 kernel 10396 927991 scsi 1 0 0 0 Direct Access ATA ST9160314AS10001 PQ O ANSI 5 Nov 10 15 22 43 Ki7 kernel 10396 928246 sd 1 0 0 0 Attached scsi generic sgl type 0 Nov 10 15 22 43 Ki7 kernel 10396 928299 sd 1 0 0 0 sdb 312581808 512 byte logical blocks V 160 GB 149 GiB 0 0 sdb Write Protect is off 0 0 sdb Write cache enabled N read cache enabled doesn t support DPO or FUA Nov 10 15 22 43 Ki7 kernel 10396 928772 sdb sdbl sdb2 Nov 10 15 22 43 Ki7 kernel 10396 955136 sd 1 0 0 0
54. ends for 256 bytes To generate an addressed interrupt write a byte at address ALMAbase OxEE The byte should have a value of 1 lt lt x where x is from 0 to 7 inclusive chosen by the programmer To receive addressed interrupts use request vmeirq For example vmeal6 addr strtol argv 3 NULL 0 VME A16 addr printf Adressed VME interrupt 1d remote A16 0x 1xMn lvl1 8 vmeal6 addr alma ioctl vmechan name GENintr Name alma ioctl vmechan vmeaddr 0 VME Physical Address alma ioctl vmechan size PCIVME BLKSIZE As small as possible 8 MB alma ioctl vmechan flag VMEFG AM A168 physaddr ioctl fd VMEIOCTL VME CHAN ALLOC amp alma ioctl vaddr unsigned long mmap 0 vmeal6 addr 0x100 size of A16 window PROT READ PROT WRITE MAP SHARED fd off t physaddr amp OxFFFFFFFF if vaddr 1 printf A16 VME channel open fail n ioctl fd VMEIOCTL VME CHAN FREE amp physaddr exit 1 printf VME addr 0x 1x paddr 0x 1x vaddr 0x lx n vmeal6 addr physaddr vaddr write addr char vaddr vmeal6 addr 0xee write val char 1 1v1 8 printf WRITING 0x x at Ox p n write val write addr write addr write val sync printf READING Oxsx at Ox p n write addr write addr sync munmap void vaddr 0x100 size of A16 window ioctl fd VMEIOCTL VME CHAN FREE amp physaddr Further IOCTL Commands The following commands are also available ioct
55. erial port 0 1 Insert the DVD Fedora 16 in the DVD ROM driver 2 After a board reset or a board power on type F7 to get the the Boot Manager Menu or F2 to get the Setup from the BIOS and to select the DVD ROM device as the boot device Select the installation method using the menu as explained above Then the standard Fedora 16 Installer menus from anaconda should be displayed Proceed as a standard Fedora 16 installation Note that the mezzanine USB Flash device if present is probed as another SATA drive At the end of the installation reboot on the installed disk drive through the Boot Manager Menu F7 The BIOS Setup menu should be used to set the boot devices priorities Refer to the BIOS Manual SD DT F96 A It is strongly recommended to disable the swap partition if the installation is done on a USB or SATA flash N Oa oO 2 o device 5 1 3 LiveDVD Installation on SSD SATA Flash or USB Flash The LiveDVD media allows to evaluate a new version of Linux in an easy way without degrading data present on local SATA disk or flash SSD disk Another usage of the LiveDVD is the creation of liveUSB on flash devices The main advantage of the live USB is to prevent by default all writing accesses to the flash disk or USB stick It is especially important for some USB flash stick or SSD SATA flash devices which do not tolerate a lot of writing cycles However it is needed to be able to preserve some chang
56. es Write a new BIOS file root ki7 ki7updbios w vx304x ID12xxx bin flashrom v0 9 4 on Linux 2 6 32 14 11035 vx304x fc12 1686 PAE i686 built with libpci 3 1 7 GCC 4 4 2 20091027 Red Hat 4 4 2 7 little endian flashrom is free software get the source code at http www flashrom org Looking for bios found Calibrating delay loop OK No coreboot table found Found chipset Intel QM57 enabling flash write OK This chipset supports the following protocols FWH SPI Found chip SST SST25VF032B 4096 KB SPI at physical address Oxffc00000 Flash image seems to be a legacy BIOS Disabling checks Erasing and writing flash chip Done Verifying flash VERIFIED Take care that if the system is booted from the RESCUE BIOS flash refer to the BIOS user manual the update of the BIOS using the ki7updbios command will update the RESCUE BIOS Flash which is not recommended The update of the BIOS through the ki7updbios command does not preserve the setup parameters of Ar BIOS For deployement of a BIOS version with its own setup parameters preset one board with the desired parameters backup this using ki7updbios r and use this version of BIOS setup to be deployed on other similar boards SD DT G11 6e Page 45 BSP Specific Features Fedora 16 Release Notes 7 11 FMRAM Example The fmram packages gives an example of how access to the FMRAM device which may be used to save some customer data which needs to be b
57. es from one boot to the other one The LiveUSB tool features this capability Creating a LiveUSB on the SSD flash disk implies the presence of the LiveDVD in the USB DVD ROM drive At first boot on the LiveDVD in the following way gt Insert the Kontron LiveDVD into the USB DVD ROM drive You should also have a console connected to the serial port ttySO Under BIOS context select the USB DVD ROM drive as the first boot device At the beginning of the boot step a first menu should occur Select the option Start FEDORA16 Ki7 Atthe end of the boot step notice the presence of a login on the console Using the livecd iso to disk is the easiest way to create a LiveUSB image on a USB stick SSD disk In case you use the media for the first time you have to re partition and format your media To do this use fdisk Page 16 SD DT G11 6e Fedora 16 Release Notes Installation For example fdisk dev sdX n Return Return Return Return t 6 p w should create a unique partition which covers the whole media Then reformat the media mkfs vfat F 32 dev sdbl Write the ISO image to the USB SSD SATA flash disk using livecd iso to disk livecd iso to disk overlay size mb OVERLAY SIZE force format dev sr0 dev sdX1 gt Replace the reference sdX1 by the right one in your particular case Replace the field OVERLAY SIZE by the value which fits your own configuration 1024 for example wil
58. he address transferred during setup phase does not specify the low 4 bits so addresses are always aligned on 16 bytes There are physical limitations imposed by the distance between boards the length of the backplane and the effect of other boards in the rack including a broadcast selecting many boards or not so 2ESST transfers might work in one direction and not in the reverse direction between the same two boards For example the maximum speed of 320 Mbytes second might only be possible in a rack of 6 slots with only 4 boards in place The Alma bridge provides 8 extra VME slave channels for incoming VME accesses allocated by the usual alma pci channel alloc routine when the VMEFG AM 2ESST flag is used These can be used for 2ESST accesses or ordinary accesses The first 8 VME channels cannot be used for 2ESST The maximum 2ESST rate that a channel will accept can be specified Higher rates will cause the transfer to fail The XAM must also be given and must match that used for the dma transfer 2ESST transfers can only be generated by dma using the usual alma queue dmalist routine or alma user dma its broadcast version alma user dma mcast They must be targeted to a 2ESST window with the same AM XAM and the same or a higher rate Page 58 SD DT G11 6e Fedora 16 Release Notes BSP Specific Features The rate chosen for the dma can be throttled globally to a lower value by ioctl VMEIOCTL SET ALMACFG or kernel service alma
59. hich are not explicitly approved by Kontron and described in this manual or received from Kontron s Technical Support as a special handling instruction will void your warranty This device should only be installed in or connected to systems that fulfill all necessary technical and specific environmental requirements This applies also to the operational temperature range of the specific board version which must not be exceeded If batteries are present their temperature restrictions must be taken into account In performing all necessary installation and application operations please follow only the instructions supplied by the present manual Keep all the original packaging material for future storage or warranty shipments If itis necessary to store or ship the board please re pack it as nearly as possible in the manner in which it was delivered Special care is necessary when handling or unpacking the product Please consult the special handling and unpacking instruction SD DT G11 6e Page iv Table Of Contents Fedora 16 Release Notes Table Of Contents Chapter T OVBIVIBW 42am BKA KAKAIBA a aq NADA BA 1 Chapter2 Release Content 2 nnn 3 Chapter 3 Associated Documentation eee 5 Chapter 4 Required Configuration n 6 4 4 Hardware Requirements 2 ee nnne 6 4 1 1 Hardware Requirements for VX304x Boards 2 6 4 1 2 Hardware Requirements for VX3035 Board cece
60. hkconfig diskless on In this case the next time you boot the server the service diskless will be launched As result the commands diskless x and diskless e will be run automatically authorizing the diskless boot of the target 7 5 9 Initiate a Reset of the Remote Targets root ki7 diskless aR Should cause a reset of all the remote targets Page 38 SD DT G11 6e Fedora 16 Release Notes 7 6 Sysvartool To get the report of the PBIT Power Built In Test run the command root ki7 sysvartool A pbit 1 VX304x detected area 2 arch POSTs configured mem data mem addr mem patternl mem pattern2 mem pattern3 mem pattern4 ether loop0 ether loopl ether loop2 system PASSED 10 FAILED 0 NOT RUN 0 TOTAL 10 POSTs configured PASSED 0 FAILED 0 NOT RUN 0 TOTAL 0 POSTs configured PASSED 0 FAILED 0 NOT RUN 0 TOTAL 0 SD DT G11 6e 2 to run PASSED PASSED PASSED PASSED PASSED PASSED PASSED PASSED PASSED PASSED to run to run from command line FAILED ONCE FAILED ONCE automatically from RAM automatically from ROM BSP Specific Features Page 39 BSP Specific Features Fedora 16 Release Notes 7 7 NAME GPIOs cpld gpio Kontron board gpio cpld driver gpios DESCRIPTION This man page describes how to use the gpios implemented by the cpld on various Kontron boards including the VX304x VX3035 and VM605x families The cpld gpio
61. hould accept the broadcast little endian bits 1 21 See the section on 2ESST below User Space DMA Operations ioctl fd VMEIOCTL DMA START 8A SD DT G11 6e Page 51 BSP Specific Features Fedora 16 Release Notes calls alma user dma A dma vmeadar A dma data A dma size A dma flag ioctl fd VMEIOCTL DMA START MCAST 8A calls alma user dma mcast A mcast vmeaddr A mcast data A mcast size A mcast flag A mcast select This feature is not available on Alma2f For example dma arg vmeaddr strtoul argv 1 NULL 0 VME address size strtoul argv 2 NULL 0 dma arg dmaaddr malloc size DMA buffer if dma arg dmaaddr NULL fprintf stderr Error allocating DMA buffer in exit 1 dma arg size size size if argc lt 3 Optional channel dma arg flag VMEFG AM A32SDATA VMEFG DMA VMEPCI else dma arg flag strtoul argv 3 NULL 0 printf VME Addr 0x x DMA buf Ox p Size 0x x Flags Ox xWn dma arg vmeaddr dma arg dmaaddr dma arg size dma arg flag err ioctl fd VMEIOCTL DMA START amp dma arg if err 1 unsigned int ptr unsigned int dma arg dmaaddr for i 0 i lt dma arg size 28 i printf 0x p x x x x x x xWMn ptr ptr 0 ptr 1 ptr 2 ptr 3 ptr 4 ptr 5 ptr 6 ptr 7 Contiguous Memory Allocation The following routines allocate and free the physically contiguous memory needed for dma alma_phys_mem_alloc int alma
62. kkkkkk Select one of these options gt Install or upgrade using SERIAL console to do all the installation using the serial console However in this mode the disk partitioning cannot be customized and only a fixed very minimal set of 200 packages is installed Depending on the needed services and libraries some post installations may be required so this is not the recommended method If possible install using VNC see below or using a graphics display gt Install or upgrade using VNC to start the installation using the serial console but then use a VNC client on another system to do the rest of the installation in graphics mode with all installation options available This requires the network to be connected to the board When installing using the Install or upgrade using VNC the default behaviour is to use a DHCP server to provide the network settings to the board If no DHCP server is available it is possible to provide these settings manually as follows gt Move the cursor to the Install or upgrade using VNC line SD DT G11 6e Page 13 Installation Press tab and append the network settings at least the IP address Fedora 16 Release Notes 5 vmlinuz initrd initrd img console ttyS0 115200 text stage2 hd LABEL Fedora vnc ip 172 20 144 95 or more settings 5 vmlinuz initrd initrd img console ttyS0 115200 text stage2 hd LABEL Fedora vnc ip 172 20 161 201 netmask 255 255 255 0 gateway 172 20 161 4
63. l reserve a 1 Gigabyte writable area gt Press Enter to launch the process Then reboot the board and select the SSD device as new boot device this time A menu is displayed proposing 2 choices Start FEDORA16 Ki7 Troubleshooting Choose Start FEDORA16 Ki7 As a result you have access to a complete Fedora 16 x86 64 system including the BSP specific to the Ki7 board Of course you might customize this system with your own changes All these changes will be preserved in the overlay layer SD DT G11 6e Page 17 Fedora System Configuration Fedora 16 Release Notes Chapter 6 Fedora System Configuration In this chapter information related to some specific configuration items of the Fedora 16 system are detailed 6 1 Network 6 1 1 Network Manager With Fedora 16 the network interfaces are managed by the NetworkManager service by default For an embedded system it is recommended to use the older network service instead which is easier to configure through configuration files For this Disable the NetworkManager service root ki7 chkconfig NetworkManager off Enable the network service root ki7 chkconfig network on Stop the network manager service NetworkManager stop Check the configuration files and modify them if needed etc sysconfig network scripts ifcfg ethx files etc resolv conf etc sysconfig network Start the network service service network start gt Reboot if etc sysconfig
64. l fd VMEIOCTL VME CHAN GETIO struct pcivme window p copies the PCI IO to VME channel descriptions into the third arg It is N structures of type struct pcivme window where N is the number of PCI IO to VME channels opened ioctl fd VMEIOCTL VME CHAN GETMEM struct pcivme window p copies the PCI MEM to VME channel descriptions into the third arg It is N structures of type struct pcivme window where N is the number of PCI MEM to VME channels opened ioctl fd VMEIOCTL VME CHAN GETNB 8A SD DT G11 6e Page 57 BSP Specific Features Fedora 16 Release Notes returns in A vmechannb mem the number of PCI MEM to VME channels opened and in A vmec hannb io the number of PCI IO to VME channels opened ioctl fd VMEIOCTL PCI CHAN GET struct vmepci window p copies the VME to PCI channel descriptions into the third arg It is 7 structures of type struct vmepci window ioctl fd VMEIOCTL PCI CHAN GETEXT struct vmepci window p copies the VME to PCI channel descriptions into the third arg It is MAXVMEPCIWIN structures of type struct vmepci window ioctl fd VMEIOCTL SET BOARDID int ga set the GA Geographical Address for opening an A16S VME window pointing the the Alma bridge registers Note that if the ga value is equal to Oxff the current GA of the board is not modified Fur thermore if ga equal to 1 than this window is closed Sysfs Files The driver provides files under the sysfs vme class directory sys cl
65. le name tmp test sh containing cd sys devices platform i2c cpld 6 i2c 22 22 0028 cat templ max alarm intr echo Nuvoton local temp went beyond the high limit shutdown now Make it executable and run it root ki7 chmod x tmp test sh root ki7 tmp test sh As a consequence in case the nuvoton temperature goes beyond the high limit temperature this shell script will automatically cause a shutdown of the board 71 2 Sensors Values Limitations The sensors named acpitz virtual 0 has some limitations For these sensors which are internal to the CPU Intel does not guarantee the validity of temperature value in high level range of temperature The Kontron BIOS to inform the user that the temperature probe validity is not correct return the value 56 C So if a probe of these sensors value returns 56 C it does not mean that the board is currently running at 56 C but it only means that the probe value can not be reliable The sensor named pchtemp pci 00fe has some limitations as indicated in the Intel documentations The temperature range of this sensors is approximately between 40 C to 130 C Temperature below 40 C will be truncated to 40 C 7 1 3 Temperature Sensors Threshold and Alarm Report The LM73 and or Nuvoton NCT7802Y have some minimum and maximum thresholds configured by the BIOS Linux drivers present in this distribution for these temperature sensors implement a polling mechanism to report
66. line in boot grub grub conf if present terminal timeout 5 serial console This will prevent GRUB from waiting 5 seconds to let you select a console by typing a character on one console to select it This setting has nothing to do with the timeout on the boot menu that is set by the line LIN N timeout lt value gt Page 20 SD DT G11 6e Fedora 16 Release Notes Fedora System Configuration 6 4 SATA Speed Kontron introduce in the Ki7 BSP a file named etc grub d 80 ki7 that contains the default value to append in the Linux command line By using this custom file the standard Fedora comand grub2 mkconfig o boot grub2 grub cfg can be used for each kernel package update and also during the installation process By default the following parameters getfrom etc grub d 80 ki7 are appended to each menu entry of the grub cfg file located to boot grub2 grub cfg APPEND LINUX pcie aspm off console ttyS0 115200 vmalloc 512MB selinux 0 acpi enforce resources lax All SATA interfaces of a Ki7 board are not speed limited The following line explain how to customize the etc grub d 80 ki7 for having a specific speed for each SATA interface Once the file etc grub d 80 ki7 is configured and a backup of the file boot grub2 grub cfg is done type as root privilege grub2 mkconfig o boot grub2 grub cfg To properly manage the SATA speed first of all check at the BIOS setup that AHCI mode is enabled Futhermore AHCI mode sh
67. mand argument and an appropriate struct as third argument As alma ioctl arg t is a union of most of the possible struct types it can be used as a suitable third argument for most of the ioctls The descriptions below assume the following usage alma ioctl arg t A A 2207 ioctl fd command 8A VME Access All accesses to or from the VMEbus go through the PCI32 bus and the PCI to VME bridge hardware No specific windows slave or master are opened at load time by the almavme device driver except for the slave window to access Alma register space A16 that is inherited from the firmware setup on VMPCx and PN3 boards See the Mapping Service Calls section below on how to open slave or master windows Mapping Service Calls alma_pci_channel_alloc int alma_pci_channel_alloc char name u32 vmeaddr unsigned long pciaddr u32 size u32 flag This allocates a slave channel from the VME to the PCI i e incoming accesses to the board Up to 15 channels can be opened 8 of them support 2ESST see the 2ESST section The parameters of the routine describe the VME PCI channel name is the name of this channel It can be up to 12 bytes long including the final null char It is only used to label this channel in the list of channels printed by the almavmechan 1 utility vmeaddr is the VME physical address where the board will respond on the VME It must be aligned to a 1MB boundary and also to the rounded up channel size pciaddr is th
68. nd a Ni VGA connector Page 6 SD DT G11 6e Fedora 16 Release Notes Required Configuration 4 1 4 Hardware Requirements for VM6052 VM6054 Board gt A Kontron VM6052 VM6054 board gt The Fedora 16 release may be installed on one of the following bootable disks gt a SATA disk connected to the SATA connectors available on the VM6052 RTM VM6054 RTM board gt AUSB DVD ROM device for installation from DVD ROM or a USB Flash disk generated as described in chapter 10 Create a USB Flash Disk from DVD Iso Image page 76 gt a console on serial line text or VNC install For a graphic configuration on VM6052 VM6054 a specific order code and a specific grapic module are pete required VM6052 SA2x x2xxx or VM6054 SA4x x2xxx and MOD GX SA 00 The module provides N two DP ports and a VGA connector 4 2 Firmware Requirements 4 2 1 VX304x Boards The version of the BIOS firmware must be at least gt 12332 This version is displayed in the BIOS Setup 4 2 2 VX3035 Board The version of the BIOS firmware must be at least gt 12174 This version is displayed in the BIOS Setup 4 2 3 VM6050 Board The version of the BIOS firmware must be at least gt 11332 This version is displayed in the BIOS Setup 4 2 48 VM6052 VM6054 Board The version of the BIOS firmware must be at least gt 15034 This version is displayed in the BIOS Setup SD DT G11 6e Page 7 Required Configuration Fedora 16 Release Notes 4 3 Softwar
69. ndard USB cable a doe EM 000 ui 89 mm mm HDD SATA device SATAO A Standard SATA cable Graphic configuration on VM6050 requires a specific order code and a specific graphic module VM6050 2SA34 12110 and MOD GX SA 00 The module provides two DP ports and a VGA connector uu There are 2 USB ports available one on the front panel and the other one on the RTM board if an RTM is available So in order to use a USB keyboard and a USB mouse plus a USB DVD ROM a USB HUB is D required Page 12 SD DT G11 6e Fedora 16 Release Notes Installation Chapter5 Installation This chapter describes the specific steps of the installation process of Fedora 16 on Ki7 boards 5 1 Disk Installation 5 1 1 Fedora 16 DVD Menu This section describes the options added to the installation menu on the Fedora 16 x86 64 DVD for Ki7 boards media When booting from this media the following menu appears on the serial line and also on the graphics display if present ka Welcome to Fedora 16 ki7 5 kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk Install or upgrade using GRAPHICS mode Install or upgrade using SERIAL console Install or upgrade using VNC Install system with basic video driver Rescue installed system using GRAPHICS mode Rescue installed system using SERIAL console Boot from local drive Memory test HO ob o ok ob ok ok ok ok F HR F XA AA F F F kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
70. of the DHCPD daemon So verify all worked well in this area by running root ki7 service dhcp status The output should include active running At this step unless you want to configure diskless in GEOID mode go directly to the section 7 5 6 Export the Root File System 7 5 5 Configure the DHCP and PXE Services in GEOID Ethernet Address Mode An alternative to the MAC address mode is the GEOID mode In this mode the IP address delivered by the DHCP server depends on the location of the target board in the chassis This mode is interesting in the sense that it allows you to replace a board by another one without changing the configuration file image xml because the MAC Ethernet address specific to each board is not coded into the image xml file in this case Page 36 SD DT G11 6e Fedora 16 Release Notes BSP Specific Features Indeed in this case it is required to code the GEOID range into the image xm file instead of the explicit MAC addresses related to the boards plugged into the rack So edit the file etc diskless image xml uncomment the right XML structure called nodemap id GEOID disk less cluster and comment out the one related to the MAC ADDR mode Then code the right GEOID value into this file field match criterium geoid gt In order to take into account the previous change run the following command root ki7 diskless x At this step the DHCPD daemon should be ready as well as the T
71. ol 1 FILES dev watchdog Documentation watchdog watchdog api txt COPYRIGHT Kontron Page 30 SD DT G11 6e Fedora 16 Release Notes BSP Specific Features 7 3 VPD Tool NAME vpdtool display Kontron board VPDs Vital Product Data SYNOPSIS a boardtype boardtype conffile or f file eclevel help or h human or H keylist macaddr serialnumber variant DESCRIPTION vpdtool reads the VPDs Vital Product Data of many Kontron boards including the following e ITC320 322 PENTXM2 4 e VM6050 VM6052 VM6054 e VM6250 e VX3020 VX3030 VX3035 VX3040 e VX3230 VX3240 e VX6060 VX6070 VX6080 As it reads hardware ports via dev mem you need to be root to run it OPTIONS a boardtype forces the architecture of the board to that given e g VX3020 conffile or f file uses the given features definition file This file says how to convert the vpd binary encodings into text descriptions help or h prints an option summary human or H displays features of the board in a human readable way boardtype eclevel keylist macaddr serialnumber variant displays only the requested information The options can be combined EXAMPLE sudo vpdtool human VM6050 detected SD DT G11 6e Page 31 BSP Specific Features FILES Fedora 16 Release Notes i2cbus num 22 Board t
72. otes vmeintwait id wait for a VME interrupt setamrw value set AM address modifier to use for accesses through standard read and write routines vmeedit use the VME data editor to do direct VME bus read writes with VME addresses getalmastate print the current Alma state setalmastate va set the Alma state editalmastate change the Alma state interactively dmastart vmeadr dramadr size fg start a DMA between VME and PCI dmabdcst vmeaar pwbaar size fg sel start a broadcast DMA dmawait id wait for the end of a DMA physmemalloc size allocate a contiguous physical memory area physmemfree phys addr free a contiguous physical memory area EXAMPLES To create a PCI MEM to VME channel at VME address 0x10000000 size of 8 MB with read ahead and write posting modes almavmechan vmememalloc GREAT 0x10000000 0x8000000 0x3 0xd2000000 The result Oxd2000000 is the CPU physical address needed to access VME address 0x10000000 To print all opened channels and the state of the ALMA bridge almavmechan printall Page 62 SD DT G11 6e Fedora 16 Release Notes BSP Specific Features Name CPUaddr PCIaddr VMEaddr size Mb AM Conv WP RH GREAT 0xd2000000 0x52000000 0x10000000 0128 A32SDATA ADDR Yes Yes Alma state System controller fixed priority timeout 100 Fair mode timeout Not Fair mode VME bus release mode ROR Request level BR3 Dead lock logic ON 2ESST rate FAST SEE ALSO almavme 4
73. otes This deprecated routine enables a single VME interrupt level from 1 to 7 alma vmeinterrupt int alma vmeinterrupt unsigned char level unsigned char vector This sends an interrupt on the VMEbus Vector must be a multiple of 8 The interrupt vector generated is vector level User Space Interrupt Service ioctl fd VMEIOCTL VMEINTR GEN 8A calls alma vmeinterrupt A intr level A intr vector ioctl fd VMEIOCTL VMEINTR CTRL 8A calls alma vmeintcontrol A intrctl mask A intrctl enable ioctl fd VMEIOCTL VMEIOINTSET 8A connects interrupt A vector to the VME driver and returns an identifier that can be used with VMEIOCTL INTRWAIT and VMEIOCTL VMEIOINTCLR ioctl fd VMEIOCTL VMEIOINTCLR 8A disconnects interrupt A index from the VME driver ioctl fd VMEIOCTL INTRWAIT 8A Page 56 waits for an interrupt connected by VMEIOCTL VMEIOINTSET A index is the identifier returned by VMEIOCTL VMEIOINTSET For example generating an interrupt lvl strtol argv 1 NULL 0 VME IRQ level vect strtol argv 2 NULL 0 VME vector printf Level 0x lx Vector Ox 1xMn lvl vect alma ioctl intr level u32 1vl1 amp 0xFFFFFFFF alma ioctl intr vector u32 vect amp OxFFFFFFFF err ioctl fd VMEIOCTL VMEINTR GEN amp alma ioctl For example waiting for an interrupt lvl strtol argv 1 NULL 0 vect strtol argv 2 NULL 0 alma arg vector vect amp 0xFF Vector printf Ini
74. ould allow the access to Hotplug option refer to next chapter The current speed of the SATA ports may be checked at boot time by root ki7 dmesg egrep ata 1 9 2 245738 atal DUMMY 2 248184 ata2 FORCE PHY spd limit set to 3Gbps 2 253227 ata2 SATA max UDMA 133 abar m2048 0xf0b12000 port Oxf0b12180 irq 44 2 260605 ata3 DUMMY 2 263047 ata4 DUMMY 2 265490 ata5 FORCE PHY spd limit set to 3Gbps 2 270531 ata5 SATA max UDMA 133 abar m2048 0xf0b12000 port 0xf0b12300 irq 44 2 277911 ata6 DUMMY 2 584377 atab SATA link up 1 5 Gbps SStatus 113 SControl 310 2 584411 ata2 SATA link up 1 5 Gbps SStatus 113 SControl 310 D o n o o o o o n To set the speed of the ata2 bus to 3 Gbps and ata5 bus to 1 5 Gbps modify the APPEND LINUX entry in the etc grub d 80 ki7 file APPEND LINUX pcie aspm off console ttyS0 115200 vmalloc 512MB selinux 0 acpi enforce resources lax libata force 2 3 06 5 1 5G Once the file is modified type as root privilege root ki7 grub2 mkconfig o boot grub2 grub cfg Reboot the machine to have these new settings applied at boot time SD DT G11 6e Page 21 Fedora System Configuration Fedora 16 Release Notes root ki7 dmesg egrep ata 1 9 2 245689 atal DUMMY 2 248133 ata2 FORCE PHY spd limit set to 3 0Gbps 2 253177 ata2 SATA max UDMA 133 abar m2048 0xf0b12000 port Oxf0b12180 irq 44 2 260557 ata3 DUMMY 2 263001 ata4 DUMMY 2 265445 ata5 FORCE PHY s
75. pd limit set to 1 5Gbps 2 270488 ata5 SATA max UDMA 133 abar m2048 0xf0b12000 port 0xf0b12300 irq 44 2 277867 ata6 DUMMY 2 584331 ata5 SATA link up 1 5 Gbps SStatus 113 SControl 310 2 607884 ata2 SATA link up 3 0 Gbps SStatus 123 SControl 320 De o n o o o o s n n A It is mandatory for Ki7 to setup the SATA Speed of the onboard SSD Flash device to 1 5 Gbps In order to find the SATA bus number under Linux of the SSD Flash device type the following command root localhost dmesg egrep GLS85 2 630945 ata5 00 ATA 8 GLS85LS1032A CS 32GBN A101D3 N A101D3 max UDMA 133 2 763694 scsi 4 0 0 0 Direct Access ATA GLS85LS1032A CS N A1 PQ O ANSI 5 In this case the dmesg indicates that the GL 85LS10324A with 32 GB is located to the ata5 bus means SATA number 5 To keep a 1 5 Gbps speed for this interface libata force 5 1 5G parameter must be preserved when the file etc grub d 80 ki7 is customized Page 22 SD DT G11 6e Fedora 16 Release Notes Fedora System Configuration 6 5 SATA Hotplug In AHCI mode the SATA controller of the Ki7 boards provides a hotplug function First of all this has to be setup at BIOS menus Chipset gt South Bridge Configuration gt SATA Configuration After the Hot Plug option is enabled for the SATA ports boot the system To remove a SATA device from the system Close all users of the device and backup device data as needed Use umount to unmount any file systems that mounted th
76. r Terminal Aide PowerTOP 2 1 IEEE cle stats Fichier Edition Affichage Reche 8 13 03 up 15 min The CPU is used only at 36 of its capacity SD DT G11 6e Page 75 Create a USB Flash Disk from DVD Iso Image Fedora 16 Release Notes Chapter 10 Create a USB Flash Disk from DVD Iso Image Kontron can provide DVD ROM media or ISO disk images This chapter provides information for customer to be able to generate a USB flash disk from the iso image This USB flash disk build allows to emulate a USB DVD ROM from BIOS boot What do you need 1 Host machine with at least Fedora 16 2 A USB Flash Disk 3 Kontron Fedora 16 BSP iso image Please Verify that the package livecd tools is installed Then type the following command with the root privilege livecd iso to disk format msdos reset mbr root BuildDVD 16 Fedora x86 64 iso Fedora 16 ki7 x86 64 DVD iso dev sdb Where gt Fedora 16 ki7 x86 64 DVD iso is the Kontron BSP iso image dev sdb USB Flash disk connected for example on RTM or front panel gt livecd iso to disk Command available in the package livecd tools Page 76 SD DT G11 6e Fedora 16 Release Notes Additional Information Chapter 11 Additional Information 11 4 Known Limitations SUSPEND Mode not supported The SUSPEND mode is not supported by the current graphic chipset hardware So follow this procedure in order to disable it gt Create a new configur
77. refer to a board among the VX304x VX3035 VM6050 amp VM6052 54 boards The release is made of Fedora 16 x86 64 DVD for Ki7 boards This distribution includes the standard Fedora 16 Linux release as well as the BSP packages related to the Ki7 boards You can choose to install this distribution in a graphical configuration or in a serial console configuration gt Fedora 16 x86 64 LiveDVD for Ki7 boards The content of this distribution is identical to the previous one but the usage is different This distribution has a double role at first it can be used in order to evaluate this new release without impacting the content of an onboard SATA disk Secondly it allows you to install a LiveUSB flavor of Linux on the onboard SATA flash SSD or USB flash stick The main interest of a LiveUSB installation is to preserve as much as possible the flash devices by limiting the writing cycles to them The Board Support Package BSP provides support for some specific features of the board Kernel Update of the kernel of Fedora 16 to support Ki7 boards specifics features and to fix issues Note that this kernel is required by the following features Sensors CPU Cores and Board temperatures and voltages Vital Product Data VPD Tool Get board s serial number order code E C Level LEDs Four Front Panel Tri color LEDs GPIO Driver to support the GPIOs of the Ki7 boards Watchdog Drivers to setup the Watchdogs of
78. rnor forces the CPU to use the lowest possible clock frequency cpufreq ondemand The ondemand governor is a dynamic governor that allows the CPU to achieve maximum clock frequency when system load is high and also minimum clock frequency when system is idle This is the default mode best compromise between heat emission power consumption performance and manageability cpufreq userspace Allows userspace program to set the frequency Used normally in conjunction with the cpuspeed daemon cpufreq conservative Similar to the cpufreq ondemand mode but this mode switches between frequencies more gradually Boot the target under linux and log as root At first you can view which governor the system is currently using with the command root ki7 cat sys devices system cpu cpu0 cpufreq scaling governor The result will be probably ondemand because this is the default value You can also view which governors are available for the CPUs root ki7 cat sys devices system cpu cpu0 cpufreq scaling available governors At this step select the governor mode which fits the best your need with the command root ki7 echo xxxx gt sys devices system cpu cpu0 cpufreq scaling governor Control the result by root ki7 cat sys devices system cpu cpu0 cpufreq scaling governor SD DT G11 6e Page 69 Power Management Fedora 16 Release Notes An alternative consists of selecting an explicit frequency by using a command such as root ki7 cd
79. s 74 LEDs The driver leds cpld handles the front panel LEDs for user mode The driver leds cpld creates a list of special files and classes in sys root ki7 1s sys class leds led2 amber led2 0FF led3 amber 1ed3 0FF led2 green led2 red led3 green led3 red For each LED there are three different colors available green red amber that can be set by addressing the related file For each color which are exclusive there are four different modes ON echo 0 see following example gt slow blinking echo 1 see following example fast blinking echo 2 see following example gt OFF echo 1 see following example Example to set these different modes on the LED 2 in amber root ki7 echo 0 5 led2 amber brightness The LED 2 is ON in AMBER root ki7 echo 1 gt led2 amber brightness The LED 2 blinks low in AMBER root ki7 echo 2 5 led2 amber brightness The LED 2 blinks fast in AMBER root ki7 echo 0 gt led2 0FF brightness The LED 2 is OFF When setting led2 or led3 both led2 and led3 are set to user mode To exit from this mode set led lt n gt OFF brightness to a non null value for example root ki7 echo 1 5 led2 0FF brightness VX304x On the front panel the name of the led1 is L1 led2 is L2 and led3 is L3 The led1 L1 and L4 is not manageable at user level so no special file for led1 is available N SD DT G11 6e Page 33 BSP Specific Features Fedora 16 Release Notes 7 5 Mul
80. s This can be done also by editing the etc sysconfig network scripts ifcfg eth files and removing the HWADDR lines A Removing HWADDR only works if the service network and not NetworkManager is used 6 1 4 Firewall If the firewall must be disabled but has been enabled during the installation gt Run system config firewall click on disable and exit OR run root ki7 service iptables stop root ki7 service ip6tables stop Make sure to disable the iptables service by running root ki7 chkconfig iptables off root ki7 chkconfig ip6tables off gt Reboot SD DT G11 6e Page 19 Fedora System Configuration Fedora 16 Release Notes 6 2 SELinux SELinux stands for Security Enhanced Linux The Security Enhanced Linux kernel enforces mandatory access control policies that confine user programs and system servers to the minimum amount of privilege they require to do their jobs If you experience some trouble running some services or have some permission issues try to set the System Default Policy to Permissive instead of Enforcing by running the system config selinux tool or from command line doing as follows gt disable on boot by editing etc selinux config to set SELINUX permissive instead of SELINUX enforcing gt disable now setenforce 0 6 3 GRUB Boot Loader If your console is on the serial line and that access to the grub boot menu is not required on the graphics console you should comment the following
81. skless fs xml If you want change the content of the RFS for example in order to add your own package simply add the package name to the list Be careful when you change one of the xml files etc diskless images xml or IN etc diskless diskless fs xml Keep a copy of the initial version M You should notice the presence of two layers under diskless layers root ki7 1s diskless layers fedora base fedora config with gt fedora base Containing the reference root file system gt fedora config A customizable layer you can change as you want For example if you want to use your own etc hosts file simply install it under diskless layers fedora con fig by running root ki7 cp parents etc hosts diskless layers fedora config In this way the target s after booting throught the network will see your own etc hosts file instead of the reference one in fact from the diskless client point of view the layer fedora config overloads the underneath fedora base layer The RFS is now ready The next step is to configure the DHCP server as well as the PXE boot 7 5 4 Configure the DHCP and PXE Services in MAC Ethernet Address Mode This step is mandatory to authorize remote targets to boot over the LAN on the diskless server Two modes are available for this purpose gt MAC Ethernet mode in this mode the IP address delivered by the DHCP server depends on the MAC Ethernet address of the target board gt GEO
82. stem controller It is possible to enable those busses on other slots by adding the option force i2c extend 1 at the load of the module cp1d Add this argument cpld force i2c extend 1 at the kernel command line to enable this option 710 BIOS Update The flashrom package provides a set of commands and scripts to update the BIOS of the boards To update the BIOS of the Ki7 boards use the command ki 7updbios Help command root ki7 ki7updbios h usage usr local sbin ki7updbios options bios image Script to update the BIOS on boards using flashrom tools n Options 1n r Read the current BIOS in bios image file n w Update the BIOS image using the given bios image file n a Update the all BIOS eeprom n root ki7 Read the current BIOS root ki7 ki7updbios r BIOS bin flashrom v0 9 4 on Linux 2 6 32 14 11035 vx304x fc12 1686 PAE 1686 built with libpci 3 1 7 GCC 4 4 2 20091027 Red Hat 4 4 2 7 little endian flashrom is free software get the source code at http www flashrom org Calibrating delay loop OK No coreboot table found Found chipset Intel QM57 enabling flash write OK This chipset supports the following protocols FWH SPI Found chip SST SST25VF032B 4096 KB SPI at physical address Oxffc00000 Reading flash done root ki7 1s Itr BIOS bin rw r r 1 root root 4194304 2011 03 03 15 54 BIOS bin Page 44 SD DT G11 6e Fedora 16 Release Notes BSP Specific Featur
83. t the terms VX304x VX3035 VM6050 and VM6052 VM6054 are used for the VX304x VX3035 VM6050 and VM6052 VM6054 boards in standard or rugged conduction cooled version VX304x 3U VPX Computing Node VX304x SA Standard Commercial version VX304x RC Rugged Conduction Cooled version VX3035 Single slot 3U VPX board VX3035 SA Standard Commercial version VX3035 RC Rugged Conduction Cooled version VM6050 Single slot GU VME board gt VM6050 SA Standard Commercial version VM6050 RC Rugged Conduction Cooled version VM6052 VM6054 Single slot GU VME board gt VM6052 SA amp VM6054 SA Standard Commercial version VM6052 RC amp VM6054 RC Rugged Conduction Cooled version SD DT G11 6e Page 1 Overview Fedora 16 Release Notes In this document the terms VX304x RTM VX3035 RTM VM6050 RTM and VM6052 VM6054 RTM are asso ciated to the VX304x VX3035 VM6050 and VM6052 VM6054 Rear Transition Module RTM VX304x RTM Rear Transition Module for the single slot 3U VPX board gt PB VX3 4xx VX3035 RTM Rear Transition Module for the single slot GU VPX board gt PB VX3 011 gt gt VM6050 RTM Rear Transition Module for the single slot GU VME board gt PBV36 P0 VM6 00 gt gt VM6052 VM6054 RTM Rear Transition Module for the single slot GU VME board gt PBV36 P0 VM6 00 Page 2 SD DT G11 6e Fedora 16 Release Notes Release Content Chapter2 Release Content In this document the term Ki7 is used to
84. t 0x870 Oxd 0x870 lt Ox0d root ki7 port 0x870 0x870 0x0d SEE ALSO cpld 4 cpldtool 1 FILES sys devices platform cpld gpios cpld gpio gpio 1 8 COPYRIGHT Kontron SD DT G11 6e Page 41 BSP Specific Features Fedora 16 Release Notes 7 8 cpldtool NAME cpldtool Kontron board cPLD register utility SYNOPSIS a d register f register fieldname hexvalue i register s register hexvalue V DESCRIPTION This utility interprets displays and sets flags in registers of the cPLD on Kontron boards including the VX3230 VM6250 VX3030 and VX6060 The cPLD is a small device that controls some low level aspects of the board See cpld 4 You need to be root to access the device Do not change register values accept as advised by Kontron OPTIONS Registers should be given as a decimal number or hexadecimal number prefixed by Ox whereas register content hexvalues are always assumed to be hexadecimal whether prefixed or not a displays all registers and interprets the bitfield flags as appropriate d register displays the current value of the given register i register displays information on the given register naming each bitfield and saying where it starts s register hexvalue sets the given register to the given hexadecimal value f register fieldname hexvalue sets the given register field by field Each field is specified by field name as shown by option i and the hexadecimal value for
85. t handling for interrupt level d and vector 0x x 0x x n lvl vect alma arg vector fflush stdout Id ioctl fd VMEIOCTL VMEIOINTSET amp alma arg Enable the interrupt lvl alma arg intrctl mask 1 lt lt lvl VME IRQ level alma arg intrctl enable 1 Enable the IRQ err ioctl fd VMEIOCTL VMEINTR CTRL amp alma arg printf Wait for interrupt level d vector 0x x id d Mn lvl vect Id fflush stdout alma arg index Id Id in the user vector table err ioctl fd VMEIOCTL INTRWAIT amp alma arg printf RECEIVEDin fflush stdout SD DT G11 6e Fedora 16 Release Notes BSP Specific Features Disable the interrupt lvl alma arg intrctl mask 1 lt lt lvl VME IRQ level alma arg intrctl enable 0 Disable the IRQ err ioctl fd VMEIOCTL VMEINTR CTRL amp alma arg printf Disable VME IRQ level d n lvl alma_arg index Id Id in the user vector table err ioctl fd VMEIOCTL VMEIOINTCLR amp alma_arg Addressed Interrupts There is another way to transmit an interrupt across the VMEbus using addressed interrupts A byte write into a special register of the VME PCI bridge will generate an interrupt on the board A driver can choose to discriminate between eight different sources of addressed interrupts The VME PCI bridge registers can be accessed from the VMEbus in A16 mode The A16 base address is setup by firmware VMEID on a 256 byte boundary and ext
86. the appropriate port For example use dd on dev port or the port command from rpm hwtools as user root beware inappropriate i o on ports may crash the system As an example port 0x800 holds the version number of the cpld root ki7 port 0x800 0x800 0x06 Reset cpuB On boards with two separate cpus you can reset cpuB from cpuA or vice versa by setting Isb bit O to O in port 0x804 This is most easily done with the cpldtool utility root ki7 cpldtool f PWR RST CONFIG Software Cross Reset 0 The alternative is to read the port to find the current value calculate the new value obtained by clearing bit O which should always read as 1 and write the new value back The bit will return to 1 on its own Access cpuB Serial Port On boards with two separate cpus you can enable access to cpuB s second console serial port from cpuA by dynamically setting the appropriate bit in cpld register Oxc or permanently by configuring the bios The two dev ttyS1 devices on the board are then linked together and can communicate via some utility like minicom or pyserial s miniterm py root ki7 cpldtool f BOARD CONFIGURATION SERIAL2 cfg 1 root ki7 miniterm py dev ttyS1 115200 To configure this permanently with the bios on cpuA follow the menus Kontron Serial Configuration COM1 Link Mode Enabled To see the cpuB bios on ttyS1 configure the cpuB bios with Advanced Serial Port Console Redirection SD DT G11 6e Fedor
87. tinodes Diskless Multinodes Diskless is a powerful set of python scripts to help the configuration of diskless root filesystems and to boot distant nodes through the Ethernet network PXE The main command is diskless root ki7 diskless help There are two xml files to configure the diskless system etc diskless images xml describes the layers the nodes and main configuration setup etc diskless diskless fs xml lists the rpms used to build the root filesystem of the distant nodes The user manual is available at usr local share doc diskless pdf manual pdf If diskless is not needed you can disable this service at boot time LIN root ki7 chkconfig diskless off 7 5 1 Introduction When you have several Ki boards in your machine you can use one of the board as a diskless server Most of the time it will be the first board present in a chassis but it is not mandatory It must be equiped with a SATA hard disk or SATA SSD Of course you won t need any disk media present on the other targets providing that the targets will boot on the diskless server through the network that is the point The package multinodes diskless is available to setup and configure a NFS exportable root filesystem and to get a kernel and a initrd bootable through PXE The diskless product is incompatible with SELINUX enforcing policy as well as iptables services So run the following commands in order to disable these services gt Stop the
88. tions are not needed for release BSP ID 14085 The BSP packages are present on the media Fedora 16 x86 64 DVD for Ki7 boards Follow the procedure below to install the BSP onto an existing bootable media SATA disk or USB flash or to access to the source packages 1 Insert the Kontron media Fedora 16 x86 64 DVD for Ki7 boards in the USB DVD ROM drive 2 Boot the Ki7 board on the SATA disk previously installed with the Fedora 16 3 Login as root and run the following commands At first create a repo file in order to acces the packages present on the DVD mount dev sr0 mnt cat 5 etc yum repos d ki7 bsp repo EOF ki7 bsp name ki7 bsp gpgcheck 0 enabled 0 baseurl file mnt EOF b Then install the BSP with the command yum y disablerepo enablerepo ki7 bsp install ki7 bsp The installation process will take a few minutes 4 Reboot the machine to take into account the new version of the BSP When the BSP is installed the kernel is updated At this step you should configure the system to use the network service instead of the NetworkManager and also do some other settings to configure the network interfaces to meet the requirements of an embedded system See important information about that at section 6 1 Network page 18 Page 78 SD DT G11 6e G kontron MAILING ADDRESS TELEPHONE AND E MAIL Kontron Modular Computers S A S 33 0 4 98 16 34 00 150 rue Marcelin Berthelot BP 244
89. tor void alma vmeintcontrol unsigned int mask unsigned int ienable int disable vmeirq u32 level int enable vmeirq u32 level int alma vmeinterrupt unsigned char level unsigned char vector int alma phys mem alloc struct alma phys mem object phys mem int alma phys mem free struct alma phys mem object phys mem User Space API from an application include lt linux almavme h gt int fd open dev almavme O_RDWR if fd lt 0 perror Error opening the almavme device exit 1 alma_ioctl_arg_t alma ioctl alma ioctl intr level 1 alma ioctl intr vector 2 int error ioctl fd VMEIOCTL VMEINTR GEN amp alma ioctl close fd See the User Space sections below DESCRIPTION This describes the kernel service calls available for VME device drivers or application development on Kontron platforms using the almavme driver for all boards equipped with Alma2e and Alma2f Alma2f provides a highly integrated single chip solution to interface a VME64 bus with 2eSST protocol two edge Source Synchroneous Transfer and a 32 bit 66 MHz PCI Bus All bridge features are prog rammable from the PCI bus or the VME bus See the Alma2f User Manual CI DT AOO SD DT G11 6e Page 47 BSP Specific Features Fedora 16 Release Notes Page 48 In the following functions are described from the kernel point of view and examples show how to call them from a user application User Space loctls All ioctls take a com
90. ug the power cable and any other cables which provide external voltages before performing work Page iii SD DT G11 6e Fedora 16 Release Notes Preface Special Handling and Unpacking Instructions ESD Sensitive Device A Electronic boards and their components are sensitive to static electricity Therefore care must be taken during all handling operations and inspections of this product in order to ensure product integrity at all times Do not handle this product out of its protective enclosure while it is not used for operational purposes unless it is otherwise protected Whenever possible unpack or pack this product only at EOS ESD safe work stations Where a safe work station is not guaranteed it is important for the user to be electrically discharged before touching the product with his her hands or tools This is most easily done by touching a metal part of your system housing It is particularly important to observe standard anti static precautions when changing piggybacks ROM devices jumper settings etc If the product contains batteries for RTC or memory backup ensure that the board is not placed on conductive surfaces including anti static plastics or sponges They can cause short circuits and damage the batteries or conductive circuits on the board General Instructions on Usage In order to maintain Kontron s product warranty this product must not be altered or modified in any way Changes or modifications to the device w
91. us utility for almavme driver SYNOPSIS vmememalloc name vmeaddr size flag vmeioalloc name vmeadar size flags vmefree cpu addr pcialloc name vmeaar cpuadr size fg pcifree id printall vmeioprint vmememprint pciprint vmeintrgen evel vector vmeintrctrl mask on off vmeiointset vector vmeiointclr vector vmeintwait id setamrw value vmeedit getalmastate setalmastate va editalmastate dmastart vmeadr dramadr size fg dmabdcst vmeaar pwbaar size fg sel dmawait id physmemalloc size physmemfree phys addr DESCRIPTION almavmechan can create and delete PCI to VME or VME to PCI channels using the ALMA PCI to VME bridge It prints the current channels opened It can also read and modify the bridge s state This utility uses the ioctl s of the VME bus driver described in almavme 4 OPTIONS vmememalloc name vmeaddar size flag allocate a PCIMEM to VME channel vmeioalloc name vmeadar size flags allocate a PCIIO to VME channel vmefree cpu addr free a PCI to VME channel pcialloc name vmeadr cpuaar size fg allocate a VME to PCI channel fg parameter defines the VME standard AM as ALMA bridge register format The following table shows the fg values for the different VME standard AM value Page 60 SD DT G11 6e Fedora 16 Release Notes BSP Specific Features A32 USER MBLT AM 0x08 fg 0x00201013 A32 USER DATA AM 0x09 fg 0x00202013 A32 USER PROG AM 0x04 fg 0x00204013 A32 USER BLT AM 0
92. use gt USB keyboard Display monitor through the mini DP or VGA Ethernet will be plugged in from the rear side through a Rear Transition Module RTM Paddle board The Kontron PB VX3 4xx is a JU VPX Rear Transition Module compliant with the definition of the Rear Transition Module on VPX Standard VITA 46 10 It provides rear I O peripherals connectivity for Kontron VX30xx Single Board Computers The Kontron VM6050 RTM Order Code PBV36 P0 VM6 00 rear transition module is compliant to PMC I O Module Standard VITA 36 199x Draft 0 1 July 19 1999 mechanical and PIM format and is available for VM6050 boards For example in order to perform a graphical linux installation stage on a VX3040 RC plug in the required devices to the paddle board USB mouse and USB keyboard through a USB HUB The display monitor through the mini DP After turning on the system you should notice all devices have been recognized correctly allowing to take control of the graphical environment Page 66 SD DT G11 6e Fedora 16 Release Notes RC Boards 8 3 RC Specifications The RC version of the boards is designed to work in different environmental constraints and for different levels of temperature and power dissipation This may imply specific setups cpu frequencies hardware parameters to guarantee the specified behavior They are described in the Hardware User s Guide of each board Please check this document for your board
93. v watchdog done After a while stop the loop and wait for a timeout root ki7 cat dev watchdog This will hang for 10 seconds If you wait another 10 seconds without issuing another read the OS will reboot To stop the watchdog instead root ki7 echo V gt dev watchdog To avoid the need to be root simply change the ownership or permissions of dev watchdog Watchdog loctl API The following standard ioctls are supported WDIOC GETSUPPORT include lt linux watchdog h gt struct watchdog info ident ioctl fd WDIOC GETSUPPORT amp ident returns in the structure the fields identity the driver identification cPLD WDT firmware version is always 1 options describes the supported features namely WDIOF KEEPALIVEPING and WDIOF SETTIMEOUT WDIOC SETTIMEOUT int timeout ioctl fd WDIOC SETTIMEOUT amp timeout sets the timeout in seconds WDIOC GETTIMEOUT ioctl fd WDIOC GETTIMEOUT amp timeout returns the current timeout setting in the argument not the dynamically changing counter value WDIOC SETOPTIONS SD DT G11 6e Page 29 BSP Specific Features Fedora 16 Release Notes int options ioctl fd WDIOC SETOPTIONS amp options configures the given options These are WDIOS DISABLECARD to disable the watchdog and WDIOS ENABLECARD to enable the watchdog WDIOC KEEPALIVE ioctl fd WDIOC KEEPALIVE 0 prods the watchdog restarting the countdown timer SEE ALSO cpld 4 cpldto
94. value in incoming signal or out outgoing The default is in For example root ki7 echo out gt sys class cpld gpio gpio4 direction root ki7 cat sys class cpld gpio gpio4 direction out value holds the value 0 low signal or 1 high On read return the current value of the gpio On write sets the value of an outgoing gpio For example root ki7 echo 0 gt sys class cpld gpio gpio4 value root ki7 cat sys class cpld gpio gpio3 value 1 polarity holds the value hi interrupt when signal active on high level or rising edge or lo active on low level or falling edge The default is hi mode holds the value edge interrupt on rising or falling edge or level on high or low level The default is edge toggle holds the value on interrupt on any state change or off interrupt only on the configured pola rity and mode When on it overrides the polarity and mode settings The default is off interrupt holds the value on enable interrupts or off disable When an interrupt occurs in level mode this value is automatically reset to off to avoid a permanent interrupt The default is off Page 40 SD DT G11 6e Fedora 16 Release Notes BSP Specific Features intr stat is a read only count of the number of interrupts received on the gpio This is an unsigned 32 bit decimal value which can be up to 10 digits long plus a newline This file is read only and writing to it will result in
95. x0B fg 0x00208013 A32 SUPER USER MBLT AM 0x0C fg 0x00210013 A32 SUPER USER DATA AM 0Xx0D fg 0x00220013 A32 SUPER PROG AM 0x0E fg 0x00240013 A32 SUPER BLT AM OxOF fg 0x00280013 A24 USER MBLT AM 0x38 fg 0x08001013 A24 USER DATA AM 0x39 fg 0x08002013 A24 USER PROG AM 0x34 fg 0x08004013 A24 USER BLT AM 0x3B fg 0x08008013 A24 SUPER USER MBLT AM 0x3C fg 0x08010013 A24 SUPER USER DATA AM OxsD fg 0x08020013 A24 SUPER USER PROG AM OxSE fg 0x08040013 A24 SUPER USER BLT AM 0x3F fg 0x08080013 A16 USER AM 0x29 fg 0x02002013 A16 SUPER AM 0x2D fg 0x02020013 A16 LCK AM 0x2C fg 0x02010013 A16 USER A16 SUPER A16 LCK can not be used to initialize a VME to PCI memory window due to the current driver window size definition that must be higher or equal to 1MB A24 USER MBLT A24 SUPER USER MBLT are identify as AM that present some transfer error For these cases please contact the Kontron support pcifree id free a VME to PCI channel printall print all allocated channels vmeioprint print all PCIIO to VME channels vmememprint print all PCIMEM to VME channels pciprint print all VME to PCI channels vmeintrgen evel vector send a VME interrupt vmeintrctrl mask on off mask or unmask VME interrupts vmeiointset vector connect a VME interrupt vmeiointclr vector disconnect a VME interrupt SD DT G11 6e Page 61 BSP Specific Features Fedora 16 Release N
96. ype VM6050 28A34 01110 EC Level EC02005 Serial Number 1811401050021 Variant 1020004180850000 Keylist PCB B SACLASS P2GPIOOFF BHQUAD IOFPGAON IBOMOFF PCIEMUX GEN2 NOJTAGPCH XMC COREI7LVK0 PWRMAGOFF BATON STD EARTH IRTC XDPON STDCLK CK505REFOSC XMCPWR12VOFF 2GB DDR3 1333 POPWRMAGOFF POUHM SATAHDD 2RANK VME PXMC 1SLOT FP4220N FL P800FF ITIN I2CSTD P5VOFF NOFPIO PMCON JTAGON Features PCB B SA Class No GPIOs 7 amp 8 on P2 Quad link NH82580 IO FPGA no DDR2 with FMC Normal BOM generation PCIe mux GEN2 PCH JTAG is not available on XDP connector XMCA and XMCB equipped Low Voltage 620LE Core i7 2GHz KO Front magnetic power option off Battery present Standard EARTH connection PCH internal RTC configuration XDP port available Standard clock option CK505 oscillator source configuration 5V XMC power rail 2GB DDR3 1333 device PO magnetic power option off PO type is UHM SATA equipped for VM6250 HDD carrier Both rank equipped vme 2esst available PMC P64s XMC X8d X12d IOs available 1 VME slot version for SA Front panel RS 422 option on Use of SnPb component only P80 debug option not available on debug connector PCB plating Immersion Tin CPLD I2C equipment one F RAM one EEPROM No P5V only No front IO option PMC connector fitted on board JTAG connector fitted on board dev mem dev i2c COPYRIGHT Page 32 Kontron SD DT G11 6e Fedora 16 Release Notes BSP Specific Feature
97. ysical Address alma ioctl vmechan size PCIVME BLKSIZE As small as possible 8 MB alma ioctl vmechan flag VMEFG AM A32UDATA physAddr ioctl fd VMEIOCTL VME CHAN ALLOC amp alma ioctl if physAddr 1 printf vmeOpen VME channel open VMEIOCTL VME CHAN ALLOC fail Page 50 SD DT G11 6e Fedora 16 Release Notes BSP Specific Features sNXn devName return ERROR virtualAddr unsigned long mmap 0 PCIVME BLKSIZE PROT READ PROT WRITE MAP SHARED fd off t physAddr amp OxFFFFFFFF if virtualAddr 1 printf vmeOpen VME channel open mmap fail s n devName ioctl fd VMEIOCTL VME CHAN FREE amp physAddr DMA Operations The VME PCI bridge includes two physical DMA channels that can copy data between PCI and VME buses DMA bounce buffers are allocated if necessary i e if the flags say the source or destination area is a virtual address Note that by default each DMA transfer is 4 kB a page Contact Kontron for other possibilities alma_user_dma int alma_user_dma u32 vmeaddr unsigned long pciaddr u32 size u32 flags This executes a dma between the given vmeaddr and a pci cpu physical or user virtual address depending on the flags It returns 0 on success vmeaddr is the VME physical address pciaddr is by default the DRAM logical address and DMA buffers are allocated If the flag VMEFG DMA PADDR is set it is the cpu physical DRAM address and DMA buffers are not allo cated but th

Download Pdf Manuals

image

Related Search

Related Contents

Omega OL6G15USB power extension  Sérgio Armando de Sá e Benevides  Draytek Vigor2925  Thème 1 - Hébergement des sites éducatifs de l`académie de Lille  Schede NIS - Azienda ULSS 22  Simpli Home 3AXCRGL003 Instructions / Assembly  Maverick Ventures ET-32 User's Manual    

Copyright © All rights reserved.
Failed to retrieve file