From owner-freebsd-arm@freebsd.org Thu Mar 18 17:00:53 2021 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 C379A57D0D5 for ; Thu, 18 Mar 2021 17:00:53 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Received: from www.zefox.net (www.zefox.net [50.1.20.27]) (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 "www.zefox.com", Issuer "www.zefox.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4F1YFJ5d2Jz4Rw1 for ; Thu, 18 Mar 2021 17:00:52 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Received: from www.zefox.net (localhost [127.0.0.1]) by www.zefox.net (8.16.1/8.15.2) with ESMTPS id 12IH0rrL026738 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Thu, 18 Mar 2021 10:00:54 -0700 (PDT) (envelope-from fbsd@www.zefox.net) Received: (from fbsd@localhost) by www.zefox.net (8.16.1/8.15.2/Submit) id 12IH0rSi026737; Thu, 18 Mar 2021 10:00:53 -0700 (PDT) (envelope-from fbsd) Date: Thu, 18 Mar 2021 10:00:53 -0700 From: bob prohaska To: freebsd-arm@freebsd.org Subject: RPI4 clock speeds and serial port Message-ID: <20210318170053.GA26688@www.zefox.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspamd-Queue-Id: 4F1YFJ5d2Jz4Rw1 X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of fbsd@www.zefox.net has no SPF policy when checking 50.1.20.27) smtp.mailfrom=fbsd@www.zefox.net X-Spamd-Result: default: False [-1.10 / 15.00]; RCVD_TLS_ALL(0.00)[]; ARC_NA(0.00)[]; WWW_DOT_DOMAIN(0.50)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[zefox.net]; RBL_DBL_DONT_QUERY_IPS(0.00)[50.1.20.27:from]; AUTH_NA(1.00)[]; SPAMHAUS_ZRD(0.00)[50.1.20.27:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_HAM_SHORT(-1.00)[-0.998]; RCPT_COUNT_TWO(0.00)[2]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:7065, ipnet:50.1.16.0/20, country:US]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-arm]; MID_RHS_WWW(0.50)[] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Porting FreeBSD to ARM processors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Mar 2021 17:00:53 -0000 Having now got an 8GB Pi4 to use for FreeBSD the machine seems to be relatively slow at buildworld, taking some 18 hours for a clean start buildworld. Sysctl -a | grep freq reports in part: .... hw.cpufreq.turbo: 0 hw.cpufreq.sdram_freq: 400000000 hw.cpufreq.core_freq: 200000000 hw.cpufreq.arm_freq: 600000000 hw.clock.108MHz-clock.frequency: 0 hw.clock.27MHz-clock.frequency: 0 hw.clock.otg.frequency: 0 hw.clock.osc.frequency: 0 dev.iicbus.0.frequency: 100000 dev.cpufreq.0.freq_driver: bcm2835_cpufreq0 dev.cpufreq.0.%parent: cpu0 dev.cpufreq.0.%pnpinfo: dev.cpufreq.0.%location: dev.cpufreq.0.%driver: cpufreq dev.cpufreq.0.%desc: dev.cpufreq.%parent: dev.bcm2835_cpufreq.0.freq_settings: 1500/-1 600/-1 dev.bcm2835_cpufreq.0.%parent: cpu0 dev.bcm2835_cpufreq.0.%pnpinfo: dev.bcm2835_cpufreq.0.%location: dev.bcm2835_cpufreq.0.%driver: bcm2835_cpufreq dev.bcm2835_cpufreq.0.%desc: CPU Frequency Control dev.bcm2835_cpufreq.%parent: dev.cpu.0.freq_levels: 1500/-1 600/-1 dev.cpu.0.freq: 600 dev.iichb.0.frequency: 100000 /boot/msdos/config.txt contains root@nemesis:~ # more /boot/msdos/config.txt [all] arm_64bit=1 dtparam=audio=on,i2c_arm=on,spi=on dtoverlay=mmc dtoverlay=disable-bt device_tree_address=0x4000 kernel=u-boot.bin [pi4] #hdmi_safe=1 armstub=armstub8-gic.bin There is no /boot/msdos/cmdline.txt file. Can one change the cpu speed without disturbing the serial console by using something like arm_freq=1750 in config.txt, provided adequate cooling provisions are made? I'd rather not complicate use of the serial console at this point. Thanks for reading! bob prohaska