From owner-freebsd-arm@freebsd.org Wed Nov 13 22:09:37 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 BF0081BD5B3 for ; Wed, 13 Nov 2019 22:09:37 +0000 (UTC) (envelope-from ticso@cicely7.cicely.de) Received: from raven.bwct.de (raven.bwct.de [195.149.99.3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "raven.bwct.de", Issuer "raven.bwct.de" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 47CzL85tnYz4MBW for ; Wed, 13 Nov 2019 22:09:36 +0000 (UTC) (envelope-from ticso@cicely7.cicely.de) Received: from mail.cicely.de ([10.1.1.37]) by raven.bwct.de (8.15.2/8.15.2) with ESMTPS id xADMANmE051110 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Wed, 13 Nov 2019 23:10:24 +0100 (CET) (envelope-from ticso@cicely7.cicely.de) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cicely.de; s=default; t=1573683024; bh=9mZfe0dfKOgQHz23oPFT+quWS0+lLDeXKi8WjYgUfsE=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To; b=IwJ+eKshm4T07JdsYjSxy8oa8+txiVwqbQpbg/+xJfWBezwFD67NHdcz/MKm5p1QT 2029OgNGuXY5ZQS9U47zcewddQ9ujYFMHrAXsbXwg06v1bNtiX98xE5rFDxEHvbY8y 7GDWgIa1IHJOlA0wkmN3R6M0VsEEUdC4OrSicpdo= Received: from cicely7.cicely.de (cicely7.cicely.de [10.1.1.9]) by mail.cicely.de (8.14.5/8.14.4) with ESMTP id xADM9Sjh017233 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 13 Nov 2019 23:09:28 +0100 (CET) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (localhost [127.0.0.1]) by cicely7.cicely.de (8.15.2/8.15.2) with ESMTP id xADM9Sjn071103; Wed, 13 Nov 2019 23:09:28 +0100 (CET) (envelope-from ticso@cicely7.cicely.de) Received: (from ticso@localhost) by cicely7.cicely.de (8.15.2/8.15.2/Submit) id xADM9SHQ071102; Wed, 13 Nov 2019 23:09:28 +0100 (CET) (envelope-from ticso) Date: Wed, 13 Nov 2019 23:09:28 +0100 From: Bernd Walter To: John-Mark Gurney Cc: freebsd-arm@freebsd.org, ticso@cicely.de Subject: Re: Choose between Raspberry Pi 4B 4GB and ROCKPro64 Message-ID: <20191113220928.GZ43404@cicely7.cicely.de> Reply-To: ticso@cicely.de References: <7b75e2ed23e334878fbb3c1d585ffc51.squirrel@10.1.1.11> <20191015220433.GS96402@funkthat.com> <20191112124539.GM43404@cicely7.cicely.de> <1573571378957-0.post@n6.nabble.com> <20191112221610.GN43404@cicely7.cicely.de> <20191112225251.GB4552@funkthat.com> <20191113075343.GP43404@cicely7.cicely.de> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20191113075343.GP43404@cicely7.cicely.de> X-Operating-System: FreeBSD cicely7.cicely.de 12.0-STABLE amd64 User-Agent: Mutt/1.5.11 X-Spam-Status: No, score=-2.9 required=4.0 tests=ALL_TRUSTED=-1, BAYES_00=-1.9 autolearn=ham version=3.3.0 X-Spam-Checker-Version: SpamAssassin 3.3.0 (2010-01-18) on spamd.cicely.de X-Rspamd-Queue-Id: 47CzL85tnYz4MBW X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=cicely.de header.s=default header.b=IwJ+eKsh; dmarc=none; spf=none (mx1.freebsd.org: domain of ticso@cicely7.cicely.de has no SPF policy when checking 195.149.99.3) smtp.mailfrom=ticso@cicely7.cicely.de X-Spamd-Result: default: False [-1.80 / 15.00]; ARC_NA(0.00)[]; HAS_REPLYTO(0.00)[ticso@cicely.de]; R_DKIM_ALLOW(-0.20)[cicely.de:s=default]; NEURAL_HAM_MEDIUM(-1.00)[-0.997,0]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[cicely.de]; REPLYTO_DOM_NEQ_FROM_DOM(0.00)[]; NEURAL_HAM_LONG(-1.00)[-0.999,0]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[cicely.de:+]; RCVD_IN_DNSWL_NONE(0.00)[3.99.149.195.list.dnswl.org : 127.0.20.0]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:21461, ipnet:195.149.99.0/24, country:DE]; MID_RHS_MATCH_FROM(0.00)[]; IP_SCORE(-0.00)[country: DE(-0.01)] 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: Wed, 13 Nov 2019 22:09:37 -0000 On Wed, Nov 13, 2019 at 08:53:43AM +0100, Bernd Walter wrote: > On Tue, Nov 12, 2019 at 02:52:51PM -0800, John-Mark Gurney wrote: > > Bernd Walter wrote this message on Tue, Nov 12, 2019 at 23:16 +0100: > > > On Tue, Nov 12, 2019 at 08:09:38AM -0700, Klaus Küchemann via freebsd-arm wrote: > > > > <> > > > > > > > > onto the uSD : > > > > https://www.freshports.org/sysutils/u-boot-rockpro64/ > > > > Regards > > > > Klaus > > > > > > Thank you. > > > > > > Do you know the bps rate used by u-boot and later components? > > > I do see some output at the usual 115200 bps, but it is messed up. > > > Also tried other typical bps rates, including 1.5Mbps as mentioned > > > on the RockPro Wiki, but none worked. > > > I wouldn't rule out that it is the USB uart failing at 1.5M though, > > > but I've tried a PL2303, CP2102 (which refused 1.5Mbps) and > > > a CH340. > > > Unfortunately I don't have an FTDI based TTL one at hands. > > > It also fails with reading the uartt output when booting an Armbian > > > image, which as such is booting fine according to the HDMI output. > > > > It's 1.5Mbps, aka 1500000. I'm using the CH340G that they sell: > > https://store.pine64.org/?product=padi-serial-console > > > > And it works, but it will occasionally drop characters. > > Sigh - IMO 1.5M is an insane idea for that and so needless. > > > None of my other serial adapters could do the speed necessary. > > I just retried with the CH340 - again no success, but noticed that the > chip on my adapter is unlabeled. > So probably it isn't a genuine. > I should have some others, but not at home, and I also have some > loose CH340G chips. Grr - I was off by one pin. Ground on TX and signal on RX. On the analyzer it was obvious that it's is not propper uart signaling. With the wrong wiring it was inverted. Now I get FreeBSD output: U-Boot TPL 2019.10 (Oct 25 2019 - 06:55:42) Trying to boot from BOOTROM Returning to boot ROM... U-Boot SPL 2019.10 (Oct 25 2019 - 06:55:42 +0000) Trying to boot from MMC1 ^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@ ^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@ U-Boot 2019.10 (Oct 25 2019 - 06:55:42 +0000) Model: Pine64 RockPro64 DRAM: 2 GiB MMC: dwmmc@fe320000: 1, sdhci@fe330000: 0 Loading Environment from MMC... Card did not respond to voltage select! *** Warning - No block device, using default environment In: serial@ff1a0000 Out: serial@ff1a0000 Err: serial@ff1a0000 Model: Pine64 RockPro64 rockchip_dnl_key_pressed: adc_channel_single_shot fail! Net: eth0: ethernet@fe300000 Hit any key to stop autoboot: 0 Card did not respond to voltage select! switch to partitions #0, OK mmc1 is current device Scanning mmc 1:1... 73463 bytes read in 9 ms (7.8 MiB/s) Found EFI removable media binary efi/boot/bootaa64.efi ESC7ESC[rESC[999;999HESC[6nESC8Scanning disk dwmmc@fe320000.blk... Card did not respond to voltage select! Scanning disk sdhci@fe330000.blk... Disk sdhci@fe330000.blk not ready Found 3 disks BootOrder not defined EFI boot manager: Cannot load any image 676216 bytes read in 34 ms (19 MiB/s) ESC[?25hESC[1;1HESC[0;37;40mCESC[0;37;40mESC[1;2HE ... I hate when console output includes that crap... Seriously, the typescript file is 792405 Bytes long. WTF is wrong with plain line output while booting? Somewhere hidden in between is the whole loader output. I can cat the file and see something of that, but the screen gets redrawn in between. ... ;37;40m ^[[0;37;40m^[[25;72H^[[0;37;40m ^[[0;37;40m^[[25;73H^[[0;37;40m ^[[0;37;40m^[[25;74H^[[0;37;40m ^[[0;37;40m^[[25;75H^[[0;37;40m ^[[0;37;40m^[[25;76H^[[0;37;40m ^[[0;37;40m^[[25;77H^[[0;37;40m ^[[0;37;40m^[[25;78H^[[0;37;40m ^[[0;37;40m^[[25;79H^[[0;37;40m ^[[0;37;40m^[[25;80H^ [[?25h^[[25;1H---<>---^M KDB: debugger backends: ddb^M KDB: current backend: ddb^M Copyright (c) 1992-2019 The FreeBSD Project.^M Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994^M The Regents of the University of California. All rights reserved.^M FreeBSD is a registered trademark of The FreeBSD Foundation.^M FreeBSD 13.0-CURRENT #0 r354423: Thu Nov 7 12:03:03 UTC 2019^M root@releng1.nyi.freebsd.org:/usr/obj/usr/src/arm64.aarch64/sys/GENERIC arm64^M FreeBSD clang version 9.0.0 (tags/RELEASE_900/final 372316) (based on LLVM 9.0.0)^M WARNING: WITNESS option enabled, expect reduced performance.^M VT: init without driver.^M module firmware already present!^M KLD file umodem.ko is missing dependencies^M Starting CPU 1 (1)^M Starting CPU 2 (2)^M Starting CPU 3 (3)^M Starting CPU 4 (100)^M Starting CPU 5 (101)^M FreeBSD/SMP: Multiprocessor System Detected: 6 CPUs^M arc4random: WARNING: initial seeding bypassed the cryptographic random device because it was not yet seeded and the knob 'bypass_before_seeding' was enabled.^M random: entropy device external interface^M MAP 7cf1a000 mode 2 pages 1^M MAP 7cf25000 mode 2 pages 1^M MAP 7ff40000 mode 2 pages 16^M kbd0 at kbdmux0^M ofwbus0: ^M clk_fixed0: on ofwbus0^M simplebus0: on ofwbus0^M rk_grf0: mem 0xff320000-0xff320fff on ofwbus0^M rk3399_pmucru0: mem 0xff750000-0xff750fff on ofwbus0^M rk3399_cru0: mem 0xff760000-0xff760fff on ofwbus0^M And it hangs at this point. Ok - I created the image in an oportunistic way and downloaded: FreeBSD-13.0-CURRENT-arm64-aarch64-PINE64-LTS-20191107-r354423.img Then wrote the rockpro64 u-boot onto the card. This is what I have on my screen after a cat: Loading /boot/device.hints n ( e Loading /boot/loader.conf ; 0 7;40m1 Loading /boot/loader.conf.local 0 Loading kbrnel... 4 /boot/kernel/kernel text=0x96c524 data=0x1898b0 data=0x +0x79a5e0 syms=[0x8+0x14 16a8+0x8+0x12c6e9] 5 Loading conf4gured modules... /boot/kernel/umodem.kd text=0x2100 text=0x13a0 data=0x6e0+0x1 syms=[0x8+0xf48+0 x8+0xb6e] k 1 can't find '/boot/e[tropy'0mn t 0 b e s Hit [Enter] to boot immediately, or any other key or command prompt. Booting [/boot/kern l/kernel]... Using DTB provided by EFI at 0x.0eb000. Loading DTB tverlays: 'sun50i-a64-sid,sun50i-a64-ths,sun50i-a64-tim r,sun50i-a64 -opp' 0 4 78Hx /boot/dtb/overlays sun50i-a64-sid.dtbo size=0x1fd /boot/dtb/overlays/sun50i-a643ths.dtbo size=0x3e80;37;40mi /boot/dtb/ov7rlays/sun50i-a64-thmer.dtbo size=0x175 ; /boot/dtb/overla[s/sun50i-a64-opp.dtbo size=0m74f s DTB overlay '/boot/dtb/overlayspsun50i-a64-sid.dtbo' not compatible DTB o/erlay '/boot/dtb/overlays/sun50i-a64-thmsdtbo' not compatible DTB overlay '/boot/dtb/overlays/sun50i-a64-timer.dtbo' not compatible DTB overlay '/boot/dtb/overlays/sun50i-a64-opp.dtbo' 'ot compatible ---<>--- 0 ; 40m KDB: debugger backends: ddb KDB: current backend: ddb Copyright (c) 1992-2019 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 13.0-CURRENT #0 r354423: Thu Nov 7 12:03:03 UTC 2019 root@releng1.nyi.freebsd.org:/usr/obj/usr/src/arm64.aarch64/sys/GENERIC arm64 FreeBSD clang version 9.0.0 (tags/RELEASE_900/final 372316) (based on LLVM 9.0.0) WARNING: WITNESS option enabled, expect reduced performance. VT: init without driver. module firmware already present! KLD file umodem.ko is missing dependencies Starting CPU 1 (1) Starting CPU 2 (2) Starting CPU 3 (3) Starting CPU 4 (100) Starting CPU 5 (101) FreeBSD/SMP: Multiprocessor System Detected: 6 CPUs arc4random: WARNING: initial seeding bypassed the cryptographic random device because it was not yet seeded and the knob 'bypass_before_seeding' was enabled. random: entropy device external interface MAP 7cf1a000 mode 2 pages 1 MAP 7cf25000 mode 2 pages 1 MAP 7ff40000 mode 2 pages 16 kbd0 at kbdmux0 ofwbus0: clk_fixed0: on ofwbus0 simplebus0: on ofwbus0 rk_grf0: mem 0xff320000-0xff320fff on ofwbus0 rk3399_pmucru0: mem 0xff750000-0xff750fff on ofwbus0 rk3399_cru0: mem 0xff760000-0xff760fff on ofwbus0 Looks like it didn't load the rk3399-rockpro64.dtb, which is on the filesystem and just tried A64 ones. The GENERIC kernel on the image seems to know the RK3399 at least. -- B.Walter http://www.bwct.de Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.