有人玩beaglebone black么?OpenBSD开始支持了

BSD当然要运行在RISC平台上,主要讨论但不限于 ARM,MIPS,PowerPC,SPARC
回复
f5b
锆 Zr
帖子: 643
注册时间: 2011-10-22 20:43

有人玩beaglebone black么?OpenBSD开始支持了

帖子 f5b » 2013-08-24 18:05

有人玩beaglebone black么?OpenBSD开始支持了

380元的板子
OpenBSD snapshot开始支持了
http://ftp.openbsd.org/pub/OpenBSD/snap ... ALL.beagle

有人玩过么?值得入手么?

头像
unreal
银 Ag
帖子: 1083
注册时间: 2010-06-07 18:52

帖子 unreal » 2013-08-25 12:17

这货国内木有啊,还得代购。OB 能支持 国内团队Cubieteam开发的 CubieBoard 就好了,这板在国外也很容易买到 http://cubieboard.org/buy/ ,咋就木人移植呢 '_'

f5b
锆 Zr
帖子: 643
注册时间: 2011-10-22 20:43

Re:

帖子 f5b » 2013-08-25 20:59

unreal 写了:这货国内木有啊,还得代购。OB 能支持 国内团队Cubieteam开发的 CubieBoard 就好了,这板在国外也很容易买到 http://cubieboard.org/buy/ ,咋就木人移植呢 '_'
这货中国有的啊
http://beagleboard.org/
英文官方网站,选purchase

第一个element14
http://www.element14.com/community/comm ... w=overview

还有chipsee
http://www.chipsee.com/product/evm/beagle.html


最终购买网址分别是
http://cn.element14.com/embest/bb-black ... dp/2313800

http://item.taobao.com/item.htm?id=20044299382


beaglebone black为何有这么多个版本?
因为是开源的设计,任何厂家都可以拿到设计图,自己购买配件生产。
不过所有版本都可以兼容android linux 等,当然还有OpenBSD

头像
unreal
银 Ag
帖子: 1083
注册时间: 2010-06-07 18:52

帖子 unreal » 2013-08-27 20:18

beaglebone 能扩展出 SATA口么?不能的话,OB是装在 SD卡?

f5b
锆 Zr
帖子: 643
注册时间: 2011-10-22 20:43

Re:

帖子 f5b » 2013-08-27 23:13

unreal 写了:beaglebone 能扩展出 SATA口么?不能的话,OB是装在 SD卡?
下午刚拿到beaglebone black ,看说明
http://ftp.openbsd.org/pub/OpenBSD/snap ... ALL.beagle

这两天有空会试验安装,估计是通过tf卡强行写入bootloader之类的东西,之后就可以将系统安装在板子的2G固态内存上了,没有sata接口

头像
unreal
银 Ag
帖子: 1083
注册时间: 2010-06-07 18:52

帖子 unreal » 2013-08-28 10:37

恩,感觉还不是开放硬件,安装比较费周折。估计OB装上去之后,可以通过 usb 转接sata硬盘,就可以拓宽点儿用途了。等 f5b兄的详细安装文档 ^^

头像
unreal
银 Ag
帖子: 1083
注册时间: 2010-06-07 18:52

帖子 unreal » 2013-08-28 10:59

粗粗看了安装说明,需要把 miniroot 写入SD卡,用另一台机器连到 beagle 的串口控制台。miniroot 文件体积有18M,我手头只有一张16M的SD卡 '_'

f5b
锆 Zr
帖子: 643
注册时间: 2011-10-22 20:43

Re:

帖子 f5b » 2013-08-30 15:32

unreal 写了:粗粗看了安装说明,需要把 miniroot 写入SD卡,用另一台机器连到 beagle 的串口控制台。miniroot 文件体积有18M,我手头只有一张16M的SD卡 '_'
确实是需要串口数据线,买的时候没有考虑清楚和仔细阅读 http://ftp.openbsd.org/pub/OpenBSD/snap ... ALL.beagle

现在的snapshot OpenBSD 还不支持hdmi输出, 数据线正在路上。。。再等等

OpenBSD System Requirements and Supported Devices:
--------------------------------------------------

The following machines are targeted by OpenBSD/beagle:

BeagleBoard, BeagleBoard xM
Supported on-board devices:
standard serial port (com)
watchdog controller (omdog)
GPIO controller (omgpio)

BeagleBone, BeagleBone Black
Supported on-board devices:
standard serial port (com)
watchdog controller (omdog)
ethernet controller (cpsw)

PandaBoard (ES)
Supported on-board devices:
standard serial port (com)
USB controller (ehci)
watchdog controller (omdog)
GPIO controller (omgpio)

头像
unreal
银 Ag
帖子: 1083
注册时间: 2010-06-07 18:52

帖子 unreal » 2013-08-30 21:28

