From nobody Fri Oct 15 04:52:52 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 E8B8E1812AD1 for ; Fri, 15 Oct 2021 04:52:57 +0000 (UTC) (envelope-from mafsys1234@gmail.com) Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) (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-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HVv611DXVz4d9v for ; Fri, 15 Oct 2021 04:52:57 +0000 (UTC) (envelope-from mafsys1234@gmail.com) Received: by mail-pl1-x629.google.com with SMTP id t11so5639838plq.11 for ; Thu, 14 Oct 2021 21:52:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=0QfpHBrJg6kGEWQcJP6Rn76rwgwJFtXmSxnjUxSMcyI=; b=pYVpRnpTejkh0+/DYqNqd0eCrnzdOLuvU9TyWL16Ec40VNEnQfMskM9mXW3J1jc3DA 7adrvRZUhbMbaobor8e0/Gj+5kG7YXr16WHJKgl7IyzXky04cL2YkxXRX4KUq+gatDHp AYsh7KfQn+9Shc31N9LekjXe2/+bk5NxA2rZvXLK95TGVmo0ygNDJ8SNcSsp6L4nrNsV y/tkYPgW9EkJTk2ouoTj1uCFB62asgZkJXUEu1Cp2GpS0VMYx3+Hw5fF+LEh6IWuFUd0 SFenRTanxgf2yiiTQWWG78kiFMytwDC43z/BxUV8N0ZYgYbZDVzkZiiZY1zV4eMu1kxq t4jQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=0QfpHBrJg6kGEWQcJP6Rn76rwgwJFtXmSxnjUxSMcyI=; b=pS6NNFHVqMt4Q1lDrs0sB8eRIa0He08XWOmr3841I0KnEI9mjDmhu2y3IalaS6jf4c f4CX1jdb6bVup+Kz039MgsE729GBoYA7SKBuLMAMRQB/bmchvjlWLf1Hv+DtP0RvMBaw 1b79nkI5xs5h++tj+sZjbVnRzybjjSyWpcck2wGo6Rcbkn6ht3GPtvxW0omxNHwJxh++ 7nmf7mTdTD4f7q1TPYyVpjQVPnH5mGY2KsaqNipfZkZwFxc+3CejBaRPnzEOemwGdzPN dnk5FEUKy9GHYWitys7fM9sT+GrsHUWk4YTMdq4tZNjnhi13EHFFIQY0XrgttueG5F9C McMA== X-Gm-Message-State: AOAM531CjbunZdhp39xkoQy8DSb1aGtx6QksIY4xkMqvf94EtgsWoutS hMBG3253gbGiEXLeC94yWiiVZEBWbX1tiQ== X-Google-Smtp-Source: ABdhPJwj879jvCffL/CgxflACLzhwe7vpu92xAUObJZAriFKJbkuXsqDehPaD87uy3b0wH/W/FCfUA== X-Received: by 2002:a17:902:7e4b:b0:13d:c03f:5946 with SMTP id a11-20020a1709027e4b00b0013dc03f5946mr8997779pln.4.1634273576041; Thu, 14 Oct 2021 21:52:56 -0700 (PDT) Received: from [192.168.1.10] ([115.69.53.183]) by smtp.gmail.com with ESMTPSA id z4sm3808795pfb.107.2021.10.14.21.52.54 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 Oct 2021 21:52:55 -0700 (PDT) Subject: Re: Patching a kernel on RPi To: freebsd-arm@freebsd.org References: From: MJ Message-ID: Date: Fri, 15 Oct 2021 15:52:52 +1100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.1 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 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-AU Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4HVv611DXVz4d9v X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=pYVpRnpT; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of mafsys1234@gmail.com designates 2607:f8b0:4864:20::629 as permitted sender) smtp.mailfrom=mafsys1234@gmail.com X-Spamd-Result: default: False [-2.78 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; NEURAL_HAM_MEDIUM(-0.87)[-0.873]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-0.98)[-0.984]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::629:from]; NEURAL_SPAM_SHORT(0.08)[0.080]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_TLS_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim] X-ThisMailContainsUnwantedMimeParts: N On 15/10/2021 3:41 pm, 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 > Hi Olivier, The same way you compile a kernel on an AMD64 is how you do it on an ARM64. IFF that is all you want to do is have a new kernel. In which case, there's no need to modify booting etc. This information can be readily found in the handbook. If, however, you want to make an image that you can burn onto an uSD card, then crochet is a good place to start: https://github.com/freebsd/crochet. This approach will be faster than building a kernel on an RPI (assuming you have an AMD64 machine running FreeBSD, that is). Cheers Matt.