制作Cubie版OpenWRT(功能齐全,大小仅有11M)

Allwinner Sun4i/5i/6i/7i (sunxi)

Various vendors are offering development boards / single-board computer based on the Allwinner SoCs. These are running various flavors of the A1x/A20 SoCs, with different buildouts. The mach is called "sunxi".

For some specs rather see Allwinner_Technology#A-Series.

Supported Versions

Model Version Launch Date OpenWrt Version Supported Model Specific Notes
A10 - trunk Single Cortex-A8
A10s - trunk Single Cortex-A8
A13 - trunk Single Cortex-A8
A20 - trunk Dual Cortex-A7
A23 - na Dual Cortex-A7
A31 - na Quad Cortex-A7
A33 - na Quad Cortex-A7
A80 - na 8-core big.LITTLE (4x A15 + 4x A7)

Hardware Highlights

Model SoC RAM Storage Network USB Serial JTAG UEXT Other linux-sunxi page
BananaPi A20 1024MiB μSD Gigabit Ethernet 2x USB2 yes n/a n/a HDMI, SATA, audio, IR, RCA video out, CSI Page
Cubieboard A10 1024MiB μSD, 4GB NAND Fast Ethernet 2x USB2 yes n/a yes HDMI, SATA, audio Page
Cubieboard2 A20 1024MiB μSD, 4GB NAND Fast Ethernet 2x USB2 yes n/a yes HDMI, SATA, audio Page
Cubietruck A20 2048MiB μSD, 8GB NAND BCM WiFi, Gigabit Ethernet 2x USB2 yes n/a n/a HDMI, VGA, SATA, audio, IR, TOSlink Page
Lamobo R1 A20 1024MiB μSD RTL8192CU 802.11bgn 2T2R WiFi
BCM53125 Gigabit Ethernet switch with 5 ports
1x USB2 Host, 1x USB2 OTG yes n/a n/a HDMI, SATA, audio, IR, CSI Page
Olimex A10-OLinuXino-LIME A10 512MiB μSD Fast Ethernet 2x USB2 yes n/a yes HDMI, SATA Page
Olimex A13-OLinuXino-WIFI A13 512MiB μSD RTL WiFi 3x USB2 yes n/a yes VGA Page
Olimex A13-SOM A13 256/512MiB μSD, 4GB NAND RTL WiFi n/a yes n/a n/a n/a  
Olimex A20-OLinuXino-MICRO A20 1024GiB SD, μSD, 4GB NAND Fast Ethernet 2x USB2 yes n/a yes HDMI, SATA, audio Page
pcDuino/pcDuinoV2 A10 1024MiB μSD, 2GB NAND Fast Ethernet 2x USB2 yes n/a n/a HDMI / Arduino headers Page
pcDuino3 A20 1024MiB μSD, 4GB NAND Fast Ethernet, RTL8188EU WiFi 1x USB2 yes n/a n/a HDMI / Arduino headers, SATA, IR Page

UEXT is an open standard port to provide serial, I²C and SPI expansion ports.

Installation

This section details what is required to install and upgrade OpenWrt. The generic procedure is described here: generic.flashing; this devices don‘t have a flash chip soldered to the PCB but an SD-Card slot.

Status

Patches have been back-ported from the http://linux-sunxi.org/ community, including device trees, clocks, timers, PIO, ethernet, USB, and, MMC.
These patches are currently being mainlined - eta. Linux 3.14 and 3.15 - by the community.

  • SPL: done
  • u-boot: done
  • kernel: done
  • rootfs: done

You have the option to boot the board from initramfs, SD card (recommended), USB storage, or NFS.

Working

  • SD/MMC
  • USB EHCI/OHCI
  • EMAC (10/100 Mbps)
  • A20 GMAC (10/100/1000 Mbps)
  • SATA
  • Clocks
  • Timers
  • SMP with HYP patches for 2014.04 u-boot
  • Various devices, GPIO, IR

Being worked on

  • NAND (have some snippets already)
  • SPI (need integration)

Not being worked on

  • Sound - need bump to 3.18

Installation process

Pre-built SD card images

You can build an SD card image directly from buildroot for your device.

  • Check out trunk - https://dev.openwrt.org/wiki/GetSource
  • Run make menuconfig
  • Select device profile - f.e. BananaPi
  • Start the build
  • The built SD card images will be in bin/sunxi
  • dd if=bin/sunxi/openwrt-sunxi-Bananapi-sdcard-vfat-ext4.img of=/dev/sdc

Assembling the SD card image yourself

OpenWrt trunk images are located in snapshots/trunk/sunxi/ folder.

For example if you have Cubieboard3/Cubietruck then download these files from the server:

