From nobody Thu Sep 08 15:42:43 2022 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 4MNk0c4sJkz4cM0k for ; Thu, 8 Sep 2022 15:42:56 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-ua1-x929.google.com (mail-ua1-x929.google.com [IPv6:2607:f8b0:4864:20::929]) (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 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MNk0c0GSnz3RW1 for ; Thu, 8 Sep 2022 15:42:56 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-ua1-x929.google.com with SMTP id r17so6860611uat.8 for ; Thu, 08 Sep 2022 08:42:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20210112.gappssmtp.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=4mTCoJOB1b/9q9rQteubnCWVT8jLsQzrfVTUgbX8PDU=; b=EEqp8RC+pDQvRykz84Kf+xedojc0IK3Zg6rUsRCE7WTdT95udZzBvts8fXYxlSUvr5 REFsL8JCdIl6hUfrRcISay0pXfEzwqJ1QjrQD+VhmFCWlrH90a6uZseXcmFr0esG3ijU t5sBZidBll8ILooH8QBqJI/XQElmaFmOyHNH8usZ/VT/fNOsg9NWkFWerr3Sev87phhZ GKi3aSQPkiPQMkHVcy+Lo1XPiEkU+12ihpi9wHmtnipaz7ReH23BFXbyLtNKKIyYa0wF niYrjcnlO56Daw+NHjUW2nF6xTuTIxr9A4XQr4axWS31PFsczJXr+GFl7azoz5sSR2+i 9+iQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=4mTCoJOB1b/9q9rQteubnCWVT8jLsQzrfVTUgbX8PDU=; b=zAnyqUGdOl3JQHiNgYI8gmGgl9SPNWx6rz0sgjId5SR+q0a97zti2cLWb37BCnZcy4 VeOvvEJcHSWetJY+rmN+5TnWr6c6Enq3YRpubSVwWERHXaZ00rIgUPdNsjFmQJfSWoKK KbrUDDjOGz+8xKNC3a6ghlU7Buy5xNTFSymJjiQQCgb0eZosiQX5KOHTcfJZnuZiO/9l T3bkeQ4iCIssGkl7cY4qyG6xLG2QoQxPo/aZ+5+LhVeqwbfdEJZQfhXXNzu0YOwsxlqD C05mKons+GDoqSU0D5BHSEhGcbm3E5qqeiZMJKKf6MxUoD/cui222IPyH2Rnr2NMA9Lf vqCA== X-Gm-Message-State: ACgBeo0aLYJJdgGiVLjeRk7kLs6HOv/xdqen9yZBLidjmi3o1YYnJBZx 8CkSqxo0t4/G3lxA4S2t58nU8/FgjnVVFbN8UVTtNEGNWulgAw== X-Google-Smtp-Source: AA6agR50i1KPTQRnWcsnKos8mbdqJFqnGbA8MA0oO1qqXk5VXw5FBRMoKBHJTSNIqLNF90GkcCv8Vo6STajbNKaCcHo= X-Received: by 2002:a9f:2067:0:b0:387:984d:4a8e with SMTP id 94-20020a9f2067000000b00387984d4a8emr3423911uam.60.1662651774457; Thu, 08 Sep 2022 08:42:54 -0700 (PDT) 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 References: <0641c027-aceb-4389-4e8b-e82ebfacef20@vslash.com> In-Reply-To: From: Warner Losh Date: Thu, 8 Sep 2022 09:42:43 -0600 Message-ID: Subject: Re: Is there a port manual for port freebsd to arm/imx6 board? To: Scott Zhang Cc: Valery Seys , "freebsd-arm@freebsd.org" Content-Type: multipart/alternative; boundary="00000000000066eed505e82c4807" X-Rspamd-Queue-Id: 4MNk0c0GSnz3RW1 X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bsdimp-com.20210112.gappssmtp.com header.s=20210112 header.b=EEqp8RC+; dmarc=none; spf=none (mx1.freebsd.org: domain of wlosh@bsdimp.com has no SPF policy when checking 2607:f8b0:4864:20::929) smtp.mailfrom=wlosh@bsdimp.com X-Spamd-Result: default: False [-2.00 / 15.00]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-0.997]; FORGED_SENDER(0.30)[imp@bsdimp.com,wlosh@bsdimp.com]; R_DKIM_ALLOW(-0.20)[bsdimp-com.20210112.gappssmtp.com:s=20210112]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; MLMMJ_DEST(0.00)[freebsd-arm@freebsd.org]; FREEMAIL_TO(0.00)[gmail.com]; TO_DN_EQ_ADDR_SOME(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; R_SPF_NA(0.00)[no SPF record]; FROM_NEQ_ENVFROM(0.00)[imp@bsdimp.com,wlosh@bsdimp.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::929:from]; DKIM_TRACE(0.00)[bsdimp-com.20210112.gappssmtp.com:+]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; ARC_NA(0.00)[]; RCVD_TLS_LAST(0.00)[]; TO_DN_SOME(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; FROM_HAS_DN(0.00)[]; DMARC_NA(0.00)[bsdimp.com]; RCVD_COUNT_TWO(0.00)[2] X-ThisMailContainsUnwantedMimeParts: N --00000000000066eed505e82c4807 Content-Type: text/plain; charset="UTF-8" In the past, you needed an IMX6 kernel. these days, all of that is in GENERIC. The board bring up often times is making sure that you have a good u-boot and the FDT that it provides matches what FreeBSD expects. Warner On Thu, Sep 8, 2022 at 8:12 AM Scott Zhang wrote: > Thanks, I'll check it out. > > Sorry I am still a stranger for freebsd build system. > > On Thu, Sep 8, 2022 at 3:17 PM Valery Seys wrote: > > > > the wiki https://wiki.freebsd.org/arm tells us: > > > > - Supported SBC: NXP i.MX6 > > > > and provides a link to the "Embedded Handbook": > > https://wiki.freebsd.org/EmbeddedHandbook > > > > where you will find out how to compile the base system. > > > > UBoot port has some slave ports, like the one to boot on imx6: > > https://wiki.freebsd.org/arm/U-Boot-ports > > > > see sysutils/u-boot-master > > > > BR > > > > v/ > > > > > > > > On 08/09/2022 07:37, Scott Zhang wrote: > > > On Thu, Sep 8, 2022 at 10:31 AM Scott Zhang > wrote: > > >> > > >> Dear Everyone: > > >> I am personally very familiar with linux since 2003. And in last > 8 > > >> years I have good experience for porting linux to arm/imx23 arm/imx6 > > >> port for linux kernel 2.6,3.0,4.0,5.4, so familiar with nxp/freescale > > >> imx series chips and linux kernel/driver tweak. > > >> I know freebsd history well but not very familiar with its use, > > >> especially desktop, command looks same as linux so not big problem. > > >> I want to port freebsd to the arm-board we build on imx chips,to > > >> try freebsd more. I thought the idea should be same as linux, make > > >> cross-compiler then build kernel. But first thing I dont' see where to > > >> configure the compiler. Comparing to the crowded stuff relating to > > >> linux, the freebsd document is quite rare. The documents on website > > >> are mostly entry level. > > >> So is there a port manual? > > >> > > >> > > >> Thanks > > > > > --00000000000066eed505e82c4807 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
In the past, you=C2=A0needed an IMX6 kernel. these da= ys, all of that is in GENERIC. The board
bring up often times is = making sure that you have a good u-boot and the FDT that it provides
<= div>matches what FreeBSD expects.

Warner

On Thu, Sep 8, 2022 at 8:12 AM Scott Zhang <macromarship@gmail.com> wrote:
<= blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-l= eft:1px solid rgb(204,204,204);padding-left:1ex">Thanks, I'll check it = out.

Sorry I am still a stranger for freebsd build system.

On Thu, Sep 8, 2022 at 3:17 PM Valery Seys <valery@vslash.com> wrote:
>
> the wiki https://wiki.freebsd.org/arm tells us:
>
> - Supported SBC: NXP i.MX6
>
> and provides a link to the "Embedded Handbook":
> https://wiki.freebsd.org/EmbeddedHandbook
>
> where you will find out how to compile the base system.
>
> UBoot port has some slave ports, like the one to boot on imx6:
> https://wiki.freebsd.org/arm/U-Boot-ports
>
> see sysutils/u-boot-master
>
> BR
>
> v/
>
>
>
> On 08/09/2022 07:37, Scott Zhang wrote:
> > On Thu, Sep 8, 2022 at 10:31 AM Scott Zhang <macromarship@gmail.com> w= rote:
> >>
> >> Dear Everyone:
> >>=C2=A0 =C2=A0 =C2=A0 I am personally very familiar with linux = since 2003. And in last 8
> >> years I have good experience for porting linux to arm/imx23 a= rm/imx6
> >> port for linux kernel 2.6,3.0,4.0,5.4, so familiar with nxp/f= reescale
> >> imx series chips and linux kernel/driver tweak.
> >>=C2=A0 =C2=A0 =C2=A0 I know freebsd history well but not very = familiar with its use,
> >> especially desktop, command looks same as linux so not big pr= oblem.
> >>=C2=A0 =C2=A0 =C2=A0 I want to port freebsd to the arm-board w= e build on imx chips,to
> >> try freebsd more. I thought the idea should be same as linux,= make
> >> cross-compiler then build kernel. But first thing I dont'= see where to
> >> configure the compiler. Comparing to the crowded stuff relati= ng to
> >> linux, the freebsd document is quite rare. The documents on w= ebsite
> >> are mostly entry level.
> >>=C2=A0 =C2=A0 =C2=A0 So is there a port manual?
> >>
> >>
> >> Thanks
> >

--00000000000066eed505e82c4807--