From owner-freebsd-arm@freebsd.org Wed Jul 17 16:03:56 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 24374AFEDE for ; Wed, 17 Jul 2019 16:03:56 +0000 (UTC) (envelope-from sparvu@kronometrix.org) Received: from mail.kronometrix.org (mail.kronometrix.org [95.85.46.90]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mail.kronometrix.org", Issuer "mail.kronometrix.org" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id A05518807F for ; Wed, 17 Jul 2019 16:03:55 +0000 (UTC) (envelope-from sparvu@kronometrix.org) Received: from [192.168.1.164] (82-203-145-201.bb.dnainternet.fi [82.203.145.201]) (authenticated bits=0) by mail.kronometrix.org (8.15.2/8.15.2) with ESMTPSA id x6HG3rwp023419 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Wed, 17 Jul 2019 16:03:53 GMT (envelope-from sparvu@kronometrix.org) X-Authentication-Warning: mail.kronometrix.org: Host 82-203-145-201.bb.dnainternet.fi [82.203.145.201] claimed to be [192.168.1.164] From: Stefan Parvu Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Re: Rasclock (PCF2127 ) Hardware Clock FreeBSD 12.0 Date: Wed, 17 Jul 2019 19:03:47 +0300 References: <41A4CA5C-B487-490F-8A19-2D51F43E1004@kronometrix.org> <95616620-bbaf-dbc3-49eb-3e2562638d49@bunyatech.com.au> <74E3E782-8481-4B5B-A0AF-A04590C27D6D@kronometrix.org> <790afcb5f0809a89b45982958a85f1539fec05c7.camel@freebsd.org> <36088812-2135-4433-BC49-0BC433EC6767@kronometrix.org> <86CC4711-47AC-45C6-B6D3-71C9FFDD4A91@kronometrix.org> <2ec7d7f63de31065b9cab396c662fe24f0107078.camel@freebsd.org> To: freebsd-arm@freebsd.org In-Reply-To: Message-Id: X-Mailer: Apple Mail (2.3445.104.11) X-Rspamd-Queue-Id: A05518807F X-Spamd-Bar: +++ Authentication-Results: mx1.freebsd.org; spf=pass (mx1.freebsd.org: domain of sparvu@kronometrix.org designates 95.85.46.90 as permitted sender) smtp.mailfrom=sparvu@kronometrix.org X-Spamd-Result: default: False [3.31 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; HAS_XAW(0.00)[]; NEURAL_SPAM_MEDIUM(0.96)[0.962,0]; RCPT_COUNT_ONE(0.00)[1]; TO_DN_NONE(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MX_GOOD(-0.01)[cached: mail.kronometrix.org]; NEURAL_SPAM_LONG(0.64)[0.641,0]; DMARC_NA(0.00)[kronometrix.org]; NEURAL_SPAM_SHORT(0.95)[0.945,0]; IP_SCORE(0.57)[ip: (0.47), ipnet: 95.85.0.0/18(1.34), asn: 14061(1.07), country: US(-0.05)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:14061, ipnet:95.85.0.0/18, country:US]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] 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, 17 Jul 2019 16:03:56 -0000 I copied the ko file under /boot/kernel . I just copied the nxprtc.ko = nothing else no linker.hints=20 But does not work. I cannot see the driver after reboot. I have of = course all things in config.txt. root@k1:/boot/kernel # kldstat=20 Id Refs Address Size Name 1 9 0xffff000000000000 13d1480 kernel 3 1 0xffff000001415000 40f10 nxprtc.ko 4 1 0xffff000053600000 41000 tmpfs.ko 5 1 0xffff000053641000 31000 mac_ntpd.ko root@k1:/boot/kernel #=20 root@k1:/boot/kernel # dmesg | grep nxp root@k1:/boot/kernel #=20 > That's why I have been lifelong-skeptical about the whole concept of > trying to build a single module separate from the kernel. Maybe it > mostly works for amd64, but I've never thought it was a safe thing to > do on arm systems. >=20 > You might be able to work around it by hand-editing that file and then > rebuilding the module. The file will be in >=20 > = /usr/obj/arm64.aarch64/usr/src/sys/GENERIC/modules/i2c/nxprtc/opt_platform= .h okay. let me try that. Stefan=