Veck
Jan 17, 2021

--

寫得很清楚且簡單易懂,但有個想補充的地方

我在 Mac 上使用 `brew install qemu-system` 安裝 qemu,會發生以下錯誤(brew 已經 update):

No available formula or cask with the name "qemu-system".

上 Homebrew Formulae 只找到 qemu,沒有 qemu-system,因此改用 `brew install qemu` 完成安裝

安裝完命令還是 `qemu-system-arm`

-----

另外,我發現 gcc-arm-none-eabi-10-2020-q4-major-mac.pkg 的 toolchain 似乎有點不一樣,沒有 arm-none-eabi-gcc,編譯 kernel 時會出錯。

```

$ ls /Applications/ARM/arm-none-eabi/bin

ar as ld ld.bfd nm objcopy objdump ranlib readelf strip

```

找到一個[解決方法](https://github.com/ARMmbed/homebrew-formulae)

```

brew tap ArmMbed/homebrew-formulae

brew install arm-none-eabi-gcc

```

這樣安裝就可以到 arm-none-eabi-gcc,但是 gdb-multiarch 變成 arm-none-eabi-gdb

----

我最後實驗結果:成功在 GDB 看到相同的 list 畫面

--

--

No responses yet