Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AliOS-Things入门] 开发板MK3060入门 | IoT-Fans #22

Open
chunhuajiang opened this issue Oct 26, 2017 · 11 comments
Open

[AliOS-Things入门] 开发板MK3060入门 | IoT-Fans #22

chunhuajiang opened this issue Oct 26, 2017 · 11 comments

Comments

@chunhuajiang
Copy link
Owner

http://iot-fans.xyz/2017/10/26/alios/mk3060/

@kejinlu
Copy link

kejinlu commented Oct 28, 2017

那个Downloading Bootloader 跳过是什么意思,大佬知道么?

@chunhuajiang
Copy link
Owner Author

chunhuajiang commented Oct 28, 2017

@kejinlu

  • 看得真仔细 👍
  • 按我的理解,模组出厂时烧写了一个 bootloader,用于引导程序,我们开发时一般不需要烧写这个bootloader,但是如果用户有特殊需求,也可以自己修改并烧写修改后的bootloader镜像
  • AliOS-Things/board/mk3060/boot.bin应该就是这个bootloader,不过这只是个二进制镜像,我没看到源码
  • 默认是不需要烧写bootloader镜像的,但如何强制烧写呢?烧写程序是通过alios-cube这个工具包完成的aos make xxxx,在烧写程序的命令后加上一个选项total(即烧写与应用程序相关的所有镜像)就可以了。
  • 附aos make的用法:
work@ubuntu:~/me/AliOS-Things$ aos make
build/Makefile:119: *** Aborting due to invalid targets

Usage: make <target> [download] [run | debug] [JTAG=xxx] [total] [VERBOSE=1] [BINS=app/framework/kernel]
       make run

  <target>
    One each of the following mandatory [and optional] components separated by '@'
      * Application (apps in example)
      * Board (mk3060 linuxhost b_l475e)
      * [debug | release] Building for debug or release configurations

  [download]
    Download firmware image to target platform

  [run]
    Reset and run an application on the target hardware

  [total]
    Build all targets related to this application and board
......

@kejinlu
Copy link

kejinlu commented Oct 28, 2017

考虑来阿里么?哈哈。

@kejinlu
Copy link

kejinlu commented Oct 28, 2017

alios things现在的官方文档确实好多不严谨的地方,比如那些截图,很几张图片挨着的地方 上下使用的串口号 都对不上。 还有那个串口方法根本无法download,哈哈。

@chunhuajiang
Copy link
Owner Author

还有那个串口方法根本无法download,哈哈。

YES,现在串口下载还有问题

@unicobras42
Copy link

@kejinlu
请问一下 MK3060除了用alios things去烧录,可以用mico的方式去烧录吗?

@chunhuajiang
Copy link
Owner Author

请问一下 MK3060除了用alios things去烧录,可以用mico的方式去烧录吗?

当然可以,不过我是没去研究过

@KaiboFu
Copy link

KaiboFu commented Nov 27, 2017

前辈您好,我在烧录到板子上出现了这个错误“~/AliOS-Things/build/OpenOCD/Linux64/openocd: error while loading shared libraries: libhidapi-hidraw.so.0: cannot open shared object file: No such file or directory
”。
按照您此篇文章中提到的方法“在系统中单独安装一遍 OpenOCD,然后它会自动装上这个库:sudo apt-get install openocd”也没有凑效。
可以再详细解答下吗或者有没有其他的解决方法呢?

@KaiboFu
Copy link

KaiboFu commented Dec 5, 2017

已找到解决办法,感谢

@notagoodman
Copy link

@KaiboFu 我也遇到了这个问题,请问兄台是如何解决的?谢谢。

@KaiboFu
Copy link

KaiboFu commented Dec 26, 2017

@notagoodman
建议你直接从 https://github.com/alibaba/AliOS-Things/wiki/MK3060-Hardware-Setup 里面下载OpenOCD。
如果不行的话,你试一下:sudo apt-get install libhidapi-hidraw0
我这边是这样解决的,希望能帮到你。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants