BananaPi

For further Allwinner-based boards, please refer to soc.allwinner.sunxi

Hardware highlights

Model Ports
BananaPi 2x USB, 1x 10/100/1000 ethernet, MMC, SATA, RCA video-out, HDMI, sound

Availability

The board is available from various vendors, including the manufacturer itself, see here for BananaPi.

Serial

You can use your usual serial levelshifter. Pinout is:

                           GND TX RX
             J12   o  o  o  o  o  o
{SD slot}          o  o  o  o

Status

  • Please refer to soc.allwinner.sunxi regarding the Allwinner A20 SOC.
  • u-boot and DTS file yet to be pushed
  • GMAC is not working due to some subtle PHY differences

Installation process

Please refer to soc.allwinner.sunxi.

dmesg

U-Boot SPL 2014.01-rc1 (Jun 01 2014 - 20:29:36)                                 
Board: bananapi                                                                 
DRAM: 1024 MiB                                                                  
CPU: 960000000Hz, AXI/AHB/APB: 3/2/2                                            
spl: not an uImage at 1600                                                      
                                                                                
                                                                                
U-Boot 2014.01-rc1 (Jun 01 2014 - 20:29:36) Allwinner Technology                
                                                                                
CPU:   Allwinner A20 (SUN7I)                                                    
Board: bananapi                                                                 
I2C:   ready                                                                    
DRAM:  1 GiB                                                                    
WARNING: Caches not enabled                                                     
MMC:   SUNXI SD/MMC: 0                                                          
*** Warning - bad CRC, using default environment                                
                                                                                
In:    serial                                                                   
Out:   serial                                                                   
Err:   serial                                                                   
Net:   mii0                                                                     
Warning: failed to set MAC address                                              
                                                                                
Hit any key to stop autoboot:  0                                                
reading uEnv.txt                                                                
240 bytes read in 4 ms (58.6 KiB/s)                                             
Loaded environment from uEnv.txt                                                
Running uenvcmd ...                                                             
reading uImage                                                                  
2499856 bytes read in 164 ms (14.5 MiB/s)                                       
reading dtb                                                                     
19498 bytes read in 6 ms (3.1 MiB/s)                                            
## Booting kernel from Legacy Image at 46000000 ...                             
   Image Name:   ARM OpenWrt Linux-3.13.7                                       
   Created:      2014-06-01  18:32:02 UTC                                       
   Image Type:   ARM Linux Kernel Image (uncompressed)                          
   Data Size:    2499792 Bytes = 2.4 MiB                                        
   Load Address: 40008000                                                       
   Entry Point:  40008000                                                       
   Verifying Checksum ... OK                                                    
## Flattened Device Tree blob at 49000000                                       
   Booting using the fdt blob at 0x49000000                                     
   Loading Kernel Image ... OK                                                  
   Using Device Tree in place at 49000000, end 49007c29                         
                                                                                
Starting kernel ...                                                             
                                                                                