f5b兄是行动主义者~~ 静等兄台的文档`(*∩_∩*)′

f5b
锆 Zr
帖子: 643
注册时间: 2011-10-22 20:43

Re: 有人玩beaglebone black么?OpenBSD开始支持了

帖子 f5b » 2013-08-31 20:27

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.

f5b
锆 Zr
帖子: 643
注册时间: 2011-10-22 20:43

Re: 有人玩beaglebone black么?OpenBSD开始支持了

帖子 f5b » 2013-08-31 20:28

还有

# reboot
boot: howto=00000000 curproc=0xc9341304
syncing disks... done
rebooting...

U-Boot SPL 2013.04-dirty (Apr 20 2013 - 08:30:43)
musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, HB-ISO Rx, HB-ISO Tx, SoftConn)
musb-hdrc: MHDRC RTL version 2.0
musb-hdrc: setup fifo_mode 4
musb-hdrc: 28/31 max ep, 16384/16384 memory
USB Peripheral mode controller at 47401000 using PIO, IRQ 0
musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, HB-ISO Rx, HB-ISO Tx, SoftConn)
musb-hdrc: MHDRC RTL version 2.0
musb-hdrc: setup fifo_mode 4
musb-hdrc: 28/31 max ep, 16384/16384 memory
USB Host mode controller at 47401800 using PIO, IRQ 0
OMAP SD/MMC: 0
reading u-boot.img
reading u-boot.img


U-Boot 2013.04-dirty (Apr 20 2013 - 08:30:43)

I2C: ready
DRAM: 512 MiB
WARNING: Caches not enabled
NAND: No NAND device found!!!
0 MiB
MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1
*** Warning - readenv() failed, using default environment

musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, HB-ISO Rx, HB-ISO Tx, SoftConn)
musb-hdrc: MHDRC RTL version 2.0
musb-hdrc: setup fifo_mode 4
musb-hdrc: 28/31 max ep, 16384/16384 memory
USB Peripheral mode controller at 47401000 using PIO, IRQ 0
musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, HB-ISO Rx, HB-ISO Tx, SoftConn)
musb-hdrc: MHDRC RTL version 2.0
musb-hdrc: setup fifo_mode 4
musb-hdrc: 28/31 max ep, 16384/16384 memory
USB Host mode controller at 47401800 using PIO, IRQ 0
Net: <ethaddr> not set. Validating first E-fuse MAC
cpsw, usb_ether
Hit any key to stop autoboot: 0
gpio: pin 53 (gpio 53) value is 1
mmc0 is current device
micro SD card found
mmc0 is current device
gpio: pin 54 (gpio 54) value is 1
SD/MMC found on device 0
reading uEnv.txt
151 bytes read in 4 ms (36.1 KiB/s)
Loaded environment from uEnv.txt
Importing environment from mmc ...
Running uenvcmd ...
reading bsd.umg
2831304 bytes read in 327 ms (8.3 MiB/s)
## Booting kernel from Legacy Image at 82800000 ...
Image Name: boot
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2831240 Bytes = 2.7 MiB
Load Address: 80300000
Entry Point: 80300000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK

Starting kernel ...


OpenBSD/beagle booting ...
arg0 0x0 arg1 0xe05 arg2 0x80000100
atag core flags 0 pagesize 0 rootdev 0
atag cmdline [sd0i:/bsd.umg]
atag mem start 0x80000000 size 0x20000000
bootfile: sd0i:/bsd.umg
bootargs:
memory size derived from u-boot
bootconf.mem[0].address = 80000000 pages 131072/0x20000000
Allocating page tables
freestart = 0x0062a000, free_pages = 530902 (0x000819d6)
IRQ stack: p0x81fd1000 v0xc1fd1000
ABT stack: p0x81fd0000 v0xc1fd0000
UND stack: p0x81fcf000 v0xc1fcf000
SVC stack: p0x81fcd000 v0xc1fcd000
Creating L1 page table at 0x81ffc000
Mapping kernel
Constructing L2 page tables
undefined page pmap [ no symbol table formats found ]
board type: beaglebone
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California. All rights reserved.
Copyright (c) 1995-2013 OpenBSD. All rights reserved. http://www.OpenBSD.org

OpenBSD 5.4-current (GENERIC) #7: Wed Aug 14 21:05:47 CEST 2013
[email protected]:/usr/src/sys/arch/beagle/compile/GENERIC
real mem = 536870912 (512MB)
avail mem = 519417856 (495MB)
mainbus0 at root
cpu0 at mainbus0: ARM Cortex A8 R3 rev 2 (ARMv7 core)
cpu0: DC enabled IC enabled WB disabled EABT branch prediction enabled
cpu0: 32KB(64b/l,4way) I-cache, 32KB(64b/l,4way) wr-back D-cache
omap0 at mainbus0: BeagleBone
prcm0 at omap0 rev 0.2

sitaracm0 at omap0: control module, rev 1.0
intc0 at omap0 rev 5.0
dmtimer0 at omap0 rev 3.1
dmtimer1 at omap0 rev 3.1
omdog0 at omap0 rev 0.1
ommmc0 at omap0
sdmmc0 at ommmc0
com0 at omap0: ti16750, 64 byte fifo
com0: console
cpsw0 at omap0 txdescs at 0xcfbd5000 rxdescs at 0xcfbd6000, address 90:59:af:5c:2e:5f
ukphy0 at cpsw0 phy 0: Generic IEEE 802.3u media interface, rev. 1: OUI 0x0001f0, model 0x000f
/dev/ksyms: Symbol table not valid.
scsibus0 at sdmmc0: 2 targets, initiator 0
sd0 at scsibus0 targ 1 lun 0: <SD/MMC, Drive #01, > SCSI2 0/direct fixed
sd0: 7600MB, 512 bytes/sector, 15564800 sectors
vscsi0 at root
scsibus1 at vscsi0: 256 targets
softraid0 at root
scsibus2 at softraid0: 256 targets
boot device: sd0
root on sd0a (35156d6ca8642950.a) swap on sd0b dump on sd0b
WARNING: CHECK AND RESET THE DATE!
Automatic boot in progress: starting file system checks.
/dev/sd0a (35156d6ca8642950.a): file system is clean; not checking
/dev/sd0l (35156d6ca8642950.l): file system is clean; not checking
/dev/sd0d (35156d6ca8642950.d): file system is clean; not checking
/dev/sd0f (35156d6ca8642950.f): file system is clean; not checking
/dev/sd0g (35156d6ca8642950.g): file system is clean; not checking
/dev/sd0h (35156d6ca8642950.h): file system is clean; not checking
/dev/sd0k (35156d6ca8642950.k): file system is clean; not checking
/dev/sd0j (35156d6ca8642950.j): file system is clean; not checking
/dev/sd0e (35156d6ca8642950.e): file system is clean; not checking
setting tty flags
pf enabled
starting network
DHCPDISCOVER on cpsw0 to 255.255.255.255 port 67 interval 1
DHCPDISCOVER on cpsw0 to 255.255.255.255 port 67 interval 1
DHCPDISCOVER on cpsw0 to 255.255.255.255 port 67 interval 1
DHCPDISCOVER on cpsw0 to 255.255.255.255 port 67 interval 2
DHCPDISCOVER on cpsw0 to 255.255.255.255 port 67 interval 3
DHCPDISCOVER on cpsw0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on cpsw0 to 255.255.255.255 port 67 interval 21
DHCPDISCOVER on cpsw0 to 255.255.255.255 port 67 interval 20
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 21599 seconds.
openssl: generating isakmpd/iked RSA key... done.
ssh-keygen: generating new host keys: RSA1 RSA DSA ECDSA
starting early daemons: syslogd pflogd ntpd.
starting RPC daemons:.
savecore: no core dump
checking quotas: done.
kvm_mkdb: can't open /dev/ksyms
clearing /tmp
starting pre-securelevel daemons:.
setting kernel security level: kern.securelevel: 0 -> 1
creating runtime link editor directory cache.
preserving editor files.
starting network daemons: sshd sendmail sndiod.
fw_update: No devices found which need firmware files to be downloaded.
starting local daemons: cron.
Sat Aug 31 20:11:47 CST 2013

OpenBSD/beagle (bbb.10.xxx.com) (console)

login:

头像
unreal
银 Ag
帖子: 1083
注册时间: 2010-06-07 18:52

帖子 unreal » 2013-08-31 21:58

f5b兄很勤勉啊,赞~~ 兄台用A类内网IP阿,你的局域网那是灰常滴大阿~~~

嗯…… beagle也是还是又是二次引导!看来这货的 uboot 固件也是限制了只认 linux kernel,这就是所谓的开放硬件,俺非常痛恨这点!

f5b
锆 Zr
帖子: 643
注册时间: 2011-10-22 20:43

Re: 有人玩beaglebone black么?OpenBSD开始支持了

帖子 f5b » 2013-09-03 10:35

刚刚看了Raspberry Pi 和Beaglebone black的比较
http://roboteurs.com/beaglebone-black-vs-raspberry-pi/

看起来我更喜欢Raspberry Pi ,丰富的输出,有3.5音频输出,TV输出,2个USB接口(键盘鼠标同时用上),普通SD卡比TF卡更高速/稳定

但是,为何OpenBSD没有支持Raspberry Pi,下文就是理由,硬件不完全开放。
http://marc.info/?l=openbsd-misc&m=132788027403910&w=2

官方文档也有解释
http://www.raspberrypi.org/faqs
What hardware documentation will be available?
Broadcom don’t release a full datasheet for the BCM2835, which is the chip at the heart of the Raspberry Pi. We will release a datasheet for the SoC which will cover the hardware exposed on the Raspi board e.g. the GPIOs. We will also release a board schematic later on.

f5b
锆 Zr
帖子: 643
注册时间: 2011-10-22 20:43

Re: 有人玩beaglebone black么?OpenBSD开始支持了

帖子 f5b » 2013-09-03 10:43

在BBB上面安装过OpenBSD之后发现这个东西不适合我。还是比较喜欢x86架构的atom或via设备

原始投资价格高达574元以上
主板(美国原版)380元+串口线(原装TTL 232R 3v3)140元+电源(二手飞宏)15元+8G(东芝class10)TF卡39元

出手谁要?给价。

回复

在线用户

正浏览此版面之用户: 没有注册用户 和 1 访客