2019年10月22日火曜日

★openbsd arm64 raspberry pi 3B ハードデスクだけから起動できます


アメリカ国歌
http://www.world-anthem.com/lyrics/usa.htm
おお、見えるだろうか、
夜明けの薄明かりの中
我々は誇り高く声高に叫ぶ
危難の中、城壁の上に
雄々しく翻(ひるがえ)る
太き縞に輝く星々を我々は目にした
砲弾が赤く光を放ち宙で炸裂する中
我等の旗は夜通し翻っていた
ああ、星条旗はまだたなびいているか?
自由の地 勇者の故郷の上に!


中国国歌https://detail.chiebukuro.yahoo.co.jp/qa/question_detail/q1090653005
立ちあがれ! 奴隷になるのを望まぬ人々よ!
我々の血肉をもって、我々の新しき長城を築こう!
中華民族は最も危険な時に到ったのだ、
皆が最後の雄たけびを発することを迫られているのだ。
立ちあがれ! 立ちあがれ! 立ちあがれ!
我々民衆は心を一にして
敵の砲火に立ち向かって前進せよ!
敵の砲火に立ち向かって前進せよ!
前進せよ! 前進せよ! 進め!

フランス国歌https://tsvocalschool.com/classic/marseillaise/
行こう 祖国の子供たちよ
栄光の日が来た!
私たちに対して 暴政の
血まみれの旗が上がった
血まみれの旗が上がった
聞こえるか 戦場の
残酷な軍人のうなりが?
彼らは私たちの腕の中まで来て
私たちの息子や妻の 喉を掻き切って殺す!


アドネラリン分泌を大量放出させ 競技場で歌ってる間に戦闘モードになるね
それに比べ日本の国歌のなんと平和なこと

https://celestia358.luxe/319
恋歌として歌ってもいいほどロマンティック

君が = 親愛なる君、古代日本語ではき」は男性「み」は女性
代 = 人が生活を営む期間、一生涯
千代に八千代に = 千年も、八千年も
さざれ石の巌となりて = 小さなことが大きくなるまで、協力する
苔のむすまで = 絆がむすびついていく

【ロマンチックな恋歌の解釈】
「愛しい君と永遠に生まれ変わっても、生涯は協力して絆を結んでいこう」

簡単なメモ

冗長なのは以下
https://openbsd-akita.blogspot.com/2017/03/openbsd-61-on-raspberry-pi-3.html


raspberry pi は arm64




黒 Ground
白 TX
緑 RX




#minicom -D /dev/ttyUSB0



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





Available disks are: sd0 sd0はUSB接続SSD
Which disk is the root disk? ('?' for details) [sd0] !
Type 'exit' to return to install.
rpi3# dmesg | grep sd                                                       
    deraadt@arm64.openbsd.org:/usr/src/sys/arch/arm64/compile/RAMDISK
wsdisplay0 at simplefb0
wsdisplay0: screen 0 added (std, vt100 emulation)
sd0 at scsibus0 targ 1 lun 0: <Mass, Storage Device, 0 0> serial.14cd6116116AC2101219
sd0: 15272MB, 512 bytes/sector, 31277230 sectors
wskbd0: connecting to wsdisplay0
bootfile: sd0a:/bsd
boot device: sd0
rpi3# exit
Available disks are: sd0.
Which disk is the root disk? ('?' for details) [sd0]
Disk: sd0       geometry: 1946/255/63 [31277230 Sectors]
Offset: 0       Signature: 0xAA55
            Starting         Ending         LBA Info:
 #: id      C   H   S -      C   H   S [       start:        size ]
-------------------------------------------------------------------------------
 0: 00      0   0   0 -      0   0   0 [           0:           0 ] unused   
 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   0   1 -   1945 254  63 [           0:    31262490 ] OpenBSD   
Use (W)hole disk or (E)dit the MBR? [whole]
Creating a msdos 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 mid=0xf8 spf=32 spt=63 hds=255 hid=32768 bsec=32768
The auto-allocated layout for sd0 is:
#                size           offset  fstype [fsize bsize   cpg]
  a:           372.9M            65536  4.2BSD   2048 16384     1 # /
  b:           525.8M           829216    swap                 
  c:         15272.1M                0  unused                 
  d:           476.6M          1906080  4.2BSD   2048 16384     1 # /tmp
  e:           659.5M          2882208  4.2BSD   2048 16384     1 # /var
  f:          1722.9M          4232960  4.2BSD   2048 16384     1 # /usr
  g:           517.7M          7761440  4.2BSD   2048 16384     1 # /usr/X11R6
  h:          1692.7M          8821760  4.2BSD   2048 16384     1 # /usr/local
  i:            16.0M            32768   MSDOS                 
  j:          1389.2M         12288416  4.2BSD   2048 16384     1 # /usr/src
  k:          5298.3M         15133408  4.2BSD   2048 16384     1 # /usr/obj
  l:          2584.4M         25984352  4.2BSD   2048 16384     1 # /home
