User Tools

Site Tools


os:openbsd:beaglebone

Introduction

I bought a BeagleBone Black in order to create easy network services. First of all a DNS

First steps

Get the miniroot iso

Copy to external SD card

First step: erase the entire SD and put the iso :!: Goodbye data :!:

dd if=miniroot-am335x-57.fs of=/dev/mmcblk0

:!: Example taken from linux :!:

Connect the board

Insert the SD, connect the board with a special USB cable ( like this one)
With this cable you MUST NOT connect the red cable (+5V will grill your nice tool!)
Connectors are in this order:
None|White|Green|None|None|Black
Power up the board holding down the boot button.
Connect to /dev/ttyUSB0

 sudo screen /dev/ttyUSB0 115200

When you boot you arrive on:

…
cpsw0 at omap0: version 1.12 (0), address 1c:ba:8c:a2:4f:0d
ukphy0 at cpsw0 phy 0: Generic IEEE 802.3u media interface, rev. 1: OUI 0x0001f0, model 0x000f
scsibus0 at sdmmc0: 2 targets, initiator 0                                                    
sd0 at scsibus0 targ 1 lun 0: <SD/MMC, Drive #01, > SCSI2 0/direct fixed
sd0: 30436MB, 512 bytes/sector, 62333952 sectors                        
sdmmc1: can't enable card                       
boot device: sd0         
root on rd0a swap on rd0b dump on rd0b
WARNING: CHECK AND RESET THE DATE!    
erase ^?, werase ^W, kill ^U, intr ^C, status ^T

Welcome to the OpenBSD/armv7 5.7 installation program.
(I)nstall, (U)pgrade, (A)utoinstall or (S)hell?

Install

Let's press I for install

At any prompt except password prompts you can escape to a shell by
typing '!'. Default answers are shown in []'s and are selected by
pressing RETURN.  You can exit this program at any time by pressing
Control-C, but this can leave your system in an inconsistent state.

Terminal type? [vt220]

Press Enter

System hostname? (short form, e.g. 'foo') 

Which network interface do you wish to configure? (or 'done') [cpsw0] 

IPv4 address for cpsw0? (or 'dhcp' or 'none') [dhcp] 192.168.1.11
Netmask for cpsw0? [255.255.255.0] 
IPv6 address for cpsw0? (or 'rtsol' or 'none') [none] 
Available network interfaces are: cpsw0.
Which network interface do you wish to configure? (or 'done') [done]


Default IPv4 route? (IPv4 address, 'dhcp' or 'none') 192.168.1.1
add net default: gateway 192.168.1.1
DNS domain name? (e.g. 'bar.com') [my.domain] test.local
DNS nameservers? (IP address list or 'none') [none] 192.168.1.2    

Password for root account? (will not echo) 
Password for root account? (again) 


Start sshd(8) by default? [yes] 
Start ntpd(8) by default? [no] yes

NTP server? (hostname or 'default') [default]     


Setup a user? (enter a lower-case loginname, or 'no') [no] 

Available disks are: sd0.
Which disk is the root disk? ('?' for details) [sd0] 

Well, no sd1 means no access to the eMMC flash drive …

References

os/openbsd/beaglebone.txt · Last modified: 2021/12/29 21:03 by warnaud