From owner-freebsd-arm@freebsd.org Sat Nov 26 17:42:35 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 26E23C57422 for ; Sat, 26 Nov 2016 17:42:35 +0000 (UTC) (envelope-from punasipuli@t-online.de) Received: from mailout10.t-online.de (mailout10.t-online.de [194.25.134.21]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mailout00.t-online.de", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E0B71C90; Sat, 26 Nov 2016 17:42:34 +0000 (UTC) (envelope-from punasipuli@t-online.de) Received: from fwd21.aul.t-online.de (fwd21.aul.t-online.de [172.20.27.66]) by mailout10.t-online.de (Postfix) with SMTP id 4C35041E51D5; Sat, 26 Nov 2016 18:32:38 +0100 (CET) Received: from [192.168.10.43] (rXvy+wZXrh9X3zA-XJCsoMSrsLaxIsnB0fE6qthhyg-QiJOkSqwp2gCP0X35ar4ZIc@[86.56.56.128]) by fwd21.t-online.de with (TLSv1.2:ECDHE-RSA-AES256-SHA encrypted) esmtp id 1cAgq4-22rrzk0; Sat, 26 Nov 2016 18:32:36 +0100 Subject: Re: How to change MAC address on RPI-B? To: Ian Lepore , freebsd-arm@freebsd.org References: <001701d245ce$e64e33f0$b2ea9bd0$@Kitz@xs4all.nl> <454137dc-30f7-cd33-6c75-0cc3045090dd@t-online.de> <002801d24755$f9017420$eb045c60$@Kitz@xs4all.nl> <177ae37f-db52-c7ee-77fa-d9bc7d61b4ee@t-online.de> <1480137537.1889.97.camel@freebsd.org> <1480137719.1889.98.camel@freebsd.org> From: diffusae Message-ID: Date: Sat, 26 Nov 2016 18:32:35 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <1480137719.1889.98.camel@freebsd.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-ID: rXvy+wZXrh9X3zA-XJCsoMSrsLaxIsnB0fE6qthhyg-QiJOkSqwp2gCP0X35ar4ZIc X-TOI-MSGID: 95225627-3909-41c5-82da-abf2c4ef6ca9 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: Sat, 26 Nov 2016 17:42:35 -0000 Hi Ian, I've applied it to the sysutils/u-boot-rpi port and test the package with the RPI-B. The configured usbethaddr is set in the u-boot environment, but it will not passed to the kernel via the FTD blob. The FreeBSD kernel always have the BIA of the NIC. But I think, you are right, the RPis FTD data is available before the u-boot enviroment is set. So unfortunately that doesn't work a the moment. Best regards, On 26.11.2016 06:21, Ian Lepore wrote: >> I looked into this tonight, and there is some code missing in u-boot >> > to >> > handle passing a mac address set in the u-boot environment into the >> > kernel via the fdt data. >> > >> > It would be pretty simple to fix. We need to add an ethernet0 alias >> > pointing to the /axi/usb/hub/ethernet node to our rpi dts, and the >> > attached patch needs to replace the current one in the u-boot-rpi >> > port. >> > >> > This lets you set usbethaddr in the u-boot environment (via uEnv.txt >> > or >> > saved directly using saveenv), and it will get used by both u-boot >> > and >> > freebsd. >> > >> > Having gotten it this far, I don't really have time right now to get >> > the patch committed to ports. Hopefully somebody else can help with >> > that. >> > >> > -- Ian > Looks like I forgot to attach the patch. Try again...