m1 MacBook Pro 及其ubuntu虚拟机下搭建FMT开发环境(探索中) #22
Replies: 12 comments 14 replies
-
我先在arm64-ubuntu下尝试,我在ubuntu下安装了开发环境并成功进行了FMU和io的编译,但我没有继续了,我直接跳到软件在环仿真一章,编译也成功了。但我不知道怎么“运行 qemu.sh 或 qemu.bat” 我试着:
|
Beta Was this translation helpful? Give feedback.
-
安装qemu-system-arm后运行qemu.sh输出: parallels@ubuntu-linux-20-04-desktop:~/FMT-Firmware/target/qemu/qemu-vexpress-a9$ sudo ./qemu.sh
Formatting 'sd.bin', fmt=raw size=67108864
mkfs.fat 4.1 (2017-01-24)
WARNING: Image format was not specified for 'sd.bin' and probing guessed raw.
Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted.
Specify the 'raw' format explicitly to remove the restrictions.
[I/SDIO] SD card capacity 65536 KB.
[I/SDIO] switching card to high speed failed!
can not load /sys/sih_param.xml, use default parameter value.
TOML: fail to open file: /sys/sysconfig.toml
_____ __
/ __(_)_____ _ ___ ___ _ ___ ___ / /_
/ _// / __/ ' \/ _ `/ ' \/ -_) _ \/ __/
/_/ /_/_/ /_/_/_/\_,_/_/_/_/\__/_//_/\__/
Firmware..................FMT FW v0.3.0-rc
Kernel....................RT-Thread v4.0.3
RAM................................8192 KB
Target....................QEMU vexpress-a9
Vehicle.........................Quadcopter
INS Model..................Base INS v0.2.1
FMS Model..................Base FMS v0.3.2
Control Model.......Base Controller v0.2.1
Plant Model.............Multicopter v0.2.1
Task Initialize:
local.................................OK
comm..................................OK
logger................................OK
status................................OK
vehicle...............................OK 卡了很久,然后我重新运行后正常了。问题是即使我成功编译所有目标,但无法连接地面站。 |
Beta Was this translation helpful? Give feedback.
-
下面我转到Mac下测试。依然是同样的问题。地面站没反应。
我的arm-none-eabi-gcc是以前brew安装好了:
|
Beta Was this translation helpful? Give feedback.
-
无论是Mac还是里面的arm-ubuntu虚拟机,我的电脑上可以正常跑px4仿真然后地面站qgc上可以正常连接的。硬件也可以连接。 但fmt仿真连接不到地面站!!! |
Beta Was this translation helpful? Give feedback.
-
这个项目没什么人用吗?开发者还在吗? |
Beta Was this translation helpful? Give feedback.
-
我是在 win10 下编译的, 在ubuntu下应该也没问题 |
Beta Was this translation helpful? Give feedback.
-
@mengchaoheng 你好,我看你发的图是已经连接上地面站了的。报错说mission transfer failed是传输航点文件不成功,这个在最新的固件上已经解决了,你可以先git pull一下最新的代码,再重新编译运行一下 |
Beta Was this translation helpful? Give feedback.
-
ubuntu下是这样的提示 |
Beta Was this translation helpful? Give feedback.
-
Mac下是这样,貌似已经起飞,但地面站没法控制,仪表盘没有数据,但反馈的状态确实是起飞并且降落。我不知道他原本是不是就是这样的形式。 |
Beta Was this translation helpful? Give feedback.
-
我看了宣传视频,虽然没有仿真界面,但地面站是能看到飞机状态的。但我现在没搞出来。 |
Beta Was this translation helpful? Give feedback.
-
我不清楚是不是你用的是最新的QGC,跟飞控的通信协议有所改变。你可以用一下较老的QGC版本,比如3.5.6 |
Beta Was this translation helpful? Give feedback.
-
最好是在Ubuntu或者win10中测试,mac可能会有兼容性问题
| |
廖禄伟
|
|
***@***.***
|
在2022年4月20日 ***@***.***> 写道:
以上是mac下的测试,连不到地面站
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
这是arm64的CPU,比较特别,不知道能不能用来进行开发。
ubuntu下装了aarch64版的编译器arm-none-eabi- toolchain,其他参考教程;
macOS下用brew进行了qemu, scons, 还有交叉编译工具。
下面尝试编译和运行
Beta Was this translation helpful? Give feedback.
All reactions