From owner-freebsd-arm@freebsd.org Tue Nov 8 21:30:10 2016 Return-Path: Delivered-To: freebsd-arm@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 9C3EBC378A9 for ; Tue, 8 Nov 2016 21:30:10 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (heidi.turbocat.net [88.198.202.214]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6797683C for ; Tue, 8 Nov 2016 21:30:09 +0000 (UTC) (envelope-from hps@selasky.org) Received: from laptop015.home.selasky.org (unknown [62.141.129.119]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id B2E2B1FE022; Tue, 8 Nov 2016 22:30:01 +0100 (CET) Subject: Re: How to change MAC address on RPI-B? To: diffusae , freebsd-arm References: <950d3edd-6b54-4935-ffec-bfcfbd257bb7@t-online.de> From: Hans Petter Selasky Message-ID: Date: Tue, 8 Nov 2016 22:35:12 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <950d3edd-6b54-4935-ffec-bfcfbd257bb7@t-online.de> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Nov 2016 21:30:10 -0000 On 11/08/16 22:12, diffusae wrote: > Hello! > > Does anyboy know how to change the MAC address on a Raspberry Pi with > FreeBSD 11.0-STABLE? > > I've tried it this way in /etc/start_if.ue0: > > ifconfig ue0 down delete > ifconfig ue0 promisc > ifconfig ue0 ether 00:FF:CC:00:11:11 > > But it's only possible to do it in promicous mode of the device. > Without there is no more network connection after applying these settings. > > It could be properly a bug due to the USB network driver. > > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=168268 > > Maybe there is another way, how with the Linux kernel command line or an > config option, like this: smsc95xx.macaddr=00:FF:CC:00:11:11. Hi, The sys/dev/usb/net/if_smsc.c driver needs a patch to set the mac address runtime. I think you can change the mac address in the RPI FDT file and it will pick it up. --HPS