From nobody Sat Oct 16 10:04:25 2021 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 8A105180B250 for ; Sat, 16 Oct 2021 10:04:52 +0000 (UTC) (envelope-from Olivier.Nicole@cs.ait.ac.th) Received: from mail.cs.ait.ac.th (mail.cs.ait.ac.th [192.41.170.16]) (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) by mx1.freebsd.org (Postfix) with ESMTPS id 4HWdzP3L4bz3Q9f for ; Sat, 16 Oct 2021 10:04:49 +0000 (UTC) (envelope-from Olivier.Nicole@cs.ait.ac.th) Received: from mail.cs.ait.ac.th (localhost [127.0.0.1]) by mail.cs.ait.ac.th (Postfix) with ESMTP id 058CC112502 for ; Sat, 16 Oct 2021 17:04:38 +0700 (+07) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cs.ait.ac.th; h= content-type:content-type:mime-version:message-id:date:date :in-reply-to:subject:subject:from:from:received:received :received; s=selector1; t=1634378677; x=1636193078; bh=w42Xb0ygF Fdasn3dcr0jrtCKfdAUXQ3gDSjiVnpahlg=; b=fbZLCapXCQA7pH7TwazovbGm+ L9qn0N5NWjSOcZv/3lCGzG31HQpatXR3bvG04Gmpq+AkFPkZo2DLyEnIWqZwrbsO dqCUllJW6MklHNR7/RiOl1WzRRVvSWkgVAw4HuHWV+qwpwNwayCWR/uWM/I4jtdP NZEhwh9fe3nTTgCgUI= X-Virus-Scanned: amavisd-new at cs.ait.ac.th Received: from mail.cs.ait.ac.th ([127.0.0.1]) by mail.cs.ait.ac.th (mail.cs.ait.ac.th [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id BCLegQjsTgXv for ; Sat, 16 Oct 2021 17:04:37 +0700 (+07) Received: from banyan.cs.ait.ac.th (banyan.cs.ait.ac.th [192.41.170.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.cs.ait.ac.th (Postfix) with ESMTPS id 608AE112501 for ; Sat, 16 Oct 2021 17:04:37 +0700 (+07) Received: (from on@localhost) by banyan.cs.ait.ac.th (8.15.2/8.15.2/Submit) id 19GA4PZE061604; Sat, 16 Oct 2021 17:04:25 +0700 (ICT) (envelope-from on@banyan.cs.ait.ac.th) From: Olivier To: freebsd-arm@freebsd.org Subject: Re: Patching a kernel on RPi In-Reply-To: <842857e232438ab4734e2e6100473451f99ef967.camel@freebsd.org> (message from Ian Lepore on Fri, 15 Oct 2021 08:53:35 -0600) Date: Sat, 16 Oct 2021 17:04:25 +0700 Message-ID: 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 Content-Type: text/plain X-Rspamd-Queue-Id: 4HWdzP3L4bz3Q9f X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=cs.ait.ac.th header.s=selector1 header.b=fbZLCapX; dmarc=pass (policy=none) header.from=cs.ait.ac.th; spf=pass (mx1.freebsd.org: domain of Olivier.Nicole@cs.ait.ac.th designates 192.41.170.16 as permitted sender) smtp.mailfrom=Olivier.Nicole@cs.ait.ac.th X-Spamd-Result: default: False [-2.70 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[cs.ait.ac.th:s=selector1]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; TO_DN_NONE(0.00)[]; RCVD_DKIM_ARC_DNSWL_MED(-0.50)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000]; RCVD_COUNT_THREE(0.00)[4]; MID_RHS_MATCH_FROMTLD(0.00)[]; NEURAL_SPAM_SHORT(1.00)[1.000]; RCVD_IN_DNSWL_MED(-0.20)[192.41.170.16:from]; DKIM_TRACE(0.00)[cs.ait.ac.th:+]; DMARC_POLICY_ALLOW(-0.50)[cs.ait.ac.th,none]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:4767, ipnet:192.41.170.0/24, country:TH] X-ThisMailContainsUnwantedMimeParts: N Ian Lepore writes: > On Fri, 2021-10-15 at 11:41 +0700, Olivier wrote: >> Hi, >> >> I am trying to work on a Raspberry Pi with FreeBSD for the first >> time. >> >> One thing I need it enabling interrupts on GPIO. I have found the >> patch >> to applied, but I am not fully sure how to recompile the kernel and >> install the new kernel on RPi. >> >> I understand that the disk/boot organisation is not really the same >> as >> with another arcitecture and would prefer to not do something that >> would >> make the system unbootable. >> >> TIA, >> >> Olivier > > There is no need to patch and recompile the kernel to use gpio > interrupts on RPi. The native RPi gpio driver supports interrupts. Is that for FreeBSD 12.2 or 13? From all information I could find, it said that kernel 12.2 needs patch. Thank you, Olivier