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

1.10    ! wiki        1: [[!meta title="NetBSD/evbarm on BeagleBone and BeagleBone Black"]]
1.1       jakllsch    2: 
1.3       wiki        3: [[images/beaglebone.jpg]]
                      4: 
1.9       wiki        5: This page attempts to document and coordinate efforts towards NetBSD on [BeagleBone](http://beagleboard.org/bone) and [BeagleBone Black](http://beagleboard.org/black).
1.1       jakllsch    6: 
1.3       wiki        7: (BeagleBone [image](http://www.flickr.com/photos/sparkfun/8267577194/) by SparkFun Electronics used under CC-By-2.0 license)
                      8: 
1.1       jakllsch    9: # What works
                     10:  - 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   11:  - Ethernet ([[!template id=man name="cpsw" section="4" arch="evbarm"]])
1.9       wiki       12:  - EDMA3 (for [[!template id=man name="sdhc" section="4"]])
                     13:  - USB (host)
                     14:  - I²C
                     15:  - CPU frequency scaling (various speeds between 300MHz and 1GHz)
1.1       jakllsch   16: 
                     17: # What needs work
                     18:  - SPI
                     19:  - GPIO
                     20:  - Framebuffer/graphics with LCD or DVI/HDMI capes
                     21:  - Touchscreens on LCD capes
                     22:  - USB (device)
                     23: 
                     24: # Sample dmesg
                     25: [[!template id=filecontent name="dmesg" text="""
1.9       wiki       26: NetBSD 7.99.9 (BEAGLEBONE) #2: Tue Apr 14 20:24:09 ADT 2015
                     27:         Jared@Jared-PC:/cygdrive/d/netbsd/src/sys/arch/evbarm/compile/obj/BEAGLEBONE
                     28: total memory = 512 MB
                     29: avail memory = 503 MB
                     30: sysctl_createv: sysctl_create(machine_arch) returned 17
1.1       jakllsch   31: timecounter: Timecounters tick every 10.000 msec
                     32: mainbus0 (root)
1.9       wiki       33: cpu0 at mainbus0 core 0: 550 MHz Cortex-A8 r3p2 (Cortex V7A core)
1.1       jakllsch   34: cpu0: DC enabled IC enabled WB disabled EABT branch prediction enabled
                     35: cpu0: isar: [0]=0x101111 [1]=0x13112111 [2]=0x21232031 [3]=0x11112131, [4]=0x11142, [5]=0
                     36: cpu0: mmfr: [0]=0x1100003 [1]=0x20000000 [2]=0x1202000 [3]=0x211
                     37: cpu0: pfr: [0]=0x1131 [1]=0x11
1.9       wiki       38: cpu0: 32KB/64B 4-way L1 VIPT Instruction cache
                     39: cpu0: 32KB/64B 4-way write-back-locking-C L1 PIPT Data cache
                     40: cpu0: 256KB/64B 8-way write-through L2 PIPT Unified cache
                     41: vfp0 at cpu0: NEON MPE (VFP 3.0+), rounding, NaN propagation, denormals
                     42: vfp0: mvfr: [0]=0x11110222 [1]=0x11111
1.1       jakllsch   43: obio0 at mainbus0 base 0x44000000-0x4fffffff: On-Board IO
                     44: omapicu0 at obio0 addr 0x48200000-0x48200fff intrbase 0
                     45: prcm0 at obio0 addr 0x44e00000-0x44e01fff: Power, Reset and Clock Management
1.9       wiki       46: sitaracm0 at obio0 addr 0x44e10000-0x44e11fff: control module, rev 1.0
                     47: edma0 at obio0 addr 0x49000000-0x490fffff intrbase 12
                     48: gpmc0 at mainbus0 base 0x50000000: General Purpose Memory Controller, rev 6.0
1.1       jakllsch   49: gpmc0: CS#0 valid, addr 0x08000000, size 256MB
                     50: com0 at obio0 addr 0x44e09000-0x44e09fff intr 72: ns16550a, working fifo
                     51: com0: console
1.9       wiki       52: sdhc0 at obio0 addr 0x48060100-0x48060fff intr 64: SDHC controller (EDMA)
1.1       jakllsch   53: sdhc0: SD Host Specification 2.0, rev.49
1.9       wiki       54: sdhc0: using DMA transfer
1.1       jakllsch   55: sdmmc0 at sdhc0 slot 0
1.9       wiki       56: sdhc1 at obio0 addr 0x481d8100-0x481d8fff intr 28: SDHC controller (EDMA)
                     57: sdhc1: SD Host Specification 2.0, rev.49
                     58: sdhc1: using DMA transfer
                     59: sdmmc1 at sdhc1 slot 0
                     60: tiiic0 at obio0 addr 0x44e0b000-0x44e0bfff intr 70: rev 0.11
                     61: iic0 at tiiic0: I2C bus
                     62: seeprom0 at iic0 addr 0x50: AT24Cxx or compatible EEPROM: size 32768
                     63: tps65217pmic0 at iic0 addr 0x24: TPS65217C Power Management Multi-Channel IC (rev 1.2)
                     64: tps65217pmic0: power sources USB max 1300 mA, [AC] max 2500 mA
                     65: tps65217pmic0: [LDO1: 1800 mV] [LDO2: 3300 mV] [LDO3: 1800 mV] [LDO4: 3300 mV] [DCDC1: 1500 mV] [DCDC2: 1325 mV] [DCDC3: 1100 mV]
1.1       jakllsch   66: omapdmtimer0 at obio0 addr 0x48040000-0x48040fff intr 68: DMTIMER2
                     67: omapdmtimer1 at obio0 addr 0x44e31000-0x44e31fff intr 67: DMTIMER1ms
                     68: omapdmtimer2 at obio0 addr 0x48044000-0x48044fff intr 92: DMTIMER4
                     69: omapwdt32k0 at obio0 addr 0x44e35000-0x44e35fff: rev 0.1
1.9       wiki       70: tiotg0 at obio0 addr 0x47400000-0x47404fff intrbase 17: TI dual-port USB controller: version v1.0.0.13
                     71: motg0 at tiotg0 port 0: 0x4ea20800 version v0.0.0
                     72: motg1 at tiotg0 port 1: 0x4ea20800 version v0.0.0
                     73: motg1: Dynamic FIFO sizing detected, assuming 16Kbytes of FIFO RAM
                     74: usb0 at motg1: USB revision 2.0
                     75: cpsw0 at obio0 addr 0x4a100000-0x4a107fff intrbase 40: TI CPSW Ethernet
                     76: cpsw0: Ethernet address 90:59:af:5c:d0:94
                     77: ukphy0 at cpsw0 phy 0: OUI 0x00800f, model 0x000f, rev. 1
                     78: ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
1.1       jakllsch   79: timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
                     80: timecounter: Timecounter "dmtimer" frequency 24000000 Hz quality 100
1.9       wiki       81: uhub0 at usb0: Mentor Graphics MOTG root hub, class 9/0, rev 1.00/1.00, addr 1
                     82: uhub0: 1 port with 1 removable, self powered
                     83: sdmmc0: couldn't enable card: 60
                     84: ld1 at sdmmc1: <0xfe:0x014e:MMC02G:0x00:0x1aee3308:0x000>
                     85: ld1: 1832 MB, 930 cyl, 64 head, 63 sec, 512 bytes/sect x 3751936 sectors
                     86: ld1: 4-bit width, bus clock 52.000 MHz
                     87: boot device: ld1
                     88: root on ld1a dumps on ld1b
                     89: root file system type: ffs
                     90: kern.module.path=/stand/evbarm/7.99.9/modules
1.1       jakllsch   91: """]]
1.4       mspo       92: 
                     93: 
                     94:  - Growing the root file-system
                     95:    - During the partitioning process, do not delete or format the
1.7       wiki       96:      first MSDOS (FAT) partition, as this is what your firmware by default boots from
                     97:      (unless you have prepared a boot partition on other media).
1.8       wiki       98:    - For accident-free operation of resize_ffs, the filesystem it is supposed to grow needs to be either not mounted or at least not mounted for writing.
                     99:      To do that for a root filesystem, reboot to single user, and at the prompt to enter the pathname of shell, press
1.4       mspo      100:            return for the default (/bin/sh).
                    101:    - At the # prompt, type
                    102: 
                    103:         "disklabel -i ld0" and press return.
                    104:    - At the partition> prompt type "A" and press return.
                    105: 
                    106:            Adjust disklabel sector from 4194304 to 62333952 [n]?
                    107:            Type "y" and press return.
                    108:    - partition> prompt type "a" and press return.
                    109: 
                    110:            Filesystem type prompt, press return to use the current value (4.2BSD).
                    111:            Start offset prompt, press return to use the current value.
                    112:            Partition size prompt, type "$" and press return to grow the
                    113:            partition to use all available free space.
                    114:    - partition> prompt type "W" to save the changes to the disklabel.
                    115: 
                    116:            Confirm this choice by typing "y" at the Label disk prompt.
                    117:            Type "Q" and press return to quit disklabel.
                    118:    - At the # prompt (shell), type
                    119: 
                    120:            fsck -fy /dev/rld0a
                    121:            resize_ffs -y /dev/rld0a
                    122:    - This may take a few minutes, be patient!
                    123: 
                    124:            fsck -fy /dev/rld0a
                    125:            mount_msdos /dev/ld0e /boot
                    126:            reboot
                    127:     - When the system comes back up, the root file-system will have been expanded to
                    128:            fill the SD card.

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