SD layout

SD layout with 512 byte blocks:

NAME start block size
MBR 0 1 block
u-boot-with-spl.bin 16 (8 KB) ~250 KB
FAT 2048 (1 MB) 15 MB
EXT4 32768 (16 MB) rest

SD preparation

We assume /dev/mmcblk0 is the SD card and Cubietruck is the board.

  • Partition the SD card. Two partitions are created. The first is the boot partition, /dev/mmcblk0p1. The second is the root partition, /dev/mmcblk0p2.
# fdisk /dev/mmcblk0

Command (m for help): n
Partition type:
   p   primary (0 primary, 0 extended, 4 free)
   e   extended
Select (default p): p
Partition number (1-4, default 1): 1
First sector (2048-15523839, default 2048): 2048
Last sector, +sectors or +size{K,M,G} (2048-15523839, default 15523839): +15M 

Command (m for help): n
Partition type:
   p   primary (1 primary, 0 extended, 3 free)
   e   extended
Select (default p): p
Partition number (1-4, default 2): 2
First sector (32768-15523839, default 32768): 32768
Last sector, +sectors or +size{K,M,G} (32768-15523839, default 15523839): +240M

Command (m for help): p

Disk /dev/mmcblk0: 7948 MB, 7948206080 bytes
4 heads, 16 sectors/track, 242560 cylinders, total 15523840 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x17002d14

        Device Boot      Start         End      Blocks   Id  System
/dev/mmcblk0p1            2048       32767       15360   83  Linux
/dev/mmcblk0p2           32768      524287      245760   83  Linux

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.
  • Re-read the new partition table layout (e.g. by removing and re-inserting the SD card).
  • Copy the SPL + U-boot image to the card
# dd if=bin/sunxi/uboot-sunxi-Cubietruck/openwrt-sunxi-Cubietruck-u-boot-with-spl.bin of=/dev/mmcblk0 bs=1024 seek=8
  • Create a boot (FAT32) partition.
# mkfs.vfat /dev/mmcblk0p1
  • Mount the boot partition.
# mount -t vfat /dev/mmcblk0p1 /mnt
  • Copy the U-Boot environment file uEnv.txt to the boot partition.
# cp bin/sunxi/uboot-sunxi-Cubietruck/openwrt-sunxi-Cubietruck-uEnv.txt /mnt/uEnv.txt
  • Copy the device tree data to the boot partition.
# cp bin/sunxi/sun7i-a20-cubietruck.dtb /mnt/dtb
  • Copy the kernel image to the boot partition.
# cp bin/sunxi/openwrt-sunxi-uImage /mnt/uImage
  • Resize the root filesystem image to match the partition size.
# resize2fs bin/sunxi/openwrt-sunxi-root.ext4 240M
  • Create the root filesystem.
# dd if=bin/sunxi/openwrt-sunxi-root.ext4 of=/dev/mmcblk0p2 bs=128k
  • Wrap up (flush buffers and unmount boot partition).
# sync
# umount /mnt

Upgrading OpenWrt

generic.sysupgrade

*WiP*

If you have already installed OpenWrt and like to reflash for e.g. upgrading to a new OpenWrt version you can upgrade using the mtd command line tool. It is important that you put the firmware image into the ramdisk (/tmp) before you start flashing.

Links

For further information about the SoCs, go to http://linux-sunxi.org/Main_Page

How can you help

时间: 2024-08-01 06:45:47

制作Cubie版OpenWRT(功能齐全,大小仅有11M)的相关文章

必应词典桌面版 --- 基于大学生用户群体的软件分析(与有道词典对比版 1功能篇)

1.概述 这篇博客会从大学生的角度来评测必应词典桌面版,以大学生的使用习惯来评判必应词典桌面版各项功能的优劣,并与同类软件进行横向分析,最终给出我们的评分.本次分析评测的主要评测员为博主本人,相关分析评测人员包括软件工程团队人员与他们的来自各个学校各个专业的同学们,人数共计23个,具有较好的普遍性. 2.软件分析与评测 本次评测我们会从功能.体验两大方面来对必应词典桌面版进行分析.必应词典版本:V3.5.0 for windows 桌面版     有道词典版本:PC版6.2 这篇博客是功能篇.

x-code制作坑爹版五音十图

这一个多星期以来只学会了建立按钮,设置背景,添加动画三个操作,涉及算法跟一些函数调用的代码都不是很懂,然后勉强制作出了下面这个坑爹版“五音十图”,实现的功能相当寒酸:1.单击[practice]出来动画 .2.单击[back]跳到第二个页面 3.点[pronounce]发出声音 4.清除当前显示的字 5,在第二个页面按某个字可以跳回主页面.....PS:看同学们玩UI控制都挺上手的,而自己照着老师的代码看啊敲啊半天也搞不懂怎么回事,每天珊哥布置的任务不能如期完成,心里也有点急,没办法,既然是只笨

