Beaglebone Black 上面安装 OpenBSD过程如下
0、看http://ftp.openbsd.org/pub/OpenBSD/snapshots/beagle/INSTALL.beagle,按要求准备tf卡
1、BBB插入3.3v TTL 串口线
2、按住TF卡附近的启动切换开关的同时接通电源,此时会从tf卡启动而不是主板上的2G存储。
3、注意串口speed设定为115200
这里用Windows + putty 做串口客户端
参考
Launch PuTTY. It’s a simple program and its main window is titled “PuTTY Configuration”
Make sure Serial is checked
Under “Serial line” enter the number of the COM port you discovered previously, COM9 in
this case.
Enter 115200 in the “Speed” field
Click the Open button.
按Enter之后就能看到ddb界面
ddb> continue ##输入continue可出现如下界面
dmtimer_intr: negative duration!
(I)nstall, (U)pgrade or (S)hell? i
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]
System hostname? (short form, e.g. 'foo') bbb
Available network interfaces are: cpsw0.
Which one do you wish to configure? (or 'done') [cpsw0]
IPv4 address for cpsw0? (or 'dhcp' or 'none') [dhcp]
Issuing hostname-associated DHCP request for cpsw0.
DHCPDISCOVER on cpsw0 to 255.255.255.255 port 67 interval 1
DHCPOFFER from 10.0.0.6 (84:8f:??:??:??:??)
DHCPREQUEST on cpsw0 to 255.255.255.255 port 67
DHCPACK from 10.0.0.6 (84:8f:??:??:??:??)
bound to 10.0.0.199 -- renewal in 21600 seconds.
IPv6 address for cpsw0? (or 'rtsol' or 'none') [none]
Available network interfaces are: cpsw0.
Which one do you wish to configure? (or 'done') [done]
Using DNS domainname 10.xxx.com
Using DNS nameservers at 10.0.0.6
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]
What timezone are you in? ('?' for list) [Asia/Shanghai]
Available disks are: sd0. #看不到主板的2G存储,只有tf卡能用
Which disk is the root disk? ('?' for details) [sd0]
Use DUIDs rather than device names in fstab? [yes]
Disk: sd0 geometry: 968/255/63 [15564800 Sectors]
Offset: 0 Signature: 0xAA55
Starting Ending LBA Info:
#: id C H S - C H S [ start: size ]
-------------------------------------------------------------------------------
*0: 0C 0 1 1 - 1 254 63 [ 63: 32067 ] Win95 FAT32L
1: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused
2: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused
3: A6 0 1 2 - 1 254 63 [ 64: 32066 ] OpenBSD
Use (W)hole disk or (E)dit the MBR? [whole]
Creating a FAT partition and an OpenBSD partition for rest of sd0...done.
/dev/rsd0i: 32668 sectors in 8167 FAT16 clusters (2048 bytes/cluster)
bps=512 spc=4 res=1 nft=2 rde=512 sec=32768 mid=0xf8 spf=32 spt=63 hds=255 hid=64
The auto-allocated layout for sd0 is:
# size offset fstype [fsize bsize cpg]
a: 100.8M 32832 4.2BSD 2048 16384 1 # /
b: 100.8M 239264 swap
c: 7600.0M 0 unused
d: 153.2M 445728 4.2BSD 2048 16384 1 # /tmp
e: 134.1M 759584 4.2BSD 2048 16384 1 # /var
f: 920.8M 1034144 4.2BSD 2048 16384 1 # /usr
g: 524.5M 2919936 4.2BSD 2048 16384 1 # /usr/X11R6
h: 2089.6M 3994048 4.2BSD 2048 16384 1 # /usr/local
i: 16.0M 64 MSDOS
j: 1032.3M 8273536 4.2BSD 2048 16384 1 # /usr/src
k: 1316.6M 10387712 4.2BSD 2048 16384 1 # /usr/obj
l: 1211.2M 13084160 4.2BSD 2048 16384 1 # /home
Use (A)uto layout, (E)dit auto layout, or create (C)ustom layout? [a]
newfs: reduced number of fragments per cylinder group from 12896 to 12840 to enlarge last
cylinder group
/dev/rsd0a: 100.8MB in 206432 sectors of 512 bytes
5 cylinder groups of 25.08MB, 1605 blocks, 3328 inodes each
/dev/rsd0l: 1211.2MB in 2480480 sectors of 512 bytes
6 cylinder groups of 202.47MB, 12958 blocks, 25984 inodes each
/dev/rsd0d: 153.2MB in 313856 sectors of 512 bytes
4 cylinder groups of 38.31MB, 2452 blocks, 4992 inodes each
/dev/rsd0f: 920.8MB in 1885792 sectors of 512 bytes
5 cylinder groups of 202.47MB, 12958 blocks, 25984 inodes each
newfs: reduced number of fragments per cylinder group from 67128 to 66864 to enlarge last
cylinder group
/dev/rsd0g: 524.5MB in 1074112 sectors of 512 bytes
5 cylinder groups of 130.59MB, 8358 blocks, 16768 inodes each
/dev/rsd0h: 2089.6MB in 4279488 sectors of 512 bytes
11 cylinder groups of 202.47MB, 12958 blocks, 25984 inodes each
/dev/rsd0k: 1316.6MB in 2696448 sectors of 512 bytes
7 cylinder groups of 202.47MB, 12958 blocks, 25984 inodes each
/dev/rsd0j: 1032.3MB in 2114176 sectors of 512 bytes
6 cylinder groups of 202.47MB, 12958 blocks, 25984 inodes each
/dev/rsd0e: 134.1MB in 274560 sectors of 512 bytes
4 cylinder groups of 33.52MB, 2145 blocks, 4352 inodes each
/dev/sd0a (35156d6ca8642950.a) on /mnt type ffs (rw, asynchronous, local)
/dev/sd0l (35156d6ca8642950.l) on /mnt/home type ffs (rw, asynchronous, local, nodev, nosuid)
/dev/sd0d (35156d6ca8642950.d) on /mnt/tmp type ffs (rw, asynchronous, local, nodev, nosuid)
/dev/sd0f (35156d6ca8642950.f) on /mnt/usr type ffs (rw, asynchronous, local, nodev)
/dev/sd0g (35156d6ca8642950.g) on /mnt/usr/X11R6 type ffs (rw, asynchronous, local, nodev)
/dev/sd0h (35156d6ca8642950.h) on /mnt/usr/local type ffs (rw, asynchronous, local, nodev)
/dev/sd0k (35156d6ca8642950.k) on /mnt/usr/obj type ffs (rw, asynchronous, local, nodev, nosuid)
/dev/sd0j (35156d6ca8642950.j) on /mnt/usr/src type ffs (rw, asynchronous, local, nodev, nosuid)
/dev/sd0e (35156d6ca8642950.e) on /mnt/var type ffs (rw, asynchronous, local, nodev, nosuid)
Let's install the sets!
Location of sets? (disk ftp http nfs or 'done') [ftp]
HTTP/FTP proxy URL? (e.g. '
http://proxy:8080', or 'none') [none]
Server? (hostname, list#, 'done' or '?') [ftp.openbsd.org]
Server directory? [pub/OpenBSD/snapshots/i386] pub/OpenBSD/snapshots/beagle
Login? [anonymous]
Select sets by entering a set name, a file name pattern or 'all'. De-select
sets by prepending a '-' to the set name, file name pattern or 'all'. Selected
sets are labelled '[X]'. ###X包暂时用不着,没有图形界面
[X] bsd [X] etc54.tgz [X] game54.tgz [ ] xshare54.tgz
[X] bsd.rd [X] comp54.tgz [ ] xbase54.tgz [ ] xfont54.tgz
[X] base54.tgz [X] man54.tgz [ ] xetc54.tgz [ ] xserv54.tgz
Set name(s)? (or 'abort' or 'done') [done]
bsd 100% |*************************************| 3022 KB 00:01
bsd.rd 100% |*************************************| 3988 KB 00:02
base54.tgz 100% |*************************************| 56082 KB 03:18
etc54.tgz 100% |*************************************| 511 KB 00:05
comp54.tgz 100% |*************************************| 47622 KB 02:58
man54.tgz 100% |*************************************| 9761 KB 01:13
game54.tgz 100% |*************************************| 2616 KB 00:07
Location of sets? (disk ftp http nfs or 'done') [done]
Time appears wrong. Set to 'Sat Aug 31 20:06:50 CST 2013'? [yes]
Saving configuration files...done.
Generating initial host.random file...done.
Making all device nodes...done.
CONGRATULATIONS! Your OpenBSD install has been successfully completed!
To boot the new system, enter 'reboot' at the command prompt.
When you login to your new system the first time, please read your mail
using the 'mail' command.