2
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.

NetBSDAdvent Calendar 2022

Day 2

NetBSD/armでLチカ

Last updated at Posted at 2022-12-04

とりあえずインストーラのramdisk.fsを使ってshが起動できるようになったので、クリスマスらしくLチカしてみます。

まずgpioctlを追加したramdisk.fsを作ります。

distrib/evbarm/instkernel/ramdisk/list

にgpioctlを追加します。

またデバイスのエントリーは勝手に生えてこなくてよく分からなかったので

distrib/evbarm/instkernel/ramdisk/list/obj/work.spec

に以下を追加してnbmakefsしました。

./dev/gpio0 type=char device=netbsd,173,0 mode=640 gid=5 uid=0

これでINSTALLなカーネルを作り出来上がったnetbsd.ubを読み込んで、sysinstからshを起動します。

# gpioctl gpio0 20 toggle

やっぱクリスマスは光り物に限りますね。

2
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
2
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?