[    0.000000] Booting Linux on physical CPU 0x0                                
[    0.000000] Linux version 3.13.7 (wigyori@trabant) (gcc version 4.8.3 (OpenWr
t/Linaro GCC 4.8-2014.04 r40896) ) #1 SMP PREEMPT Sun Jun 1 20:31:53 CEST 2014  
[    0.000000] CPU: ARMv7 Processor [410fc074] revision 4 (ARMv7), cr=10c5387d  
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instructio
n cache                                                                         
[    0.000000] Machine model: Lemaker bananaPi                                  
[    0.000000] Memory policy: Data cache writealloc                             
[    0.000000] psci: probing function IDs from device-tree                      
[    0.000000] PERCPU: Embedded 7 pages/cpu @c0d72000 s7040 r8192 d13440 u32768 
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pag
es: 260624                                                                      
[    0.000000] Kernel command line: console=ttyS0,115200 earlyprintk rootwait ro
ot=/dev/mmcblk0p2                                                               
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)             
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes) 
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)   
[    0.000000] Memory: 1033936K/1048576K available (3539K kernel code, 157K rwda
ta, 988K rodata, 186K init, 604K bss, 14640K reserved, 270336K highmem)         
[    0.000000] Virtual kernel memory layout:                                    
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)                
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)                
[    0.000000]     vmalloc : 0xf0000000 - 0xff000000   ( 240 MB)                
[    0.000000]     lowmem  : 0xc0000000 - 0xef800000   ( 760 MB)                
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)                
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)                
[    0.000000]       .text : 0xc0008000 - 0xc0473f04   (4528 kB)                
[    0.000000]       .init : 0xc0474000 - 0xc04a2b80   ( 187 kB)                
[    0.000000]       .data : 0xc04a4000 - 0xc04cb5f8   ( 158 kB)                
[    0.000000]        .bss : 0xc04cb5f8 - 0xc0562960   ( 605 kB)                
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1       
[    0.000000] Preemptible hierarchical RCU implementation.                     
[    0.000000]  RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.            
[    0.000000] NR_IRQS:16 nr_irqs:16 16                                         
[    0.000000] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 17895
6969942ns                                                                       
[    0.000000] sched_clock: 32 bits at 160MHz, resolution 6ns, wraps every 26843
545593ns                                                                        
[    0.000000] Console: colour dummy device 80x30                               
[    0.000197] Calibrating delay loop... 1915.28 BogoMIPS (lpj=9576448)         
[    0.059903] pid_max: default: 32768 minimum: 301                             
[    0.060082] Mount-cache hash table entries: 512                              
[    0.065042] CPU: Testing write buffer coherency: ok                          
[    0.065396] /cpus/cpu@0 missing clock-frequency property                     
[    0.065414] /cpus/cpu@1 missing clock-frequency property                     
[    0.065428] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000                 
[    0.065459] Setting up static identity map for 0x40011938 - 0x4001196c       
[    0.120583] CPU1: Booted secondary processor                                 
[    0.180166] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001                 
[    0.180272] Brought up 2 CPUs                                                
[    0.180294] SMP: Total of 2 processors activated.                            
[    0.180303] CPU: All CPU(s) started in HYP mode.                             
[    0.180308] CPU: Virtualization extensions available.                        
[    0.184865] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7
 rev 4                                                                          
