From nobody Tue Jun 27 09:08:56 2023 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 4QqzRK50lTz4kNhD for ; Tue, 27 Jun 2023 09:09:01 +0000 (UTC) (envelope-from titus@edc.ro) Received: from eatlas.ro (eatlas.ro [86.126.82.18]) (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-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "eatlas.ro", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QqzRK1pGlz412H for ; Tue, 27 Jun 2023 09:09:00 +0000 (UTC) (envelope-from titus@edc.ro) Authentication-Results: mx1.freebsd.org; none Received: from mail.edc.ro ([10.1.4.58]) by eatlas.ro (8.16.1/8.16.1) with ESMTPS id 35R98vOU070539 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Tue, 27 Jun 2023 12:08:57 +0300 (EEST) (envelope-from titus@edc.ro) Received: from tituss-imac.eatlas.local (eatlas.ro [86.126.82.18]) (authenticated bits=0) by mail.edc.ro (8.16.1/8.16.1) with ESMTPSA id 35R98u6c040220 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 27 Jun 2023 12:08:56 +0300 (EEST) (envelope-from titus@edc.ro) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=edc.ro; s=mail; t=1687856936; bh=Gq2DFpdVG1zzpjLxsHmnWM6Qg2bSdE+HQC/PeoeEAhs=; h=Subject:From:In-Reply-To:Date:Cc:References:To; b=T6Op9mzRO11Vkg7o6mgZw7wYFMCWKXKLa4FyBFsJ/jm+P1QGlXmJS4R11Eo0jkuFt o2UHn+qMAknaqv1ciooHB4MUIRJs8mRghYsmMICqUNu7puGtSNfxDtpbJ8jAcvuivd f/vTzsM09oDqxAPD7cBnV71DSb5k+HXS4L3dPSZs= Content-Type: text/plain; charset=us-ascii 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 (Mac OS X Mail 13.4 \(3608.120.23.2.7\)) Subject: Re: allwinner h616 + serial console glitch From: titus In-Reply-To: Date: Tue, 27 Jun 2023 12:08:56 +0300 Cc: freebsd-arm@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <1261C333-8E21-4C8B-A002-205043B66506@edc.ro> References: To: Marcin Cieslak X-Mailer: Apple Mail (2.3608.120.23.2.7) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ns.edc.ro X-Rspamd-Queue-Id: 4QqzRK1pGlz412H X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:8708, ipnet:86.120.0.0/13, country:RO] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N it may have to with this >=20 > /* UART_BGR_REG Enabling the gate enable weir behavior ... */ > /* CCU_GATE(CLK_BUS_UART0, "bus-uart0", "apb2", 0x90c, 0) */ > /* CCU_GATE(CLK_BUS_UART1, "bus-uart1", "apb2", 0x90c, 1) */ > /* CCU_GATE(CLK_BUS_UART2, "bus-uart2", "apb2", 0x90c, 2) */ > /* CCU_GATE(CLK_BUS_UART3, "bus-uart3", "apb2", 0x90c, 3) */ this is from the ccu_h6.c clock driver i had them enabled for the h616 code (now i commented it out and it = works) thanks for the clock idea > On Jun 27, 2023, at 10:53 AM, Marcin Cieslak wrote: >=20 > On Tue, 27 Jun 2023, titus wrote: >=20 >>> # stty -a >>> speed 115384 baud; 0 rows; 0 columns; >=20 > ^^^^^^^^^^^^ >=20 > looks like you have a clock problem, either the base UART clock or the = divisor > are not quite right. Probably you want to have 115200 here, so it is = slightly off. >=20 > (Just guessing, never had such an issue before) >=20 > Marcin