2
3

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 3 years have passed since last update.

Yocto QEMU X86_64の環境にssh,gdbを追加する

Posted at

Yocto QEMU X86_64の環境にssh,gdbを追加する。

初回
$ git clone https://git.yoctoproject.org/git/poky
$ cd poky
$ source oe-init-build-env

build実施
$ bitbake core-image-minimal

起動確認
$ runqemu tmp/deploy/images/qemux86-64/ nographic

ここまでが素の状態の動作確認。

変更
local.confに以下を追加

ssh

CORE_IMAGE_EXTRA_INSTALL += "openssh"

gdbserver

CORE_IMAGE_EXTRA_INSTALL += "gdbserver"

再ビルド
$ rm -r ./tmp
↑これをしないとlocal.confが反映されない。

再ビルド
$ bitbake core-image-minimal

起動
$ runqemu tmp/deploy/images/qemux86-64/ nographic

別ターミナルから以下で接続可能。
$ ssh root@192.168.7.2

GDBがインストールされているか確認
$ gdb -v

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?