[    0.185140] pinctrl core: initialized pinctrl subsystem                      
[    0.185484] regulator-dummy: no parameters                                   
[    0.185799] NET: Registered protocol family 16                               
[    0.186102] DMA: preallocated 256 KiB pool for atomic coherent allocations   
[    0.193533] bio: create slab <bio-0> at 0                                    
[    0.194037] reg-fixed-voltage ahci-5v.3: could not find pctldev for node /soc
@01c00000/pinctrl@01c20800/ahci_pwr_pin@0, deferring probe                      
[    0.194065] platform ahci-5v.3: Driver reg-fixed-voltage requests probe defer
ral                                                                             
[    0.194093] reg-fixed-voltage usb1-vbus.4: could not find pctldev for node /s
oc@01c00000/pinctrl@01c20800/usb1_vbus_pin@0, deferring probe                   
[    0.194108] platform usb1-vbus.4: Driver reg-fixed-voltage requests probe def
erral                                                                           
[    0.194131] reg-fixed-voltage usb2-vbus.5: could not find pctldev for node /s
oc@01c00000/pinctrl@01c20800/usb2_vbus_pin@0, deferring probe                   
[    0.194145] platform usb2-vbus.5: Driver reg-fixed-voltage requests probe def
erral                                                                           
[    0.194540] SCSI subsystem initialized                                       
[    0.194971] usbcore: registered new interface driver usbfs                   
[    0.195031] usbcore: registered new interface driver hub                     
[    0.195139] usbcore: registered new device driver usb                        
[    0.195257] pps_core: LinuxPPS API ver. 1 registered                         
[    0.195264] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giome
tti <giometti@linux.it>                                                         
[    0.195294] PTP clock support registered                                     
[    0.196054] Switched to clocksource timer                                    
[    0.200181] Clockevents: could not switch to one-shot mode:                  
[    0.200191] Clockevents: could not switch to one-shot mode: dummy_timer is no
t functional.                                                                   
[    0.200201] Could not switch to high resolution mode on CPU 1                
[    0.200212]  dummy_timer is not functional.                                  
[    0.200219] Could not switch to high resolution mode on CPU 0                
[    0.201563] NET: Registered protocol family 2                                
[    0.202413] TCP established hash table entries: 8192 (order: 3, 32768 bytes) 
[    0.202500] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)        
[    0.202621] TCP: Hash tables configured (established 8192 bind 8192)         
[    0.202705] TCP: reno registered                                             
[    0.202720] UDP hash table entries: 512 (order: 2, 16384 bytes)              
[    0.202777] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)         
[    0.203105] NET: Registered protocol family 1                                
[    0.204320] audit: initializing netlink socket (disabled)                    
[    0.204375] type=2000 audit(0.190:1): initialized                            
[    0.204986] bounce pool size: 64 pages                                       
[    0.211227] VFS: Disk quotas dquot_6.5.2                                     
[    0.211492] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)       
[    0.213098] squashfs: version 4.0 (2009/01/31) Phillip Lougher               
[    0.213109] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORIT
Y) (c) 2001-2006 Red Hat, Inc.                                                  
[    0.213614] msgmni has been set to 1491                                      
[    0.215156] io scheduler noop registered                                     
[    0.215173] io scheduler deadline registered                                 
[    0.215213] io scheduler cfq registered (default)                            
[    0.215468] platform 1c13400.phy: Driver sun4i-usb-phy requests probe deferra
l                                                                               
[    0.217699] sunxi-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver      
[    0.250732] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled         
[    0.272640] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 33, base_baud = 15
00000) is a U6_16550A                                                           
[    0.842167] console [ttyS0] enabled                                          
[    0.867389] dw-apb-uart 1c29800.serial: Couldn't set LCR to 0                
[    0.874132] dw-apb-uart 1c29800.serial: Couldn't set LCR to 0                
[    0.879909] 1c29800.serial: ttyS1 at MMIO 0x1c29800 (irq = 51, base_baud = 15
00000) is a U6_16550A                                                           
[    0.910607] dw-apb-uart 1c29c00.serial: Couldn't set LCR to 0                
[    0.917351] dw-apb-uart 1c29c00.serial: Couldn't set LCR to 0                
[    0.923127] 1c29c00.serial: ttyS2 at MMIO 0x1c29c00 (irq = 52, base_baud = 15
00000) is a U6_16550A                                                           
[    0.932773] platform 1c18000.sata: Driver ahci-sunxi requests probe deferral 
[    0.942177] stmmaceth 1c50000.ethernet: dummy supplies not allowed           
[    0.948362] stmmaceth 1c50000.ethernet: no regulator found                   
[    0.953950] stmmaceth 1c50000.ethernet: no reset control found               
[    0.959777]  Ring mode enabled                                               
[    0.962846]  No HW DMA feature register supported                            
[    0.967371]  Normal descriptors                                              
[    0.970704]  TX Checksum insertion supported                                 
[    0.978227] libphy: stmmac: probed                                           
[    0.981661] eth0: No PHY found                                               
[    1.010191] stmmac_pltfr_probe: main driver probe failed                     
[    1.015489] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver       
[    1.022250] ehci-platform: EHCI generic platform driver                      
[    1.027597] platform 1c14000.usb: Driver ehci-platform requests probe deferra
l                                                                               
[    1.034926] platform 1c1c000.usb: Driver ehci-platform requests probe deferra
l                                                                               
[    1.042307] usbcore: registered new interface driver usb-storage             
[    1.048492] mousedev: PS/2 mouse device common for all mice                  
[    1.055443] sunxi-wdt 1c20c90.watchdog: Watchdog enabled (timeout=16 sec, now
ayout=0)                                                                        
[    1.063749] sunxi-mmc 1c0f000.mmc: dummy supplies not allowed                
[    1.069903] sunxi-mmc 1c0f000.mmc: Got CD GPIO #234.                         
[    1.075088] sunxi-mmc 1c0f000.mmc: base:0xf00f8000 irq:64                    
[    1.081263] TCP: cubic registered                                            
[    1.084584] Initializing XFRM netlink socket                                 
[    1.088875] NET: Registered protocol family 17                               
[    1.093463] 8021q: 802.1Q VLAN Support v1.8                                  
[    1.097769] Registering SWP/SWPB emulation handler                           
[    1.103067] registered taskstats version 1                                   
[    1.107790] ahci-5v: 5000 mV                                                 
[    1.111171] usb1-vbus: 5000 mV                                               
[    1.114595] usb2-vbus: 5000 mV                                               
[    1.180152] ahci-sunxi 1c18000.sata: controller can't do PMP, turning off CAP
_PMP                                                                            
[    1.187639] ahci-sunxi 1c18000.sata: forcing PORTS_IMPL to 0x1               
[    1.193533] ahci-sunxi 1c18000.sata: AHCI 0001.0100 32 slots 1 ports 3 Gbps 0
x1 impl platform mode                                                           
[    1.202499] ahci-sunxi 1c18000.sata: flags: ncq sntf pm led clo only pio slum
 part ccc                                                                       
