Skip to content

Instantly share code, notes, and snippets.

@Akagi201
Last active October 20, 2022 08:37
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save Akagi201/1c77b96e4c7afbc4e6bb to your computer and use it in GitHub Desktop.
Save Akagi201/1c77b96e4c7afbc4e6bb to your computer and use it in GitHub Desktop.

Specs

  • Mini PC + Arduino = pcDuino
  • OS: Lubuntu 和 Android 4.0 ICS
  • 本地输出: HDMI
  • 硬件接口与Arduino兼容

Details

  • 支持通过任何I/O接口来连接Arduino的盾板(shield), 允许使用在Arduino中一样的代码.
  • 出厂默认系统安装Ubuntu在NAND flash上. Ubuntu可以从NAND flash或者一个可以启动的microSD卡上启动.

pcDuino V3

pcDuino Family 比较表格

u-boot源码

linux内核

install ubuntu on pcduino

  1. 下载内核和ubuntu根文件系统: http://www.pcduino.com/images-pcduino3/
内核: pcduino3_a20_kernel_livesuit_20140721.img
根文件系统: pcduino3_ubuntu_20140430.7z

install openwrt on pcduino

将PhonenixCard image转换成‘dd’ image

pcduino 使用大全

开发板配件

  • 蜂鸣器
  • micro-sd(TF)卡
  • USB-TTL
  • USB数据线
  • 电源
  • 网线

自选配件

  • USB摄像头
  • HDMI转VGA
  • HDMI高清线
  • 显示器
  • USB-WIFI
  • 声音采集
  • RTC

学习社区

视频教程

刷机流程

  1. 插入sd卡
  2. sudo diskutil umount /dev/disk1s1
  3. sudo dd if=/Users/Akagi201/Documents/pcDuino/img/pcduino_a10_kernel_disk32imager_20131127.img of=/dev/disk1 bs=1m

sunxi-babelfish (FEX-to-DT translator)

TF卡分区

start size usage
0 8KB Unused, available for partition table etc.
8 24KB Initial SPL Loader
32 512KB u-boot
544 128KB environment
672 352KB reserved
1024 - Free for partitions

清除TF卡内容

  • dd if=/dev/zero of=/dev/mmcblk0 bs=1M count=1
  • sync

ubuntu下NFS问题

  • apt-get install nfs-common

中文书

编译

编译和配置

  • cd kernel
  • make u-boot
  • 编译成功后会在当前目录下生成spl/sunxi-spl.binu-boot.bin, 将这个文件写到TF卡 dd if=spl/sunxi-spl.bin of=/dev/sdb bs=1024 seek=8; dd if=u-boot.bin of=/dev/sdb bs=1024 seek=32
  • 把TF卡插回pcduino测试是否正常启动.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment