Update buidlroot to version 2016.08.1
This commit is contained in:
17
bsp/buildroot/board/olimex/a20_olinuxino/genimage.cfg
Normal file
17
bsp/buildroot/board/olimex/a20_olinuxino/genimage.cfg
Normal file
@@ -0,0 +1,17 @@
|
||||
image sdcard.img {
|
||||
hdimage {
|
||||
}
|
||||
|
||||
partition u-boot {
|
||||
in-partition-table = "no"
|
||||
image = "u-boot-sunxi-with-spl.bin"
|
||||
offset = 8192
|
||||
size = 1040384 # 1MB - 8192
|
||||
}
|
||||
|
||||
partition rootfs {
|
||||
partition-type = 0x83
|
||||
image = "rootfs.ext4"
|
||||
size = 512M
|
||||
}
|
||||
}
|
||||
16
bsp/buildroot/board/olimex/a20_olinuxino/post-image.sh
Executable file
16
bsp/buildroot/board/olimex/a20_olinuxino/post-image.sh
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/bin/sh
|
||||
|
||||
BOARD_DIR="$(dirname $0)"
|
||||
GENIMAGE_CFG="${BOARD_DIR}/genimage.cfg"
|
||||
GENIMAGE_TMP="${BUILD_DIR}/genimage.tmp"
|
||||
|
||||
rm -rf "${GENIMAGE_TMP}"
|
||||
|
||||
genimage \
|
||||
--rootpath "${TARGET_DIR}" \
|
||||
--tmppath "${GENIMAGE_TMP}" \
|
||||
--inputpath "${BINARIES_DIR}" \
|
||||
--outputpath "${BINARIES_DIR}" \
|
||||
--config "${GENIMAGE_CFG}"
|
||||
|
||||
exit $?
|
||||
@@ -3,12 +3,13 @@ A20-OLinuXino-LIME and A20-OLinuXino-MICRO
|
||||
Intro
|
||||
=====
|
||||
|
||||
These are open hardware boards, both based an the AllWinners A20 SoC.
|
||||
These are open hardware boards, all based on the Allwinner A20 SoC.
|
||||
|
||||
for more details about the boards see the following pages:
|
||||
- https://www.olimex.com/Products/OLinuXino/open-source-hardware
|
||||
- https://www.olimex.com/Products/OLinuXino/A20/A20-OLinuXino-MICRO/
|
||||
- https://www.olimex.com/Products/OLinuXino/A20/A20-OLinuXino-LIME/
|
||||
- https://www.olimex.com/Products/OLinuXino/A20/A20-OLinuXino-LIME2/
|
||||
|
||||
The following defconfigs are available:
|
||||
- olimex_a20_olinuxino_micro_defconfig
|
||||
@@ -51,6 +52,7 @@ After building, you should get a tree like this:
|
||||
+-- rootfs.ext2
|
||||
+-- rootfs.ext4 -> rootfs.ext2
|
||||
+-- script.bin (lime_mali)
|
||||
+-- sdcard.img
|
||||
+-- sun7i-a20-olinuxino-lime.dtb (lime, mainline)
|
||||
+-- sun7i-a20-olinuxino-lime2.dtb (lime2, mainline)
|
||||
+-- sun7i-a20-olinuxino-micro.dtb (micro, mainline)
|
||||
@@ -62,55 +64,13 @@ After building, you should get a tree like this:
|
||||
How to write the SD card
|
||||
========================
|
||||
|
||||
The sdcard.img file is a complete bootable image ready to be written
|
||||
on the boot medium. To install it, simply copy the image to a uSD
|
||||
card:
|
||||
|
||||
Prepare the SD card
|
||||
-------------------
|
||||
# dd if=output/images/sdcard.img of=/dev/sdX
|
||||
|
||||
Erase existing stuff, and create an unique Linux partition with `fdisk`.
|
||||
|
||||
# fdisk /dev/sdX
|
||||
Command (m for help): o
|
||||
Building a new DOS disklabel with disk identifier 0xf9e1616a.
|
||||
Changes will remain in memory only, until you decide to write them.
|
||||
After that, of course, the previous content won't be recoverable.
|
||||
|
||||
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-7626751, default 2048): 2048
|
||||
Last sector, +sectors or +size{K,M,G} (2048-7626751, default 7626751):
|
||||
Using default value 7626751
|
||||
|
||||
Command (m for help): p
|
||||
|
||||
Disk /dev/sdX: 3904 MB, 3904897024 bytes
|
||||
4 heads, 16 sectors/track, 119168 cylinders, total 7626752 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: 0xf9e1616a
|
||||
|
||||
Device Boot Start End Blocks Id System
|
||||
/dev/sdX1 2048 7626751 3812352 83 Linux
|
||||
|
||||
Command (m for help): w
|
||||
The partition table has been altered!
|
||||
|
||||
Calling ioctl() to re-read partition table.
|
||||
Syncing disks.
|
||||
|
||||
Copy images on the SD card
|
||||
--------------------------
|
||||
|
||||
# dd if=output/images/rootfs.ext2 of=/dev/sdX1
|
||||
# dd if=output/images/u-boot-sunxi-with-spl.bin of=/dev/sdX bs=1024 seek=8
|
||||
|
||||
|
||||
Finish
|
||||
======
|
||||
Where 'sdX' is the device node of the uSD.
|
||||
|
||||
Eject the SD card, insert it in the A20-OLinuXino board, and power it up.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user