[    1.211223] scsi0 : ahci_platform                                            
[    1.214839] ata1: SATA max UDMA/133 mmio [mem 0x01c18000-0x01c18fff] port 0x1
00 irq 88                                                                       
[    1.223138] ehci-platform 1c14000.usb: EHCI Host Controller                  
[    1.228746] ehci-platform 1c14000.usb: new USB bus registered, assigned bus n
umber 1                                                                         
[    1.236616] ehci-platform 1c14000.usb: irq 71, io mem 0x01c14000             
[    1.260161] ehci-platform 1c14000.usb: USB 2.0 started, EHCI 1.00            
[    1.266442] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002    
[    1.273239] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=
1                                                                               
[    1.280462] usb usb1: Product: EHCI Host Controller                          
[    1.285335] usb usb1: Manufacturer: Linux 3.13.7 ehci_hcd                    
[    1.290735] usb usb1: SerialNumber: 1c14000.usb                              
[    1.295745] hub 1-0:1.0: USB hub found                                       
[    1.299534] hub 1-0:1.0: 1 port detected                                     
[    1.303970] ehci-platform 1c1c000.usb: EHCI Host Controller                  
[    1.309562] ehci-platform 1c1c000.usb: new USB bus registered, assigned bus n
umber 2                                                                         
[    1.317411] ehci-platform 1c1c000.usb: irq 72, io mem 0x01c1c000             
[    1.340153] ehci-platform 1c1c000.usb: USB 2.0 started, EHCI 1.00            
[    1.346432] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002    
[    1.353232] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=
1                                                                               
[    1.360454] usb usb2: Product: EHCI Host Controller                          
[    1.365327] usb usb2: Manufacturer: Linux 3.13.7 ehci_hcd                    
[    1.370726] usb usb2: SerialNumber: 1c1c000.usb                              
[    1.375659] hub 2-0:1.0: USB hub found                                       
[    1.379441] hub 2-0:1.0: 1 port detected                                     
[    1.383668] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)          
[    1.497353] mmc0: host does not support reading read-only switch. assuming wr
ite-enable.                                                                     
[    1.570164] ata1: SATA link down (SStatus 0 SControl 300)                    
[    1.590253] Waiting for root device /dev/mmcblk0p2...                        
[    1.690149] mmc0: new high speed SDHC card at address 0007                   
[    1.696008] isa bounce pool size: 16 pages                                   
[    1.700308] mmcblk0: mmc0:0007 SD4GB 3.70 GiB                                
[    1.706126]  mmcblk0: p1 p2                                                  
[    1.812023] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incomp
atibilities                                                                     
[    1.821843] EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to feature incomp
atibilities                                                                     
[    1.834761] EXT4-fs (mmcblk0p2): mounted filesystem without journal. Opts: (n
ull)                                                                            
[    1.842337] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.    
[    1.849351] Freeing unused kernel memory: 184K (c0474000 - c04a2000)         
procd: Console is alive                                                         
procd: - watchdog -                                                             
procd: - preinit -                                                              
probing /dev/mmcblk0 for uboot env data                                         
Detected generic sunxi // generic sunxi                                         
[    2.161620] random: mktemp urandom read with 18 bits of entropy available    
Press the [f] key and hit [enter] to enter failsafe mode                        
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level    
mounting /dev/root[    5.247734] EXT4-fs (mmcblk0p2): warning: mounting unchecke
d fs, running e2fsck is recommended                                             
                                                                                
