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

1.1       jakllsch    1: [[!meta title="NetBSD/evbarm on BeagleBone"]]
                      2: 
1.3       wiki        3: [[images/beaglebone.jpg]]
                      4: 
1.1       jakllsch    5: This page attempts to document and coordinate efforts towards NetBSD on [BeagleBone](http://beagleboard.org/bone).
                      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.1       jakllsch   12: 
                     13: # What needs work
                     14:  - EDMA3 (perhaps at first for [[!template id=man name="sdhc" section="4"]])
                     15:  - USB (host)
                     16:  - SPI
                     17:  - I²C
                     18:  - GPIO
                     19:  - Framebuffer/graphics with LCD or DVI/HDMI capes
                     20:  - Touchscreens on LCD capes
                     21:  - USB (device)
                     22: 
                     23: # Sample dmesg
                     24: [[!template id=filecontent name="dmesg" text="""
                     25: NetBSD 6.99.16 (BEAGLEBONE)
                     26: total memory = 256 MB
                     27: avail memory = 247 MB
                     28: timecounter: Timecounters tick every 10.000 msec
                     29: cprng kernel: WARNING insufficient entropy at creation.
                     30: mainbus0 (root)
                     31: cpu0 at mainbus0 core 0: 720 MHz Cortex-A8 r3p2 (Cortex core)
                     32: cpu0: DC enabled IC enabled WB disabled EABT branch prediction enabled
                     33: cpu0: isar: [0]=0x101111 [1]=0x13112111 [2]=0x21232031 [3]=0x11112131, [4]=0x11142, [5]=0
                     34: cpu0: mmfr: [0]=0x1100003 [1]=0x20000000 [2]=0x1202000 [3]=0x211
                     35: cpu0: pfr: [0]=0x1131 [1]=0x11
                     36: cpu0: 32KB/64B 4-way L1 Instruction cache
                     37: cpu0: 32KB/64B 4-way write-back-locking-C L1 Data cache
                     38: cpu0: 256KB/64B 8-way write-through L2 Unified cache
                     39: vfp0 at cpu0: NEON MPE (VFP 3.0+)
                     40: obio0 at mainbus0 base 0x44000000-0x4fffffff: On-Board IO
                     41: omapicu0 at obio0 addr 0x48200000-0x48200fff intrbase 0
                     42: prcm0 at obio0 addr 0x44e00000-0x44e01fff: Power, Reset and Clock Management
                     43: gpmc0 at mainbus0 base 0x50000000-0x50ffffff: General Purpose Memory Controller, rev 6.0
                     44: gpmc0: CS#0 valid, addr 0x08000000, size 256MB
                     45: com0 at obio0 addr 0x44e09000-0x44e09fff intr 72: ns16550a, working fifo
                     46: com0: console
                     47: sdhc0 at obio0 addr 0x48060100-0x48060fff intr 64: SDHC controller
                     48: sdhc0: SD Host Specification 2.0, rev.49
                     49: sdmmc0 at sdhc0 slot 0
                     50: omapdmtimer0 at obio0 addr 0x48040000-0x48040fff intr 68: DMTIMER2
                     51: omapdmtimer1 at obio0 addr 0x44e31000-0x44e31fff intr 67: DMTIMER1ms
                     52: omapdmtimer2 at obio0 addr 0x48044000-0x48044fff intr 92: DMTIMER4
                     53: omapwdt32k0 at obio0 addr 0x44e35000-0x44e35fff: rev 0.1
                     54: timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
                     55: timecounter: Timecounter "dmtimer" frequency 24000000 Hz quality 100
                     56: ld0 at sdmmc0: <0x28:0x4245:31676:0x10::0x0a7>
                     57: ld0: 490 MB, 995 cyl, 16 head, 63 sec, 512 bytes/sect x 1003520 sectors
                     58: ld0: 4-bit width, bus clock 50.000 MHz
                     59: cprng sysctl: WARNING insufficient entropy at creation.
                     60: boot device: <unknown>
                     61: root on ld0f dumps on ld0b
                     62: WARNING: no TOD clock present
                     63: WARNING: using filesystem time
                     64: WARNING: CHECK AND RESET THE DATE!
                     65: init: copying out path `/sbin/init' 11
                     66: """]]
1.4       mspo       67: 
                     68: 
                     69:  - Growing the root file-system
                     70:    - During the partitioning process, do not delete or format the
1.7       wiki       71:      first MSDOS (FAT) partition, as this is what your firmware by default boots from
                     72:      (unless you have prepared a boot partition on other media).
1.8     ! wiki       73:    - 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.
        !            74:      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       75:            return for the default (/bin/sh).
                     76:    - At the # prompt, type
                     77: 
                     78:         "disklabel -i ld0" and press return.
                     79:    - At the partition> prompt type "A" and press return.
                     80: 
                     81:            Adjust disklabel sector from 4194304 to 62333952 [n]?
                     82:            Type "y" and press return.
                     83:    - partition> prompt type "a" and press return.
                     84: 
                     85:            Filesystem type prompt, press return to use the current value (4.2BSD).
                     86:            Start offset prompt, press return to use the current value.
                     87:            Partition size prompt, type "$" and press return to grow the
                     88:            partition to use all available free space.
                     89:    - partition> prompt type "W" to save the changes to the disklabel.
                     90: 
                     91:            Confirm this choice by typing "y" at the Label disk prompt.
                     92:            Type "Q" and press return to quit disklabel.
                     93:    - At the # prompt (shell), type
                     94: 
                     95:            fsck -fy /dev/rld0a
                     96:            resize_ffs -y /dev/rld0a
                     97:    - This may take a few minutes, be patient!
                     98: 
                     99:            fsck -fy /dev/rld0a
                    100:            mount_msdos /dev/ld0e /boot
                    101:            reboot
                    102:     - When the system comes back up, the root file-system will have been expanded to
                    103:            fill the SD card.

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