From nobody@FreeBSD.org  Thu May  8 12:38:53 2014
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTPS id 0ED62F1D
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  8 May 2014 12:38:53 +0000 (UTC)
Received: from cgiserv.freebsd.org (cgiserv.freebsd.org [IPv6:2001:1900:2254:206a::50:4])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(Client did not present a certificate)
	by mx1.freebsd.org (Postfix) with ESMTPS id D78CDA7D
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  8 May 2014 12:38:52 +0000 (UTC)
Received: from cgiserv.freebsd.org ([127.0.1.6])
	by cgiserv.freebsd.org (8.14.8/8.14.8) with ESMTP id s48CcqPK094514
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 8 May 2014 12:38:52 GMT
	(envelope-from nobody@cgiserv.freebsd.org)
Received: (from nobody@localhost)
	by cgiserv.freebsd.org (8.14.8/8.14.8/Submit) id s48CcqVB094508;
	Thu, 8 May 2014 12:38:52 GMT
	(envelope-from nobody)
Message-Id: <201405081238.s48CcqVB094508@cgiserv.freebsd.org>
Date: Thu, 8 May 2014 12:38:52 GMT
From: "Bjoern A. Zeeb" <bzeeb+freebsd+ports@zabbadoz.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [update,patch] misc/fxload patch for xilinx.conf devd rules
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         189469
>Category:       ports
>Synopsis:       [update,patch] misc/fxload patch for xilinx.conf devd rules
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    wkoszek
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Thu May 08 12:40:00 UTC 2014
>Closed-Date:    
>Last-Modified:  Thu May 08 12:40:05 UTC 2014
>Originator:     Bjoern A. Zeeb
>Release:        10/11
>Organization:
>Environment:
>Description:
Update the Xilinx reference path to a slightly more modern version, which is commonly used currently by one major research project at least.   It's unclear to me (yet) what to do about Vivado.

Adjust the xilinx.conf for devd to do the right thing on my 10/11 FreeBSD system.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

!
! patch for misc/fxload/files/xilinx.conf
!
! Update for slightly more modern Xilinx toolchain
! on a probably slightly more modern FreeBSD.
!
! Submitted by:	bz
!
--- xilinx.conf.orig	2014-04-12 05:01:25.000000000 +0000
+++ xilinx.conf	2014-01-23 15:16:56.000000000 +0000
@@ -12,53 +12,65 @@
 #
 # All configuration variables were taken from:
 #
-#	/compat/linux/opt/Xilinx/11.1/common/bin/lin/xusbdfwu.rules
+#	/compat/linux/opt/Xilinx/13.4/ISE_DS/common/bin/lin/xusbdfwu.rules
 #
 # and adopted accordingly for FreeBSD infrastructure.
 #
 
 options {
-	set X "/compat/linux/opt/Xilinx/11.1/common/bin/lin";
+	set X "/compat/linux/opt/Xilinx/13.4/ISE_DS/common/bin/lin";
 	set F "/usr/local/sbin/fxload -v -t fx2";
 };
 
-attach 100 {
-	device-name "^ugen";
+notify 100 {
+	match "system"		"USB";
+	match "subsystem"	"DEVICE";
+	match "type"		"ATTACH";
 	match "vendor" "0x03fd";
 	match "product" "0x0007";
 	action "$F -I $X/xusbdfwu.hex -D vid=$vendor,pid=$product";
 };
 
-attach 100 {
-	device-name "^ugen";
+notify 100 {
+	match "system"		"USB";
+	match "subsystem"	"DEVICE";
+	match "type"		"ATTACH";
 	match "vendor" "0x03fd";
 	match "product" "0x0009";
 	action "$F -I $X/xusb_xup.hex -D vid=$vendor,pid=$product";
 };
 
-attach 100 {
-	device-name "^ugen";
+notify 100 {
+	match "system"		"USB";
+	match "subsystem"	"DEVICE";
+	match "type"		"ATTACH";
 	match "vendor" "0x03fd";
 	match "product" "0x000d";
 	action "$F -I $X/xusbdfwu.hex -D vid=$vendor,pid=$product";
 };
 
-attach 100 {
-	device-name "^ugen";
+notify 100 {
+	match "system"		"USB";
+	match "subsystem"	"DEVICE";
+	match "type"		"ATTACH";
 	match "vendor" "0x03fd";
 	match "product" "0x000f";
 	action "$F -I $X/xusb_xlp.hex -D vid=$vendor,pid=$product";
 };
 
-attach 100 {
-	device-name "^ugen";
+notify 100 {
+	match "system"		"USB";
+	match "subsystem"	"DEVICE";
+	match "type"		"ATTACH";
 	match "vendor" "0x03fd";
 	match "product" "0x0013";
 	action "$F -I $X/xusb_xp2.hex -D vid=$vendor,pid=$product";
 };
 
-attach 100 {
-	device-name "^ugen";
+notify 100 {
+	match "system"		"USB";
+	match "subsystem"	"DEVICE";
+	match "type"		"ATTACH";
 	match "vendor" "0x03fd";
 	match "product" "0x0015";
 	action "$F -I $X/xusb_xse.hex -D vid=$vendor,pid=$product";


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->wkoszek 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Thu May 8 12:40:04 UTC 2014 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=189469 
>Unformatted:
