Home

Release Notes Fedora 16 on VX304x, VX3035, VM6050

image

Contents

1. tt HELL MU i ll 16 VM6050 amp VM6052 54 Release Notes Fedora on VX304x VX3035 ersion 3 4 ID 15111 SD DT G11 7e July 2015 o ra Preface Fedora 16 Release Notes Revision History Publication Title Fedora 16 Release Notes Doc ID SD DT G11 7e ES Brief Description of Changes Date of Issue Section 6 3 GRUB Boot Loader updated 07 2015 New sections 11 3 Rebuild BSP Packages 11 4 Errata 6e New version 3 4 1D15111 05 2015 Updated chapters sections 2 Release Content 4 2 4 VM6052 VM6054 Board 6 5 SATA Hotplug 7 12 1 Almavme 7 12 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
2. root ki7 sensors 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 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 7e Page 25 BSP Specific Feat
3. root ki7J cat sys devices system cpu cpu0 cpufreq scaling_governor SD DT G11 7e 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 sys devices system cpu root ki7 for i in 0 1 2 3 do cd cpu i echo 1300000 gt 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 7e 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
4. cc3 5 cc6 cc7 CO active POLL C1 Page 72 SD DT G11 7e 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 Inx2 Package Turbo Mode 89 1 2 10 SD DT G11 7e GHz GHz GHz GHz GHz GHz MHz MHz MHz 0 0 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 7 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 7 0 0
5. 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 system 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 7 10 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 ki7updbios 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 in 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 409
6. mean 210 220 and 230 respectively When describing transfer rates k M and G mean 10 108 and 109 not 279 220 and 230 LIN N In PowerPC terminology multiple bit fields are numbered from 0 to n where 0 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
7. 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 line in boot grub2 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 7e 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 p
8. Fedora 16 Release Notes Additional Information 11 4 Errata 11 4 4 VME Timeout set by default in the Driver at Infinite CRP 4286 Description The VME timeout is defaulty set at infinite The module parameter alma vmetim that corresponds to VME timeout is set at 0 It means infinite VME timeout The Inifnite VME timeout driver default is to preserve the Kontron Legacy VME This default parameter value at 0 can hang the VME bus in some specific use cases Workaround To avoid VME bus issue we advice the user to append these different alma vme module parameters to the Linux bootline as follows alma vme alma vmetim 255 alma vme alma pcitim 1 11 4 2 VME A24 USER MBLT and SUPER USER MBLT in DMA Mode Accesses does not work CRP 4287 Description All access to VME A24 USER MBLT AM 0x38 and SUPER USER MBLT AM 0x3c in DMA mode failed Workaround None 11 4 3 VME IRQ Response Time CRP 4288 Description VME IRQ response time can have less performance as expected This problem is mainly due to CPU idle mode on Intel Architecture Workaround Refer to section 7 12 3 VME IRQ Response Time Improvement page 63 11 4 4 LTP Tests failed on VM6052 VM6054 CRP 4289 Description LTP test release Itp full 20140115 has a score of 92 87 Even if this score is more than correct some fails appeared Workaround None For more details contact Kontron support 11 4 5 MTRR Register detected as mismatch in dmesg on VM6052 VM6054 CRP 429
9. 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 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
10. 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 7e Page 55 BSP Specific Features Fedora 16 Release Notes 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 amp A calls alma vmeintcontrol A intrctl mask A intrctl enable ioctl fd VMEIOCTL VMEIOINTSET amp A 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 amp A disconnects interrupt A index from the VME driver ioctl fd VMEIOCTL INTRWAIT amp A 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 u3
11. printf READING 0x x 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 ioctl 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 amp A SD DT G11 7e 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 brid
12. 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 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 0 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 7e 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
13. respective owners and are recognized Specifications are subject to change without notice Pagei SD DT G11 7e 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 Environ
14. root Inx2 ont 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 CO active POLL e 0 0 o C1 9 6 6 131 c2 93 4 1058 SD DT G11 7e 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 O CPU 4 CO active 88 8 72 9 POLL 0 0 ims O0 C1 7 5 4 ms 11 c2 25 8 9 ms 33 7 cc3 cc6 7 cc7 CO active POLL C1 C2
15. 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 mouse 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 3U 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 7e 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
16. 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Ul GHz 0 7 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 Power Management Fedora 16 Release Notes 9 3 2 Turbo mode disabled CpuFreq policy Powersave 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 gt 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 4 36 4 POLL 0 0 0 ms 0 Cl 0 0 0ms 0 C2 0 0 0 ms 0 CPU 1 CO active 36 4 POLL 0 0 Gi 0 0 C2 0 0 Then move to the Frequency Stats option Page 74 SD DT G11 7e 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 unsquash
17. 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 When 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 7e 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 ST9160314ASV0001 PQ 0 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 W
18. Kontron Documentation Hardware gt VX304x 3U VPX Computing Node User s Guide 2 00 0 eee eee 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 ssseese ne CA DT A96 gt VM6050 6U VME SBC User s Guide uussseseeen eee CA DT A93 gt VM6050 Hardware Release Notes s see n CA DT A94 gt VM6052 VM6054 6U VME SBC User s Guide 02 0 0 eee eee CA DT B16 gt VM6052 VM6054 Hardware Release Notes 0 00000 ccc eee eee CA DT B17 gt Firmware gt VX304x BIOS User Manual 00 000000 eee SD DT F96 gt VX3035 BIOS User Manual 0 0 00 00 eee SD DT F97 gt VM6050 BIOS User Manual 0 00000000 c eee eee SD DT F89 gt VM6052 VM6054 BIOS User Manual 0 0000000 ee SD DT G34 Fedora 16 Documentation gt Documentation available at http fedoraproject org SD DT G11 7e Page 5 Required Configuration Fedora 16 Release Notes Chapter 4 Required Configuration 4 1 Hardware Requirements 4 1 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 o
19. OK Skip kkkkkk kkkkkkkk kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk lt Tab gt lt Alt Tab gt between elements lt Space gt selects 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 N can be launched from menu Application Internet N SD DT G11 7e 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 a
20. blocksize This does as alma user dma but uses 2ESST broadcast cycles Flags should include VMEFG AM 2ESST and VMEFG XAM AG64BDCST The select mask has a bit set for the geo graphic id of each remote board that should accept the broadcast little endian bits 1 21 See the section on 2ESST below User Space DMA Operations ioctl fd VMEIOCTL DMA START amp A SD DT G11 7e 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 amp A 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 Alma 2f 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
21. cece eee n 6 4 1 Hardware Requirements 00 00 eect nnne 6 4 1 1 Hardware Requirements for VX304x Boards 00 00 cece cece tenes 6 4 1 2 Hardware Requirements for VX3035 Board 000 cece eee teens 6 4 1 3 Hardware Requirements for VM6050 Board 0 00 0c eee eee eee 6 4 1 4 Hardware Requirements for VM6052 VM6054 Board 2 0000e eee eee 7 4 2 Firmware Requirements 002 0c cece eee eee nnn 7 42 1 VX304x BoardS oarriero ratana tiene AA nite eden a lawned Heth DS E ONES ERA eR 7 422 NX3035 Board sc Scie camidc mss oa bet ed Sad danse wok Y m LCD DOCTORE ened Sen 7 4 2 3 VM6050 Board 1 nent aen 7 4 2 4 VM6052 VM6054 Board 0 cece ene e ene e nee e nee 7 4 3 Software Requirements 0 ccc cece eee e eee hse 8 4 4 DVD ROM Installation Example 0060 c cc cece eee mh 9 4 4 1 DVD ROM Installation Example for VX304x Board 02 00 00 eee eee eee 9 4 4 2 DVD ROM Installation Example for VX3035 0 0c e eee eee 10 4 4 3 DVD ROM Installation Example for VM6050 0 002 c eee eee 11 4 4 58 DVD ROM Installation Example for VM6052 VM6054 02002 eee ee eee 12 Chapter 5 Installation 0 0 ccc cette eee e eee eens 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 ssssssssslses ll 13 5 1 2 Fedora 16 Installation
22. 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 the 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 AS32SDATA 0x0D An AM code is specified as either VMEFG AM xxx flags that predefine standard AM codes or SD DT G11 7e 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 Ox000FFO000 defines which AM 2 0 are valid Each acceptable value
23. 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 FILES proc geo id dev cpld smi dev port dev i2c O COPYRIGHT Kontron SD DT G11 7e Page 65 RC Boards Fedora 16 Release Notes Chapter 8 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
24. front IO option PMC connector fitted on board JTAG connector fitted on board dev mem dev i2c COPYRIGHT Page 32 Kontron SD DT G11 7e Fedora 16 Release Notes BSP Specific Features 7 4 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 gt 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 gt 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 gt led2 0FF brightness gt VX304x On the front panel the name of the led1 is L1
25. 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 7e Page 33 BSP Specific Features Fedora 16 Release Notes 7 5 Multinodes 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 ker
26. on Ki7 Boards 000 cece cece cette eee 16 5 1 3 LiveDVD Installation on SSD SATA Flash or USB Flash 2 22200 5 16 Chapter6 Fedora System Configuration 00 cece eee eens 18 MEM II ST cR 18 6 1 1 Network Manager 0666 0 cee eee A mh hn hh nho 18 6 1 2 Udev Rule only for VX304x and VM6052 VM6054 sssssslsseleeelesss 18 6 1 3 MAC Addre5S uunc E RR RM RARE RE RR ER RUE edd ea RACER OD RD e 19 ME MIU vr 19 G2 SEMIN ac teak D L w 20 6 3 GRUB Boot Loader 0 0 ccc nent n een e ete rnrn 20 0 4 SATA Speed ooi oed eie rE EEEE inecke avdcwdad ded e Bc d acie e Re OR aces 21 6 5 SATA Hotpl g nene om Rer Recens ecc Rer Gaima UR eoe tme ee Ra eee d o 23 66 VITA ST E Em 24 Page v SD DT G11 7e Fedora 16 Release Notes Table Of Contents 6T WXFabriG ceste pie can RR nn ce tod wid Sed ayo ies nce dt Meets aoe arate a dace RR ean deed RR t 24 Chapter 7 BSP Specific Features 0 0c ccc eee eee eee teenies 25 T1 SOMSOMS MER 25 TAA Sensors OVervIeW orales babe eee dee Oed ned oa adem Re een IDA DE Re Rs 25 7 1 2 Sensors Values Limitations nananana ccc eect ss 26 7 1 3 Temperature Sensors Threshold and Alarm Report 2 02000 e cece eee 26 7 1 4 Voltage Sensors Threshold and Alarm Report 00 ce eee eens 27 2 QCOPED WDT eerie duce Rote ahah
27. 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 GEOID 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 7e 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 lt nodemap 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 lt 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 cr
28. 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 success 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 0 is returned The config format is the following bit 0 is the LSB request level is coded in the 3 LSB ALMACFG REQLEVELx for level x from 0 to 3 inclusive The default value is level 3 SD DT G11 7e Page 53 BSP Specific Features Fedora 16 Release Notes fair m
29. 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 spd limit set to 1 5Gbps 2 270488 ata5 SATA max UDMA 133 abar m2048 0xf0b12000 port Oxf0b12300 irq 44 2 277867 ata6 DUMMY 2 584331 atab 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 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 7e 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 b
30. sysconfig network scripts ifcfg ethx files etc resolv conf etc sysconfig network Start the network service service network start gt Reboot if etc sysconfig network has been modified 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 N for VM6050 VM6052 VM6054 After relaunching the udev daemon or by rebooting the Linux distribution the onboard Ethernet device name should be eth0 eth1 Page 18 SD DT G11 7e 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 gt Run system con
31. 0 Description This line is present in the dmesg 3 377093 mtrr type mismatch for d0000000 10000000 old write back new write combining Workaround None SD DT G11 7e Page 83 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 Sales Order ATD Toulon Kontron com Zl TOULON EST Support GSS ATD 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
32. 1 fmram 1 1 fmram c STATUS 0 0 ne 0 cd fmram 1 1 bin chmod Rf a rX u w g w o w exit 0 Executing build bin sh e var tmp rpm tmp BPU1W5 umask 022 cd root rpmbuild BUILD cd fmram 1 1 make fmram cc g Wall o fmram fmram c i2c access c exit 0 Executing install bin sh e var tmp rpm tmp puQn61 umask 022 cd root rpmbuild BUILD cd fmram 1 1 make DESTDIR root rpmbui1d BUILDROOT fmram 1 1 15161 x86_ 64 install install d root rpmbuild BUILDROOT fmram 1 1 15161 x86 64 usr bin install m755 fmram root rpmbuild BUILDROOT fmram 1 1 15161 x86 64 usr bin fmram usr lib rpm brp compress usr lib rpm brp strip usr bin strip usr lib rpm brp strip static archive usr bin strip usr lib rpm brp strip comment note usr bin strip usr bin objdump Processing files fmram 1 1 15161 x86 64 Requires rpmlib rpmlib CompressedFileNames lt 3 0 4 1 rpmlib PayloadFilesHavePrefix lt 4 0 1 Requires libc so 6 64bit libc so 6 GLIBC 2 2 5 64bit rtld GNU HASH Checking for unpackaged file s usr lib rpm check files root rpmbuild BUILDROOT fmram 1 1 15161 x86 64 Wrote root rpmbuild SRPMS fmram 1 1 15161 src rpm Wrote root rpmbuild RPMS x86 64 fmram 1 1 15161 x86 64 rpm Executing clean bin sh e var tmp rpm tmp hegU28 umask 022 cd root rpmbuild BUILD cd fmram 1 1 root rpmbuild BUILDROOT fmram 1 1 15161 x86 64 root rpmbuild BUILDROOT fm
33. 2 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 Init 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 7e 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 bo
34. 2Y 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 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 7e Fedora 16 Release Notes BSP Specific Features 7 1 4 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 dev
35. 5 RTM Standard USB cable DVD ROM USB device SATAO A Standard SATA cable 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 Page 10 SD DT G11 7e 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 fe cl m E Standard USB cable DVD ROM USB device MMU MMMM TT ee TT a lt IHRREEEHTTREEELLEEHEEERTTTT gt TEASE HDD SATA device SATAO A Standard SATA cable Jj Graphic configuration on VM6050 requires a specific order code and a specific graphic module o 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 Rate 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 7e 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
36. 6 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 7e Fedora 16 Release Notes BSP Specific Features 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 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 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
37. DT G11 7e 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 backuped root ki7 fmram h Usage fmram options a tool to read or write the FerroMagnetic RAM Options are h this help r value 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 7e Fedora 16 Release Notes BSP Specific Features 7 12 VME 7 12 1 ALMAVME NAME almavme Alma VME Linux toolkit driver API SYNOPSIS Kernel API from a kernel driver include lt almavme h gt 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 vmeaddr unsigned long pciad
38. Eden ptura EE E Mirac evince ate e B d nar ace TE 28 To MWPDBUTOOL reete eet kie bomen E 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 0 000 cece 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 022000e 34 7 5 3 Build the diskless RFS root file system sssssessseeseee 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 sssssessseseee e e 37 7 5 7 Boot the Target through the Network slssssssssseeeeee en 37 7 5 8 Diskless Service 2 020 c cette teen tenes 38 7 5 9 Initiate a Reset of the Remote Targets 0 cece eee eene 38 TO SysVartooll cse be td aged essi 44g ot a a otha edd wi eesede bles seed bi RS E TUS RES 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 7 10 BIOS Update iuo ue Tess inna RENE Re 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 2o tarte risate ute Oe oue rus auae uie tus
39. Hyper Threading gt Enter the bios and select the submenu Advanced gt CPU Configuration gt Then set the option hyper threading to Disabled To disable the Turbo Mode gt Enter bios and select the submenu Advanced gt CPU PPM Configuration gt Then set the option Turbo mode to Disabled An alternative is to use the BIOS TDP menu gt 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 7e 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 Diff
40. 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 and for the required environment SD DT G11 7e 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 gt The ones to set up the power management configuration gt BIOS menu and cpufreq under linux gt The ones to evaluate the impact of this setting on the system gt 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
41. 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 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 0 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 f
42. ard 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 extends 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
43. c module are voll required VM6050 2SA34 12110 and MOD GX SA 00 The module provides two DP ports and a Ni VGA connector Page 6 SD DT G11 7e 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 aconsole on serial line text or VNC install For a graphic configuration on VM6052 VM6054 a specific order code and a specific grapic module are ee 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 Se
44. ctor 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 7e Page 61 BSP Specific Features Fedora 16 Release Notes 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 dramaar 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 0xd2000000 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 7e Fedora 16 Release Notes VMEaddr size Mb 0xd2000000 0x52000000 0x10000000 0128 Alma state System controller f
45. d 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 Physical 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 7e Fedora 16 Release Notes BSP Specific Features s n 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
46. dow with the same AM XAM and the same or a higher rate Page 58 SD DT G11 7e 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_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 meaning
47. dr 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 vector 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 7e Page 47 BSP Specific Featu
48. e 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 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 7e 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
49. e oS he tase eed ea ae bead ca POR dade epESGOUG e RE RR 77 11 2 BSP Installation on Ki7 Boards for BSP ID lt 14085 0 ccc cee ees 78 11 3 Rebuild BSP Packages 0c cece eee eee nee hn 79 Xo ener MP T Uru 79 11 3 2 Example of Building a rpm from the Source rpm 0202 0c eee eee 79 11 3 3 Rebuild the Kernel 0 00 c cee eee n 81 114 Errata EL RRLRRESRRESERERNeRRRESERROAR ERE SEE SEEN dene Gl dE VER 83 11 4 1 VME Timeout set by default in the Driver at Infinite CRP 4286 83 11 4 2 VME A24 USER MBLT and SUPER USER MBLT in DMA Mode Accesses does not work loan vul reu 83 11 4 3 VME IRQ Response Time CRP 4288 2 00 0c cece 83 11 4 4 LTP Tests failed on VM6052 VM6054 CRP 4289 20 eens 83 11 4 5 MTRR Register detected as mismatch in dmesg on VM6052 VM6054 CRP 4290 83 Page vii SD DT G11 7e Fedora 16 Release Notes Overview Chapter 1 Overview Functional changes that differ from previous version of the document are identified by a vertical bar in the N 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 boa
50. e 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 The 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 win
51. e 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 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 7e 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 7e 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
52. eated 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 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 7e Fedora 16 Release Notes BSP Specific Features Indeed in this case it is required to code the GEOID range into the image xml 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 gt and comment out the one related to the MAC ADDR mode Then code the right GEOID va
53. ed noarch Then build the kernel rpms it takes a while when all rpm options are targeted root localhost SPECS rpmbuild ba target x86 64 kernel spec Building target platforms x86 64 Building for target x86 64 Executing prep bin sh e var tmp rpm tmp o6gFDy umask 022 cd root rpmbui d BUILD LANG C export LANG unset DISPLAY patch command patch p1 F1 s find root rpmbuild BUILD maxdepth 1 type d name kernel 3 grep x v root rpmbui l1d BUILD kerne1 3 4 fc16 sharedirs n d kernel 3 4 fc16 vanilla 3 4 tt tit Wrote root rpmbuild RPMS x86 64 kernel debuginfo 3 4 9 15162 ki7 fc16 x86 64 rpm Wrote root rpmbuild RPMS x86 64 kernel debug 3 4 9 15162 ki7 fc16 x86 64 rpm Wrote root rpmbuild RPMS x86 64 kernel debug devel 3 4 9 15162 ki7 fc16 x86 64 rpm SD DT G11 7e Page 81 Additional Information Fedora 16 Release Notes Wrote root rpmbuild RPMS x86 64 kernel debug debuginfo 3 4 9 15162 ki7 fc16 x86 64 rpm Executing clean bin sh e var tmp rpm tmp 4VNnf9 umask 022 cd root rpmbuid BUILD cd kerne1 3 4 fc16 rm rf root rpmbuild BUILDROOT kernel 3 4 9 15162 ki7 fc16 x86 64 exit 0 The kernel patch for Kontron VME VPX boards is located at root rpmbuild SOURCES linux 3 4 9 2 ki7 patch It contains the specific drivers and aufs patch required for multinodes diskless tool This patch can be used and port to another kernel version Page 82 SD DT G11 7e
54. em is operational SD DT G11 7e 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 chkconfig 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 7e 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 pattern 2 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 7e 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
55. erent 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 governor 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 rootGki7 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
56. ew 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 7e Fedora 16 Release Notes Additional Information f 11 3 Rebuild BSP Packages 11 3 1 The source code of the BSP packages is provided with the DVD Fedora 16 x86_64 DVD for Ki7 boards in the SRPMS directory Those source codes are in source rpm format The following chapter describes the steps to rebuild the binary Introduction packages using the rpmbuild command Table of the source packages cp1d 1 2 15111 src rpm cpld smi 1 3 15111 src rpm cpldtool 1 5 15111 src rpm e1000e 2 3 2 15111 src rpm flashrom 0 9 9 15111 src rpm fmram 1 1 15111 src rpm hwtools 1 3 7 15111 src rpm ixgbe 3 18 7 1 src rpm kerne1 3 4 9 15111 ki7 fc16 src rpm ki7 bsp 3 4 15111 fc16 src rpm sysvartool 1 7 15111 src rpm turbostat 1 0 1 fc16 src rpm vmetoolkit 1 6 15111 src rpm vpdtool 1 11 15111 src rpm cPLD man pages only for VX6080 cPLD tools e1000e driver from Inte read write verify SPI flash BIOS update sample code to access FRAM some tools driver for the 10G Ethernet from Intel update of the standard Fedora kernel with Kontron BSP drivers BSP rpm req
57. exist during all installation repair and maintenance operations with this product Therefore always unplug the power cable and any other cables which provide external voltages before performing work Page iii SD DT G11 7e 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 wa
58. fig network gt For each interface gt click on Edit click on Hardware Device tab unselect Bind to MAC address gt Exit from system config network saving changes 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 gt Make sure to disable the iptables service by running root ki7 chkconfig iptables off root ki7 chkconfig ip6tables off gt Reboot SD DT G11 7e 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
59. fs squashfs img done amp And analyse the result with powertop Applications Raccourcis jeu 27 juin 16 04 Be Jean Mar zm T jelb x roo LI 5 X Fichier Edition Affichage Rechercher Terminal Aide Fichier Edition Affichage Rechercher Terminal Aide PowerTOP 2 1 IEEE cle stots Fichier Edition Affichage Reche 8 13 03 up 15 min The CPU is used only at 36 of its capacity SD DT G11 7e 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 7e Fedora 16 Release Notes Additional Inf
60. fu ace tures 47 12 2 almavmecham sls eR EevRDUER I S URP Ee ele CDU HA CUES ER wand 60 7 12 3 VME IRQ Response Time Improvement 02 00 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 essed ew asta Be kw se aha wand aa hw dren a ward dee dw waren Rc 67 Chapter 9 Power Management 0 cece cece eee eee nnn 68 9d Introduction oos anid aot enn pees Be ae lee eee oP Oda NEUE IE NO CUR RI ESTIS MES 68 9 2 Power Management Setting 0c cece nnne 68 SD DT G11 7e Page vi Table Of Contents Fedora 16 Release Notes 924 Under BIOS 5 ee eee eee 68 92 2 Under NUX i ceased Posten I le eden d eee ad beak eed QAMEE YEA EE UR ORA Ha 69 9 3 Impact of the Power Management Policy sslluseeeseee eere 71 9 3 1 Hyper Threading Turbo Mode Enabled ssssssssseeesee eens 71 9 3 2 Turbo mode disabled CpuFreq policyzPowersave 02 0eee eee eres 74 9 3 3 TDP LOW mode low power comsumption oriented sllullssllssees 75 Chapter 10 Create a USB Flash Disk from DVD Iso Image llselussssss 76 Chapter 11 Additional Information 0000 c cece nett nh 77 11 1 Known Limitations uscek ey
61. ful errno values on error SEE ALSO almavmechan 1 mbm3k 1 Alma2f User Manual CI DT A00 FILES dev almavme dev vmeX SD DT G11 7e Page 59 BSP Specific Features Fedora 16 Release Notes 7 12 2 almavmechan NAME almavmechan VME bus utility for almavme driver SYNOPSIS vmememalloc name vmeaddar size flag vmeioalloc name vmeadar size flags vmefree cpu addr pcialloc name vmeaar cpuaar 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 vmeaar 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 fo
62. ge 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 class 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 thre
63. gs gt 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 46 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 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 ob o 0X HF HF HF HF HF ok ook ok HF ox kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk lt Space gt selects lt F12 gt next screen SD DT G11 7e 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
64. gs 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 fd 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 0 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 0 to mask and non zero to unmask all the interrupt levels set in mask
65. he EFI shell to the GDM graphical login window can be higher that 30 seconds For more details contact the Kontron support team SD DT G11 7e Page 77 Additional Information Fedora 16 Release Notes 11 2 BSP Installation on Ki7 Boards for BSP ID lt 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 explanations are not needed for release BSP ID lt 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 gt At first create a repo file in order to acces the packages present on the DVD mount dev srO mnt cat gt etc yum repos d ki7_bsp repo EOF ki7_bsp name ki7_bsp gpgcheck 0 enabled 0 baseurl file mnt EOF 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 n
66. ially 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 changes 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 7e 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
67. ice 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 is higher than the maximum threshold SD DT G11 7e 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 wat 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 explicitl
68. ilding 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 diskless 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 N 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
69. 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 a write error of EPERM Permission denied or EIO Input output error For example 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
70. ivers to setup the Watchdogs of 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 7e 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 ki7 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 7e Fedora 16 Release Notes Associated Documentation Chapter 3 Associated Documentation
71. ixed 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 mbm3k 1 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 BSP Specific Features A32SDATA ADDR Yes 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 id1e pol1 can be given to the linux kernel command line SD DT G11 7e Page 63 BSP Specific Features Fedora 16 Release Notes 7 13 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 OxO8FF The facilities are implemented in several drivers each in its own rpm The driver sources are provided cpld The c
72. l drive Memory test e ob o ok ob ok ok ok ok ox ook 0k F o F 0b ok F F F kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk 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 7e Page 13 Installation gt Press lt tab gt and append the network settings at least the IP address Fedora 16 Release Notes gt vmlinuz initrd initrd img console ttyS0 115200 text stage2 hd LABEL Fedora vnc ip 172 20 144 95 or more settin
73. ll 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 serial port 0 1 Insert the DVD Fedora 16 in the DVD ROM driver 2 After a board reset or a board power on type lt F7 gt to get the the Boot Manager Menu or lt F2 gt 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 lt F7 gt The BIOS Setup menu should be used to set the boot devices priorities Refer to the BIOS Manual SD DT F96 It is strongly recommended to disable the swap partition if the installation is done on a USB or SATA flash NO 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 live USB on flash devices The main advantage of the liveUSB is to prevent by default all writing accesses to the flash disk or USB stick It is espec
74. lue 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 TFTPD 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 syst
75. mental protection is a high priority with Kontron Kontron follows the DEEE WEEE directive You are encouraged to return our Products for proper disposal The Waste Electrical and Electronic Equipment WEEE Directive aims to gt reduce waste arising from electrical and electronic equipment EEE gt make producers of EEE responsible for the environmental impact of their products especially when they become waste gt encourage separate collection and subsequent treatment reuse recovery recycling and sound environmental disposal of EEE gt improve the environmental performance of all those involved during the lifecycle of EEE SD DT G11 7e 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 0x 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
76. nel 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 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 7e 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 baseurl 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 bu
77. nt the term Ki7 is used to refer to a board among the VX304x VX3035 VM6050 amp VM6052 54 boards The release is made of gt 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 gt 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 Dr
78. ode 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 are 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 VMEbu
79. of AM 2 0 i e the eight values 0 to 7 is selected by setting a bit in the bitmask 1 lt lt 12 for 0 1 lt lt 13 for 1 etc To simplify the VMEFG AMSLV xxx flags can be used when several AM codes must be decoded 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 0x8C fg 0x08010013 A24 SUPER USER DATA AM 0x3D fg 0x08020013 A24 SUPER USER PROG AM OxSE fg 0x08040013 A24 SUPER USER BLT AM Ox3F 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 b
80. og 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 cpldtool 1 FILES dev watchdog Documentation watchdog watchdog api txt COPYRIGHT Kontron Page 30 SD DT G11 7e 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 informati
81. on The options can be combined EXAMPLE sudo vpdtool human VM6050 detected SD DT G11 7e Page 31 BSP Specific Features FILES Fedora 16 Release Notes i2cbus_num 22 Board type 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
82. oot 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 the 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 pvremove 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
83. ormation 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 configuration 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 H Boot time in graphic mode higher than 30s With full graphic Fedora 16 packages installed on SATA disk the boot time from an exit in t
84. os 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 7e Fedora 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 0 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
85. pld 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 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 bi
86. ptional onboard SSD Flash Disk A USB DVD ROM device for installation from DVD ROM or a USB Flash disk 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 graphi
87. r the different VME standard AM value Page 60 SD DT G11 7e 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 Ox0B fg 0x00208013 A32 SUPER USER MBLT AM 0x0C fg 0x00210013 A32 SUPER USER DATA AM Ox0D 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 0x3A 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 ve
88. ram 1 1 15161 x86 64 rm rf root rpmbuild BUILDROOT fmram 1 1 15161 x86 64 exit 0 e tt B The new package is root rpmbuild RPMS x86 64 fmram 1 1 15161 x86 64 rpm Page 80 SD DT G11 7e Fedora 16 Release Notes Additional Information The source code is available at root rpmbuid BUILD fmram 1 1 and can be adapted modified and rebuilt using Makefile This process can be reproduced for the other rpms except for the kernel rebuild which is described here after 11 3 3 Rebuild the Kernel The kernel source rpm contains the patch of the drivers and updates required for the Kontron VME VPX boards The steps to rebuild the kernel from the SRPM are quite similar to a standard rpm but note that some other rpms may be required as dependencies root localhost SPECS rpmbuild ba target x86 64 kernel spec Building target platforms x86 64 Building for target x86 64 error Failed build dependencies redhat rpm config is needed by kernel 3 4 9 15161 ki7 fc16 x86 64 binutils devel is needed by kernel 3 4 9 15161 ki7 fc16 x86 64 newt devel is needed by kernel 3 4 9 15161 ki7 fc16 x86 64 python devel is needed by kernel 3 4 9 15161 ki7 fc16 x86 64 perl ExtUtils Embed is needed by kernel 3 4 9 15161 ki7 fc16 x86 64 root localhost SPECS Install missing dependencies yum repository should be available root localhost SPECS yum install redhat rpm config binutils devel newt devel python devel perl perl ExtUtils Emb
89. rds In this document 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 gt VM6052 RC amp VM6054 RC Rugged Conduction Cooled version SD DT G11 7e 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 7e Fedora 16 Release Notes Release Content Chapter 2 Release Content In this docume
90. res 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 command 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 amp A 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
91. rite cache enabled 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 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 7e Fedora 16 Release Notes Chapter 7 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
92. rivilege 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 should 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 0G6 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 7e 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
93. rranty this product must not be altered or modified in any way Changes or modifications to the device which 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 it is 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 7e Page iv Table Of Contents Fedora 16 Release Notes Table Of Contents Chapter T OVBIVIBW cis o eR DECRE ERE Ea xix eX ECCE cece aq A Ee Ecc caca 1 Chapter 2 Release Content 0 00 cece cece eee nnn 3 Chapter 3 Associated Documentation 00 ccc eect eee e eee eee 5 Chapter 4 Required Configuration 0 ccc
94. s and release the VMEbus by software alma get vme gets the VMEbus and alma free vme releases the VME bus These routines can be called from user space with the ioctls VMEIOCTL GET VME and VMEIOCTL FREE VME User Space VME PCI Bridge Configuration ioctl fd VMEIOCTL SET ALMACFG amp A calls alma ctr 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 amp A sets the AM code to be used by the driver s read and write entry points from A defam ioctl fd VMEIOCTL GET RWAM amp A 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 7e 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 fla
95. the HDD SATA device on the SATAO A connector of the Rear Transition Module VM6052 VM6054 RTM TO 10e ue USB 2 Standard USB cable a Joes 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 7e Fedora 16 Release Notes Installation Chapter 5 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 Welcome to Fedora 16 ki7 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 loca
96. 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 the 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
97. 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 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 7e Fedora 16 Release Notes BSP Specific Features
98. 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 will 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 7e 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 gt Disable the NetworkManager service root ki7 chkconfig NetworkManager off gt 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
99. tup SD DT G11 7e Page 7 Required Configuration Fedora 16 Release Notes 4 3 Software Requirements gt The DVD ROMs gt Fedora 16 x86 64 DVD for Ki7 boards 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 7e 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 7e Page 9 Required Configuration Fedora 16 Release Notes 4 4 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 VX303
100. uiring other rpms as dependencies utility to get the PBIT report turbostat delivery update for Ivy Bridge VME utilities and samples vpdtool 11 3 2 Example of Building a rpm from the Source rpm Installation of the source rpm rpm ivh fmram 1 1 15111 src rpm Source and build environment should be at rpmbui 1d To full rebuild the rpm use the ba option of the rpmbuild command cd rpmbuild SPECS rpmbuild ba fmram spec Executing prep bin sh e var tmp rpm tmp 5wML8P umask 022 cd root rpmbui 1 d BUILD cd root rpmbuild BUILD rm rf fmram 1 1 tet tt SD DT G11 7e root rpmbuild BUILDROOT fmram 1 1 15161 x86 64 root rpmbuild BUILDROOT fmram 1 1 15161 x86 64 rm rf root rpmbuild BUILDROOT fmram 1 1 15161 x86 64 usr bin gzip dc root rpmbuild SOURCES fmram 1 1 tar gz Page 79 Additional Information Fedora 16 Release Notes bin tar xvvf drwxr xr x root root 0 2015 04 21 12 31 fmram 1 1 rw r r root root 1173 2010 10 15 11 55 fmram 1 1 Makefile rw r r root root 10795 2010 09 24 15 41 fmram 1 1 i2c dev h rw r r root root 929 2014 10 02 16 42 fmram 1 1 fmram spec rw r r root root 345 2010 09 24 15 41 fmram 1 1 rpmmacros rw r r root root 1434 2010 09 24 15 41 fmram 1 1 i2c access h rw r r root root 3920 2010 09 24 15 41 fmram 1 1 i2c access c rw r r root root 315 2010 09 24 15 41 fmram 1 1 rpmrc rw r r root root 8407 2015 02 27 13 4
101. ures 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 file 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 7 1 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 NCT780
102. ut 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 gt dev 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 7e 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 watchd
103. 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 port 0x870 0xd 0x870 lt 0x0d 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 7e 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 hexvalu
104. y 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 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 0 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 7e 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 nowayo

Download Pdf Manuals

image

Related Search

Related Contents

Sony VAIO VPCY216GX  Craftsman Soft Top Vac Riding Mower Attachment Manufacturer's Warranty  403850-00 KF5000(Z)(T)(W)取表  Samsung WB200F دليل المستخدم  Value 50006 Instructions / Assembly  MS-Tech CA-015 computer case  User Manual - Eclipse Rackmount, Inc.  取扱説明書 - Clarion  télécharger le document PDF - Act Up    

Copyright © All rights reserved.
DMCA: DMCA_mwitty#outlook.com.