Annotation of wikisrc/ports/evbarm/beaglebone.mdwn, revision 1.19

1.19    ! sevan       1: [[!meta title="NetBSD/evbarm on BeagleBone, BeagleBone Black, and PocketBeagle"]]
1.1       jakllsch    2: 
1.3       wiki        3: [[images/beaglebone.jpg]]
                      4: 
1.16      leot        5: This page attempts to document and coordinate efforts towards NetBSD on
1.19    ! sevan       6: [BeagleBone](http://beagleboard.org/bone) ,
        !             7: [BeagleBone Black](http://beagleboard.org/black) , and
        !             8: [PocketBeagle](http://beagleboard.org/pocket).
1.1       jakllsch    9: 
1.16      leot       10: (BeagleBone [image](http://www.flickr.com/photos/sparkfun/8267577194/) by
                     11: SparkFun Electronics used under CC-By-2.0 license)
1.3       wiki       12: 
1.14      wiki       13: [[!toc levels=2]]
                     14: 
                     15: # Supported hardware
1.1       jakllsch   16:  - Boots multi-user on [[!template id=man name="ld" section="4"]] @ [[!template id=man name="sdmmc" section="4"]] root and [[!template id=man name="com" section="4"]] console.
1.2       jakllsch   17:  - Ethernet ([[!template id=man name="cpsw" section="4" arch="evbarm"]])
1.11      wiki       18:  - SD/MMC controller (SD card and eMMC)
1.9       wiki       19:  - EDMA3 (for [[!template id=man name="sdhc" section="4"]])
                     20:  - USB (host)
                     21:  - I²C
                     22:  - CPU frequency scaling (various speeds between 300MHz and 1GHz)
1.12      wiki       23:  - Random number generator [[!template id=man name="trng" section="4"]]
1.13      wiki       24:  - GPIO (<i>-current since Nov 1, 2015</i>)
1.1       jakllsch   25: 
1.14      wiki       26: # TODO
1.1       jakllsch   27:  - SPI
                     28:  - Framebuffer/graphics with LCD or DVI/HDMI capes
                     29:  - Touchscreens on LCD capes
                     30:  - USB (device)
                     31: 
1.14      wiki       32: # BeagleBone Black User LEDs
                     33: 
1.16      leot       34: The four blue user LEDs on the BeagleBone Black are wired to GPIO1_21 through
                     35: GPIO1_24. To control the LEDs from userland, set **gpio=YES** in rc.conf and
                     36: add this to */etc/gpio.conf*:
1.14      wiki       37: 
                     38: [[!template  id=programlisting text="""
                     39: gpio1 21 set out USR0
                     40: gpio1 22 set out USR1
                     41: gpio1 23 set out USR2
                     42: gpio1 24 set out USR3
                     43: """]]
                     44: 
1.16      leot       45: After rebooting, the LED states can be controlled with
                     46: [[!template id=man name="gpioctl" section="8"]].
1.14      wiki       47: 
                     48: [[!template  id=programlisting text="""
                     49: # turn the USR0 light on
                     50: gpioctl gpio1 USR0 on
                     51: 
                     52: # turn the USR0 light off
                     53: gpioctl gpio1 USR0 off
                     54: 
                     55: # toggle the USR0 light state
                     56: gpioctl gpio1 USR0 toggle
                     57: """]]
                     58: 
                     59: 
1.1       jakllsch   60: # Sample dmesg
                     61: [[!template id=filecontent name="dmesg" text="""
1.15      wiki       62: Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
                     63:     2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015
                     64:     The NetBSD Foundation, Inc.  All rights reserved.
                     65: Copyright (c) 1982, 1986, 1989, 1991, 1993
                     66:     The Regents of the University of California.  All rights reserved.
                     67: 
                     68: NetBSD 7.0 (BEAGLEBONE.201509250726Z)
1.9       wiki       69: total memory = 512 MB
                     70: avail memory = 503 MB
                     71: sysctl_createv: sysctl_create(machine_arch) returned 17
1.15      wiki       72: kern.module.path=/stand/evbarm/7.0/modules
1.1       jakllsch   73: timecounter: Timecounters tick every 10.000 msec
                     74: mainbus0 (root)
1.9       wiki       75: cpu0 at mainbus0 core 0: 550 MHz Cortex-A8 r3p2 (Cortex V7A core)
1.1       jakllsch   76: cpu0: DC enabled IC enabled WB disabled EABT branch prediction enabled
                     77: cpu0: isar: [0]=0x101111 [1]=0x13112111 [2]=0x21232031 [3]=0x11112131, [4]=0x11142, [5]=0
                     78: cpu0: mmfr: [0]=0x1100003 [1]=0x20000000 [2]=0x1202000 [3]=0x211
                     79: cpu0: pfr: [0]=0x1131 [1]=0x11
1.9       wiki       80: cpu0: 32KB/64B 4-way L1 VIPT Instruction cache
                     81: cpu0: 32KB/64B 4-way write-back-locking-C L1 PIPT Data cache
                     82: cpu0: 256KB/64B 8-way write-through L2 PIPT Unified cache
                     83: vfp0 at cpu0: NEON MPE (VFP 3.0+), rounding, NaN propagation, denormals
                     84: vfp0: mvfr: [0]=0x11110222 [1]=0x11111
1.1       jakllsch   85: obio0 at mainbus0 base 0x44000000-0x4fffffff: On-Board IO
                     86: omapicu0 at obio0 addr 0x48200000-0x48200fff intrbase 0
                     87: prcm0 at obio0 addr 0x44e00000-0x44e01fff: Power, Reset and Clock Management
1.9       wiki       88: sitaracm0 at obio0 addr 0x44e10000-0x44e11fff: control module, rev 1.0
                     89: edma0 at obio0 addr 0x49000000-0x490fffff intrbase 12
                     90: gpmc0 at mainbus0 base 0x50000000: General Purpose Memory Controller, rev 6.0
1.1       jakllsch   91: gpmc0: CS#0 valid, addr 0x08000000, size 256MB
                     92: com0 at obio0 addr 0x44e09000-0x44e09fff intr 72: ns16550a, working fifo
                     93: com0: console
1.15      wiki       94: sdhc0 at obio0 addr 0x48060100-0x48060fff intr 64sdhc0: EDMA tx channel 24, rx channel 25
                     95: : SDHC controller (EDMA)
1.1       jakllsch   96: sdhc0: SD Host Specification 2.0, rev.49
1.9       wiki       97: sdhc0: using DMA transfer
1.1       jakllsch   98: sdmmc0 at sdhc0 slot 0
1.15      wiki       99: sdhc1 at obio0 addr 0x481d8100-0x481d8fff intr 28sdhc1: EDMA tx channel 2, rx channel 3
                    100: : SDHC controller (EDMA)
1.9       wiki      101: sdhc1: SD Host Specification 2.0, rev.49
                    102: sdhc1: using DMA transfer
                    103: sdmmc1 at sdhc1 slot 0
                    104: tiiic0 at obio0 addr 0x44e0b000-0x44e0bfff intr 70: rev 0.11
                    105: iic0 at tiiic0: I2C bus
                    106: seeprom0 at iic0 addr 0x50: AT24Cxx or compatible EEPROM: size 32768
                    107: tps65217pmic0 at iic0 addr 0x24: TPS65217C Power Management Multi-Channel IC (rev 1.2)
                    108: tps65217pmic0: power sources USB max 1300 mA, [AC] max 2500 mA
1.15      wiki      109: tps65217pmic0: [LDO1: 1800 mV] [LDO2: 3300 mV] [LDO3: 1800 mV] [LDO4: 3300 mV] [DCDC1: 1500 mV] [DCDC2: 1100 mV] [DCDC3: 1100 mV] 
1.1       jakllsch  110: omapdmtimer0 at obio0 addr 0x48040000-0x48040fff intr 68: DMTIMER2
                    111: omapdmtimer1 at obio0 addr 0x44e31000-0x44e31fff intr 67: DMTIMER1ms
                    112: omapdmtimer2 at obio0 addr 0x48044000-0x48044fff intr 92: DMTIMER4
                    113: omapwdt32k0 at obio0 addr 0x44e35000-0x44e35fff: rev 0.1
1.9       wiki      114: tiotg0 at obio0 addr 0x47400000-0x47404fff intrbase 17: TI dual-port USB controller: version v1.0.0.13
                    115: motg0 at tiotg0 port 0: 0x4ea20800 version v0.0.0
                    116: motg1 at tiotg0 port 1: 0x4ea20800 version v0.0.0
                    117: motg1: Dynamic FIFO sizing detected, assuming 16Kbytes of FIFO RAM
                    118: usb0 at motg1: USB revision 2.0
                    119: cpsw0 at obio0 addr 0x4a100000-0x4a107fff intrbase 40: TI CPSW Ethernet
                    120: cpsw0: Ethernet address 90:59:af:5c:d0:94
1.15      wiki      121: ukphy0 at cpsw0 phy 0WARNING: module error: vfs load failed for `miiverbose', error 45
                    122: : OUI 0x00800f, model 0x000f, rev. 1
1.9       wiki      123: ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
1.15      wiki      124: trng0 at obio0 addr 0x48310000-0x48311fff intr 111
1.1       jakllsch  125: timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
                    126: timecounter: Timecounter "dmtimer" frequency 24000000 Hz quality 100
1.9       wiki      127: uhub0 at usb0: Mentor Graphics MOTG root hub, class 9/0, rev 1.00/1.00, addr 1
                    128: uhub0: 1 port with 1 removable, self powered
                    129: sdmmc0: couldn't enable card: 60
                    130: ld1 at sdmmc1: <0xfe:0x014e:MMC02G:0x00:0x1aee3308:0x000>
                    131: ld1: 1832 MB, 930 cyl, 64 head, 63 sec, 512 bytes/sect x 3751936 sectors
                    132: ld1: 4-bit width, bus clock 52.000 MHz
                    133: boot device: ld1
                    134: root on ld1a dumps on ld1b
1.1       jakllsch  135: """]]
1.17      mlelstv   136: 

CVSweb for NetBSD wikisrc <wikimaster@NetBSD.org> software: FreeBSD-CVSweb