[    5.420848] random: nonblocking pool is initialized                          
[    5.435581] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)                    
procd: - early -                                                                
procd: - watchdog -                                                             
Failed to connect to ubus                                                       
procd: - ubus -                                                                 
procd: - init -                                                                 
Please press Enter to activate this console.                                    
[    6.766294] NET: Registered protocol family 10                               
[    6.777236] nf_conntrack version 0.5.0 (16158 buckets, 64632 max)            
[    6.788663] ip6_tables: (C) 2000-2006 Netfilter Core Team                    
[    6.814444] Loading modules backported from Linux version master-2014-03-31-1
-0-g5c109d2                                                                     
[    6.823320] Backport generated by backports.git backports-20140221-0-g8e94650
[    6.833255] ip_tables: (C) 2000-2006 Netfilter Core Team                     
[    6.951300] usbcore: registered new interface driver r8188eu                 
[    6.967279] xt_time: kernel timezone is -0000                                
[    6.979597] cfg80211: Calling CRDA to update world regulatory domain         
[    6.986338] cfg80211: World regulatory domain updated:                       
[    6.992709] cfg80211:  DFS Master region: unset                              
[    6.997086] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gai
n, max_eirp), (dfs_cac_time)                                                    
[    7.012985] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 m
Bm), (N/A)                                                                      
[    7.026966] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 m
Bm), (N/A)                                                                      
[    7.040267] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 m
Bm), (N/A)                                                                      
[    7.048295] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz), (N/A, 2000 m
Bm), (N/A)                                                                      
[    7.062452] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 m
Bm), (N/A)                                                                      
[    7.076469] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 
mBm), (N/A)                                                                     
[    7.117279] PPP generic driver version 2.4.2                                 
[    7.122858] NET: Registered protocol family 24                               
[    7.135769] usbcore: registered new interface driver rtl8192cu               
procd: - init complete -                                                        
                                                                                
                                                                                
                                                                                
BusyBox v1.19.4 (2014-04-28 12:04:50 CEST) built-in shell (ash)                 
Enter 'help' for a list of built-in commands.                                   
                                                                                
  _______                     ________        __                                
 |       |.-----.-----.-----.|  |  |  |.----.|  |_                              
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|                             
 |_______||   __|_____|__|__||________||__|  |____|                             
          |__| W I R E L E S S   F R E E D O M                                  
 -----------------------------------------------------                          
 BARRIER BREAKER (Bleeding Edge, r40642)                                        
 -----------------------------------------------------                          
  * 1/2 oz Galliano         Pour all ingredients into                           
  * 4 oz cold Coffee        an irish coffee mug filled                          
  * 1 1/2 oz Dark Rum       with crushed ice. Stir.                             
  * 2 tsp. Creme de Cacao                                                       
 -----------------------------------------------------                          
root@OpenWrt:/#                                                                 

Tags

Back to top

toh/lemaker/bananapi.txt · Last modified: 2014/06/02 09:13 by wigyori