--- wikisrc/ports/evbarm/beaglebone.mdwn 2013/01/01 05:38:48 1.1 +++ wikisrc/ports/evbarm/beaglebone.mdwn 2014/01/06 18:11:54 1.8 @@ -1,12 +1,16 @@ [[!meta title="NetBSD/evbarm on BeagleBone"]] +[[images/beaglebone.jpg]] + This page attempts to document and coordinate efforts towards NetBSD on [BeagleBone](http://beagleboard.org/bone). +(BeagleBone [image](http://www.flickr.com/photos/sparkfun/8267577194/) by SparkFun Electronics used under CC-By-2.0 license) + # What works - 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. + - Ethernet ([[!template id=man name="cpsw" section="4" arch="evbarm"]]) # What needs work - - Ethernet (being worked on by [[users/jakllsch]]) - EDMA3 (perhaps at first for [[!template id=man name="sdhc" section="4"]]) - USB (host) - SPI @@ -60,3 +64,40 @@ WARNING: using filesystem time WARNING: CHECK AND RESET THE DATE! init: copying out path `/sbin/init' 11 """]] + + + - Growing the root file-system + - During the partitioning process, do not delete or format the + first MSDOS (FAT) partition, as this is what your firmware by default boots from + (unless you have prepared a boot partition on other media). + - 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. + To do that for a root filesystem, reboot to single user, and at the prompt to enter the pathname of shell, press + return for the default (/bin/sh). + - At the # prompt, type + + "disklabel -i ld0" and press return. + - At the partition> prompt type "A" and press return. + + Adjust disklabel sector from 4194304 to 62333952 [n]? + Type "y" and press return. + - partition> prompt type "a" and press return. + + Filesystem type prompt, press return to use the current value (4.2BSD). + Start offset prompt, press return to use the current value. + Partition size prompt, type "$" and press return to grow the + partition to use all available free space. + - partition> prompt type "W" to save the changes to the disklabel. + + Confirm this choice by typing "y" at the Label disk prompt. + Type "Q" and press return to quit disklabel. + - At the # prompt (shell), type + + fsck -fy /dev/rld0a + resize_ffs -y /dev/rld0a + - This may take a few minutes, be patient! + + fsck -fy /dev/rld0a + mount_msdos /dev/ld0e /boot + reboot + - When the system comes back up, the root file-system will have been expanded to + fill the SD card.