From nobody Mon Sep 25 21:57:07 2023 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RvcD73kt9z4v77j for ; Mon, 25 Sep 2023 21:57:11 +0000 (UTC) (envelope-from ronald@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RvcD732QJz4LKc; Mon, 25 Sep 2023 21:57:11 +0000 (UTC) (envelope-from ronald@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1695679031; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=MdTPO7EfCIcUeCfFJKvIcfyLWf1CXuYTLqbSTbfcKGg=; b=YCy4e8EE4zCT1fmKLpAXd41dSsiR1n+2NUxRvlIv26LkxI1FtzU0FiLzt6mt/6qJc74nVM qEOmy/Sykf5AGU+SJvx6myTg/PWW7ip2f+edy/a9XncfqhpybPquBacZJ7/IWDyohq16a3 2SIeWqTTviGCZzDdDw57TidP1xfKoSKZO0iCDnzDtcwiYO4WumG8dEgYVIJ+cqqg4liQmJ HbxxuUpqzIMY3F7ubld93dgX60V5aROesZ4xg4qCbKDiAYSoc2eZxEUelKpur5qFm4Z16e J6yw1yd6Cg9p7Nb3RFKcDFyFe/BDJRa27oqlsZJYsLJFoCWFv6xQA0eBg4w8ew== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1695679031; a=rsa-sha256; cv=none; b=dPhe5SznABoYpVq+honcX/vJnvw88U4zskNaIYbQC/Q3GIzE55FxHcWhi6F4cURJsjp5d3 JO5BDcUPihDfrWIJ8B6/SRwm/L9dPVYOFjbOEGzVweu9s29vNwJCURwu6GBzXbImTJdsVa 4wtsjhH/kvyE/EUI/d1/A7tAOsMi2RHpi4K55ENaQKNpKRNI4NJcaJL71LyjN11IdwxhXw H8R3jkTYvDTYfNQA4zG9Yoo/pnCrKnJCMj65K8DFRlBa64HPkpARL1m0h4gxjfho1mcjW8 VXimnjbffhdtjstXBReF6DCYFwL62bC5YXmrduTzUZ9qNDfD05ywZHK39z8dIQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1695679031; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=MdTPO7EfCIcUeCfFJKvIcfyLWf1CXuYTLqbSTbfcKGg=; b=nA0BLmrpouFSJ3dUhi7G9L+D4JuQcI33D7le2Y6yN/yEhcOoJA8nJ+QUOODaWUyfuXdRpW KTipQnnryC6xZu4LIxzSv7k7ys1bJJAgGeH0hliCLAsDXf6ErUfnbqN1UEeF2L/mfqDxiv RZtq1QQRw2aNMAMXpxfMsA9AUiy4JdYnTdu+oWydSQu9AA1OLXshGS9vT90dRsVz5+ko8F 4jLWvTt5i3IMSmLBwJYzXjHXbgLyvqOa+ILBfJPz+kmRim3p/82qUt4j2jJPntl9kARAUL 82MVsQqcdZavJszrq/Tych+83ksWpuNLQy6riTtQbdGIquKomP9hYYkPiu6HUQ== Received: from [192.168.1.109] (84-105-120-103.cable.dynamic.v4.ziggo.nl [84.105.120.103]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: ronald/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4RvcD64m4fz1N25; Mon, 25 Sep 2023 21:57:10 +0000 (UTC) (envelope-from ronald@FreeBSD.org) Content-Type: multipart/mixed; boundary="------------ztD9iCwnQIq6aG5i9jOKbmtw" Message-ID: Date: Mon, 25 Sep 2023 23:57:07 +0200 List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:102.0) Gecko/20100101 Thunderbird/102.15.0 Subject: Re: Getting a stable MAC address for a RPI CM3+ with ue0 interface To: "Patrick M. Hausen" Cc: freebsd-arm References: <3C1032FF-B914-4863-8A03-759A8B4BE216@hausen.com> <77E70D30-8E7D-42DC-A041-3A783E1C6908@yahoo.com> <5205C76E-BAB4-4AB7-8A03-1E8A2D4353BB@hausen.com> <84C20AD4-1F37-414E-8808-60A2C9B621D9@karels.net> <4951c134-39be-43de-0aa7-430a136d8b36@FreeBSD.org> <2071C2B6-B61A-40E0-8DA2-1E23D463B2E9@hausen.com> <8305B36C-9DFE-4FF1-A836-80F2931A6A46@hausen.com> Content-Language: en-US From: Ronald Klop In-Reply-To: This is a multi-part message in MIME format. --------------ztD9iCwnQIq6aG5i9jOKbmtw Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 9/25/23 22:34, Patrick M. Hausen wrote: > Hi all, > >> Am 25.09.2023 um 22:26 schrieb Ronald Klop : >> The method ether_gen_addr() generates a MAC address bases on hostuuid and interface name. Maybe not ideal, bu a lot better then a random MAC. > > I do not understand why "we" as a project do not got the RPi Foundation documented way? > I can't help you on this question. I don't know either. >> It would be nice to see more information from the panic. Can you make a picture or movie of the screen while this happens? >> Or does the system make a kernel crashdump? See "dumpdev" in /etc/defaults/rc.conf. > > Of course. I have one more CM3+ that is not part of my TuringPi cluster that I can > use for that. Can't promise tomorrow, but sometime this week. > > Could you send me your patch in an archived binary format in direct email, please? > I manually applied the changes, because my MUA or whatever intermediate system > converted tabs to spaces and the patch did not apply automatically. Possibly I made some mistake. See attachment. I hope it gets through the list. I'll try to create a PR with the patch soon. > Kind regards, > Patrick --------------ztD9iCwnQIq6aG5i9jOKbmtw Content-Type: text/plain; charset=UTF-8; name="if_smsc.c.diff" Content-Disposition: attachment; filename="if_smsc.c.diff" Content-Transfer-Encoding: base64 ZGlmZiAtLWdpdCBhL3N5cy9kZXYvdXNiL25ldC9pZl9zbXNjLmMgYi9zeXMvZGV2L3VzYi9u ZXQvaWZfc21zYy5jCmluZGV4IDBhMDI2OGJmYTFhMi4uMTU3ZjI2OGVmNGRkIDEwMDY0NAot LS0gYS9zeXMvZGV2L3VzYi9uZXQvaWZfc21zYy5jCisrKyBiL3N5cy9kZXYvdXNiL25ldC9p Zl9zbXNjLmMKQEAgLTE1NTQsOCArMTU1NCwxMSBAQCBzdGF0aWMgdm9pZAogc21zY19hdHRh Y2hfcG9zdChzdHJ1Y3QgdXNiX2V0aGVyICp1ZSkKIHsKIAlzdHJ1Y3Qgc21zY19zb2Z0YyAq c2MgPSB1ZXRoZXJfZ2V0c2ModWUpOworCXN0cnVjdCBldGhlcl9hZGRyIGVhZGRyOworCWlm X3QgaWZwOwogCXVpbnQzMl90IG1hY19oLCBtYWNfbDsKIAlpbnQgZXJyOworCWludCBpOwog CiAJc21zY19kYmdfcHJpbnRmKHNjLCAic21zY19hdHRhY2hfcG9zdFxuIik7CiAKQEAgLTE1 ODksOSArMTU5MiwxMCBAQCBzbXNjX2F0dGFjaF9wb3N0KHN0cnVjdCB1c2JfZXRoZXIgKnVl KQogCQkJZXJyID0gdXNiX2ZkdF9nZXRfbWFjX2FkZHIoc2MtPnNjX3VlLnVlX2RldiwgJnNj LT5zY191ZSk7CiAjZW5kaWYKIAkJaWYgKChlcnIgIT0gMCkgfHwgKCFFVEhFUl9JU19WQUxJ RChzYy0+c2NfdWUudWVfZWFkZHIpKSkgewot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