• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

Banana Pi

Scheduled Pinned Locked Moved Hardware
38 Posts 9 Posters 41.7k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B
    badon
    last edited by Dec 13, 2014, 7:10 AM

    OK, so Banana Pi's A7 ARM processor isn't ideal for pfSense, but nonetheless, I very much support the idea pfSense being able to run on something smaller than a netbook. Something pocket-portable and battery powered would be perfect for me to ensure I always have pfSense between me and the wild internet, wherever I am. Not being able to function on routers and other small devices like the Raspberry Pi greatly limits the usefulness of pfSense, despite the fact that pfSense is otherwise ideally suited to them. Instead, the best we can get is OpenWRT and DD-WRT, which simply isn't pfSense.

    1 Reply Last reply Reply Quote 0
    • B
      badon
      last edited by Dec 15, 2014, 1:56 AM Dec 13, 2014, 9:18 AM

      @gonzopancho:

      we are interested in the ARM devices market.  Netgate is about to pick-up the Beaglebone Black.

      1 Reply Last reply Reply Quote 0
      • F
        firewalluser
        last edited by Dec 14, 2014, 3:54 PM

        Might be useful, list of ARM boards which support to some degree freebsd.

        https://www.freebsd.org/platforms/arm.html

        The architecture of the ARM CPU's make it ideal for multi threading programs compared to the Intel/AMD chips when considering the CPU delays caused by the L1/L2 misses but who spots their L2 cache misses except when compiling perhaps?

        Considering how ARM is used pervasively for things like routers, set top tv boxes and smart phones which now out number pc's, personally I'd say pfsense would well suited to ARM boards.

        Capitalism, currently The World's best Entertainment Control System and YOU cant buy it! But you can buy this, or some of this or some of these

        Asch Conformity, mainly the blind leading the blind.

        1 Reply Last reply Reply Quote 0
        • B
          badon
          last edited by Dec 15, 2014, 3:22 AM

          I'm hoping to see something assembled and tested from Netgate that has 2 ethernet ports. So far, they only have the kits. If we're lucky, maybe someday ARM will move up from Tier 2 to Tier 1 in FreeBSD. Since pfSense is updating to FreeBSD 10.1, maybe we'll get some extra ARM support from that.

          1 Reply Last reply Reply Quote 0
          • ?
            Guest
            last edited by Dec 16, 2014, 9:01 AM

            Maybe

            1 Reply Last reply Reply Quote 0
            • ?
              Guest
              last edited by Dec 16, 2014, 9:03 AM

              @firewalluser:

              The architecture of the ARM CPU's make it ideal for multi threading programs compared to the Intel/AMD chips when considering the CPU delays caused by the L1/L2 misses but who spots their L2 cache misses except when compiling perhaps?

              What are you trying to say?

              1 Reply Last reply Reply Quote 0
              • D
                DiskWizard
                last edited by Dec 23, 2014, 3:16 PM

                Still waiting for the board of my dream to become reality

                1. GA-N3150M-D3P 8Gb RAM

                2. GA-C1037EN-EU 4GB RAM

                • 2,5 SATA III Solid State Drive SLIM S60
                1 Reply Last reply Reply Quote 0
                • F
                  firewalluser
                  last edited by Dec 24, 2014, 8:17 AM

                  The L1 & L2 cache misses for things like Out of Loop prefetches can add a 15% delay to proceeding according to a paper I read.

                  Capitalism, currently The World's best Entertainment Control System and YOU cant buy it! But you can buy this, or some of this or some of these

                  Asch Conformity, mainly the blind leading the blind.

                  1 Reply Last reply Reply Quote 0
                  • D
                    DiskWizard
                    last edited by Mar 16, 2015, 1:59 PM

                    Okay TooMeeK.

                    You can start up MII interface as separate compile option at Uboot

                    CONFIG_CMD_MII

                    1. GA-N3150M-D3P 8Gb RAM

                    2. GA-C1037EN-EU 4GB RAM

                    • 2,5 SATA III Solid State Drive SLIM S60
                    1 Reply Last reply Reply Quote 0
                    • N
                      necron
                      last edited by Mar 16, 2015, 8:29 PM

                      Any serious progress with this?
                      Gonzo, at https://forum.pfsense.org/index.php?topic=79007.msg465109#msg465109 you mention not being impressed.
                      Is this because you have very high standards?
                      Personally I'm looking for a decent replacement of a 19" 2U micro ATX box running pfsense for my home and small company.
                      IMHO it could easily run on a BPi hardware, since it has nothing to do all day  ;D

                      1 Reply Last reply Reply Quote 0
                      • T
                        toomeek
                        last edited by Mar 26, 2015, 9:26 PM Mar 26, 2015, 1:21 AM

                        @DiskWizard:

                        Okay TooMeeK.

                        You can start up MII interface as separate compile option at Uboot

                        CONFIG_CMD_MII

                        Thank You for this information and PM. And sorry for delay with response, busy week :(

                        I've downloaded both latest U-boot versions from following sources:
                        git clone https://github.com/linux-sunxi/u-boot-sunxi.git
                        git clone git://git.denx.de/u-boot.git

                        Added CONFIG_CMD_MII to:
                        boards.cfg in case of Sunxi source
                        Configuring for Bananapi - Board: sun7i, Options: BANANAPI,SPL,SUNXI_GMAC,RGMII,MACPWR=SUNXI_GPH(23),STATUSLED=244,STATUSLED1=245,FAST_MBUS,CONFIG_CMD_MII
                        or
                        include/configs/sunxi-common.h entry #define CONFIG_CMD_MII in case of mainline source.

                        Compiled it:
                        gmake -j4 ARCH=arm CROSS_COMPILE=arm-eabi- HOSTCC=cc USE_PRIVATE_LIBGCC=yes clean
                        gmake -j4 ARCH=arm CROSS_COMPILE=arm-eabi- HOSTCC=cc USE_PRIVATE_LIBGCC=yes Bananapi_config
                        gmake -j4 ARCH=arm CROSS_COMPILE=arm-eabi- HOSTCC=cc USE_PRIVATE_LIBGCC=yes

                        Then tested one by one on my boot image:
                        # Cubieboard's 2 / BananaPi U-boot loader
                        dd if=u-boot-sunxi-with-spl.bin conv=notrunc of=banana.img bs=1024 seek=8

                        Sources used:
                        http://linux-sunxi.org/LeMaker_Banana_Pi
                        https://github.com/LeMaker/linux-sunxi
                        http://linux-sunxi.org/Mainline_U-boot
                        http://linux-sunxi.org/U-Boot
                        and my own scripts.

                        Hardware used:
                        BPi
                        1 x 4GB USB 2.0
                        1 x 32GB microSD card + adapter
                        1 x RS232 to USB converter,  pl2303 based, read-only

                        Software used:
                        FreeBSD 10.0 64-bit VM
                        Linux Mint 64-bit OS
                        FreeBSD 10.0 64-bit OS for BPi

                        Image output summary is:
                        banana.img - 940MB - bootable SD card image
                        banana_data.img - 1024MB - OS data on USB drive

                        STATUS:
                        1. Normal booting process with an older U-boot take around 10 minutes to reach login prompt first time (generating RSA keys and so), then 415 seconds during normal boot. It takes 3 minutes to startup sshd service. No networking.
                        The output is on the screenshot and full log here:

                        U-Boot 2013.07-07794-gc0f3b94 (Aug 15 2013 - 18:01:45) Allwinner Technology
                        
                        CPU:   Allwinner A20 (SUN7I)
                        Board: Cubieboard2
                        I2C:   ready
                        DRAM:  1 GiB
                        MMC:   SUNXI SD/MMC: 0
                        *** Warning - bad CRC, using default environment
                        
                        In:    serial
                        Out:   serial
                        Err:   serial
                        Net:   emac
                        Hit any key to stop autoboot:  3  2  1  0 
                        reading uEnv.txt
                        ** Unable to read file uEnv.txt **
                        Failed to mount ext2 filesystem...
                        ** Unrecognized filesystem type **
                        Failed to mount ext2 filesystem...
                        ** Unrecognized filesystem type **
                        reading boot.scr
                        119 bytes read in 9 ms (12.7 KiB/s)
                        Jumping to boot.scr
                        ## Executing script at 44000000
                        reading kernel
                        4868872 bytes read in 215 ms (21.6 MiB/s)
                        ## Starting application at 0x40200100 ...
                        KDB: debugger backends: ddb
                        KDB: current backend: ddb
                        Copyright (c) 1992-2014 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 10.0-RELEASE #16: Sun Aug 31 17:38:34 CEST 2014
                            root@freebsd:/usr/obj/arm.armv6/usr/src/sys/BANANAPI arm
                        FreeBSD clang version 3.3 (tags/RELEASE_33/final 183502) 20130610
                        WARNING: WITNESS option enabled, expect reduced performance.
                        WARNING: DIAGNOSTIC option enabled, expect reduced performance.
                        CPU: Cortex A7 rev 4 (Cortex-A core)
                         Supported features: ARM_ISA THUMB2 JAZELLE THUMBEE ARMv4 Security_Ext
                         WB disabled EABT branch prediction enabled
                        LoUU:2 LoC:2 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: 
                         256KB/64B 8-way unified cache WB Read-Alloc Write-Alloc
                        real memory  = 1073741824 (1024 MB)
                        avail memory = 1043943424 (995 MB)
                        random device not loaded; using insecure entropy
                        random: <software, yarrow=""> initialized
                        simplebus0: <flattened device="" tree="" simple="" bus=""> on fdtbus0
                        gic0: <arm generic="" interrupt="" controller=""> mem 0x1c81000-0x1c81fff,0x1c82000-0x1c820ff on simplebus0
                        gic0: pn 0x10, arch 0x2, rev 0x1, implementer 0x43b nirqs 160
                        a20_cpu_cfg0: <a20 cpu="" configuration="" module=""> mem 0x1c25c00-0x1c25fff on simplebus0
                        a10_ccm0: <allwinner clock="" control="" module=""> mem 0x1c20000-0x1c203ff on simplebus0
                        a10_timer0: <allwinner a10="" a20="" timer=""> mem 0x1c20c00-0x1c20c8f irq 54 on simplebus0
                        Event timer "a10_timer Eventtimer" frequency 24000000 Hz quality 1000
                        Timecounter "a10_timer timer0" frequency 24000000 Hz quality 1000
                        a10wd0: <allwinner a10="" watchdog=""> mem 0x1c20c90-0x1c20c9f on simplebus0
                        gpio0: <allwinner gpio="" controller=""> mem 0x1c20800-0x1c20bff irq 60 on simplebus0
                        gpioc0: <gpio controller=""> on gpio0
                        gpiobus0: <gpio bus=""> on gpio0
                        ehci0: <allwinner integrated="" usb="" 2.0="" controller=""> mem 0x1c14000-0x1c14fff irq 71 on simplebus0
                        usbus0: EHCI version 1.0
                        usbus0 on ehci0
                        ehci1: <allwinner integrated="" usb="" 2.0="" controller=""> mem 0x1c1c000-0x1c1cfff irq 72 on simplebus0
                        usbus1: EHCI version 1.0
                        usbus1 on ehci1
                        uart0: <16750 or compatible> mem 0x1c28000-0x1c283ff irq 33 on simplebus0
                        uart0: console (115200,n,8,1)
                        Timecounters tick every 10.000 msec
                        usbus0: 480Mbps High Speed USB v2.0
                        usbus1: 480Mbps High Speed USB v2.0
                        ugen1.1: <allwinner> at usbus1
                        uhub0: <allwinner 1="" 9="" ehci="" root="" hub,="" class="" 0,="" rev="" 2.00="" 1.00,="" addr=""> on usbus1
                        ugen0.1: <allwinner> at usbus0
                        uhub1: <allwinner 1="" 9="" ehci="" root="" hub,="" class="" 0,="" rev="" 2.00="" 1.00,="" addr=""> on usbus0
                        random: unblocking device.
                        WARNING: WITNESS option enabled, expect reduced performance.
                        WARNING: DIAGNOSTIC option enabled, expect reduced performance.
                        uhub0: 1 port with 1 removable, self powered
                        uhub1: 1 port with 1 removable, self powered
                        Root mount waiting for: usbus1 usbus0
                        ugen0.2: <ralink> at usbus0
                        ugen1.2: <mode com=""> at usbus1
                        umass0: <mode 0="" 2="" com="" memodrive="" usb2.0,="" class="" 0,="" rev="" 2.00="" 1.10,="" addr=""> on usbus1
                        umass0:  SCSI over Bulk-Only; quirks = 0x4100
                        umass0:0:0:-1: Attached to scbus0
                        da0 at umass-sim0 bus 0 scbus0 target 0 lun 0
                        da0: <mode com="" memodrive="" usb2.0="" pmap=""> Removable Direct Access SCSI-0 device 
                        da0: Serial Number 90891A001774
                        da0: 40.000MB/s transfers
                        da0: 3822MB (7827456 512 byte sectors: 255H 63S/T 487C)
                        da0: quirks=0x2 <no_6_byte>Trying to mount root from ufs:/dev/da0 []...
                        WARNING: / was not properly dismounted
                        warning: no time-of-day clock registered, system time will not be set accurately
                        Setting hostuuid: f90b367e-3129-11e4-ae46-3f68a54463b5.
                        Setting hostid: 0xa395f285.
                        Entropy harvesting: interrupts ethernet point_to_point swi.
                        Starting file system checks:
                        Expensive timeout(9) function: 0xc0263848(0xc3864c78) 0.002801708 s
                        Expensive timeout(9) function: 0xc04ad3a8(0) 0.011151875 s
                        /dev/da0: 12431 files, 67813 used, 186018 free (818 frags, 23150 blocks, 0.3% fragmentation)
                        Mounting local file systems:.
                        Writing entropy file:.
                        Setting hostname: banana-freebsd.
                        Starting Network: lo0.
                        lo0: flags=8049 <up,loopback,running,multicast>metric 0 mtu 16384
                        	options=600003 <rxcsum,txcsum,rxcsum_ipv6,txcsum_ipv6>inet6 ::1 prefixlen 128 
                        	inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1 
                        	inet 127.0.0.1 netmask 0xff000000 
                        	nd6 options=21 <performnud,auto_linklocal>Starting devd.
                        route: writing to routing socket: Network is unreachable
                        add net default: gateway 192.168.137.1 fib 0: Network is unreachable
                        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
                        Creating and/or trimming log files.
                        Starting syslogd.
                        ELF ldconfig path: /lib /usr/lib /usr/lib/compat
                        Clearing /tmp (X related).
                        Updating motd:.
                        Mounting late file systems:.
                        Performing sanity check on sshd configuration.
                        Starting sshd.
                        Starting sendmail_submit.
                        Starting sendmail_msp_queue.
                        Starting cron.
                        Starting background file system checks in 60 seconds.
                        
                        Sun Aug 31 16:30:13 UTC 2014
                        
                        FreeBSD/arm (banana-freebsd) (ttyu0)
                        
                        login:</performnud,auto_linklocal></rxcsum,txcsum,rxcsum_ipv6,txcsum_ipv6></up,loopback,running,multicast></no_6_byte></mode></mode></mode></ralink></allwinner></allwinner></allwinner></allwinner></allwinner></allwinner></gpio></gpio></allwinner></allwinner></allwinner></allwinner></a20></arm></flattened></software,>
                        

                        2. U-boot from Denx.de often ends up in kernel panic with CONFIG_CMD_MII, like this:

                        U-Boot 2015.04-rc4-00064-gb81bdf6-dirty (Mar 26 2015 - 01:01:52) Allwinner Technology
                        
                        CPU:   Allwinner A20 (SUN7I)
                        I2C:   ready
                        DRAM:  1 GiB
                        MMC:   SUNXI SD/MMC: 0
                        *** Warning - bad CRC, using default environment
                        
                        In:    serial
                        Out:   serial
                        Err:   serial
                        SCSI:  SUNXI SCSI INIT
                        SATA link 0 timeout.
                        AHCI 0001.0100 32 slots 1 ports 3 Gbps 0x1 impl SATA mode
                        flags: ncq stag pm led clo only pmp pio slum part ccc apst 
                        Net:   dwmac.1c50000
                        starting USB...
                        USB0:   USB EHCI 1.00
                        scanning bus 0 for devices... 2 USB Device(s) found
                        USB1:   USB EHCI 1.00
                        scanning bus 1 for devices... 2 USB Device(s) found
                               scanning usb for storage devices... 1 Storage Device(s) found
                        Hit any key to stop autoboot:  2  1  0 
                        switch to partitions #0, OK
                        mmc0 is current device
                        Scanning mmc 0:1...
                        Found U-Boot script /boot.scr
                        reading /boot.scr
                        119 bytes read in 26 ms (3.9 KiB/s)
                        ## Executing script at 43100000
                        reading kernel
                        4868872 bytes read in 246 ms (18.9 MiB/s)
                        ## Starting application at 0x40200100 ...
                        KDB: debugger backends: ddb
                        KDB: current backend: ddb
                        Copyright (c) 1992-2014 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 10.0-RELEASE #16: Sun Aug 31 17:38:34 CEST 2014
                            root@freebsd:/usr/obj/arm.armv6/usr/src/sys/BANANAPI arm
                        FreeBSD clang version 3.3 (tags/RELEASE_33/final 183502) 20130610
                        WARNING: WITNESS option enabled, expect reduced performance.
                        WARNING: DIAGNOSTIC option enabled, expect reduced performance.
                        panic: lock "vmem list lock" 0xc05f3500 already initialized
                        KDB: enter: panic
                        [ thread pid 0 tid 0 ]
                        Stopped at      0xc034ef38:     ldrb    r15, [r15, r15, ror r15]!
                        db> 
                        

                        Sometimes it stuck at Starting application at 0x40200100 message. When it boots, there is still no networking or I'm missing the point how FreeBSD recognizes MII devices.
                        I've static IP configured for the interface, but it founds nothing. Boot in less than 2 minutes if successful. Here's full log:

                        U-Boot SPL 2015.04-rc4-00064-gb81bdf6-dirty (Mar 26 2015 - 01:01:52)
                        DRAM: 1024 MiB
                        CPU: 960000000Hz, AXI/AHB/APB: 3/2/2
                        
                        U-Boot 2015.04-rc4-00064-gb81bdf6-dirty (Mar 26 2015 - 01:01:52) Allwinner Technology
                        
                        CPU:   Allwinner A20 (SUN7I)
                        I2C:   ready
                        DRAM:  1 GiB
                        MMC:   SUNXI SD/MMC: 0
                        *** Warning - bad CRC, using default environment
                        
                        In:    serial
                        Out:   serial
                        Err:   serial
                        SCSI:  SUNXI SCSI INIT
                        SATA link 0 timeout.
                        AHCI 0001.0100 32 slots 1 ports 3 Gbps 0x1 impl SATA mode
                        flags: ncq stag pm led clo only pmp pio slum part ccc apst 
                        Net:   dwmac.1c50000
                        starting USB...
                        USB0:   USB EHCI 1.00
                        scanning bus 0 for devices... cannot reset port 1!?
                        1 USB Device(s) found
                        USB1:   USB EHCI 1.00
                        scanning bus 1 for devices... 2 USB Device(s) found
                               scanning usb for storage devices... 1 Storage Device(s) found
                        Hit any key to stop autoboot:  2  1  0 
                        switch to partitions #0, OK
                        mmc0 is current device
                        Scanning mmc 0:1...
                        Found U-Boot script /boot.scr
                        reading /boot.scr
                        119 bytes read in 24 ms (3.9 KiB/s)
                        ## Executing script at 43100000
                        reading kernel
                        4868872 bytes read in 246 ms (18.9 MiB/s)
                        ## Starting application at 0x40200100 ...
                        KDB: debugger backends: ddb
                        KDB: current backend: ddb
                        Copyright (c) 1992-2014 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 10.0-RELEASE #16: Sun Aug 31 17:38:34 CEST 2014
                            root@freebsd:/usr/obj/arm.armv6/usr/src/sys/BANANAPI arm
                        FreeBSD clang version 3.3 (tags/RELEASE_33/final 183502) 20130610
                        WARNING: WITNESS option enabled, expect reduced performance.
                        WARNING: DIAGNOSTIC option enabled, expect reduced performance.
                        CPU: Cortex A7 rev 4 (Cortex-A core)
                         Supported features: ARM_ISA THUMB2 JAZELLE THUMBEE ARMv4 Security_Ext
                         WB disabled EABT branch prediction enabled
                        LoUU:2 LoC:2 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: 
                         256KB/64B 8-way unified cache WB Read-Alloc Write-Alloc
                        real memory  = 1073741824 (1024 MB)
                        avail memory = 1043943424 (995 MB)
                        random device not loaded; using insecure entropy
                        random: <software, yarrow=""> initialized
                        simplebus0: <flattened device="" tree="" simple="" bus=""> on fdtbus0
                        gic0: <arm generic="" interrupt="" controller=""> mem 0x1c81000-0x1c81fff,0x1c82000-0x1c820ff on simplebus0
                        gic0: pn 0x10, arch 0x2, rev 0x1, implementer 0x43b nirqs 160
                        a20_cpu_cfg0: <a20 cpu="" configuration="" module=""> mem 0x1c25c00-0x1c25fff on simplebus0
                        a10_ccm0: <allwinner clock="" control="" module=""> mem 0x1c20000-0x1c203ff on simplebus0
                        a10_timer0: <allwinner a10="" a20="" timer=""> mem 0x1c20c00-0x1c20c8f irq 54 on simplebus0
                        Event timer "a10_timer Eventtimer" frequency 24000000 Hz quality 1000
                        Timecounter "a10_timer timer0" frequency 24000000 Hz quality 1000
                        a10wd0: <allwinner a10="" watchdog=""> mem 0x1c20c90-0x1c20c9f on simplebus0
                        gpio0: <allwinner gpio="" controller=""> mem 0x1c20800-0x1c20bff irq 60 on simplebus0
                        gpioc0: <gpio controller=""> on gpio0
                        gpiobus0: <gpio bus=""> on gpio0
                        ehci0: <allwinner integrated="" usb="" 2.0="" controller=""> mem 0x1c14000-0x1c14fff irq 71 on simplebus0
                        usbus0: EHCI version 1.0
                        usbus0 on ehci0
                        ehci1: <allwinner integrated="" usb="" 2.0="" controller=""> mem 0x1c1c000-0x1c1cfff irq 72 on simplebus0
                        usbus1: EHCI version 1.0
                        usbus1 on ehci1
                        uart0: <16750 or compatible> mem 0x1c28000-0x1c283ff irq 33 on simplebus0
                        uart0: console (115200,n,8,1)
                        Timecounters tick every 10.000 msec
                        usbus0: 480Mbps High Speed USB v2.0
                        usbus1: 480Mbps High Speed USB v2.0
                        ugen1.1: <allwinner> at usbus1
                        uhub0: <allwinner 1="" 9="" ehci="" root="" hub,="" class="" 0,="" rev="" 2.00="" 1.00,="" addr=""> on usbus1
                        ugen0.1: <allwinner> at usbus0
                        uhub1: <allwinner 1="" 9="" ehci="" root="" hub,="" class="" 0,="" rev="" 2.00="" 1.00,="" addr=""> on usbus0
                        random: unblocking device.
                        WARNING: WITNESS option enabled, expect reduced performance.
                        WARNING: DIAGNOSTIC option enabled, expect reduced performance.
                        uhub0: 1 port with 1 removable, self powered
                        uhub1: 1 port with 1 removable, self powered
                        Root mount waiting for: usbus1 usbus0
                        Root mount waiting for: usbus1
                        ugen1.2: <mode com=""> at usbus1
                        umass0: <mode 0="" 2="" com="" memodrive="" usb2.0,="" class="" 0,="" rev="" 2.00="" 1.10,="" addr=""> on usbus1
                        umass0:  SCSI over Bulk-Only; quirks = 0x4100
                        umass0:0:0:-1: Attached to scbus0
                        da0 at umass-sim0 bus 0 scbus0 target 0 lun 0
                        da0: <mode com="" memodrive="" usb2.0="" pmap=""> Removable Direct Access SCSI-0 device 
                        da0: Serial Number 90891A001774
                        da0: 40.000MB/s transfers
                        da0: 3822MB (7827456 512 byte sectors: 255H 63S/T 487C)
                        da0: quirks=0x2 <no_6_byte>Trying to mount root from ufs:/dev/da0 []...
                        WARNING: / was not properly dismounted
                        warning: no time-of-day clock registered, system time will not be set accurately
                        Setting hostuuid: f90b367e-3129-11e4-ae46-3f68a54463b5.
                        Setting hostid: 0xa395f285.
                        Entropy harvesting: interrupts ethernet point_to_point swi.
                        Starting file system checks:
                        /dev/da0: 12442 files, 67826 used, 186005 free (837 frags, 23146 blocks, 0.3% fragmentation)
                        Mounting local file systems:.
                        Writing entropy file:.
                        Setting hostname: banana-freebsd.
                        Starting Network: lo0.
                        lo0: flags=8049 <up,loopback,running,multicast>metric 0 mtu 16384
                        	options=600003 <rxcsum,txcsum,rxcsum_ipv6,txcsum_ipv6>inet6 ::1 prefixlen 128 
                        	inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1 
                        	inet 127.0.0.1 netmask 0xff000000 
                        	nd6 options=21 <performnud,auto_linklocal>Starting devd.
                        route: writing to routing socket: Network is unreachable
                        add net default: gateway 192.168.137.1 fib 0: Network is unreachable
                        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
                        Creating and/or trimming log files.
                        Starting syslogd.
                        ELF ldconfig path: /lib /usr/lib /usr/lib/compat
                        Clearing /tmp (X related).
                        Updating motd:.
                        Mounting late file systems:.
                        Performing sanity check on sshd configuration.
                        Starting sshd.
                        Starting sendmail_submit.
                        Starting sendmail_msp_queue.
                        Starting cron.
                        Starting background file system checks in 60 seconds.
                        
                        Sun Aug 31 16:33:37 UTC 2014
                        
                        FreeBSD/arm (banana-freebsd) (ttyu0)
                        
                        login:</performnud,auto_linklocal></rxcsum,txcsum,rxcsum_ipv6,txcsum_ipv6></up,loopback,running,multicast></no_6_byte></mode></mode></mode></allwinner></allwinner></allwinner></allwinner></allwinner></allwinner></gpio></gpio></allwinner></allwinner></allwinner></allwinner></a20></arm></flattened></software,>
                        

                        When I put following commands into boot script: help mii; mii device; mii info 1; then the output is:

                        U-Boot 2015.04-rc4-00064-gb81bdf6-dirty (Mar 26 2015 - 01:01:52) Allwinner Technology
                        
                        CPU:   Allwinner A20 (SUN7I)
                        I2C:   ready
                        DRAM:  1 GiB
                        MMC:   SUNXI SD/MMC: 0
                        *** Warning - bad CRC, using default environment
                        
                        In:    serial
                        Out:   serial
                        Err:   serial
                        SCSI:  SUNXI SCSI INIT
                        SATA link 0 timeout.
                        AHCI 0001.0100 32 slots 1 ports 3 Gbps 0x1 impl SATA mode
                        flags: ncq stag pm led clo only pmp pio slum part ccc apst 
                        Net:   dwmac.1c50000
                        starting USB...
                        USB0:   USB EHCI 1.00
                        scanning bus 0 for devices... cannot reset port 1!?
                        1 USB Device(s) found
                        USB1:   USB EHCI 1.00
                        scanning bus 1 for devices... 2 USB Device(s) found
                               scanning usb for storage devices... 1 Storage Device(s) found
                        Hit any key to stop autoboot:  2  1  0 
                        switch to partitions #0, OK
                        mmc0 is current device
                        Scanning mmc 0:1...
                        Found U-Boot script /boot.scr
                        reading /boot.scr
                        106 bytes read in 24 ms (3.9 KiB/s)
                        ## Executing script at 43100000
                        mii - MII utility commands
                        
                        Usage:
                        mii device                     - list available devices
                        mii device <devname>           - set current device
                        mii info   <addr>              - display MII PHY info
                        mii read   <addr> <reg>        - read  MII PHY <addr> register <reg>
                        mii write  <addr> <reg> <data> - write MII PHY <addr> register <reg>
                        mii dump   <addr> <reg>        - pretty-print <addr> <reg> (0-5 only)
                        Addr and/or reg may be ranges, e.g. 2-7.
                        MII devices: 'dwmac.1c50000' 
                        Current device: 'dwmac.1c50000'
                        PHY 0x01: OUI = 0x0732, Model = 0x11, Rev = 0x05,  10baseT, HDX
                        SCRIPT FAILED: continuing...
                        Failed to mount ext2 filesystem...
                        ** Unrecognized filesystem type **
                        scanning bus for devices...
                        Found 0 device(s).
                        
                        SCSI device 0: 
                            Device 0: not available
                        
                        USB device 0: 
                            Device 0: Vendor: Mode Com Rev: PMAP Prod: MemoDrive USB2.0
                                    Type: Removable Hard Disk
                                    Capacity: 3822.0 MB = 3.7 GB (7827456 x 512)
                        ... is now current device
                        dwmac.1c50000 Waiting for PHY auto negotiation to complete...... done
                        Speed: 1000, full duplex
                        BOOTP broadcast 1
                        BOOTP broadcast 2
                        BOOTP broadcast 3
                        BOOTP broadcast 4
                        BOOTP broadcast 5
                        BOOTP broadcast 6
                        BOOTP broadcast 7
                        BOOTP broadcast 8
                        BOOTP broadcast 9
                        BOOTP broadcast 10
                        BOOTP broadcast 11
                        BOOTP broadcast 12
                        BOOTP broadcast 13
                        BOOTP broadcast 14
                        BOOTP broadcast 15
                        BOOTP broadcast 16
                        BOOTP broadcast 17
                        
                        Retry time exceeded; starting again
                        Speed: 1000, full duplex</reg></addr></reg></addr></reg></addr></data></reg></addr></reg></addr></reg></addr></addr></devname>
                        

                        3. U-boot from Sunxi seems to be stuck on loading kernel command with CONFIG_CMD_MII. Didn't tried other settings.

                        UPDATE:
                        Well, it seems that I simply missed:

                        # PCI Ethernet NICs that use the common MII bus controller code.
                        # NOTE: Be sure to keep the 'device miibus' line in order to use these NICs!
                        device          miibus     # MII bus support
                        

                        in the kernel config. Will try this later.

                        UPDATE2:
                        Not exacly.. it is here already:
                        file: /usr/src/sys/arm/conf/BANANAPI

                        # Ethernet
                        device          loop
                        device          ether
                        device          mii
                        device          smscphy
                        #device         cpsw
                        device          bpf
                        
                        # USB ethernet support, requires miibus
                        device          miibus
                        device          gem
                        

                        UPDATE3:
                        After reading:

                        MII devices: 'dwmac.1c50000' 
                        Current device: 'dwmac.1c50000'
                        PHY 0x01: OUI = 0x0732, Model = 0x11, Rev = 0x05,  10baseT, HDX
                        

                        I've found something here:
                        http://linux-sunxi.org/Ethernet

                        Allwinner's A20, A31, and the upcoming A80 contain a MAC unit called GMAC. The controller supports MII and RGMII modes. On the A20 it is pin compatible with the EMAC in MII mode. The controller is an early version of the Synopsys DWMAC (DesignWare MAC), with some hardware specific glue.
                        
                        Mainline Kernel driver
                        DWMAC is supported by the stmmac driver. Platform glue for sunxi was merged in 3.14\. Device tree patches for supported A20 devices were merged in 3.15.
                        

                        Then driver docs here:
                        http://fxr.watson.org/fxr/source/Documentation/networking/stmmac.txt?v=linux-2.6;im=3
                        STMicroelectronics 10/100/1000 Synopsys Ethernet driver
                        but I'm unable to locate this for MII config in FreeBSD kernel.

                        bpi-freebsd-login.png
                        bpi-freebsd-login.png_thumb

                        1 Reply Last reply Reply Quote 0
                        • ?
                          Guest
                          last edited by Oct 3, 2015, 12:24 AM

                          I just wanted to add that FreeBSD11 Current now has an image available on the ARMv6 builds page. Just added..

                          ftp://ftp.freebsd.org/pub/FreeBSD/snapshots/arm/armv6/ISO-IMAGES/11.0/

                          1 Reply Last reply Reply Quote 0
                          • ?
                            Guest
                            last edited by Oct 3, 2015, 8:24 AM

                            I would like to hear anyones experiences with the -CURRENT build. I am wondering if the A20 version Router board works. Also i see an All Winner A31s Quad core version of BPi called M2…Adds extra usb's as well.

                            I really need HDMI for an embedded app I am working on so any experiences with that I would be grateful.

                            1 Reply Last reply Reply Quote 0
                            • T
                              toomeek
                              last edited by Apr 24, 2016, 2:37 PM Apr 24, 2016, 2:11 PM

                              Hello,

                              I'm sorry to say, but.. still no go.
                              Tested latest image FreeBSD-11.0-CURRENT-arm-armv6-BANANAPI-20160408-r297692.img.xz.
                              Output:

                              
                              U-Boot SPL 2015.04 (Apr 08 2016 - 06:36:29)
                              DRAM: 1024 MiB
                              CPU: 912000000Hz, AXI/AHB/APB: 3/2/2
                              
                              U-Boot 2015.04 (Apr 08 2016 - 06:36:29) Allwinner Technology
                              
                              CPU:   Allwinner A20 (SUN7I)
                              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
                              
                              HDMI connected: Setting up a 1024x768 hdmi console
                              In:    serial
                              Out:   vga
                              Err:   vga
                              SCSI:  SUNXI SCSI INIT
                              SATA link 0 timeout.
                              AHCI 0001.0100 32 slots 1 ports 3 Gbps 0x1 impl SATA mode
                              flags: ncq stag pm led clo only pmp pio slum part ccc apst 
                              Net:   dwmac.1c50000
                              starting USB...
                              USB0:   USB EHCI 1.00
                              scanning bus 0 for devices... 1 USB Device(s) found
                              USB1:   USB EHCI 1.00
                              scanning bus 1 for devices... cannot reset port 1!?
                              1 USB Device(s) found
                                     scanning usb for storage devices... 0 Storage Device(s) found
                              Hit any key to stop autoboot:  2  1  0 
                              Booting from: mmc 0 ubldr
                              reading ubldr
                              262685 bytes read in 72 ms (3.5 MiB/s)
                              ## Starting application at 0x42000094 ...
                              Consoles: U-Boot console  
                              
                              Compatible U-Boot API signature found @0x7f235458
                              
                              FreeBSD/armv6 U-Boot loader, Revision 1.2
                              
                              (root@releng2.nyi.freebsd.org, Fri Apr  8 07:03:08 UTC 2016)
                              
                              DRAM: 1024MB
                              
                              MMC Device 1 not found
                              MMC Device 2 not found
                              MMC Device 3 not found
                              MMC Device 1 not found
                              Number of U-Boot devices: 3
                              
                              U-Boot env: loaderdev='mmc 0'
                              
                              Found U-Boot device: disk
                              
                                Checking unit=1 slice= <auto>partition=<auto>... good.
                              
                              Booting from disk1s2a:
                              
                              |/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/boot/kernel/kernel data=0x634ca4+0x12735c /-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|syms=[0x4+0x8acb0/-\|+0x4+0x9eae7/-\|/]
                              
                              Hit [Enter] to boot immediately, or any other key for command prompt.
                              
                              Booting [/boot/kernel/kernel] in 9 seconds... 
                              Booting [/boot/kernel/kernel] in 8 seconds... 
                              Booting [/boot/kernel/kernel] in 7 seconds... 
                              Booting [/boot/kernel/kernel] in 6 seconds... 
                              Booting [/boot/kernel/kernel] in 5 seconds... 
                              Booting [/boot/kernel/kernel] in 4 seconds... 
                              Booting [/boot/kernel/kernel] in 3 seconds... 
                              Booting [/boot/kernel/kernel] in 2 seconds... 
                              Booting [/boot/kernel/kernel] in 1 second... 
                              Booting [/boot/kernel/kernel]...               
                              
                              -\|/-\|/-\|/-\|/-\|/-\/boot/dtb/bananapi.dtb |size=0x80ef
                              
                              Loaded DTB from file 'bananapi.dtb'.
                              
                              /-\|/-Kernel entry at 0x0x42200100...
                              
                              Kernel args: (null)
                              
                              KDB: debugger backends: ddb
                              KDB: current backend: ddb
                              Copyright (c) 1992-2016 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 11.0-CURRENT #0 r297692: Fri Apr  8 07:10:09 UTC 2016
                                  root@releng2.nyi.freebsd.org:/usr/obj/arm.armv6/usr/src/sys/A20 arm
                              FreeBSD clang version 3.8.0 (tags/RELEASE_380/final 262564) (based on LLVM 3.8.0)
                              WARNING: WITNESS option enabled, expect reduced performance.
                              VT: init without driver.
                              CPU: Cortex A7 rev 4 (Cortex-A core)
                               Supported features: ARM_ISA THUMB2 JAZELLE THUMBEE ARMv4 Security_Ext
                               WB enabled LABT branch prediction disabled
                              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: 
                               256KB/64B 8-way unified cache WB Read-Alloc Write-Alloc
                              real memory  = 1073741824 (1024 MB)
                              avail memory = 1036029952 (988 MB)
                              FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
                              random: entropy device external interface
                              kbd0 at kbdmux0
                              ofwbus0: <open firmware="" device="" tree="">aw_ccu0 on ofwbus0
                              aw_oscclk0: <allwinner oscillator="" clock="">mem 0x1c20050-0x1c20053 on aw_ccu0
                              clk_fixed0: <fixed clock="">on aw_ccu0
                              aw_pll0: <allwinner pll="" clock="">mem 0x1c20000-0x1c20003 on aw_ccu0
                              aw_pll1: <allwinner pll="" clock="">mem 0x1c20008-0x1c2000f on aw_ccu0
                              aw_pll2: <allwinner pll="" clock="">mem 0x1c20020-0x1c20023 on aw_ccu0
                              aw_pll3: <allwinner pll="" clock="">mem 0x1c20028-0x1c2002b on aw_ccu0
                              aw_cpuclk0: <allwinner cpu="" clock="">mem 0x1c20054-0x1c20057 on aw_ccu0
                              aw_axiclk0: <allwinner axi="" clock="">mem 0x1c20054-0x1c20057 on aw_ccu0
                              aw_ahbclk0: <allwinner ahb="" clock="">mem 0x1c20054-0x1c20057 on aw_ccu0
                              aw_gate0: <allwinner ahb="" clock="" gates="">mem 0x1c20060-0x1c20067 on aw_ccu0
                              aw_apbclk0: <allwinner apb="" clock="">mem 0x1c20054-0x1c20057 on aw_ccu0
                              aw_gate1: <allwinner apb0="" clock="" gates="">mem 0x1c20068-0x1c2006b on aw_ccu0
                              aw_apbclk1: <allwinner apb="" clock="">mem 0x1c20058-0x1c2005b on aw_ccu0
                              aw_gate2: <allwinner apb1="" clock="" gates="">mem 0x1c2006c-0x1c2006f on aw_ccu0
                              aw_modclk0: <allwinner module="" clock="">mem 0x1c20080-0x1c20083 on aw_ccu0
                              aw_modclk1: <allwinner module="" clock="">mem 0x1c20084-0x1c20087 on aw_ccu0
                              aw_mmcclk0: <allwinner mmc="" clock="">mem 0x1c20088-0x1c2008b on aw_ccu0
                              aw_mmcclk1: <allwinner mmc="" clock="">mem 0x1c2008c-0x1c2008f on aw_ccu0
                              aw_mmcclk2: <allwinner mmc="" clock="">mem 0x1c20090-0x1c20093 on aw_ccu0
                              aw_mmcclk3: <allwinner mmc="" clock="">mem 0x1c20094-0x1c20097 on aw_ccu0
                              aw_modclk2: <allwinner module="" clock="">mem 0x1c20098-0x1c2009b on aw_ccu0
                              aw_modclk3: <allwinner module="" clock="">mem 0x1c2009c-0x1c2009f on aw_ccu0
                              aw_modclk4: <allwinner module="" clock="">mem 0x1c200a0-0x1c200a3 on aw_ccu0
                              aw_modclk5: <allwinner module="" clock="">mem 0x1c200a4-0x1c200a7 on aw_ccu0
                              aw_modclk6: <allwinner module="" clock="">mem 0x1c200a8-0x1c200ab on aw_ccu0
                              aw_modclk7: <allwinner module="" clock="">mem 0x1c200ac-0x1c200af on aw_ccu0
                              aw_modclk8: <allwinner module="" clock="">mem 0x1c200b0-0x1c200b3 on aw_ccu0
                              aw_modclk9: <allwinner module="" clock="">mem 0x1c200b4-0x1c200b7 on aw_ccu0
                              aw_modclk10: <allwinner module="" clock="">mem 0x1c200c4-0x1c200c7 on aw_ccu0
                              aw_usbclk0: <allwinner usb="" clocks="">mem 0x1c200cc-0x1c200cf on aw_ccu0
                              aw_modclk11: <allwinner module="" clock="">mem 0x1c200d4-0x1c200d7 on aw_ccu0
                              aw_gate3: <allwinner dram="" clock="" gates="">mem 0x1c20100-0x1c20103 on aw_ccu0
                              aw_codecclk0: <allwinner codec="" clock="">mem 0x1c20140-0x1c20143 on aw_ccu0
                              clk_fixed1: <fixed clock="">on aw_ccu0
                              clk_fixed2: <fixed clock="">on aw_ccu0
                              aw_gmacclk0: <allwinner module="" clock="">mem 0x1c20164-0x1c20167 on aw_ccu0
                              clk_fixed3: <fixed factor="" clock="">on aw_ccu0
                              aw_pll4: <allwinner pll="" clock="">mem 0x1c20010-0x1c20013 on aw_ccu0
                              aw_pll5: <allwinner pll="" clock="">mem 0x1c20030-0x1c20033 on aw_ccu0
                              aw_hdmiclk0: <allwinner hdmi="" clock="">mem 0x1c20150-0x1c20153 on aw_ccu0
                              aw_lcdclk0: <allwinner lcd="" ch0="" clock="">mem 0x1c20118-0x1c2011b on aw_ccu0
                              aw_lcdclk1: <allwinner lcd="" ch1="" clock="">mem 0x1c2012c-0x1c2012f on aw_ccu0
                              aw_debeclk0: <allwinner display="" engine="" backend="" clock="">mem 0x1c20104-0x1c20107 on aw_ccu0
                              simplebus0: <flattened device="" tree="" simple="" bus="">on ofwbus0
                              regfix0: <fixed regulator="">on ofwbus0
                              regfix1: <fixed regulator="">on ofwbus0
                              regfix2: <fixed regulator="">on ofwbus0
                              regfix3: <fixed regulator="">on ofwbus0
                              regfix4: <fixed regulator="">on ofwbus0
                              regfix5: <fixed regulator="">on ofwbus0
                              regfix6: <fixed regulator="">on ofwbus0
                              gpio0: <allwinner gpio="" pinmux="" controller="">mem 0x1c20800-0x1c20bff irq 10024 on simplebus0
                              gpiobus0: <ofw gpio="" bus="">on gpio0
                              gic0: <arm generic="" interrupt="" controller="">mem 0x1c81000-0x1c81fff,0x1c82000-0x1c82fff,0x1c84000-0x1c85fff,0x1c86000-0x1c87fff irq 10055 on simplebus0
                              gic0: pn 0x10, arch 0x2, rev 0x1, implementer 0x43b irqs 160
                              generic_timer0: <armv7 generic="" timer="">irq 10000,10001,10002,10003 on ofwbus0
                              Timecounter "ARM MPCore Timecounter" frequency 24000000 Hz quality 1000
                              Event timer "ARM MPCore Eventtimer" frequency 24000000 Hz quality 1000
                              rtc0: <allwinner rtc="">mem 0x1c20d00-0x1c20d1f irq 10031 on simplebus0
                              cpulist0: <open firmware="" cpu="" group="">on ofwbus0
                              cpu0: <open firmware="" cpu="">on cpulist0
                              cpu1: <open firmware="" cpu="">on cpulist0
                              a10_sramc0: <allwinner sramc="" module="">mem 0x1c00000-0x1c0002f on simplebus0
                              a10dmac0: <allwinner dma="" controller="">mem 0x1c02000-0x1c02fff irq 10007 on simplebus0
                              a10_mmc0: <allwinner integrated="" mmc="" sd="" controller="">mem 0x1c0f000-0x1c0ffff irq 10011 on simplebus0
                              mmc0: <mmc sd="" bus="">on a10_mmc0
                              awusbphy0: <allwinner usb="" phy="">mem 0x1c13400-0x1c1340f,0x1c14800-0x1c14803,0x1c1c800-0x1c1c803 on simplebus0
                              ehci0: <allwinner integrated="" usb="" 2.0="" controller="">mem 0x1c14000-0x1c140ff irq 10016 on simplebus0
                              usbus0: EHCI version 1.0
                              usbus0 on ehci0
                              ahci0: <allwinner integrated="" ahci="" controller="">mem 0x1c18000-0x1c18fff irq 10020 on simplebus0
                              ahci0: AHCI v1.10 with 1 3Gbps ports, Port Multiplier not supported
                              ahci0: quirks=0x2 <nopmp>ahcich0: <ahci channel="">at channel 0 on ahci0
                              ehci1: <allwinner integrated="" usb="" 2.0="" controller="">mem 0x1c1c000-0x1c1c0ff irq 10021 on simplebus0
                              usbus1: EHCI version 1.0
                              usbus1 on ehci1
                              gpioled0: <gpio led="">at pin 149 on gpiobus0
                              gpioc0: <gpio controller="">on gpio0
                              aw_wdog0: <allwinner a10="" watchdog="">mem 0x1c20c90-0x1c20c9f on simplebus0
                              pcm0: <allwinner audio="" codec="">mem 0x1c22c00-0x1c22c3f irq 10035 on simplebus0
                              uart0: <16750 or compatible> mem 0x1c28000-0x1c283ff irq 10037 on simplebus0
                              uart0: console (115384,n,8,1)
                              uart1: <16750 or compatible> mem 0x1c28c00-0x1c28fff irq 10040 on simplebus0
                              uart2: <16750 or compatible> mem 0x1c29c00-0x1c29fff irq 10044 on simplebus0
                              iichb0: <allwinner integrated="" i2c="" bus="" controller="">mem 0x1c2ac00-0x1c2afff irq 10045 on simplebus0
                              iicbus0: <ofw i2c="" bus="">on iichb0
                              iic0: <i2c generic="" i="" o="">on iicbus0
                              axp209_pmu0: <x-power axp209="" power="" management="" unit="">at addr 0x68 irq 10058 on iicbus0
                              iichb1: <allwinner integrated="" i2c="" bus="" controller="">mem 0x1c2b400-0x1c2b7ff irq 10047 on simplebus0
                              iicbus1: <ofw i2c="" bus="">on iichb1
                              iic1: <i2c generic="" i="" o="">on iicbus1
                              dwc0: <a20 gigabit="" ethernet="" controller="">mem 0x1c50000-0x1c5ffff irq 10050 on simplebus0
                              dwc0: Can't reset DWC.
                              device_attach: dwc0 attach returned 6
                              a10hdmi0: <allwinner hdmi="" tx="">mem 0x1c16000-0x1c16fff on simplebus0
                              pcm1: <allwinner hdmi="" audio="">on simplebus0
                              fb0: <allwinner framebuffer="">mem 0x1e60000-0x1e6ffff,0x1c0c000-0x1c0cfff on simplebus0
                              cryptosoft0: <software crypto="">Timecounters tick every 10.000 msec
                              usbus0: 480Mbps High Speed USB v2.0
                              usbus1: 480Mbps High Speed USB v2.0
                              ugen1.1: <allwinner>at usbus1
                              uhub0: <allwinner 1="" 9="" ehci="" root="" hub,="" class="" 0,="" rev="" 2.00="" 1.00,="" addr="">on usbus1
                              ugen0.1: <allwinner>at usbus0
                              uhub1: <allwinner 1="" 9="" ehci="" root="" hub,="" class="" 0,="" rev="" 2.00="" 1.00,="" addr="">on usbus0
                              mmcsd0: 17GB <sdhc 29="" 2011="" sd =""  ="" 1.0="" sn="" 21100adb="" mfg="" 06="" by="" ad="">at mmc0 50.0MHz/4bit/65535-block
                              fbd0 on fb0
                              VT: initialize with new VT driver "fb".
                              Release APs
                              WARNING: WITNESS option enabled, expect reduced performance.
                              Trying to mount root from ufs:/dev/ufs/rootfs [rw]...
                              WARNING: /releng/11-armv6-BANANAPI-snap/usr/obj/usr/src/release/ufs was not properly dismounted
                              uhub1: 1 port with 1 removable, self powered
                              uhub0: 1 port with 1 removable, self powered
                              Growing root partition to fill device
                              mmcsd0s2 resized
                              mmcsd0s2a resized
                              growfs: requested size 15GB is not larger than the current filesystem size 15GB
                              /etc/rc: WARNING: hostid: unable to figure out a UUID from DMI data, generating a new one
                              Setting hostuuid: 2697f859-1dd2-11b2-a3b4-b7bcc1a39a7a.
                              Setting hostid: 0x7340ff36.
                              No suitable dump device was found.
                              Starting file system checks:
                              /dev/ufs/rootfs: 20070 files, 199812 used, 3709523 free (211 frags, 463664 blocks, 0.0% fragmentation)
                              Mounting local file systems:.
                              Setting hostname: a20.
                              Setting up harvesting:[UMA],[FS_ATIME],SWI,INTERRUPT,NET_NG,NET_ETHER,NET_TUN,MOUSE,KEYBOARD,ATTACH,CACHED
                              Feeding entropy:random: unblocking device.
                              .
                              Starting Network: lo0.
                              lo0: flags=8049 <up,loopback,running,multicast>metric 0 mtu 16384
                              options=600003 <rxcsum,txcsum,rxcsum_ipv6,txcsum_ipv6>inet6 ::1 prefixlen 128 
                              inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1 
                              inet 127.0.0.1 netmask 0xff000000 
                              groups: lo 
                              nd6 options=21 <performnud,auto_linklocal>ELF ldconfig path: /lib /usr/lib /usr/lib/compat
                              Soft Float compatibility ldconfig path:
                              Starting devd.
                              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
                              Generating host.conf.
                              Creating and/or trimming log files.
                              Starting syslogd.
                              Clearing /tmp (X related).
                              Updating motd:.
                              Mounting late file systems:.
                              Configuring vt: blanktime.
                              Generating RSA host key.
                              2048 SHA256:some-SHA-key-here root@a20 (RSA)
                              Generating ECDSA host key.
                              256 SHA256:some-SHA-key-here root@a20 (ECDSA)
                              Generating ED25519 host key.
                              256 SHA256:some-SHA-key-here root@a20 (ED25519)
                              Performing sanity check on sshd configuration.
                              Could not load host key: /etc/ssh/ssh_host_dsa_key
                              Starting sshd.
                              Could not load host key: /etc/ssh/ssh_host_dsa_key
                              Starting cron.
                              Starting background file system checks in 60 seconds.
                              lock order reversal:
                               1st 0xc40bcb74 ufs (ufs) @ /usr/src/sys/kern/vfs_subr.c:2498
                               2nd 0xd9228758 bufwait (bufwait) @ /usr/src/sys/ufs/ffs/ffs_vnops.c:263
                               3rd 0xc4694154 ufs (ufs) @ /usr/src/sys/kern/vfs_subr.c:2498
                              stack backtrace:
                              mount: /dev/ufs/rootfs: Device busy
                              
                              Thu Jan  1 00:01:28 UTC 1970
                              
                              FreeBSD/arm (a20) (ttyu0)
                              
                              login:</performnud,auto_linklocal></rxcsum,txcsum,rxcsum_ipv6,txcsum_ipv6></up,loopback,running,multicast></sdhc></allwinner></allwinner></allwinner></allwinner></software></allwinner></allwinner></allwinner></a20></i2c></ofw></allwinner></x-power></i2c></ofw></allwinner></allwinner></allwinner></gpio></gpio></allwinner></ahci></nopmp></allwinner></allwinner></allwinner></mmc></allwinner></allwinner></allwinner></open></open></open></allwinner></armv7></arm></ofw></allwinner></fixed></fixed></fixed></fixed></fixed></fixed></fixed></flattened></allwinner></allwinner></allwinner></allwinner></allwinner></allwinner></fixed></allwinner></fixed></fixed></allwinner></allwinner></allwinner></allwinner></allwinner></allwinner></allwinner></allwinner></allwinner></allwinner></allwinner></allwinner></allwinner></allwinner></allwinner></allwinner></allwinner></allwinner></allwinner></allwinner></allwinner></allwinner></allwinner></allwinner></allwinner></allwinner></allwinner></allwinner></allwinner></allwinner></allwinner></fixed></allwinner></open></auto></auto> 
                              

                              However, some hints:
                              1. HDMI output is available until kernel loads, then no output
                              2. No need to use SD card and external USB storage, all boots from SD card
                              3. GMAC device seems to be detected:

                              dwc0: <a20 gigabit="" ethernet="" controller="">mem 0x1c50000-0x1c5ffff irq 10050 on simplebus0
                              dwc0: Can't reset DWC.
                              device_attach: dwc0 attach returned 6</a20>

                              But I cannot do anything more since USB keyboard no longer works in this kernel version.
                              I could try putting different commands into files like /boot/loader.conf or /etc/rc.local if You have an idea?

                              1 Reply Last reply Reply Quote 0
                              • First post
                                Last post
                              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                                This community forum collects and processes your personal information.
                                consent.not_received