0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Bareboxでping

Last updated at Posted at 2023-06-21

c1kのモジュールの後継のモジュールをハードオフで購入し、同じかと思ったらc2kでした。

image.png

ブートローダーがu-bootではなくBareboxだったので、まずはpingを試してみました。

Barebox-C2K >/ eth0.ipaddr=10.0.1.99
Barebox-C2K >/ eth0.netmask=255.255.255.0
Barebox-C2K >/ devinfo eth0
base  : 0x0
size  : 0x0
driver: none

Parameters:
          ipaddr = 10.0.1.99
         ethaddr = 00:0A:0B:0C:0D:0E
         gateway = <NULL>
         netmask = 255.255.255.0
        serverip = <NULL>
Barebox-C2K >/ ping 10.0.1.1
host 10.0.1.1 is alive

eth0はWANポートのPHYにつながっていました。

Bareboxはu-bootからforkしたプロジェクトで、linuxのように操作できる仕組みを目標にしていたようです。そのため設定はファイルに保存され、エディタで変更します。

u-bootでは環境変数に処理を書いておいてrunしていましたが、Bareboxではスクリプトファイルとして処理を保存できます。

Bareboxは現在も開発は続いているようですが、もう発表から10年以上たちますが、あまり採用例がなく、失敗のようにも思われます。

ipアドレスなどを保存する時はeditで/env/configを編集します。editはコントロール+Dで保存終了で、コントロール+Cで破棄終了です。編集した後にsaするとflashに保存されます。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?