Date: Tue, 6 Mar 2018 20:59:37 +0100 From: Luc Hondareyte <hondareyte.luc@laposte.net> To: freebsd-arm@freebsd.org Subject: cpufreq support on Allwinner H3 Message-ID: <5332936b-f38b-ca7a-03d9-dfc7c92e2727@laposte.net>
next in thread | raw e-mail | index | archive | help
Hi, I've just build 12-current for Allwinner H3 (armv7) and it seems that cpufreq support is missing (orangepi or nanopi): root@allwinner-h3:~ # service powerd onestart Starting powerd. powerd: no cpufreq(4) support -- aborting: No such file or directory /etc/rc.d/powerd: WARNING: failed to start powerd So, on nanopi neo, it's slowdown (not on orange-pi that seems to run at full speed). I am using a custom kernel conf that just contains: include GENERIC nooptions INVARIANTS nooptions INVARIANT_SUPPORT nooptions WITNESS nooptions WITNESS_SKIPSPIN nooptions BUF_TRACKING nooptions DEADLKRES nooptions FULL_BUF_TRACKING Here the output I get on orange-pi: U-Boot SPL 2016.03 (Jun 17 2016 - 18:48:42) DRAM: 1024 MiB Trying to boot from MMC U-Boot 2016.03 (Jun 17 2016 - 18:48:42 +0200) Allwinner Technology CPU: Allwinner H3 (SUN8I) I2C: ready DRAM: 1 GiB WARNING: Caches not enabled MMC: SUNXI SD/MMC: 0 reading u-boot.env ** Unable to read "u-boot.env" from mmc0:1 ** Using default environment In: serial Out: serial Err: serial Net: No ethernet found. starting USB... USB0: USB EHCI 1.00 USB1: USB EHCI 1.00 scanning bus 0 for devices... 1 USB Device(s) found scanning bus 1 for devices... 1 USB Device(s) found Hit any key to stop autoboot: 0 Booting from: mmc 0 ubldr.bin reading ubldr.bin 238600 bytes read in 57 ms (4 MiB/s) ## No elf image at address 0x42000000 ## Starting application at 0x42000000 ... Consoles: U-Boot console Compatible U-Boot API signature found @0x7bf4a610 FreeBSD/armv7 U-Boot loader, Revision 1.2 (Mon Mar 5 23:38:55 CET 2018 luc@unxbox) DRAM: 1024MB MMC Device 1 not found Number of U-Boot devices: 1 U-Boot env: loaderdev='mmc 0' Found U-Boot device: disk Checking unit=0 slice=<auto> partition=<auto>... good. Booting from disk0s2a: Loading /boot/defaults/loader.conf /boot/kernel/kernel data=0x8ad654+0x1869ac syms=[0x4+0x979b0+0x4+0xdbf6a] /boot/entropy size=0x1000 Hit [Enter] to boot immediately, or any other key for command prompt. Booting [/boot/kernel/kernel] in 1 second... Type '?' for a list of commands, 'help' for more detailed help. loader> load -t dtb boot/dtb/sun8i-h3-orangepi-one.dtb boot/dtb/sun8i-h3-orangepi-one.dtb size=0x4ec5 loader> boot Booting... Using DTB from loaded file 'boot/dtb/sun8i-h3-orangepi-one.dtb'. Kernel entry at 0x42200100... Kernel args: (null) KDB: debugger backends: ddb KDB: current backend: ddb Copyright (c) 1992-2018 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 12.0-CURRENT #0 34d79fcc910(master)-dirty: Tue Mar 6 02:11:39 CET 2018 luc@unxbox:/usr/home/luc/ARM/obj/usr/home/luc/ARM/src/arm.armv7/sys/CUSTOM arm FreeBSD clang version 6.0.0 (branches/release_60 325932) (based on LLVM 6.0.0) VT: init without driver. module_register: cannot register simplebus/ahci from kernel; already loaded from kernel Module simplebus/ahci failed to register: 17 module_register: cannot register simplebus/ehci from kernel; already loaded from kernel Module simplebus/ehci failed to register: 17 module_register: cannot register simplebus/pcib from kernel; already loaded from kernel Module simplebus/pcib failed to register: 17 module_register: cannot register simplebus/ehci from kernel; already loaded from kernel Module simplebus/ehci failed to register: 17 CPU: ARM Cortex-A7 r0p5 (ECO: 0x00000000) CPU Features: Multiprocessing, Thumb2, Security, Virtualization, Generic Timer, VMSAv7, PXN, LPAE, Coherent Walk Optional instructions: SDIV/UDIV, UMULL, SMULL, SIMD(ext) LoUU:2 LoC:3 LoUIS:2 Cache level 1: 32KB/64B 4-way data cache WB Read-Alloc Write-Alloc 32KB/32B 2-way instruction cache Read-Alloc Cache level 2: 512KB/64B 8-way unified cache WB Read-Alloc Write-Alloc real memory = 1073741824 (1024 MB) avail memory = 1036685312 (988 MB) FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs random: unblocking device. random: entropy device external interface kbd0 at kbdmux0 ofwbus0: <Open Firmware Device Tree> aw_ccu0: <Allwinner Clock Control Unit> on ofwbus0 clk_fixed0: <Fixed clock> on aw_ccu0 clk_fixed1: <Fixed clock> on aw_ccu0 clk_fixed2: <Fixed clock> on aw_ccu0 simplebus0: <Flattened device tree simple bus> on ofwbus0 aw_ccung0: <Allwinner Clock Control Unit NG> mem 0x1c20000-0x1c203ff on simplebus0 aw_ccung1: <Allwinner Clock Control Unit NG> mem 0x1f01400-0x1f014ff on simplebus0 regfix0: <Fixed Regulator> on ofwbus0 regfix1: <Fixed Regulator> on ofwbus0 regfix2: <Fixed Regulator> on ofwbus0 regfix3: <Fixed Regulator> on ofwbus0 awusbphy0: <Allwinner USB PHY> mem 0x1c19400-0x1c1942b,0x1c1a800-0x1c1a803,0x1c1b800-0x1c1b803,0x1c1c800-0x1c1c803,0x1c1d800-0x1c1d803 on simplebus0 gic0: <ARM Generic Interrupt Controller> mem 0x1c81000-0x1c81fff,0x1c82000-0x1c83fff,0x1c84000-0x1c85fff,0x1c86000-0x1c87fff irq 36 on simplebus0 gic0: pn 0x1, arch 0x2, rev 0x1, implementer 0x43b irqs 160 gpio0: <Allwinner GPIO/Pinmux controller> mem 0x1c20800-0x1c20bff irq 17,18 on simplebus0 gpiobus0: <OFW GPIO bus> on gpio0 gpio1: <Allwinner GPIO/Pinmux controller> mem 0x1f02c00-0x1f02fff irq 40 on simplebus0 gpiobus1: <OFW GPIO bus> on gpio1 rtc0: <Allwinner RTC> mem 0x1f00000-0x1f00053 irq 37,38 on simplebus0 rtc0: registered as a time-of-day clock, resolution 1.000000s generic_timer0: <ARMv7 Generic Timer> irq 0,1,2,3 on ofwbus0 Timecounter "ARM MPCore Timecounter" frequency 24000000 Hz quality 1000 Event timer "ARM MPCore Eventtimer" frequency 24000000 Hz quality 1000 aw_syscon0: <Allwinner syscon> mem 0x1c00000-0x1c00fff on simplebus0 a31dmac0: <Allwinner DMA controller> mem 0x1c02000-0x1c02fff irq 4 on simplebus0 aw_mmc0: <Allwinner Integrated MMC/SD controller> mem 0x1c0f000-0x1c0ffff irq 5 on simplebus0 mmc0: <MMC/SD bus> on aw_mmc0 ehci0: <Allwinner Integrated USB 2.0 controller> mem 0x1c1a000-0x1c1a0ff irq 9 on simplebus0 usbus0: EHCI version 1.0 usbus0 on ehci0 ohci0: <Generic OHCI Controller> mem 0x1c1a400-0x1c1a4ff irq 10 on simplebus0 usbus1 on ohci0 ehci1: <Allwinner Integrated USB 2.0 controller> mem 0x1c1b000-0x1c1b0ff irq 11 on simplebus0 usbus2: EHCI version 1.0 usbus2 on ehci1 ohci1: <Generic OHCI Controller> mem 0x1c1b400-0x1c1b4ff irq 12 on simplebus0 usbus3 on ohci1 gpioc0: <GPIO controller> on gpio0 awg0: <Allwinner Gigabit Ethernet> mem 0x1c30000-0x1c3ffff irq 21 on simplebus0 miibus0: <MII bus> on awg0 ukphy0: <Generic IEEE 802.3u media interface> PHY 0 on miibus0 ukphy0: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto, auto-flow ukphy1: <Generic IEEE 802.3u media interface> PHY 1 on miibus0 ukphy1: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto, auto-flow awg0: Ethernet address: f2:00:ee:63:b5:59 aw_wdog0: <Allwinner A31 Watchdog> mem 0x1c20ca0-0x1c20cbf irq 24 on simplebus0 uart0: <16750 or compatible> mem 0x1c28000-0x1c283ff irq 29 on simplebus0 uart0: console (115384,n,8,1) gpioc1: <GPIO controller> on gpio1 cpulist0: <Open Firmware CPU Group> on ofwbus0 cpu0: <Open Firmware CPU> on cpulist0 cpu1: <Open Firmware CPU> on cpulist0 cpu2: <Open Firmware CPU> on cpulist0 cpu3: <Open Firmware CPU> on cpulist0 gpioled0: <GPIO LEDs> on ofwbus0 cryptosoft0: <software crypto> Timecounters tick every 1.000 msec usbus0: 480Mbps High Speed USB v2.0 usbus1: 12Mbps Full Speed USB v1.0 usbus2: 480Mbps High Speed USB v2.0 usbus3: 12Mbps Full Speed USB v1.0 ugen0.1: <Allwinner EHCI root HUB> at usbus0 uhub0: <Allwinner EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus0 ugen1.1: <Generic OHCI root HUB> at usbus1 uhub1: <Generic OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus1 ugen3.1: <Generic OHCI root HUB> at usbus3 uhub2: <Generic OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus3 ugen2.1: <Allwinner EHCI root HUB> at usbus2 uhub3: <Allwinner EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus2 mmcsd0: 16GB <SDHC SL16G 8.0 SN B8BA40AA MFG 11/2016 by 3 SD> at mmc0 50.0MHz/4bit/65535-block Release APs Trying to mount root from ufs:/dev/mmcsd0s2a [rw,noatime]... mmc0: ACMD42 failed, RESULT: 4 mmc0: Card at relative address 43690 failed to set bus width uhub1: 1 port with 1 removable, self powered uhub2: 1 port with 1 removable, self powered uhub0: 1 port with 1 removable, self powered uhub3: 1 port with 1 removable, self powered Setting hostuuid: ae41a69a-f668-11de-b3da-93fd68e687d1. Setting hostid: 0x3905964e. No suitable dump device was found. Starting file system checks: /dev/mmcsd0s2a: FILE SYSTEM CLEAN; SKIPPING CHECKS /dev/mmcsd0s2a: clean, 3583737 free (57 frags, 447960 blocks, 0.0% fragmentation) Mounting local filesystems:. ELF ldconfig path: /lib /usr/lib /usr/lib/compat Soft Float compatibility ldconfig path: Setting hostname: allwinner-h3. Setting up harvesting: [UMA],[FS_ATIME],SWI,INTERRUPT,NET_NG,NET_ETHER,NET_TUN,MOUSE,KEYBOARD,ATTACH,CACHED Feeding entropy: . Starting devd. awg0: link state changed to DOWN add host 127.0.0.1: gateway lo0 add host ::1: gateway lo0 add net fe80::: gateway ::1 add net ff02::: gateway ::1 add net ::ffff:0.0.0.0: gateway ::1 add net ::0.0.0.0: gateway ::1 Waiting 30s for the default route interface: .....(no carrier) Creating and/or trimming log files. Starting syslogd. Clearing /tmp (X related). Updating motd:. Mounting late filesystems:. Starting ntpd. Performing sanity check on sshd configuration. Jan 1 11:34:21 allwinner-h3 ntpd[419]: unable to bind to wildcard address :: - another process may be running - EXITING Starting sshd. Jan 1 11:34:22 allwinner-h3 sshd[449]: error: Bind to port 22 on :: failed: Can't assign requested address. Jan 1 11:34:22 allwinner-h3 sshd[449]: error: Bind to port 22 on 0.0.0.0 failed: Can't assign requested address. Jan 1 11:34:22 allwinner-h3 sshd[449]: fatal: Cannot bind any address. Starting sendmail_msp_queue. Starting cron. devmatch: Can't read linker hints file. Starting background file system checks in 60 seconds. Fri Jan 1 11:34 FreeBSD/arm (allwinner-h3) (ttyu0) login: Thanks
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5332936b-f38b-ca7a-03d9-dfc7c92e2727>