Use (A)uto layout, (E)dit auto layout, or create (C)ustom layout? [a] c
Label editor (enter '?' for help at any prompt)
sd0> a b
offset: [65536]
size: [31211694] 1g
FS type: [swap]
sd0*> a a
offset: [2168775]
size: [29108455]
FS type: [4.2BSD]
mount point: [none] /
sd0*> p
OpenBSD area: 65536-31277230; size: 31211694; free: 39
#                size           offset  fstype [fsize bsize   cpg]
  a:         29108416          2168800  4.2BSD   2048 16384     1 # /
  b:          2103239            65536    swap                 
  c:         31277230                0  unused                 
  i:            32768            32768   MSDOS                 
sd0*> w
sd0> q






Let's install the sets!
Location of sets? (disk http nfs or 'done') [http]
HTTP proxy URL? (e.g. 'http://proxy:8080', or 'none') [none]
HTTP Server? (hostname, list#, 'done' or '?') [ftp.jaist.ac.jp]
Server directory? [pub/OpenBSD/snapshots/arm64]

Select sets by entering a set name, a file name pattern or 'all'. De-select
sets by prepending a '-', e.g.: '-game*'. Selected sets are labelled '[X]'.
    [X] bsd           [X] base66.tgz    [X] game66.tgz    [X] xfont66.tgz
    [X] bsd.mp        [X] comp66.tgz    [X] xbase66.tgz   [X] xserv66.tgz
    [X] bsd.rd        [X] man66.tgz     [X] xshare66.tgz






When you login to your new system the first time, please read your mail
using the 'mail' command.
Exit to (S)hell, (H)alt or (R)eboot? [reboot] h



マイクロSDカードを外して再起動(USB接続SSDのみ)



# minicom -D /dev/ttyUSB0
すると


minicom上で

sd0 at scsibus0 targ 1 lun 0: <Mass, Storage Device, 0 0> serial.14cd6116116AC2101219
sd0: 15272MB, 512 bytes/sector, 31277230 sectors
uhidev0 at uhub1 port 5 configuration 1 interface 0 "CHICONY HP Basic USB Keyboard" rev 2.00/1.30 a5
uhidev0: iclass 3/1
ukbd0 at uhidev0: 8 variable keys, 6 key codes
wskbd0 at ukbd0 mux 1
wskbd0: connecting to wsdisplay0
vscsi0 at root
scsibus1 at vscsi0: 256 targets
softraid0 at root
scsibus2 at softraid0: 256 targets
bootfile: sd0a:/bsd
boot device: sd0
root on sd0a (cbf0a94f633ba6c0.a) swap on sd0b dump on sd0b
WARNING: CHECK AND RESET THE DATE!
Automatic boot in progress: starting file system checks.
/dev/sd0a (cbf0a94f633ba6c0.a): file system is clean; not checking
pf enabled
starting network
smsc0: 192.168.17.16 lease accepted from 192.168.17.1 (00:0d:0b:6a:34:16)
reordering libraries: done.
openssl: generating isakmpd/iked RSA keys... done.
ssh-keygen: generating new host keys: RSA DSA ECDSA ED25519 
starting early daemons: syslogd pflogd ntpd.
starting RPC daemons:.
savecore: no core dump
checking quotas: done.
clearing /tmp
kern.securelevel: 0 -> 1
creating runtime link editor directory cache.
preserving editor files.
starting network daemons: sshd smtpd sndiod.
running rc.firsttime
Path to firmware: http://firmware.openbsd.org/firmware/snapshots/
No devices found which need firmware files to be downloaded.
starting local daemons: cron.
Tue Oct 22 04:46:15 JST 2019
OenBSD/arm64 (rpi3.my.domain) (console)
login: 





rpi3# ifconfig                                                                 
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 32768
        index 2 priority 0 llprio 3
        groups: lo
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
        inet 127.0.0.1 netmask 0xff000000
enc0: flags=0<>
        index 1 priority 0 llprio 3
        groups: enc
        status: active
smsc0: flags=808843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,AUTOCONF4> mtu 1500
        lladdr b8:27:eb:ce:cf:d8
        index 3 priority 0 llprio 3
        groups: egress
        media: Ethernet autoselect (100baseTX full-duplex)
        status: active
        inet 192.168.17.16 netmask 0xffffff00 broadcast 192.168.17.255
pflog0: flags=141<UP,RUNNING,PROMISC> mtu 33136
        index 4 priority 0 llprio 3
        groups: pflog
rpi3# ping -c 3 www.google.com
PING www.google.com (172.217.31.164): 56 data bytes
64 bytes from 172.217.31.164: icmp_seq=0 ttl=49 time=34.531 ms
64 bytes from 172.217.31.164: icmp_seq=1 ttl=49 time=30.245 ms
64 bytes from 172.217.31.164: icmp_seq=2 ttl=49 time=29.891 ms

--- www.google.com ping statistics ---
3 packets transmitted, 3 packets received, 0.0% packet loss
round-trip min/avg/max/std-dev = 29.891/31.556/34.531/2.109 ms

0 件のコメント:

コメントを投稿