制作移动版Win8系统

两条命令就能在不破坏原有磁盘格局的情况下安装好移动版Windows 8系统,这样简单的事情你相信吗?曾过用Win8的Windows To Go功能以及借助专用的WTG辅助工具在Win7下制作移动版Win8的两种方法.然而,前者需要有一个32GB以上的U盘或移动盘,并需在Win 8企业版下装载ISO安装镜像才能进行制作,这对于仍然在用Win7系统的用户有些为难.后者则除了要去找WTG辅助工具外,也至少需要20GB以上的移动存储设备,万一手头的旧设备不足20GB空间,岂不就失望了? 其实,有更简单的

ASP.NET MVC + 百度富文本编辑器 + EasyUi + EntityFrameWork 制作一个添加新闻功能

本文将交大伙怎么集成ASP.NET MVC + 百度富文本编辑器 + EasyUi + EntityFrameWork来制作一个新闻系统 先上截图: 添加页面如下: 下面来看代码部分 列表页如下: 1 @{ 2 Layout = null; 3 } 4 5 <!DOCTYPE html> 6 7 <html> 8 <head> 9 <meta name="viewport" content="width=device-width&qu

Rocky版新功能集锦之三:Trove

摘要:8月31日,备受业界关注的OpenStack第18个版本Rocky正式发布.在人工智能,机器学习,NFV和边缘计算等用户的驱动下,Rocky版本的OpenStack变得比以往更强大,它带来了数十种增强功能,并支持各种硬件架构,包括裸机管理服务等,这些更新和升级能够很好的满足基础设施的新需求.OpenStack正力争为业界提供一个开放,完善,稳定,功能齐全的最优解决方案.今天将围绕Rocky版本的Trove项目,对项目的新特性进行展示,业界需要掌握的关键点都在这里. Trove简介 Trov

创建一个C++制作的包含Opencv功能的dll,供C#程序使用

目的:朋友用C#编写了一个软件,先需要一个功能:获取某图片指定位置的颜色. 实现该目的的方法有很多,即为了朋友能够很便捷解决该问题,也为了有助于扩充自己技术广度,所以决定采用标题中的方法来完成. 没有C++编程经验,也没有制作C++版Opencv语法经验,也没有制作dll的经验,整个流程牵涉比较多的技术环节,每个环节需要一个一个测试通过,才能进行后续设计. 由于网上太多零散信息,没有很好的参考资料,大多只能靠自己实践测试,所以从开始,到跨机各种环境测试,整整花了1天半. 现在问题全部解决了,回头

功能齐全、效率一流的免费开源数据库导入导出工具(c#开发,支持SQL server、SQLite、ACCESS三种数据库),每月借此处理数据5G以上

软件名:DataPie 功能:支持SQL server.SQLite.ACCESS数据库的导入.导出.存储过程调用,支持EXCEL2007.EXCEL2003.ACCESS2007. CSV文件导入数据库,支持EXCEL.CSV.ZIP.ACCESS文件方式导出,支持数据拆分导出及自定义SQL查询与导出. 开发背景:作者从事财务管理工作,主要是出具集团的内部财务报表,随着公司精细化管理的需求,管理报表的数据量急速增长, 依赖EXCEL加工处理数据已经变得极为困难,因此团队全面转向关系数据库进行数

Dynagram.DynaStrip.v6.0.11CD(功能齐全的排版软件)\

ANSA v13.2.2 Win32_64 2CD Imagineer.Systems.Mocha.For.AE.v3.0.2.Win32 1CD Imagineer.Systems.Mocha.For.AE.v3.0.2.Win64 1CD Imagineer.Systems.Mocha.Pro.v3.0.2.Win32 1CD Imagineer.Systems.Mocha.Pro.v3.0.2.Win64 1CD Orange.Technologies.Cadpipe.Suite.v12.

VS.NET NET4.0 C#.NET微信公众平台源码,功能齐全 微信源码

C#.NET微信公众平台源码,功能齐全 微信源码 会员卡,微商城,微营销等等 源码已集成目前市场主流功能,并实时更新,应用商店更有大量贴心/实用/酷炫功能和模板可供自主添加 演示地址http://cx010108.pssdss.com/admin/ 用户名 admin 密码 529 源码下载http://www.pssdss.com/d230.html 更多源码网站http://www.pssdss.com 联系QQ:11851298