From owner-freebsd-arm@freebsd.org Sun Jul 28 14:33:23 2019 Return-Path: Delivered-To: freebsd-arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 71E5AAC8EE for ; Sun, 28 Jul 2019 14:33:23 +0000 (UTC) (envelope-from dpolyg@gmail.com) Received: from mail-pl1-x644.google.com (mail-pl1-x644.google.com [IPv6:2607:f8b0:4864:20::644]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) 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 88D4B97372 for ; Sun, 28 Jul 2019 14:33:21 +0000 (UTC) (envelope-from dpolyg@gmail.com) Received: by mail-pl1-x644.google.com with SMTP id c14so26434953plo.0 for ; Sun, 28 Jul 2019 07:33:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=jWbz4lFQ7VM1TDVFqnTWxCZKv1+RQvvxQcj0qzuQRu8=; b=RszgZ3Nyd+NLjNefBCRTLKNuWx+n/7Xgf24WTGzzENOoGVkR7uac6+CmKFf95X9pc7 ias0AO4axzxYGp59xovtd0hHczrSmqZITV5cGqwZ7G/KKxINRAxOdDHZrteKTwAJejSH xh0m3wA0WpIYwhevkNnNbSzTuOuXl0Y5KpZ/V+/DDdgQh5YpI4avylvAoAr6Pi8/xYpN 4L/9QB3GNYhlBz/g0l7YoORCzVwP2gDIz5tgalhR9IHIIi7X98OJ4hoj5CYwTX8dE7je jErSre3LE0iWqlK+LjCGH1w0zo2zIBS9T3tH5+C7QOadAgk1iYP9+BjVqzdenjaHauBC Hx7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; 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=jWbz4lFQ7VM1TDVFqnTWxCZKv1+RQvvxQcj0qzuQRu8=; b=ms/dVyi/BWQO00s6cQUrzaFJG422EjYzcSBiJWbkvlI1HzPxLyziUSzWZBxAX/EZOW qd6y74f8xSgJ9621wr1VZOXHDXXZYSPx3OHAfJrmhbMgAZVfLxj9XcevUGDjqPA5BWPo YmpWjfNxP1ruXJYmXoiV8JHvKb+cNYGIZgxa/fzZjiQtHxsTZjCZbwisRoJXONwIzB58 gxXEMiC8jOECqJkyXDZWOD3DfTAOlWAVAgilnjk1LleMKVmsIePl4E/ucSQKWxNH+L95 cC2PTy0AS6BTSpymlz4BaBtHjrT+Q5Wzgzuqmh+ROYNpmaUr8J7gFETmMv7LjAND5IcY FVxw== X-Gm-Message-State: APjAAAV/bnYwGy12vDDj9k61OuZ/G9LPIOtdZc5DiMDiFxHKfyTd3f8I b69M0EL1OEpmlOVBv3yIKyb81X33 X-Google-Smtp-Source: APXvYqzK6Tw/qRXhn7M1lRm4fbhy3GbqjaF/32a9xnaVgkNg1931K9sF3hrsqWtVl/BJaHBQbnb4Pw== X-Received: by 2002:a17:902:aa8a:: with SMTP id d10mr107776176plr.154.1564324400475; Sun, 28 Jul 2019 07:33:20 -0700 (PDT) Received: from [192.168.1.100] (ngn8-ppp1551.tokyo.sannet.ne.jp. [157.192.118.27]) by smtp.googlemail.com with ESMTPSA id c7sm1345056pgq.31.2019.07.28.07.33.18 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 28 Jul 2019 07:33:19 -0700 (PDT) Subject: Re: Booting FreeBSD on Rock64 To: freebsd-arm@freebsd.org References: <169de7cf-32f2-7b7b-c12e-a86a4b6a9e87@gmail.com> <20190715200127.4b649877d8baefeb5282df64@bidouilliste.com> <878b15d5-92a5-5137-121c-5a5038323857@gmail.com> <20190718145840.c4487d2174930374300a0d7d@bidouilliste.com> From: Denis Polygalov Message-ID: <300bcdce-1471-e9a6-e332-84d3f822a65c@gmail.com> Date: Sun, 28 Jul 2019 23:33:16 +0900 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190718145840.c4487d2174930374300a0d7d@bidouilliste.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 88D4B97372 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=RszgZ3Ny; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of dpolyg@gmail.com designates 2607:f8b0:4864:20::644 as permitted sender) smtp.mailfrom=dpolyg@gmail.com X-Spamd-Result: default: False [-4.90 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; TO_DN_NONE(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-0.71)[-0.708,0]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.99)[-0.989,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; IP_SCORE(-1.20)[ip: (-0.39), ipnet: 2607:f8b0::/32(-3.09), asn: 15169(-2.44), country: US(-0.05)]; RCVD_IN_DNSWL_NONE(0.00)[4.4.6.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Jul 2019 14:33:23 -0000 Can somebody please explain what is exact command to switch FreeBSD's serial console speed to the 1.5Mbps as required by ROCK64 board? I have u-boot interrupted from auto-loading and trying to boot FreeBSD via network manually by typing this: => dhcp tftpboot ${kernel_addr_r} boot/loader.efi tftpboot ${fdt_addr_r} boot/dtb/rockchip/rk3328-rock64.dtb bootefi ${kernel_addr_r} ${fdt_addr_r} After that I can see the FreeBSD loader's menu, but then kernel hangs during loading. Is the fact that I can see FreeBSD loader's menu is enough to ensure that kernel will also inherit and continue use the correct baud-rate? How can I be sure that FreeBSD kernel when loaded will continue to use 1.5Mbps speed or this is not supported and I have to switch u-boot to something standard (115200) somehow? If so - how? thanks in advance, Denis. On 18/07/2019 9:58 pm, Emmanuel Vadot wrote: > On Thu, 18 Jul 2019 21:51:43 +0900 > Denis Polygalov wrote: > >>> On 16/07/2019 3:01 am, Emmanuel Vadot wrote: >>> How did you setup the boot ? >> >> download u-boot-flash-spi-rock64.img.xz from here: >> https://github.com/ayufan-rock64/linux-u-boot/releases >> and flash it. Remove the microSD card. >> Setup tftp server and nfs servers. >> Reset the board, interrupt u-boot and switch to manual mode. >> Then type in terminal: >> dhcp >> tftpboot ${kernel_addr_r} boot/loader.efi >> tftpboot ${fdt_addr_r} boot/dtb/rockchip/rk3399-rockpro64.dtb > > You need to 'fdt addr ${fdt_addr_r}' here iirc > >> bootefi ${kernel_addr_r} ${fdt_addr_r} >> >> >>> Do you have tftpd running so u-boot can download the loader and the >>> dtb ? >> >> yes, I do and I can see in the tftp server logs that both >> boot/loader.efi >> and boot/dtb/rockchip/rk3399-rockpro64.dtb >> are downloaded successfully. >> >>> If you don't have the dtb in $TFTPDIR/dtb/rockchip/ that might be the >>> problem, I recall the dtb included in u-boot being incomplete. >> >> I'm using dtb that is included into the >> FreeBSD-13.0-CURRENT-arm64-aarch64-20190711-r349909-memstick.img >> >> >>> I've just booted mine after updating to r350003+c99cb2e79ed6 >>> without a problem. >>> >> >> Well, I don't see image of this release on the FreeBSD.org server. >> I guess you mean you compile it from source by yourself? >> >>> On 16/07/2019 4:49 am, Peter Jeremy wrote: >>>> I'm running a Rock64 with >>>> U-Boot SPL 2017.09-rockchip-ayufan-1035-gd646df03ac (Oct 26 2018 - 08:35:43) >>>> and booting FreeBSD diskless. >> >> I tried this old 1035 u-boot. No luck, same problem. >> >> Regards, >> Denis. > >