From owner-freebsd-wireless@freebsd.org Thu Aug 31 06:04:53 2017 Return-Path: Delivered-To: freebsd-wireless@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B5422E16BD9 for ; Thu, 31 Aug 2017 06:04:53 +0000 (UTC) (envelope-from aijazbaig1@gmail.com) Received: from mail-io0-x22d.google.com (mail-io0-x22d.google.com [IPv6:2607:f8b0:4001:c06::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7DCC66AC1A for ; Thu, 31 Aug 2017 06:04:53 +0000 (UTC) (envelope-from aijazbaig1@gmail.com) Received: by mail-io0-x22d.google.com with SMTP id f99so8554137ioi.3 for ; Wed, 30 Aug 2017 23:04:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=48R6Lu/cpm2IPjluQ1qArOwi7bPMg0k1obpN7mYTQhg=; b=NO76xWfpNdAQ/Pe3zop9lrZS1+1IRJdXu2iOD7cxBP4tYWSqKwhQ3zAGJSHAAs0uRC ylm0pJumsXj1z2zXqYitTVUxqCdQwEvKQLP4kMTOYySLtCseHifclzPYH0RIwovXXkJF sqfDdY9ajXvCuyIwxFz32+tre3VjxspUegz03pv3vMSIJyHCqxholz8yJ85GCOU66Y5+ mNeDYKeDaKM87t30ION/KpS3tTHxApouKd5fZk56NSPaJ5NvipuoIqHTx1GdYTEQLtSr 7r+wSVV26K6ZFksQLZYZC4Z1gRfhNlprcRnWPpd4JguSYLW3GZtmodG2V6cufz6ZMvRQ wLCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=48R6Lu/cpm2IPjluQ1qArOwi7bPMg0k1obpN7mYTQhg=; b=XGby6RDGo6BewBsAnVmX679LmzaV45jwrnRoO0XRHYJOkkQ6eU1Oh+pP82EDcWZfDb O1hwmP9woMGKeiYcbYVbfPxwy4pJvrI4T2hh/OgP+WbNEKtqsoIMh1SD2kNW/HCBLRFM JvKQ2Z5k2TB6ELFw4lwBPH0mbb3nw/Bq7JgkIjPww0bHobHvn3gtHGxEfy4pf5fjmWHa cQm4zOWpDkXUHR/WvgbUzyxeyoW5t50Tl3+2HZn2sCVcrJ/dtvjWNm/2hxyjjSy4sBDl vPJSNzesZYoBrJPKvobB5WltYohxeCogo6F7vtx9a+eRG8PJJZRiRBc9tYHcXafrwxt3 qaJw== X-Gm-Message-State: AHPjjUiT2AlCO/EX3gW/6JJUo6jLczi5XkoHB2MKyYJ2C86VQtD+v12v E8g1pguzzSaJoHbK47e0+0NSHgOHQhQb X-Received: by 10.107.59.23 with SMTP id i23mr3743131ioa.345.1504159492311; Wed, 30 Aug 2017 23:04:52 -0700 (PDT) MIME-Version: 1.0 Received: by 10.2.22.66 with HTTP; Wed, 30 Aug 2017 23:04:51 -0700 (PDT) From: Aijaz Baig Date: Thu, 31 Aug 2017 11:34:51 +0530 Message-ID: Subject: buildkernel fails while compiling ath with -O0 (no optimization) for STABLE-10 To: freebsd-wireless@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Aug 2017 06:04:53 -0000 Hi checked out latest version of stable (10.3) via 'svn co https://svn.FreeBSD.org/base/stable/10 .' after that, created src.conf like so: root@BSD10Server:/usr/src # cat /etc/src.conf CFLAGS= -O0 -pipe COPTFLAGS= -O0 -pipe and it then fails with the following error: make[4]: stopped in /usr/src/sys/modules/ath_pci 1 error make[4]: stopped in /usr/src/sys/modules/ath_pci *** [depend_subdir_ath_pci] Error code 2 make[3]: stopped in /usr/src/sys/modules --- depend_subdir_bce --- A failure has been detected in another branch of the parallel make make[4]: stopped in /usr/src/sys/modules/bce *** [depend_subdir_bce] Error code 2 make[3]: stopped in /usr/src/sys/modules --- depend_subdir_ata --- A failure has been detected in another branch of the parallel make make[7]: stopped in /usr/src/sys/modules/ata/atapci/chipsets/ataacerlabs *** [depend_subdir_ataacerlabs] Error code 2 make[6]: stopped in /usr/src/sys/modules/ata/atapci/chipsets 1 error make[6]: stopped in /usr/src/sys/modules/ata/atapci/chipsets *** [depend_subdir_chipsets] Error code 2 make[5]: stopped in /usr/src/sys/modules/ata/atapci 1 error make[5]: stopped in /usr/src/sys/modules/ata/atapci *** [depend_subdir_atapci] Error code 2 make[4]: stopped in /usr/src/sys/modules/ata 1 error make[4]: stopped in /usr/src/sys/modules/ata *** [depend_subdir_ata] Error code 2 make[3]: stopped in /usr/src/sys/modules --- depend_subdir_ath --- In file included from /usr/src/sys/dev/ath/if_ath.c:99: In file included from @/dev/ath/if_athvar.h:40: @/dev/ath/ath_hal/ah.h:31:10: fatal error: 'ah_osdep.h' file not found #include "ah_osdep.h" ^ --- depend_subdir_autofs --- A failure has been detected in another branch of the parallel make make[4]: stopped in /usr/src/sys/modules/autofs *** [depend_subdir_autofs] Error code 2 make[3]: stopped in /usr/src/sys/modules --- depend_subdir_ath --- 1 error generated. In file included from /usr/src/sys/dev/ath/if_ath_debug.c:81: In file included from @/dev/ath/if_athvar.h:40: @/dev/ath/ath_hal/ah.h:31:10: fatal error: 'ah_osdep.h' file not found #include "ah_osdep.h" ^ 1 error generated. In file included from /usr/src/sys/dev/ath/if_ath_keycache.c:76: In file included from @/dev/ath/if_athvar.h:40: @/dev/ath/ath_hal/ah.h:31:10: fatal error: 'ah_osdep.h' file not found #include "ah_osdep.h" ^ 1 error generated. In file included from /usr/src/sys/dev/ath/if_ath_sysctl.c:88: In file included from @/dev/ath/if_athvar.h:40: @/dev/ath/ath_hal/ah.h:31:10: fatal error: 'ah_osdep.h' file not found #include "ah_osdep.h" ^ 1 error generated. In file included from /usr/src/sys/dev/ath/if_ath_tx.c:90: In file included from @/dev/ath/if_athvar.h:40: @/dev/ath/ath_hal/ah.h:31:10: fatal error: 'ah_osdep.h' file not found #include "ah_osdep.h" ^ 1 error generated. In file included from /usr/src/sys/dev/ath/if_ath_tx_ht.c:81: In file included from @/dev/ath/if_athvar.h:40: @/dev/ath/ath_hal/ah.h:31:10: fatal error: 'ah_osdep.h' file not found #include "ah_osdep.h" ^ 1 error generated. In file included from /usr/src/sys/dev/ath/if_ath_led.c:96: In file included from @/dev/ath/if_athvar.h:40: @/dev/ath/ath_hal/ah.h:31:10: fatal error: 'ah_osdep.h' file not found #include "ah_osdep.h" ^ 1 error generated. In file included from /usr/src/sys/dev/ath/if_ath_rx.c:99: In file included from @/dev/ath/if_athvar.h:40: @/dev/ath/ath_hal/ah.h:31:10: fatal error: 'ah_osdep.h' file not found #include "ah_osdep.h" ^ 1 error generated. In file included from /usr/src/sys/dev/ath/if_ath_tdma.c:99: In file included from @/dev/ath/if_athvar.h:40: @/dev/ath/ath_hal/ah.h:31:10: fatal error: 'ah_osdep.h' file not found #include "ah_osdep.h" ^ 1 error generated. In file included from /usr/src/sys/dev/ath/if_ath_beacon.c:96: In file included from @/dev/ath/if_athvar.h:40: @/dev/ath/ath_hal/ah.h:31:10: fatal error: 'ah_osdep.h' file not found #include "ah_osdep.h" ^ 1 error generated. In file included from /usr/src/sys/dev/ath/if_ath_rx_edma.c:99: In file included from @/dev/ath/if_athvar.h:40: @/dev/ath/ath_hal/ah.h:31:10: fatal error: 'ah_osdep.h' file not found #include "ah_osdep.h" ^ 1 error generated. In file included from /usr/src/sys/dev/ath/if_ath_tx_edma.c:99: In file included from @/dev/ath/if_athvar.h:40: @/dev/ath/ath_hal/ah.h:31:10: fatal error: 'ah_osdep.h' file not found #include "ah_osdep.h" ^ 1 error generated. In file included from /usr/src/sys/dev/ath/if_ath_spectral.c:69: In file included from @/dev/ath/if_athvar.h:40: @/dev/ath/ath_hal/ah.h:31:10: fatal error: 'ah_osdep.h' file not found #include "ah_osdep.h" ^ 1 error generated. In file included from /usr/src/sys/dev/ath/if_ath_btcoex.c:70: In file included from @/dev/ath/if_athvar.h:40: @/dev/ath/ath_hal/ah.h:31:10: fatal error: 'ah_osdep.h' file not found #include "ah_osdep.h" ^ 1 error generated. In file included from /usr/src/sys/dev/ath/if_ath_lna_div.c:70: In file included from @/dev/ath/if_athvar.h:40: @/dev/ath/ath_hal/ah.h:31:10: fatal error: 'ah_osdep.h' file not found #include "ah_osdep.h" ^ 1 error generated. In file included from /usr/src/sys/dev/ath/ah_osdep.c:49: @/dev/ath/ath_hal/ah.h:31:10: fatal error: 'ah_osdep.h' file not found #include "ah_osdep.h" ^ 1 error generated. In file included from /usr/src/sys/dev/ath/ath_hal/ah.c:21: /usr/src/sys/dev/ath/ath_hal/ah.h:31:10: fatal error: 'ah_osdep.h' file not found #include "ah_osdep.h" ^ 1 error generated. In file included from /usr/src/sys/dev/ath/ath_hal/ah_regdomain.c:22: /usr/src/sys/dev/ath/ath_hal/ah.h:31:10: fatal error: 'ah_osdep.h' file not found #include "ah_osdep.h" ^ 1 error generated. In file included from /usr/src/sys/dev/ath/ath_hal/ah_eeprom_v3.c:21: /usr/src/sys/dev/ath/ath_hal/ah.h:31:10: fatal error: 'ah_osdep.h' file not found #include "ah_osdep.h" ^ 1 error generated. In file included from /usr/src/sys/dev/ath/ath_hal/ah_eeprom_v1.c:21: /usr/src/sys/dev/ath/ath_hal/ah.h:31:10: fatal error: 'ah_osdep.h' file not found #include "ah_osdep.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5210/ar5210_attach.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5210/ar5210_beacon.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5210/ar5210_interrupts.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5210/ar5210_keycache.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5210/ar5210_misc.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5210/ar5210_phy.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5210/ar5210_power.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5210/ar5210_recv.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5210/ar5210_reset.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5210/ar5210_xmit.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5211/ar5211_attach.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5211/ar5211_beacon.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5211/ar5211_interrupts.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5211/ar5211_keycache.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5211/ar5211_misc.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5211/ar5211_phy.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5211/ar5211_power.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5211/ar5211_recv.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5211/ar5211_reset.c:25:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5211/ar5211_xmit.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5212/ar5212_ani.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5212/ar5212_attach.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5212/ar5212_beacon.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5212/ar5212_eeprom.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5212/ar5212_gpio.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5212/ar5212_interrupts.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5212/ar5212_keycache.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5212/ar5212_misc.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5212/ar5212_phy.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5212/ar5212_power.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5212/ar5212_recv.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5212/ar5212_reset.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5212/ar5212_rfgain.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5212/ar5212_xmit.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5212/ar5111.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5212/ar5112.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5212/ar2413.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5212/ar2425.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5212/ar5413.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. In file included from /usr/src/sys/dev/ath/ath_hal/ah_eeprom_v14.c:21: /usr/src/sys/dev/ath/ath_hal/ah.h:31:10: fatal error: 'ah_osdep.h' file not found #include "ah_osdep.h" ^ 1 error generated. In file included from /usr/src/sys/dev/ath/ath_hal/ah_eeprom_v4k.c:22: /usr/src/sys/dev/ath/ath_hal/ah.h:31:10: fatal error: 'ah_osdep.h' file not found #include "ah_osdep.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5416/ar5416_ani.c:25:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5416/ar5416_attach.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5416/ar5416_beacon.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5416/ar5416_btcoex.c:23:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5416/ar5416_cal.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5416/ar5416_cal_iq.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5416/ar5416_cal_adcgain.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5416/ar5416_cal_adcdc.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5416/ar5416_eeprom.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5416/ar5416_gpio.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5416/ar5416_interrupts.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5416/ar5416_keycache.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5416/ar5416_misc.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5416/ar5416_phy.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5416/ar5416_power.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5416/ar5416_radar.c:20:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5416/ar5416_spectral.c:20:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5416/ar5416_recv.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5416/ar5416_reset.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5416/ar5416_xmit.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5416/ar2133.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar9001/ar9160_attach.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar9001/ar9130_attach.c:22:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar9001/ar9130_phy.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar9002/ar9280.c:24:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar9002/ar9280_attach.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar9002/ar9280_olc.c:29:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar9002/ar9285.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar9002/ar9285_reset.c:27:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar9002/ar9285_attach.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar9002/ar9285_cal.c:29:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar9002/ar9285_phy.c:30:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar9002/ar9285_diversity.c:30:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar9002/ar9285_btcoex.c:23:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. In file included from /usr/src/sys/dev/ath/ath_hal/ah_eeprom_9287.c:21: /usr/src/sys/dev/ath/ath_hal/ah.h:31:10: fatal error: 'ah_osdep.h' file not found #include "ah_osdep.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar9002/ar9287.c:24:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar9002/ar9287_reset.c:22:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar9002/ar9287_attach.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar9002/ar9287_cal.c:29:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar9002/ar9287_olc.c:29:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_interrupts.c:19:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_radar.c:20:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_ani.c:19:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_keycache.c:19:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_radio.c:19:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_xmit.c:19:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_attach.c:19:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_mci.c:20:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_stub.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_xmit_ds.c:19:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_beacon.c:19:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_misc.c:19:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_recv.c:19:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_stub_funcs.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_eeprom.c:19:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_paprd.c:18:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_recv_ds.c:19:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_freebsd.c:19:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_phy.c:19:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_reset.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_gpio.c:19:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_power.c:19:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_timer.c:19:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. In file included from /usr/src/sys/dev/ath/ath_rate/sample/sample.c:77: In file included from @/dev/ath/if_athvar.h:40: @/dev/ath/ath_hal/ah.h:31:10: fatal error: 'ah_osdep.h' file not found #include "ah_osdep.h" ^ 1 error generated. In file included from /usr/src/sys/dev/ath/ath_dfs/null/dfs_null.c:69: In file included from @/dev/ath/if_athvar.h:40: @/dev/ath/ath_hal/ah.h:31:10: fatal error: 'ah_osdep.h' file not found #include "ah_osdep.h" ^ 1 error generated. mkdep: compile failed *** [.depend] Error code 1 make[4]: stopped in /usr/src/sys/modules/ath 1 error make[4]: stopped in /usr/src/sys/modules/ath *** [depend_subdir_ath] Error code 2 make[3]: stopped in /usr/src/sys/modules 5 errors make[3]: stopped in /usr/src/sys/modules *** [modules-depend] Error code 2 make[2]: stopped in /usr/obj/usr/src/sys/AIJAZ-DEBUG 1 error make[2]: stopped in /usr/obj/usr/src/sys/AIJAZ-DEBUG *** [buildkernel] Error code 2 make[1]: stopped in /usr/src 1 error make[1]: stopped in /usr/src 1 error *** [buildkernel] Error code 2 make: stopped in /usr/src make: stopped in /usr/src I have confirmed it without using those flags and it compiles without issues. Is there something in ath and dependent modules that require it to be built with optimizations ON? I have even tried it with the following src.conf so as to avoid building wifi and wireless altogether but it still does try to build them anyways. I'm a little lost here Here's my revised src.conf which still fails nonetheless: root@BSDVM:/usr/src # cat /etc/src.conf CFLAGS= -O0 -pipe COPTFLAGS= -O0 -pipe WITHOUT_JAIL="yes" WITHOUT_WIRELESS="yes" WITHOUT_WIRELESS_SUPPORT="yes" WITHOUT_WPA_SUPPLICANT_EAPOL="yes" WITHOUT_CDDL="yes" Keen to hear from folks -- Best Regards, Aijaz Baig From owner-freebsd-wireless@freebsd.org Thu Aug 31 23:43:24 2017 Return-Path: Delivered-To: freebsd-wireless@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 214E4E0B5AE for ; Thu, 31 Aug 2017 23:43:24 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-yw0-x233.google.com (mail-yw0-x233.google.com [IPv6:2607:f8b0:4002:c05::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D15F36CF3B for ; Thu, 31 Aug 2017 23:43:23 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mail-yw0-x233.google.com with SMTP id s62so2021930ywg.0 for ; Thu, 31 Aug 2017 16:43:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=3xgV7u9O59kXzjCNrLXTra3ceGFnXYMKytJLc+kko20=; b=PFT1EOBwASknVblQsiSUnxR2o/HxpiIM/dqFx1O5Xq8wXYJWIBTGSJDhx6RK/fWtni snr5Pb/MI8cAgwXMbgZTUFKoVyPfqt2b3NCHjr8sqXITNL52DTNdmKOvNTXnxlA7CwZM zN/sQb/i4+vsotfn08Dv60Y2D9e0H5a2bp62WOC+AP5MHkoXWRfK/4XoIuIG8JWoECrl suoXouu4+uyzS7bg+LdNYazAG8fh1z21hUiQNQk87enONQ+PI+VeZE/XpgZReH9XIoZ9 Mh9ffirRaUUM599wsCVLY5CJGmA9C/kB5hn+3DriHtuqNK6LPE1QlX/YMQ88MnAjVyEu mSWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=3xgV7u9O59kXzjCNrLXTra3ceGFnXYMKytJLc+kko20=; b=QmfXJUnbTjoD4U9liYLF9zM5Q5u8twECcez7/6dz8Ua2++ESRVgM8hAO5dgdIRmkU/ Xw2M87z8ioE6qUkEifxPrxUb5K4VF/f9XrM+tH9x1XQFIRPvYw/e15L/D+zF3XMKW6Ex 77PS/izUh6l4wtQNQbTjO4sRcrtRunIcHHuhTqpF1CGP4OWoMnL7g5W7V7TyRhpS0I5H o0HdRbZCbbm3c43KASwPBs6J8pKdk33gp9UMkNFn4FGMNo2E+zmJvmAYY1RLLJQDsBiO PJhm/iPkOkDeTkpyYfudkKgSsJNFGneITk9NSDpMLnis31NxtGyZMghpfpV8SlC1CqQB WISQ== X-Gm-Message-State: AHPjjUjwPgnm2TBaVCfVK1LJmYXcq7ZgnYO9tp/x+xNUJRmUcWjSyMwr IW7q8zPP8YNXeeJ8zRotvq8lyOUqqQ== X-Google-Smtp-Source: ADKCNb4U/0etwReqta6+/Kmg+xkxXnFOG99lry1icsWqwMGt03y3AIvSSCkh+v/vZBAJ617rjR5ErG3MUOGj4c4z3jM= X-Received: by 10.37.161.167 with SMTP id a36mr118654ybi.230.1504223002961; Thu, 31 Aug 2017 16:43:22 -0700 (PDT) MIME-Version: 1.0 Received: by 10.129.125.65 with HTTP; Thu, 31 Aug 2017 16:43:22 -0700 (PDT) In-Reply-To: References: From: Adrian Chadd Date: Thu, 31 Aug 2017 16:43:22 -0700 Message-ID: Subject: Re: buildkernel fails while compiling ath with -O0 (no optimization) for STABLE-10 To: Aijaz Baig Cc: "freebsd-wireless@freebsd.org" Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Aug 2017 23:43:24 -0000 Hi, Weird, is it building modules without a kernel? -adrian From owner-freebsd-wireless@freebsd.org Fri Sep 1 01:24:48 2017 Return-Path: Delivered-To: freebsd-wireless@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 82729E10EF2 for ; Fri, 1 Sep 2017 01:24:48 +0000 (UTC) (envelope-from aijazbaig1@gmail.com) Received: from mail-io0-x22f.google.com (mail-io0-x22f.google.com [IPv6:2607:f8b0:4001:c06::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 51B787055D for ; Fri, 1 Sep 2017 01:24:48 +0000 (UTC) (envelope-from aijazbaig1@gmail.com) Received: by mail-io0-x22f.google.com with SMTP id f99so8673383ioi.3 for ; Thu, 31 Aug 2017 18:24:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=WjtnDQqUXp4u2GjEFIqqUZ2Gjs/dp4ZrmNmfHF79ZVQ=; b=g1dFH5tIvFkZv92g+TjpKsDy5QgxQab5Lsamnx/4brgHWV1mN6mnBVJtlXpuuO8gMl dPaoSCdZJGmkWoudk8vLzvwdlRgx1lkkwFuIXI9iIK+3f9CliCUqqo9MQFeO6tAi2tqo ezLFROkYIcY1pKTszYGczIfpSI6/wPBOg2FgDkZsrmx8YCHVfUUc9Gnibfzcnwt7juHA ySSaQ+VzrIo0/enOvTGCqdoPOnwPKhaMfChUFlxYiW62JRmR6g5g4mf6se5tXnV0c232 jB8UQ5qXmhosGs9Nzed/24giNcTqLk6QkcwiLxjse/yq/QZonT45rs56DIuHPn7tJEb0 C08w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=WjtnDQqUXp4u2GjEFIqqUZ2Gjs/dp4ZrmNmfHF79ZVQ=; b=A/ygjW06PMvWxVeD6Cm8KiE2TcT3G0NFKLIKR6JzNz2RJeQugcaVE8vIzV/KCQBUOt 44+1h/k/TeXuks05JJC0P9GhcRyFjhlHGDBpAbU0KXGJYZd8dZhk8V7OCi/homNVWm9x eyFEe8XyXbOXIokVqqgymn78AJmil1OHsYwaUoDhK2XkG++s2Gqxhstb/A9YyHV6YgEU gSaVy9YimpyEGFuRFqEf3rOpCtYwPp7wPYN9FVSEv6JJG2EtuSREW9diH2w+VQRHHtr4 izmcEl/d053hDoCqgAR/AfbZVztLRZEcouKTK9EXIAt59XQMjh7SJ/wak2XW6YXdl/im k9iA== X-Gm-Message-State: AHPjjUgrF5tiy4rNFViGgqjrFf5gltILtd6v0KRqcyD56BuIGmQkHzQa f4mR/sl2KKAb+JeVKUKkCb1q+WGa6Q== X-Google-Smtp-Source: ADKCNb7X0OPnp4VeLCuc44KesRXSR7sPINkZBZEv53iVBeHjrJmnNN4jgSRbFHed7sVxA9yk7Q0rUHVMude+JroBL/U= X-Received: by 10.107.55.11 with SMTP id e11mr311914ioa.36.1504229087506; Thu, 31 Aug 2017 18:24:47 -0700 (PDT) MIME-Version: 1.0 Received: by 10.2.22.66 with HTTP; Thu, 31 Aug 2017 18:24:47 -0700 (PDT) In-Reply-To: References: From: Aijaz Baig Date: Fri, 1 Sep 2017 06:54:47 +0530 Message-ID: Subject: Re: buildkernel fails while compiling ath with -O0 (no optimization) for STABLE-10 To: Adrian Chadd Cc: "freebsd-wireless@freebsd.org" Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Sep 2017 01:24:48 -0000 Hi Adrian I did not really get your question. Do you mean if other modules are getting compiled properly? Won't it build the modules as part of the entire buildkernel process? Do you want more information about the system I am compiling it on? On Fri, Sep 1, 2017 at 5:13 AM, Adrian Chadd wrote: > Hi, > > Weird, is it building modules without a kernel? > > > > -adrian > > -- Best Regards, Aijaz Baig From owner-freebsd-wireless@freebsd.org Fri Sep 1 09:21:21 2017 Return-Path: Delivered-To: freebsd-wireless@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CEDFEE1CDC1 for ; Fri, 1 Sep 2017 09:21:21 +0000 (UTC) (envelope-from aijazbaig1@gmail.com) Received: from mail-io0-x22f.google.com (mail-io0-x22f.google.com [IPv6:2607:f8b0:4001:c06::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 94356696D0 for ; Fri, 1 Sep 2017 09:21:21 +0000 (UTC) (envelope-from aijazbaig1@gmail.com) Received: by mail-io0-x22f.google.com with SMTP id b2so13245700iof.0 for ; Fri, 01 Sep 2017 02:21:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=VOa7GzskMhFu4HG9PNaF1H4ILLp3GgdivJoUnsRQplU=; b=CcappHyr/6Vi4aB20ZjuqhYTWQ178Q7eGS04dIPm/7q9s2dwV2lufcJ5NZyT4wocEX /5ll0gQJlyogKwScyDYMg3Y0Pk4Md56BwwgwWNoV/uE4VEAcUFSe7G4oQDEe2yMUro/8 EgmSMNn3EJpa15L+8g/xPD3vesAEPGPcud8+UjC+G2wUgJJJLo5FzHS0Lli9HSZppwAu rv+6oFFWEs48QJzturHG+aZpucBO/b7Jt4E8AnD748S0y+sR4cs+CQkl1bws9BWw0TyJ 6HdIsnAUZ+h1ToZURIhfo8r54MqajzSg9d7u5vGW/YfCrOvIdMEbaq/2QpTBah+2f0zq yKEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=VOa7GzskMhFu4HG9PNaF1H4ILLp3GgdivJoUnsRQplU=; b=ikDkPrbK5mKTcbjwV/ipvB+BxiMZVezMAt/KyRQ1RFfpZNl5KQC37wvA/eMeMJlGwg MnFfXuqeX21fCdcGCPseVB2qv746hftwu/jdglyx6l8KOqw2aALtuqRiKDyP3X8pWJZl +/x2vSoFZVPtoFmWkLJQgfRiZ5h+vrqvzJy22NNxJRxdmyJJRVrPQLgu9LACJzE3Tm1Y hHZACta2w10B4Pze+MBUXtqZtEiCiBF41LuBAvf1M6R4FqGbT05W08dk9G3dMYGfg+Nu hyApkwERt+rurmB2EAQvkxJmjfCNZzv2YYD7/KRM5Igfw90Lrjohg9I5WvmMWDbILTwT 4PtA== X-Gm-Message-State: AHPjjUiKxKMD3k+5ORZAN1GDJNPOP40XVP4UU5ieEsrMShy9ImP4Hrp6 uHeyGAh89sdvaYVgL3bXp+5K8YiZ1A== X-Google-Smtp-Source: ADKCNb4s5OIoYDvz/jbUnkHa1K5an33uQbmDfi3fFaKbKv98V0C9WsuMdfcbgGBdTZLjhGFiuxxIdov8bhhWWS9BDx4= X-Received: by 10.107.33.72 with SMTP id h69mr868603ioh.340.1504257680798; Fri, 01 Sep 2017 02:21:20 -0700 (PDT) MIME-Version: 1.0 Received: by 10.2.22.66 with HTTP; Fri, 1 Sep 2017 02:21:20 -0700 (PDT) In-Reply-To: References: From: Aijaz Baig Date: Fri, 1 Sep 2017 14:51:20 +0530 Message-ID: Subject: Re: buildkernel fails while compiling ath with -O0 (no optimization) for STABLE-10 To: Adrian Chadd Cc: "freebsd-wireless@freebsd.org" Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Sep 2017 09:21:21 -0000 Oh I got what you meant. No I was NOT specifically compiling the ATH module but it was being built as part of the buildkernel process. I was actually trying to build the kernel without optimizations (so I can debug it within gdb) hence the need for that specific src.conf. Apparently as the build runs, it fails at that very moment in the compilation which I mentioned earlier. I hope you got your answer Adrian. On Fri, Sep 1, 2017 at 6:54 AM, Aijaz Baig wrote: > Hi Adrian > > I did not really get your question. Do you mean if other modules are > getting compiled properly? Won't it build the modules as part of the entire > buildkernel process? > > Do you want more information about the system I am compiling it on? > > On Fri, Sep 1, 2017 at 5:13 AM, Adrian Chadd > wrote: > >> Hi, >> >> Weird, is it building modules without a kernel? >> >> >> >> -adrian >> >> > > > -- > > Best Regards, > Aijaz Baig > -- Best Regards, Aijaz Baig From owner-freebsd-wireless@freebsd.org Fri Sep 1 13:13:40 2017 Return-Path: Delivered-To: freebsd-wireless@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id ECAB1E0DD08 for ; Fri, 1 Sep 2017 13:13:40 +0000 (UTC) (envelope-from tecnolinux26upgrade@gmail.com) Received: from mail-ua0-x232.google.com (mail-ua0-x232.google.com [IPv6:2607:f8b0:400c:c08::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A46CC7191F for ; Fri, 1 Sep 2017 13:13:40 +0000 (UTC) (envelope-from tecnolinux26upgrade@gmail.com) Received: by mail-ua0-x232.google.com with SMTP id g16so514449uah.3 for ; Fri, 01 Sep 2017 06:13:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=jW+EYaU6M9YGpWT9q5dcPNTONV7iAMbJxXvz4lCGTGs=; b=aeet11OAX7By01IoDOVsgf3i9SC6YICs7pj4OF7uqndd0iCMl0o6X7HvaHAmXM5k7G ipZR2lFyX/TCM82GenDTJI6CfEr0k5qGtfpD70fBHRQ4Bx6MPm69wvQyFhwtZjkOKw81 imXIbXjyA6MVFaLQAdZi/bf3KFo+O88r0LXY4Pr+2MaOiuNZ8ozk0p67TOBgZ5EIANzT FLHRNNxbkvzkOaV5LOreYmo9MPUQPKx/WZ/nOwsJzvUheSQ7tqrug2Ffju/yLaTkcf/B r0cCFTHxHiW/3XDWoKGtNQ7lFlhFdLcaLCpp51oGQxk0Fqwg5J3GMw2toqutfZjKvYJU NNQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=jW+EYaU6M9YGpWT9q5dcPNTONV7iAMbJxXvz4lCGTGs=; b=Ff6w5CavFW6HSyyXbBtrRaA/fIwW51qdVaLQ+HX2kNFSY4MRwZRL47IQVSPHsecp8X JqSAju38Yrr2CYXVjToFvTEaaQewWKrtgMZHb08ogRX6lORcUTjX7hsSIPj8bJbDLl7M NYGpkt6UnQjzWs9wqYT/ycuEkEGfrxeYB9lSm5ClnEndNgalsMXbsNVvro9nx9spr3wR JPTa4ldzVWigIzFUSCdUAC35Ptp4GidheOYSw68sUA2C0b4uiXG+YNk2oMMS5sNiE9SF w+nspO26GSsWxpsw05mExzdIlhRZ6xAZeNF1Anm5HcwAhRvYAGsIIXIo84Oxrq/USRsn SBXQ== X-Gm-Message-State: AHPjjUhPCw+MLM3AhnUFlJJ20vpspjp4aIn7BkRgenKuj/C4YiXWgkVz IpiT2DFkok/IZKF4knX9UA1CQGUWDqVp X-Google-Smtp-Source: ADKCNb5hXJLISeBXq+dn8fALaFtg0t7tVBF1CrMECHp+yCxOMxTfSYHksaitm+dCbRhEwpQJV0NlNMIoujYIF3w02ik= X-Received: by 10.176.86.18 with SMTP id y18mr949584uaa.126.1504271619609; Fri, 01 Sep 2017 06:13:39 -0700 (PDT) MIME-Version: 1.0 Received: by 10.176.21.65 with HTTP; Fri, 1 Sep 2017 06:13:39 -0700 (PDT) Received: by 10.176.21.65 with HTTP; Fri, 1 Sep 2017 06:13:39 -0700 (PDT) In-Reply-To: References: From: Tecno Linux Date: Fri, 1 Sep 2017 06:13:39 -0700 Message-ID: Subject: Adding wifi source code To: freebsd-wireless@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Sep 2017 13:13:41 -0000 Hello, I have the source code of my wireless driver i extract it from the linux kernel how can i compile that source code or i have another option my wireless driver is a realtek rtl8723be wifi From owner-freebsd-wireless@freebsd.org Fri Sep 1 15:32:30 2017 Return-Path: Delivered-To: freebsd-wireless@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CB86BE15225 for ; Fri, 1 Sep 2017 15:32:30 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-yw0-x22e.google.com (mail-yw0-x22e.google.com [IPv6:2607:f8b0:4002:c05::22e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 858BB7668A for ; Fri, 1 Sep 2017 15:32:30 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mail-yw0-x22e.google.com with SMTP id s187so2726566ywf.2 for ; Fri, 01 Sep 2017 08:32:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=RsbgVC2izm3i07ltsTITrI8o1pjjV3KwrajDyBHYEvM=; b=n7sU2JxNe8p1SZKWd/EAiZyslj5PteZT6uiZ+YNp96AKk0uz1MkIc3rxUFetFOmp75 RTfQ4xs7nTcocMjxQIb8ef5vouUgQd+4mWIFDu3m9+ni6ho/5GWcnhiNSqo2mExuISOF lVatbSXTxYWNOv2W9S9YsXWKyhP1Zz+TWSI7Hj/9CBsg8nh2vo0ighIu60XDbzwLFcKW llhhyryWI3f6wxtJsf0I56HZ8rVnRtQMSuRhKeEUMvJrleoDAOxNw9fRTe1a7/fbuU3D BgyjvfPiFAgJ05QN21bbfs/cipUk6F2PG4rPMyRbbJE6dtTXleUDFlIDMAZsMwW8AoqM ZGmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=RsbgVC2izm3i07ltsTITrI8o1pjjV3KwrajDyBHYEvM=; b=mcPh+VDdK2Yo9gYQJF9sAALdNEMKBhQOjiZwt1og9nOuixdLzn54lnXpsNo710XB9G Ck6EsJuMwi/BZyitaRZcHCIgeFSEhW1XBGn5HclWuyOjjiwFe3SemzQQPpBnwwMXJgsG OvXUsca1lbf64RgQFIu8PwdWSO0LGUxiV8ZD6WkGcWIfhRUvXCWNYtQmZ/VaVoA60o6K jfKmnez2m3l5VyczbHwTLSp5FyCm1v2gryLyUmFQiUwWsXcotYZqG6yP4CG0pqfkze3m Ez8U2HCkwo35X6WAxeUfEdmuX5murMM/s2JZN5yD7y2p7dtZwR0ahfHFU3wV/+wErP8N JHbA== X-Gm-Message-State: AHPjjUhv6QI2pTALNnGqgITO9/Xm/qlOtiPjrU2Wh5Rc3VGHwVieuzIk wIuZVAN/viwaB7EGQQ6dJb46s1/QHrBR X-Google-Smtp-Source: ADKCNb6cLtwpzawR/q1FigcyKt2BLTrq56MfBr0OUfip0mwfmSeOnVF8HEjmTmNwfKcyLCFL91wVfguE5CexFzB22ac= X-Received: by 10.37.80.216 with SMTP id e207mr2093214ybb.272.1504279949463; Fri, 01 Sep 2017 08:32:29 -0700 (PDT) MIME-Version: 1.0 Received: by 10.129.125.65 with HTTP; Fri, 1 Sep 2017 08:32:28 -0700 (PDT) In-Reply-To: References: From: Adrian Chadd Date: Fri, 1 Sep 2017 08:32:28 -0700 Message-ID: Subject: Re: buildkernel fails while compiling ath with -O0 (no optimization) for STABLE-10 To: Aijaz Baig Cc: "freebsd-wireless@freebsd.org" Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Sep 2017 15:32:30 -0000 Hi, I'm not sure what's going on. I think I made the driver require the kernel be built first so those header files should exist. Is setting CFLAGS right? Can you paste the whole command line that was being run by make leading up to that failure? -a On 1 September 2017 at 02:21, Aijaz Baig wrote: > Oh I got what you meant. No I was NOT specifically compiling the ATH > module but it was being built as part of the buildkernel process. I was > actually trying to build the kernel without optimizations (so I can debug > it within gdb) hence the need for that specific src.conf. Apparently as the > build runs, it fails at that very moment in the compilation which I > mentioned earlier. > > I hope you got your answer Adrian. > > On Fri, Sep 1, 2017 at 6:54 AM, Aijaz Baig wrote: > >> Hi Adrian >> >> I did not really get your question. Do you mean if other modules are >> getting compiled properly? Won't it build the modules as part of the entire >> buildkernel process? >> >> Do you want more information about the system I am compiling it on? >> >> On Fri, Sep 1, 2017 at 5:13 AM, Adrian Chadd >> wrote: >> >>> Hi, >>> >>> Weird, is it building modules without a kernel? >>> >>> >>> >>> -adrian >>> >>> >> >> >> -- >> >> Best Regards, >> Aijaz Baig >> > > > > -- > > Best Regards, > Aijaz Baig > From owner-freebsd-wireless@freebsd.org Fri Sep 1 21:25:43 2017 Return-Path: Delivered-To: freebsd-wireless@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 663B5E07F45 for ; Fri, 1 Sep 2017 21:25:43 +0000 (UTC) (envelope-from mueller6722@twc.com) Received: from dnvrco-oedge-vip.email.rr.com (dnvrco-outbound-snat.email.rr.com [107.14.73.228]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "dnvrco-oedge-vip.email.rr.com", Issuer "dnvrco-oedge-vip.email.rr.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4C60C64596 for ; Fri, 1 Sep 2017 21:25:42 +0000 (UTC) (envelope-from mueller6722@twc.com) Received: from [74.134.208.22] ([74.134.208.22:43960] helo=localhost) by dnvrco-omsmta02 (envelope-from ) (ecelerity 3.6.9.48312 r(Core:3.6.9.0)) with ESMTP id 68/D0-25924-050D9A95; Fri, 01 Sep 2017 21:25:36 +0000 Date: Fri, 01 Sep 2017 21:25:31 +0000 Message-ID: <68.D0.25924.050D9A95@dnvrco-omsmta02> From: "Thomas Mueller" To: freebsd-wireless@freebsd.org Subject: Re: Adding wifi source code References: X-RR-Connecting-IP: 107.14.64.7:25 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Sep 2017 21:25:43 -0000 from Tecno Linux: > Hello, I have the source code of my wireless driver i extract it from the > linux kernel how can i compile that source code or i have another option my > wireless driver is a realtek rtl8723be wifi I have similar question, but the source code is from NetBSD and the wireless chip is Atheros AR9271. I also have similar question regarding Ethernet Realtek 8111E re driver, works in NetBSD but not FreeBSD (11.1-STABLE and HEAD) on computer in question. Is there online handbook/documentation on writing device drivers or porting from Linux or NetBSD? Tom From owner-freebsd-wireless@freebsd.org Sat Sep 2 00:05:26 2017 Return-Path: Delivered-To: freebsd-wireless@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 32B6FE10241 for ; Sat, 2 Sep 2017 00:05:26 +0000 (UTC) (envelope-from gurenchan@gmail.com) Received: from mail-vk0-x22f.google.com (mail-vk0-x22f.google.com [IPv6:2607:f8b0:400c:c05::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D6BB16A022 for ; Sat, 2 Sep 2017 00:05:25 +0000 (UTC) (envelope-from gurenchan@gmail.com) Received: by mail-vk0-x22f.google.com with SMTP id d124so4410098vkf.3 for ; Fri, 01 Sep 2017 17:05:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=ReIxIsA0PyvWqtLarFXdu96jpdHuH6ToopmoNk/sZUI=; b=UviYQIvGN8dSgqEMDy+btQQV9ey4JsmXdZUQawNFZ9HPfLyyYMr30apNNiWYHfG00c PZmgcTmEIWqi3oF75PlVWACcslmsqgDlsDY9LtiuEPFD1je7Y+TS9+13drIJ8Zy3eEuJ oU67OUbb6wrwdCrsVYxp90ZFBl0z+qFe6J2YzeGcrGw0Bh9R7H6InKQWQRUTxyVgnmQF TM+Lpn4WJsVn890hj9kZqEfcdAAbc/xQvgRueqbaiH5z9FZZPYUXLhORWTTSIJDFeZc/ lmfiI3JDLVE9isnlMThX577N43MUt6r09FqYCUdcBCT5Q5cdkMw8RsBK/IidvUck4G8X HoWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=ReIxIsA0PyvWqtLarFXdu96jpdHuH6ToopmoNk/sZUI=; b=KY1jkuORG3wq47enduNzqdB8PcDJzFC2xAXf9kxGEH0A3ytxJKum0ttHhpPBECC37y kRPOHzKouXharhkx74edTeMI4KTegokRzy2ReDFg2BIKpXF9Yl1S9yUQfSeh60cAsiNb 7wVUK7C55PCiKTqZSthfx6XnsEYWsVt22GueKVWdaDygvrAROCKFgjDaJFg0zWX+egSL YfsZzoaCyGxOQrRpB0DsZi6E5rfzsgUbsbxFulLM0rOw1Y+ioWEFOZBCyAlpMsnDicUq 5ij4dGZ9+dCCr3Dze8G4WH79PBUu1bnJTNyEqeQXszaa25EbFXbHXf/ZuRZVsl6HT/0Z fWEw== X-Gm-Message-State: AHPjjUi+Q+jlWpZRMgJTta3JGZlwhb31/7wKVY5+PtJWcx4c9Zy6TGcH tzTPc4ASpxK7Ukj5sAVMnu08FJF9hw== X-Google-Smtp-Source: ADKCNb4NxeIBnxCeiozKIxhzlB2pDmq6qffDsBdB/5JUI/gz3qRA1owg8cdklZmgMQwbleQ9klat0GoI3naVC0x5LWQ= X-Received: by 10.31.170.142 with SMTP id t136mr1927608vke.157.1504310724495; Fri, 01 Sep 2017 17:05:24 -0700 (PDT) MIME-Version: 1.0 References: <68.D0.25924.050D9A95@dnvrco-omsmta02> In-Reply-To: <68.D0.25924.050D9A95@dnvrco-omsmta02> From: blubee blubeeme Date: Sat, 02 Sep 2017 00:05:13 +0000 Message-ID: Subject: Re: Adding wifi source code To: Thomas Mueller , freebsd-wireless@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Sep 2017 00:05:26 -0000 Here's a pdf giving a decent overview: https://www.bsdcan.org/2006/papers/freebsd.device.driver.slides.pdf But, the FreeBSD handbook also goes over the process as well. https://www.freebsd.org/doc/en_US.ISO8859-1/books/arch-handbook/driverbasics.html For the guy that took Linux drivers, you might want to look into the Linux Emulator, that would be the easiest path especially if those Linux drivers includes a lot of Linux specific headers. The NetBSD drivers should be a bit easier to port. Best, Owen On Sat, Sep 2, 2017, 05:25 Thomas Mueller wrote: > from Tecno Linux: > > > Hello, I have the source code of my wireless driver i extract it from the > > linux kernel how can i compile that source code or i have another option > my > > wireless driver is a realtek rtl8723be wifi > > I have similar question, but the source code is from NetBSD and the > wireless chip is Atheros AR9271. > > I also have similar question regarding Ethernet Realtek 8111E re driver, > works in NetBSD but not FreeBSD (11.1-STABLE and HEAD) on computer in > question. > > Is there online handbook/documentation on writing device drivers or > porting from Linux or NetBSD? > > Tom > > _______________________________________________ > freebsd-wireless@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-wireless > To unsubscribe, send any mail to "freebsd-wireless-unsubscribe@freebsd.org > " > From owner-freebsd-wireless@freebsd.org Sat Sep 2 03:45:23 2017 Return-Path: Delivered-To: freebsd-wireless@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1CCCAE1CC9B for ; Sat, 2 Sep 2017 03:45:23 +0000 (UTC) (envelope-from khanzf@gmail.com) Received: from mail-pf0-x22f.google.com (mail-pf0-x22f.google.com [IPv6:2607:f8b0:400e:c00::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E7BF271D55 for ; Sat, 2 Sep 2017 03:45:22 +0000 (UTC) (envelope-from khanzf@gmail.com) Received: by mail-pf0-x22f.google.com with SMTP id g13so5213689pfm.2 for ; Fri, 01 Sep 2017 20:45:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=riyYTWL5Ah8GdN5VMrnlejzQLHp/LYIDQaGl8jKghG8=; b=HW1ijUPL4yhh3UgFMT+NsEQKdtBHZd+c8jRFpE128Y51nK40wOMcpA6zz0/l4OGSFt 7kcDekMWh9Ipl2rVOGQVJQNcufoHulP4/385XSt2HcyRVM9OFVN6wqqFcvJDCQ3SZmpD ihljoR6B/Gl0uvJKTL8Lkmw8CoFC/htZ5AvvZOVgTm74OseS5oUBu6hlDco29FG2dFFc Q2onr/TGWKkxYQGra7lJxXdghaU2CG2nJH5r+gQb5o9DEyCMOvXX2Nw13VThTg4AU1Ji A6SW4xV/7NSp7Op7lId86PU+M+WDtzEwqPW/n0kP68ko+N7eaN1rL07ZE9eawWzti0lp 7P+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=riyYTWL5Ah8GdN5VMrnlejzQLHp/LYIDQaGl8jKghG8=; b=iM41KpoQQrUIBkkFXlVwKTjj49UeeKYhXxCjKKmuRA3MQSa+1P8xdbVwh4XM4pLLsQ IEBe+ryVTyUcLe40ppSf1d/e1n/UfVvtN4NN9+IS0hm1e8K/XvkKKGMSPYbD/Snb3JXV IZV9MCHjvrt9nTdt0j+qf7K+pMjLe/tUeTcVZ/D2mLDrI/F3KX2cNISXDrJO57divL5K fpjyWHE5qpAkFhfDTarnWhnYamFTTaB/NWxMmr8hVOyf8pdh+J5pH94huxHYLbzRxsXx aroYXCqSkGeHVI2OyFNmWYuvK82nE8E9SycZUnqcfea+aL2zlUg0NrCTbgNc4iLjbNHk 5tkQ== X-Gm-Message-State: AHPjjUi/5bQXEBoUYn0QmJBfu/UN0L2KuqZmdZjiOXX1ef093lnIEY5d lq9vx3KfgtrG5KxQ7J5vJWwc95aWkXT74Uo= X-Google-Smtp-Source: ADKCNb5MThVUbraVP9C9jtfxBY+b2hBrGyfkLAKFiiPjoyKRvwrsayNVqdxIM6PozrHjUyK/V2SWJ01DM1kQOdLellA= X-Received: by 10.99.0.74 with SMTP id 71mr4846628pga.304.1504323922231; Fri, 01 Sep 2017 20:45:22 -0700 (PDT) MIME-Version: 1.0 Received: by 10.100.183.208 with HTTP; Fri, 1 Sep 2017 20:45:01 -0700 (PDT) In-Reply-To: <68.D0.25924.050D9A95@dnvrco-omsmta02> References: <68.D0.25924.050D9A95@dnvrco-omsmta02> From: Farhan Khan Date: Fri, 1 Sep 2017 23:45:01 -0400 Message-ID: Subject: Re: Adding wifi source code To: Thomas Mueller Cc: freebsd-wireless@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Sep 2017 03:45:23 -0000 Thomas, I was planning on also porting over the Atheros AR9271 driver from NetBSD (athn(4) /usr/src/sys/dev/usb/if_athn_usb.c), but not until I finish the current device I am working on. It might not be for a while though. There is likely a lot of shared code with ath(4) on FreeBSD (/usr/src/sys/dev/athn). NetBSD seems to separate all code between USB and PCI, whereas FreeBSD combines drivers. Let me know if I can help out, as I already own this device and would be willing to test out code or troubleshoot with you. I am currently working on another driver from Linux to FreeBSD. The core concepts are the same, but a lot of code is in different order. FreeBSD drivers have an attach function that assign function pointers to the softc struct. The Linux equivalent is in DRIVERNAME_ops. In my case, this: http://src.illumos.org/source/xref/linux-master/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/sw.c#224 . Hope this helps. But yes, would love to work on AR9271! -- Farhan Khan PGP Fingerprint: 782F 342B 5B08 0D2F F4E8 82C3 FFA1 CAE1 6536 51CA On Fri, Sep 1, 2017 at 5:25 PM, Thomas Mueller wrote: > from Tecno Linux: > > > Hello, I have the source code of my wireless driver i extract it from the > > linux kernel how can i compile that source code or i have another option > my > > wireless driver is a realtek rtl8723be wifi > > I have similar question, but the source code is from NetBSD and the > wireless chip is Atheros AR9271. > > I also have similar question regarding Ethernet Realtek 8111E re driver, > works in NetBSD but not FreeBSD (11.1-STABLE and HEAD) on computer in > question. > > Is there online handbook/documentation on writing device drivers or > porting from Linux or NetBSD? > > Tom > > _______________________________________________ > freebsd-wireless@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-wireless > To unsubscribe, send any mail to "freebsd-wireless-unsubscribe@freebsd.org > " > From owner-freebsd-wireless@freebsd.org Sat Sep 2 08:11:03 2017 Return-Path: Delivered-To: freebsd-wireless@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 12DD3E06325 for ; Sat, 2 Sep 2017 08:11:03 +0000 (UTC) (envelope-from mueller6722@twc.com) Received: from dnvrco-oedge-vip.email.rr.com (dnvrco-outbound-snat.email.rr.com [107.14.73.232]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "dnvrco-oedge-vip.email.rr.com", Issuer "dnvrco-oedge-vip.email.rr.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id EB5507CEA0 for ; Sat, 2 Sep 2017 08:11:02 +0000 (UTC) (envelope-from mueller6722@twc.com) Received: from [74.134.208.22] ([74.134.208.22:58754] helo=localhost) by dnvrco-omsmta03 (envelope-from ) (ecelerity 3.6.9.48312 r(Core:3.6.9.0)) with ESMTP id F1/BE-31699-F876AA95; Sat, 02 Sep 2017 08:10:55 +0000 Date: Sat, 02 Sep 2017 08:10:49 +0000 Message-ID: From: "Thomas Mueller" To: freebsd-wireless@freebsd.org Subject: Re: Adding wifi source code References: <68.D0.25924.050D9A95@dnvrco-omsmta02> X-RR-Connecting-IP: 107.14.64.88:25 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Sep 2017 08:11:03 -0000 > Here's a pdf giving a decent overview: > https://www.bsdcan.org/2006/papers/freebsd.device.driver.slides.pdf > But, the FreeBSD handbook also goes over the process as well. > https://www.freebsd.org/doc/en_US.ISO8859-1/books/arch-handbook/driverbasics.html > For the guy that took Linux drivers, you might want to look into the Linux > Emulator, that would be the easiest path especially if those Linux drivers > includes a lot of Linux specific headers. > The NetBSD drivers should be a bit easier to port. > Best, > Owen I downloaded it but haven't read yet. Actually, it's the arch-handbook, not in the regular FreeBSD handbook. Thanks for the leads! > I was planning on also porting over the Atheros AR9271 driver from NetBSD > (athn(4) /usr/src/sys/dev/usb/if_athn_usb.c), but not until I finish the > current device I am working on. It might not be for a while though. There > is likely a lot of shared code with ath(4) on FreeBSD > (/usr/src/sys/dev/athn). NetBSD seems to separate all code between USB and > PCI, whereas FreeBSD combines drivers. Let me know if I can help out, as I > already own this device and would be willing to test out code or > troubleshoot with you. > I am currently working on another driver from Linux to FreeBSD. The core > concepts are the same, but a lot of code is in different order. FreeBSD > drivers have an attach function that assign function pointers to the softc > struct. The Linux equivalent is in DRIVERNAME_ops. In my case, this: > http://src.illumos.org/source/xref/linux-master/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/sw.c#224 > Hope this helps. But yes, would love to work on AR9271! What is the rtl8188ee? Maybe I'd recognize the brand and model. I have Hiro H50191, which uses rsu driver. That last URL looks like something related to Illumos and OpenIndiana. My Atheros AR9271 is (quasi-)USB, an inseparable part of the motherboard in contrast to the Hiro H50191 which is a USB-stick wireless adapter. It has sometimes worked on NetBSD, but more often would fail to load firmware. On latest NetBSD-current, it stops the kernel from booting unless I disable it or comment out in kernel config. GENERIC kernel reboots immediately without showing any messages. OpenBSD also has AR9271 driver and Realtek re. I have NetBSD installations but no OpenBSD. I would like, at first, if possible, when I have a driver to build, to build the module rather than the whole kernel every time. I am familiar with C and C++ but think I need to brush up. Any online leads/references? Tom From owner-freebsd-wireless@freebsd.org Sat Sep 2 10:22:21 2017 Return-Path: Delivered-To: freebsd-wireless@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8713AE0B76A for ; Sat, 2 Sep 2017 10:22:21 +0000 (UTC) (envelope-from mizhka@gmail.com) Received: from mail-qk0-x235.google.com (mail-qk0-x235.google.com [IPv6:2607:f8b0:400d:c09::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3798280B57 for ; Sat, 2 Sep 2017 10:22:21 +0000 (UTC) (envelope-from mizhka@gmail.com) Received: by mail-qk0-x235.google.com with SMTP id k126so9023354qkb.4 for ; Sat, 02 Sep 2017 03:22:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=e8moyYaonuRkiIUPvUysjAv1DnFdY1RhRdLGP5vdE1U=; b=UWiD7rC/MhJnGu0J/BldfrIR7HEo4t7Evzd1IHzxZaZXIYmx3qYJn/V+MRNsTRWgR1 NrWqlBeH8XMEJi8V+YtgyJz8dT/laTT502ST4G3xcbPBg5FnyzlLVFYDTs+LhMkiYplX x4+e/lgRoJ3ow9ytTQ3podQ0cEocOE5dT+AGa6THyUyqofpdLUe7piMCRnjKg2eOTFaD qGHcVnZmYDtCiUuTJtOC+CWhFgCRAwj+YINuQZ7+W1e/xtI5AwAQ9mSR/A7T53qvGc+U k9dhlYn5GTBVKOvdJRdT6X1Rv0lDqPfAXodzy7BFnS7PnbrSORJohoOg+7Hmtk8tV0Ad t7yQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=e8moyYaonuRkiIUPvUysjAv1DnFdY1RhRdLGP5vdE1U=; b=UYpvuRZiOVkBgnC3OrNqRRbowwlXh/nXLYtTpHtyUJTbv9IZk3q9n1SNzKMWSK88hz bcQQUO5qLBOGacd44NXKhFNCdoyjIQD+tl+cA3ejsZnhyNroyz67aAbKsIYNMDg1+OFs Sw2x1D5NiNewFf3s/k0HukffsjTxhGLfn2cf7VvHFv57OxTsO/sQylSLbr9TbnfwFNFH RUU+dTFkpUrk00MxYn0iylwN5YHO5/aQJ4nWxvgiraDpj5Bc0Rh3lN3MYSQ0Igq8htGH CHigZPCBbXdmty4MXMg9lFzpUf1hNq7nT9jlq/An4VawCcOYyOVxTg/cHks4x32faV3d ZBJQ== X-Gm-Message-State: AHPjjUj1UchY+kDtPgTxJy4c68Y11IaUbPgFh3onsYEBRQBEFdMUIsa4 JwuDWp7JYmplvlNu8oCMEmEZIOs4DQ== X-Google-Smtp-Source: ADKCNb6uPqI5Ub0OaWVPssdIWvrWKIpZepCS3cAJWpCFCDoJ/tvh3n6NgPBVk4zSW96nTXef70XCU+qc6Vsyy7/au28= X-Received: by 10.55.55.204 with SMTP id e195mr6093669qka.68.1504347740451; Sat, 02 Sep 2017 03:22:20 -0700 (PDT) MIME-Version: 1.0 Received: by 10.140.85.101 with HTTP; Sat, 2 Sep 2017 03:22:19 -0700 (PDT) Received: by 10.140.85.101 with HTTP; Sat, 2 Sep 2017 03:22:19 -0700 (PDT) In-Reply-To: References: <68.D0.25924.050D9A95@dnvrco-omsmta02> From: Michael Zhilin Date: Sat, 2 Sep 2017 13:22:19 +0300 Message-ID: Subject: Re: Adding wifi source code To: Thomas Mueller Cc: freebsd-wireless Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Sep 2017 10:22:21 -0000 Hi, May be it not best material, but blog of adrian@ is really helpful: http://adrianchadd.blogspot.com.tr/?m=3D1 Best regards, Michael 2 =D1=81=D0=B5=D0=BD=D1=82. 2017 =D0=B3. 11:11 =D0=94=D0=9F =D0=BF=D0=BE=D0= =BB=D1=8C=D0=B7=D0=BE=D0=B2=D0=B0=D1=82=D0=B5=D0=BB=D1=8C "Thomas Mueller" = =D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0=B0=D0=BB: > > Here's a pdf giving a decent overview: > > https://www.bsdcan.org/2006/papers/freebsd.device.driver.slides.pdf > > > But, the FreeBSD handbook also goes over the process as well. > > > https://www.freebsd.org/doc/en_US.ISO8859-1/books/arch- > handbook/driverbasics.html > > > For the guy that took Linux drivers, you might want to look into the > Linux > > Emulator, that would be the easiest path especially if those Linux > drivers > > includes a lot of Linux specific headers. > > > The NetBSD drivers should be a bit easier to port. > > > Best, > > Owen > > I downloaded it but haven't read yet. > > Actually, it's the arch-handbook, not in the regular FreeBSD handbook. > > Thanks for the leads! > > > I was planning on also porting over the Atheros AR9271 driver from NetB= SD > > (athn(4) /usr/src/sys/dev/usb/if_athn_usb.c), but not until I finish th= e > > current device I am working on. It might not be for a while though. The= re > > is likely a lot of shared code with ath(4) on FreeBSD > > (/usr/src/sys/dev/athn). NetBSD seems to separate all code between USB > and > > PCI, whereas FreeBSD combines drivers. Let me know if I can help out, a= s > I > > already own this device and would be willing to test out code or > > troubleshoot with you. > > > I am currently working on another driver from Linux to FreeBSD. The cor= e > > concepts are the same, but a lot of code is in different order. FreeBSD > > drivers have an attach function that assign function pointers to the > softc > > struct. The Linux equivalent is in DRIVERNAME_ops. In my case, this: > > http://src.illumos.org/source/xref/linux-master/drivers/net/ > wireless/realtek/rtlwifi/rtl8188ee/sw.c#224 > > > Hope this helps. But yes, would love to work on AR9271! > > What is the rtl8188ee? Maybe I'd recognize the brand and model. > > I have Hiro H50191, which uses rsu driver. > > That last URL looks like something related to Illumos and OpenIndiana. > > My Atheros AR9271 is (quasi-)USB, an inseparable part of the motherboard > in contrast to the Hiro H50191 which is a USB-stick wireless adapter. > > It has sometimes worked on NetBSD, but more often would fail to load > firmware. > > On latest NetBSD-current, it stops the kernel from booting unless I > disable it or comment out in kernel config. GENERIC kernel reboots > immediately without showing any messages. > > OpenBSD also has AR9271 driver and Realtek re. I have NetBSD > installations but no OpenBSD. > > I would like, at first, if possible, when I have a driver to build, to > build the module rather than the whole kernel every time. > > I am familiar with C and C++ but think I need to brush up. Any online > leads/references? > > Tom > > _______________________________________________ > freebsd-wireless@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-wireless > To unsubscribe, send any mail to "freebsd-wireless-unsubscribe@freebsd.or= g > " >