File:  [NetBSD Developer Wiki] / wikisrc / ports / evbarm / beaglebone.mdwn
Revision 1.4: download - view: text, annotated - select for diffs
Wed Nov 20 13:53:44 2013 UTC (8 years ago) by mspo
Branches: MAIN
CVS tags: HEAD
copy-paste root fs growing instruction to beaglebone, from skrll.  should eventually figure out a unified way to present these instructions

    1: [[!meta title="NetBSD/evbarm on BeagleBone"]]
    2: 
    3: [[images/beaglebone.jpg]]
    4: 
    5: This page attempts to document and coordinate efforts towards NetBSD on [BeagleBone](http://beagleboard.org/bone).
    6: 
    7: (BeagleBone [image](http://www.flickr.com/photos/sparkfun/8267577194/) by SparkFun Electronics used under CC-By-2.0 license)
    8: 
    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.
   11:  - Ethernet ([[!template id=man name="cpsw" section="4" arch="evbarm"]])
   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: """]]
   67: 
   68: 
   69:  - Growing the root file-system
   70:    - During the partitioning process, do not delete or format the
   71:      first MSDOS (FAT) partition, as the Raspberry pi firmware is
   72:      hard coded to boot on the SDCAD / 1st MSDOS partition / Firmware
   73:      updates and boot loader.
   74:    - Copy /boot/cmdline.txt to /boot/cmdline.txt.orig
   75:    - Edit /boot/cmdline.txt and add the '-s' flag to the end of the first line of text to boot into single-user mode.
   76:    - Reboot, and at the prompt to enter the passname of shell, press
   77:            return for the default (/bin/sh).
   78:    - At the # prompt, type
   79: 
   80:         "disklabel -i ld0" and press return.
   81:    - At the partition> prompt type "A" and press return.
   82: 
   83:            Adjust disklabel sector from 4194304 to 62333952 [n]?
   84:            Type "y" and press return.
   85:    - partition> prompt type "a" and press return.
   86: 
   87:            Filesystem type prompt, press return to use the current value (4.2BSD).
   88:            Start offset prompt, press return to use the current value.
   89:            Partition size prompt, type "$" and press return to grow the
   90:            partition to use all available free space.
   91:    - partition> prompt type "W" to save the changes to the disklabel.
   92: 
   93:            Confirm this choice by typing "y" at the Label disk prompt.
   94:            Type "Q" and press return to quit disklabel.
   95:    - At the # prompt (shell), type
   96: 
   97:            fsck -fy /dev/rld0a
   98:            resize_ffs -y /dev/rld0a
   99:    - This may take a few minutes, be patient!
  100: 
  101:            fsck -fy /dev/rld0a
  102:            mount_msdos /dev/ld0e /boot
  103:            mv /boot/cmdline.txt.orig /boot/cmdline.txt
  104:            reboot
  105:     - When the system comes back up, the root file-system will have been expanded to
  106:            fill the SD card.

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