From nobody Sun Nov 10 03:40:05 2024 X-Original-To: freebsd-arch@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 4XmJND0RR0z5c85N for ; Sun, 10 Nov 2024 03:40:12 +0000 (UTC) (envelope-from philip@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XmJNC5Ynrz46mf; Sun, 10 Nov 2024 03:40:11 +0000 (UTC) (envelope-from philip@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731210011; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Y4Mm34w5hmXeY9nF0Sv9FBY8wcR/CbcdDjt9aLhJjZw=; b=e+bOcnjZIY6A77BJWsbytdiqrptZPDmIMz7oiELjvVVRU9wzfp/csm3lh4/7CpYPHH8USt SeY8vzKz0eRmeI6RVgRDX3aUqt9oS2ksLwJE5DoPlCPdcR7DjXpGEWLD1nktB3L5urpnKY V0CVQeZiM87BMuAHcBkr9Ik7XBQjFXPX8HoFqBS5YeNpJ0Od0tkOkOk/mTtFFHxJyASo4p ocwaDo8LD3BVjeZ3YHB80pFzy597gVZQFLeo2agADuTh5SC18nqEo59FNQSCwFG1pNj5DI NX5iQ9xohVWtqhXQXHcvUt1jxfvNhOgVSZf7j1hownzLEFWJVVbCzCoJJrHNzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731210011; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Y4Mm34w5hmXeY9nF0Sv9FBY8wcR/CbcdDjt9aLhJjZw=; b=DkanogNu1A3O1yoQoLixZT9ffmJhcLy2hT14UCW3kDpuhEm+lj51HUHqRSSo2ORBGqQ55M 0jDrC3GeNSnp6HL7iKz7IEAw98ok/P+bKA95s6fc+XciIXHwPdHdvsBUPrixNOyjAJ8sXn 5H1jfcncn3lTeKHvqcP+bVJlvEx5AaosBnxHq+tGvS/JuUzvAuWKZrHX1H/5UVXICmVZIA GlRB0ucTOwFOLIs8H5AdP4X43rSZ8gtaeQUINYdg8dLKQKKzPVkrbPFJSgXCuQtYXkShhl 1fSJkr5wFi8JHJuc65Zaf6kPE3mAvcJuHYXPQoqAOm5tRHPvMrKmnigYQZTEPw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1731210011; a=rsa-sha256; cv=none; b=De2myjfeXn+PM7LcEbRlXYnNEYx4XggyKP14Z/2nC0BsdEQIF1nw35N8dOE5/xBBsEqH9L BrTaSfGGitqMggzkhVGZ1ug4sjNzV7iBV8XFFwWh2z2oIHwxrn8xOr3AAiZnY0ImwkSrn3 bLXZB58nt4bvq24oTKO+xJv+MValn+smtJTPo1bG7SNuugkNyWJCjhMEH3vyAcyJRbKiUx vXYDWrK+RlP9khWpIaFY5tcKly67CzkPpwGHY/lhFXnZP437jkyQCTWfHI8VlesxGV7xSX +7/581hv8VsMGm6Gfj6LVN+nPAKYl6RM31jFhGl/T3icXB6164HWeFSawcNfJA== Received: from fauth-a2-smtp.messagingengine.com (fauth-a2-smtp.messagingengine.com [103.168.172.201]) (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 did not present a certificate) (Authenticated sender: philip/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4XmJNC4XxFzSpB; Sun, 10 Nov 2024 03:40:11 +0000 (UTC) (envelope-from philip@freebsd.org) Received: from phl-compute-10.internal (phl-compute-10.phl.internal [10.202.2.50]) by mailfauth.phl.internal (Postfix) with ESMTP id 206DB120006E; Sat, 9 Nov 2024 22:40:11 -0500 (EST) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-10.internal (MEProxy); Sat, 09 Nov 2024 22:40:11 -0500 X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrtdelgdeiudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdpuffr tefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnth hsucdlqddutddtmdenucfjughrpefhvfevufffoffkjghfgggtgfesthekmhdtredtjeen ucfhrhhomheprfhhihhlihhpucfrrggvphhsuceophhhihhlihhpsehfrhgvvggsshgurd horhhgqeenucggtffrrghtthgvrhhnpeefhfehgeejgedvgefhuddvieffteeujeejgfeu heehleefiedvjeeludetgfefteenucffohhmrghinhepnhgvthgsshgurdhorhhgpdhkvg hrnhgvlhdrohhrghenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhl fhhrohhmpehphhhilhhiphdomhgvshhmthhprghuthhhphgvrhhsohhnrghlihhthidqud duieeivdeivdegkedqvdefhedukedttdekqdhphhhilhhipheppehfrhgvvggsshgurdho rhhgsehtrhhouhgslhgvrdhishdpnhgspghrtghpthhtohephedpmhhouggvpehsmhhtph houhhtpdhrtghpthhtohepjhhrthgtvdejsehfrhgvvggsshgurdhorhhgpdhrtghpthht ohepkhgvvhhinhdrsghofihlihhngheskhgvvhdttdelrdgtohhmpdhrtghpthhtohepfh hrvggvsghsugdqrghrtghhsehfrhgvvggsshgurdhorhhgpdhrtghpthhtohepvghmrghs thgvsehfrhgvvggsshgurdhorhhgpdhrtghpthhtohepihhmphesfhhrvggvsghsugdroh hrgh X-ME-Proxy: Feedback-ID: ia691475d:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 9 Nov 2024 22:40:09 -0500 (EST) From: Philip Paeps To: Jessica Clarke Cc: Kevin Bowling , freebsd-arch@freebsd.org, Ed Maste , Warner Losh Subject: Re: CAN bus support Date: Sun, 10 Nov 2024 11:40:05 +0800 X-Mailer: MailMate (1.14r6065) Message-ID: In-Reply-To: References: List-Id: Discussion related to FreeBSD architecture List-Archive: https://lists.freebsd.org/archives/freebsd-arch List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arch@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 2024-11-10 06:23:49 (+0800), Jessica Clarke wrote: > On 9 Nov 2024, at 21:57, Kevin Bowling > wrote: >> A FreeBSD vendor is interested in interacting with CAN bus on >> FreeBSD. >> >> A convenient starting point would be NetBSD's can(4) >> (https://man.netbsd.org/can.4) which implements something very >> similar >> to Linux' SocketCAN >> (https://www.kernel.org/doc/Documentation/networking/can.txt) to >> provide the protocol/interface and then writing a driver for their >> controller. >> >> Is there other interest or concern about the topic? > > A year or two back philip@ did some work for us on this as we had some > companies in the Digital Security by Design program interested in > using > CheriBSD with CANbus things. It never quite got finished though, but > would presumably be a good place to start? IIRC it took the same > approach of porting NetBSD’s code. Yeah. I remember I got the NetBSD code to compile, but not much more than that. The NetBSD code is very old, and an awkward fit. I don't think it's particularly actively maintained in NetBSD either. My memory is very fuzzy, but I think I remember thinking a userland implementation would fit better. I don't think I ever made any progress there. Unfortunately, I don't have any code / works in progress from the time. Philip