FreeBSD on pine64 - Printable Version +- PINE64 (https://forum.pine64.org) +-- Forum: PINE A64(+) (https://forum.pine64.org/forumdisplay.php?fid=4) +--- Forum: BSD on Pine A64(+) (https://forum.pine64.org/forumdisplay.php?fid=105) +--- Thread: FreeBSD on pine64 (/showthread.php?tid=6232) Pages:
1
2
|
RE: FreeBSD on pine64 - PDXpi - 04-11-2019 It's been about a month since the last update to this thread. So, as a new owner of an A64 and a Rock64, I'm kinda wondering: Have the issues with mainline FreeBSD been worked out yet? RE: FreeBSD on pine64 - PDXpi - 04-11-2019 (04-11-2019, 06:24 PM)PDXpi Wrote: It's been about a month since the last update to this thread. So, as a new owner of an A64 and a Rock64, I'm kinda wondering: Have the issues with mainline FreeBSD been worked out yet? e.g., The information on these two pages... ...gives me hope! RE: FreeBSD on pine64 - rob933a - 06-04-2019 A table on one of the pages posted https://wiki.freebsd.org/FreeBSD/arm/Allwinner indicates that FreeBSD lacks support for HDMI output on AllWinner chips A31,A31S,A64,A83T, H3. Am I misinterpreting this? If this is the case, how hard would it be for someone to add it? I am using a A64-OLinuXino board which is mainly the same as the Pine64, as noted above my monitor displays the boot information but cuts out at some point through it. I hooked up the serial debug console today and surprisingly the FreeBSD boot process apparently continues properly and eventually gives the the login prompt so FreeBSD is running on the board. I used the image FreeBSD-13.0-CURRENT-arm64-aarch64-PINE64-20190531-R348447.IMG from the FreeBSD website Downloads page. Armbian (Linux for Arm chips)boots properly with full monitor support. I used the image provided by Olimex. My question is, does anyone know how to get FreeBSD to boot with monitor support on the Pine64 (boards with Allwinner A64 chips) I have provided the boot info and have noted by bold text approximately where the HDMI output dies. If anyone has any additional information or ideas they would be appreciated. U-Boot SPL 2019.04 (May 31 2019 - 03:34:34 +0000) DRAM: 1024 MiB Trying to boot from MMC1 NOTICE: BL31: v2.1(release): NOTICE: BL31: Built : 03:34:04, May 31 2019 NOTICE: BL31: Detected Allwinner A64/H64/R18 SoC (1689) NOTICE: BL31: Found U-Boot DTB at 0x40879f0, model: Pine64+ NOTICE: BL31: PMIC: Detected AXP803 on RSB. U-Boot 2019.04 (May 31 2019 - 03:34:34 +0000) Allwinner Technology CPU: Allwinner A64 (SUN50I) Model: Pine64+ DRAM: 1 GiB MMC: mmc@1c0f000: 0 Loading Environment from FAT... *** Warning - bad CRC, using default environment In: serial Out: vidconsole Err: vidconsole Net: phy interface7 eth0: ethernet@1c30000 starting USB... USB0: USB EHCI 1.00 USB1: USB OHCI 1.0 USB2: USB EHCI 1.00 USB3: USB OHCI 1.0 scanning bus 0 for devices... 1 USB Device(s) found scanning bus 1 for devices... 1 USB Device(s) found scanning bus 2 for devices... 1 USB Device(s) found scanning bus 3 for devices... 1 USB Device(s) found scanning usb for storage devices... 0 Storage Device(s) found Hit any key to stop autoboot: 0 switch to partitions #0, OK mmc0 is current device Scanning mmc 0:1... 31963 bytes read in 2 ms (15.2 MiB/s) Found EFI removable media binary efi/boot/bootaa64.efi Scanning disk mmc@1c0f000.blk... Found 3 disks BootOrder not defined 635744 bytes read in 31 ms (19.6 MiB/s) ## Starting EFI application at 40080000 ... Consoles: EFI console Reading loader env vars from /efi/freebsd/loader.env Setting currdev to disk0p1: FreeBSD/arm64 EFI loader, Revision 1.1 Command line arguments: loader.efi EFI version: 2.70 EFI Firmware: Das U-Boot (rev 8217.1024) Console: efi (0) Load Path: /VenHw(e61d73b9-a384-4acc-aeab-82e828f3628b)/SD(0)/SD(0)/HD(1,0x01 ,0,0x81f,0x1afa6)/efi\boot\bootaa64.efi Load Device: /VenHw(e61d73b9-a384-4acc-aeab-82e828f3628b)/SD(0)/SD(0)/HD(1,0x 01,0,0x81f,0x1afa6) Trying ESP: /VenHw(e61d73b9-a384-4acc-aeab-82e828f3628b)/SD(0)/SD(0)/HD(1,0x01,0 ,0x81f,0x1afa6) Setting currdev to disk0p1: Trying: /VenHw(e61d73b9-a384-4acc-aeab-82e828f3628b)/SD(0)/SD(0)/HD(2,0x01,0,0x1 b7c5,0x5e4823) Setting currdev to disk0p2: Loading /boot/defaults/loader.conf Loading /boot/device.hints Loading /boot/loader.conf Loading /boot/loader.conf.local Loading kernel... /boot/kernel/kernel text=0x92a470 data=0x190e48+0x84ab1c syms=[0x8+0x1376a0+0x8+ 0x123769] Loading configured modules... /boot/kernel/umodem.ko text=0x2140 text=0x13b0 data=0x102d8+0xfd38 syms=[0x8+0xf 30+0x8+0xb68] can't find '/boot/entropy' Hit [Enter] to boot immediately, or any other key for command prompt. Booting [/boot/kernel/kernel]... Using DTB provided by EFI at 0x47ef5000. Loading DTB overlays: 'sun50i-a64-sid,sun50i-a64-ths,sun50i-a64-timer,sun50i-a64 -opp' /boot/dtb/overlays/sun50i-a64-sid.dtbo size=0x1fd /boot/dtb/overlays/sun50i-a64-ths.dtbo size=0x3e8 /boot/dtb/overlays/sun50i-a64-timer.dtbo size=0x175 /boot/dtb/overlays/sun50i-a64-opp.dtbo size=0x74f applying DTB overlay '/boot/dtb/overlays/sun50i-a64-sid.dtbo' applying DTB overlay '/boot/dtb/overlays/sun50i-a64-ths.dtbo' applying DTB overlay '/boot/dtb/overlays/sun50i-a64-timer.dtbo' applying DTB overlay '/boot/dtb/overlays/sun50i-a64-opp.dtbo' EFI framebuffer information: addr, size 0x7e000000, 0x7e9000 dimensions 1920 x 1080 stride 1920 masks 0x00ff0000, 0x0000ff00, 0x000000ff, 0xff000000 EHCI failed to shut down host controller. ---<<BOOT>>--- KDB: debugger backends: ddb KDB: current backend: ddb Copyright © 1992-2019 The FreeBSD Project. Copyright © 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 r348447 GENERIC arm64 FreeBSD clang version 8.0.0 (tags/RELEASE_800/final 356365) (based on LLVM 8.0.0 ) WARNING: WITNESS option enabled, expect reduced performance. VT(efifb): resolution 1920x1080 KLD file umodem.ko is missing dependencies Starting CPU 1 (1) Starting CPU 2 (2) Starting CPU 3 (3) FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs arc4random: WARNING: initial seeding bypassed the cryptographic random device be cause it was not yet seeded and the knob 'bypass_before_seeding' was enabled. random: entropy device external interface MAP 47ef5000 mode 2 pages 22 MAP 78f2f000 mode 2 pages 1 MAP 78f34000 mode 2 pages 1 MAP 7df50000 mode 2 pages 16 kbd0 at kbdmux0 ofwbus0: <Open Firmware Device Tree> clk_fixed0: <Fixed clock> on ofwbus0 clk_fixed1: <Fixed clock> on ofwbus0 simplebus0: <Flattened device tree simple bus> on ofwbus0 rtc0: <Allwinner RTC> mem 0x1f00000-0x1f003ff irq 52,53 on simplebus0 rtc0: registered as a time-of-day clock, resolution 1.000000s ccu_a64ng0: <Allwinner A64 Clock Control Unit NG> mem 0x1c20000-0x1c203ff on sim plebus0 ccu_sun8i_r0: <Allwinner SUN8I_R Clock Control Unit NG> mem 0x1f01400-0x1f014ff on simplebus0 psci0: <ARM Power State Co-ordination Interface Driver> on ofwbus0 aw_sid0: <Allwinner Secure ID Controller> mem 0x1c14000-0x1c143ff on simplebus0 iichb0: <Allwinner RSB> mem 0x1f03400-0x1f037ff irq 57 on simplebus0 iicbus0: <OFW I2C bus> on iichb0 gic0: <ARM Generic Interrupt Controller> mem 0x1c81000-0x1c81fff,0x1c82000-0x1c8 3fff,0x1c84000-0x1c85fff,0x1c86000-0x1c87fff irq 49 on simplebus0 gic0: pn 0x2, arch 0x2, rev 0x1, implementer 0x43b irqs 224 gpio0: <Allwinner GPIO/Pinmux controller> mem 0x1c20800-0x1c20bff irq 23,24,25 o n simplebus0 gpiobus0: <OFW GPIO bus> on gpio0 iichb1: <Allwinner Integrated I2C Bus Controller> mem 0x1c2b000-0x1c2b3ff irq 37 on simplebus0 iicbus1: <OFW I2C bus> on iichb1 aw_nmi0: <Allwinner NMI Controller> mem 0x1f00c00-0x1f00fff irq 54 on simplebus0 gpio1: <Allwinner GPIO/Pinmux controller> mem 0x1f02c00-0x1f02fff irq 56 on simp lebus0 gpiobus1: <OFW GPIO bus> on gpio1 axp8xx_pmu0: <X-Powers AXP803 Power Management Unit> at addr 0x746 irq 59 on iic bus0 gpiobus2: <OFW GPIO bus> on axp8xx_pmu0 generic_timer0: <ARMv8 Generic Timer> irq 4,5,6,7 on ofwbus0 Timecounter "ARM MPCore Timecounter" frequency 24000000 Hz quality 1000 Event timer "ARM MPCore Eventtimer" frequency 24000000 Hz quality 1000 a10_timer0: <Allwinner timer> mem 0x1c20c00-0x1c20c2b irq 8,9 on simplebus0 Timecounter "a10_timer timer0" frequency 24000000 Hz quality 2000 aw_syscon0: <Allwinner syscon> mem 0x1c00000-0x1c00fff on simplebus0 awusbphy0: <Allwinner USB PHY> mem 0x1c19400-0x1c19413,0x1c1a800-0x1c1a803,0x1c1 b800-0x1c1b803 on simplebus0 cpulist0: <Open Firmware CPU Group> on ofwbus0 cpu0: <Open Firmware CPU> on cpulist0 cpufreq_dt0: <Generic cpufreq driver> on cpu0 cpu1: <Open Firmware CPU> on cpulist0 cpu2: <Open Firmware CPU> on cpulist0 cpu3: <Open Firmware CPU> on cpulist0 aw_thermal0: <Allwinner Thermal Sensor Controller> mem 0x1c25000-0x1c250ff irq 1 0 on simplebus0 a31dmac0: <Allwinner DMA controller> mem 0x1c02000-0x1c02fff irq 11 on simplebus 0 aw_mmc0: <Allwinner Integrated MMC/SD controller> mem 0x1c0f000-0x1c0ffff irq 15 on simplebus0 mmc0: <MMC/SD bus> on aw_mmc0 ehci0: <Allwinner Integrated USB 2.0 controller> mem 0x1c1a000-0x1c1a0ff irq 19 on simplebus0 usbus0: EHCI version 1.0 usbus0 on ehci0 ohci0: <Generic OHCI Controller> mem 0x1c1a400-0x1c1a4ff irq 20 on simplebus0 usbus1 on ohci0 ehci1: <Allwinner Integrated USB 2.0 controller> mem 0x1c1b000-0x1c1b0ff irq 21 on simplebus0 usbus2: EHCI version 1.0 usbus2 on ehci1 ohci1: <Generic OHCI Controller> mem 0x1c1b400-0x1c1b4ff irq 22 on simplebus0 usbus3 on ohci1 gpioc0: <GPIO controller> on gpio0 uart0: <16750 or compatible> mem 0x1c28000-0x1c283ff irq 31 on simplebus0 uart0: console (115384,n,8,1) iic0: <I2C generic I/O> on iicbus1 awg0: <Allwinner Gigabit Ethernet> mem 0x1c30000-0x1c3ffff irq 41 on simplebus0 miibus0: <MII bus> on awg0 micphy0: <Micrel KSZ9031 10/100/1000 PHY> PHY 1 on miibus0 micphy0: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000b aseT-master, 1000baseT-FDX, 1000baseT-FDX-master, auto, auto-flow awg0: Ethernet address: 02:ba:7b:d5:c6:6f gpioc1: <GPIO controller> on gpio1 gpioc2: <GPIO controller> on axp8xx_pmu0 iic1: <I2C generic I/O> on iicbus0 aw_wdog0: <Allwinner A31 Watchdog> mem 0x1c20ca0-0x1c20cbf irq 58 on simplebus0 cryptosoft0: <software crypto> Timecounters tick every 1.000 msec usbus0: 480Mbps High Speed USB v2.0 usbus1: 12Mbps Full Speed USB v1.0 ugen0.1: <Allwinner EHCI root HUB> at usbus0 ugen1.1: <Generic OHCI root HUB> at usbus1 uhub0: <Generic OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus1 uhub1: <Allwinner EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus0 usbus2: 480Mbps High Speed USB v2.0 usbus3: 12Mbps Full Speed USB v1.0 ugen2.1: <Allwinner EHCI root HUB> at usbus2 uhub2: <Allwinner EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus2 ugen3.1: <Generic OHCI root HUB> at usbus3 uhub3: <Generic OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus3 uhub0: 1 port with 1 removable, self powered mmcsd0: 32GB <SDHC SL32G 8.0 SN DDFA1047 MFG 03/2019 by 3 SD> at mmc0 50.0MHz/4b it/32768-block Release APs...done CPU 0: ARM Cortex-A53 r0p4 affinity: 0 mmc0: Failed to set VCCQ for card at relative address 43690 Instruction Set Attributes 0 = <CRC32,SHA2,SHA1,AES+PMULL> Trying to mount root from ufs:/dev/ufs/rootfs [rw]... Instruction Set Attributes 1 = <> Processor Features 0 = <AdvSIMD,Float,EL3 32,EL2 32,EL1 32,EL0 32> Processor Features 1 = <0> Memory Model Features 0 = <4k Granule,64k Granule,S/NS Mem,MixedEndian,16b it ASID,1TB PA> Memory Model Features 1 = <> Memory Model Features 2 = <32b CCIDX,48b VA> Debug Features 0 = <2 CTX Breakpoints,4 Watchpoints,6 Breakpoints,P MUv3,Debug v8> Debug Features 1 = <0> Auxiliary Features 0 = <0> Auxiliary Features 1 = <0> <<<<< HDMI MONITOR CUTS OUT SOMEWHERE AROUND HERE CPU 1: ARM Cortex-A53 r0p4 affinity: 1 CPU 2: ARM Cortex-A53 r0p4 affinity: 2 CPU 3: ARM Cortex-A53 r0p4 affinity: 3 WARNING: WITNESS option enabled, expect reduced performance. uhub3: 1 port with 1 removable, self powered uhub1: 1 port with 1 removable, self powered uhub2: 1 port with 1 removable, self powered Growing root partition to fill device random: randomdev_wait_until_seeded unblock wait random: randomdev_wait_until_seeded unblock wait random: randomdev_wait_until_seeded unblock wait random: unblocking device. GEOM_PART: mmcsd0s2 was automatically resized. Use `gpart commit mmcsd0s2` to save changes or `gpart undo mmcsd0s2` to revert them. mmcsd0s2 resized mmcsd0s2a resized gpart: arg0 'ufs/rootfs': Invalid argument super-block backups (for fsck_ffs -b #) at: 6411392, 7693632, 8975872, 10258112, 11540352, 12822592, 14104832, 15387072, 16669312, 17951552, 19233792, 20516032, 21798272, 23080512, 24362752, 25644992, 26927232, 28209472, 29491712, 30773952, 32056192, 33338432, 34620672, 35902912, 37185152, 38467392, 39749632, 41031872, 42314112, 43596352, 44878592, 46160832, 47443072, 48725312, 50007552, 51289792, 52572032, 53854272, 55136512, 56418752, 57700992, 58983232, 60265472, 61547712 Setting hostuuid: 30633239-3030-6162-3762-643563363666. Setting hostid: 0x995d1c71. No suitable dump device was found. Starting file system checks: /dev/ufs/rootfs: FILE SYSTEM CLEAN; SKIPPING CHECKS /dev/ufs/rootfs: clean, 6904775 free (15 frags, 863095 blocks, 0.0% fragmentatio n) Mounting local filesystems:. ELF ldconfig path: /lib /usr/lib /usr/lib/compat Building /boot/kernel/linker.hints lock order reversal: 1st 0xffff000040626dc0 bufwait (bufwait) @ /usr/src/sys/kern/vfs_bio.c:3904 2nd 0xfffffd0001565a00 dirhash (dirhash) @ /usr/src/sys/ufs/ufs/ufs_dirhash.c:2 89 stack backtrace: #0 0xffff0000004538a0 at witness_debugger+0x64 #1 0xffff0000003f7f9c at _sx_xlock+0x7c #2 0xffff00000068879c at ufsdirhash_add+0x38 #3 0xffff00000068b0d8 at ufs_direnter+0x3c4 #4 0xffff000000691b14 at ufs_rename+0xb7c #5 0xffff000000755b60 at VOP_RENAME_APV+0x90 #6 0xffff0000004c1678 at kern_renameat+0x304 #7 0xffff000000718448 at do_el0_sync+0x4fc #8 0xffff0000006ff200 at handle_el0_sync+0x84 Setting hostname: generic. Setting up harvesting: [UMA],[FS_ATIME],SWI,INTERRUPT,NET_NG,[NET_ETHER],NET_TUN ,MOUSE,KEYBOARD,ATTACH,CACHED Feeding entropy: . lo0: link state changed to UP awg0: link state changed to DOWN Starting Network: lo0 awg0. lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384 options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6> inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2 inet 127.0.0.1 netmask 0xff000000 groups: lo nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL> awg0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=8000b<RXCSUM,TXCSUM,VLAN_MTU,LINKSTATE> ether 02:ba:7b:d5:c6:6f media: Ethernet autoselect (none) status: no carrier nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL> Starting devd. add host 127.0.0.1: gateway lo0 fib 0: route already in table add host ::1: gateway lo0 fib 0: route already in table 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) Generating host.conf. Creating and/or trimming log files. Starting syslogd. Clearing /tmp (X related). Updating motd:. Mounting late filesystems:. Configuring vt: blanktime. Generating RSA host key. 2048 SHA256:m9P19eAyIWCjAA13W4WMI7A3fQAJ8yDrY4fvlAivTYE root@generic (RSA) Generating ECDSA host key. 256 SHA256:93oksQwpnaj9x997sBzOpg4rGSaxTnKNcWpALSv0+SI root@generic (ECDSA) Generating ED25519 host key. 256 SHA256:4Iaa028uGp31XmtR/DKyBGXPJtUJx8yFJwEm2Rzl/1A root@generic (ED25519) Performing sanity check on sshd configuration. Starting sshd. Starting cron. Starting background file system checks in 60 seconds. Fri Jan 1 00:01:17 UTC 2010 FreeBSD/arm64 (generic) (ttyu0) login: root Password: Jan 1 00:02:14 generic login[865]: ROOT LOGIN (root) ON ttyu0 FreeBSD 13.0-CURRENT r348447 GENERIC Welcome to FreeBSD! Release Notes, Errata: https://www.FreeBSD.org/releases/ Security Advisories: https://www.FreeBSD.org/security/ FreeBSD Handbook: https://www.FreeBSD.org/handbook/ FreeBSD FAQ: https://www.FreeBSD.org/faq/ Questions List: https://lists.FreeBSD.org/mailman/listinfo/freebsd-questions/ FreeBSD Forums: https://forums.FreeBSD.org/ |