mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
Merge from bittboy/buildroot@db180c0
This commit is contained in:
1
board/olimex/a10_olinuxino/boot.cmd
Symbolic link
1
board/olimex/a10_olinuxino/boot.cmd
Symbolic link
@@ -0,0 +1 @@
|
||||
../a20_olinuxino/boot.cmd
|
||||
1
board/olimex/a10_olinuxino/genimage.cfg
Symbolic link
1
board/olimex/a10_olinuxino/genimage.cfg
Symbolic link
@@ -0,0 +1 @@
|
||||
../a20_olinuxino/genimage.cfg
|
||||
1
board/olimex/a10_olinuxino/post-build.sh
Symbolic link
1
board/olimex/a10_olinuxino/post-build.sh
Symbolic link
@@ -0,0 +1 @@
|
||||
../a20_olinuxino/post-build.sh
|
||||
57
board/olimex/a10_olinuxino/readme.txt
Normal file
57
board/olimex/a10_olinuxino/readme.txt
Normal file
@@ -0,0 +1,57 @@
|
||||
A10-OLinuXino-LIME
|
||||
|
||||
Intro
|
||||
=====
|
||||
|
||||
These are open hardware boards, all based on the Allwinner A10 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/A10/A10-OLinuXino-LIME/
|
||||
|
||||
The following defconfigs are available:
|
||||
- olimex_a10_olinuxino_lime_defconfig
|
||||
for the A10-OLinuXino-LIME board using mainline kernel
|
||||
|
||||
(see http://linux-sunxi.org/Linux_Kernel for more details)
|
||||
|
||||
How to build it
|
||||
===============
|
||||
|
||||
Configure Buildroot:
|
||||
|
||||
$ make <board>_defconfig
|
||||
|
||||
Compile everything and build the rootfs image:
|
||||
|
||||
$ make
|
||||
|
||||
Result of the build
|
||||
-------------------
|
||||
|
||||
After building, you should get a tree like this:
|
||||
|
||||
output/images/
|
||||
+-- boot.scr
|
||||
+-- rootfs.ext2
|
||||
+-- rootfs.ext4 -> rootfs.ext2
|
||||
+-- sdcard.img
|
||||
+-- sun4i-a10-olinuxino-lime.dtb (lime, mainline)
|
||||
+-- u-boot.bin
|
||||
+-- u-boot-sunxi-with-spl.bin
|
||||
`-- zImage
|
||||
|
||||
|
||||
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:
|
||||
|
||||
# dd if=output/images/sdcard.img of=/dev/sdX
|
||||
|
||||
Where 'sdX' is the device node of the uSD.
|
||||
|
||||
Eject the SD card, insert it in the A10-OLinuXino board, and power it up.
|
||||
|
||||
7
board/olimex/a13_olinuxino/boot.cmd
Normal file
7
board/olimex/a13_olinuxino/boot.cmd
Normal file
@@ -0,0 +1,7 @@
|
||||
setenv bootargs console=ttyS0,115200 earlyprintk root=/dev/mmcblk0p2 rootwait
|
||||
|
||||
mmc dev 0
|
||||
fatload mmc 0 $kernel_addr_r zImage
|
||||
fatload mmc 0 $fdt_addr_r sun5i-a13-olinuxino.dtb
|
||||
|
||||
bootz $kernel_addr_r - $fdt_addr_r
|
||||
34
board/olimex/a13_olinuxino/genimage.cfg
Normal file
34
board/olimex/a13_olinuxino/genimage.cfg
Normal file
@@ -0,0 +1,34 @@
|
||||
image boot.vfat {
|
||||
vfat {
|
||||
files = {
|
||||
"zImage",
|
||||
"sun5i-a13-olinuxino.dtb",
|
||||
"boot.scr"
|
||||
}
|
||||
}
|
||||
size = 64M
|
||||
}
|
||||
|
||||
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 boot {
|
||||
partition-type = 0xC
|
||||
bootable = "true"
|
||||
image = "boot.vfat"
|
||||
}
|
||||
|
||||
|
||||
partition rootfs {
|
||||
partition-type = 0x83
|
||||
image = "rootfs.ext4"
|
||||
}
|
||||
}
|
||||
7
board/olimex/a13_olinuxino/post-build.sh
Executable file
7
board/olimex/a13_olinuxino/post-build.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
MKIMAGE=$HOST_DIR/bin/mkimage
|
||||
|
||||
$MKIMAGE -A arm -O linux -T script -C none \
|
||||
-d board/olimex/a13_olinuxino/boot.cmd \
|
||||
${BINARIES_DIR}/boot.scr
|
||||
43
board/olimex/a13_olinuxino/readme.txt
Normal file
43
board/olimex/a13_olinuxino/readme.txt
Normal file
@@ -0,0 +1,43 @@
|
||||
A13-OLinuXino
|
||||
|
||||
Intro
|
||||
=====
|
||||
|
||||
This default configuration will allow you to start experimenting with
|
||||
the buildroot environment for the A13-OLinuXino. With the current
|
||||
configuration it will bring-up the board, and allow access through the
|
||||
serial console.
|
||||
|
||||
For more details about the A13-OLinuXino:
|
||||
|
||||
https://www.olimex.com/Products/OLinuXino/A13/A13-OLinuXino/open-source-hardware
|
||||
|
||||
How to build it
|
||||
===============
|
||||
|
||||
Configure Buildroot:
|
||||
|
||||
$ make olimex_a13_olinuxino_defconfig
|
||||
|
||||
Compile everything and build the rootfs image:
|
||||
|
||||
$ make
|
||||
|
||||
Note: you will need access to the internet to download the required
|
||||
sources.
|
||||
|
||||
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 micro SD
|
||||
card:
|
||||
|
||||
# dd if=output/images/sdcard.img of=/dev/sdX
|
||||
|
||||
Notes:
|
||||
- replace 'sdX' with the actual device with your micro SDcard,
|
||||
- you may need to be root to do that (use 'sudo').
|
||||
|
||||
Eject the SD card, insert it in the A13-OLinuXino board, and power it
|
||||
up.
|
||||
5
board/olimex/a20_olinuxino/boot.cmd
Normal file
5
board/olimex/a20_olinuxino/boot.cmd
Normal file
@@ -0,0 +1,5 @@
|
||||
setenv bootargs console=ttyS0,115200 root=/dev/mmcblk0p1 rootwait panic=10 ${extra}
|
||||
ext4load mmc 0 0x49000000 /boot/${fdtfile}
|
||||
ext4load mmc 0 0x46000000 /boot/zImage
|
||||
env set fdt_high ffffffff
|
||||
bootz 0x46000000 - 0x49000000
|
||||
17
board/olimex/a20_olinuxino/genimage.cfg
Normal file
17
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
|
||||
}
|
||||
}
|
||||
3
board/olimex/a20_olinuxino/post-build.sh
Executable file
3
board/olimex/a20_olinuxino/post-build.sh
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
cp $BINARIES_DIR/boot.scr $TARGET_DIR/boot/boot.scr
|
||||
69
board/olimex/a20_olinuxino/readme.txt
Normal file
69
board/olimex/a20_olinuxino/readme.txt
Normal file
@@ -0,0 +1,69 @@
|
||||
A20-OLinuXino-LIME and A20-OLinuXino-MICRO
|
||||
|
||||
Intro
|
||||
=====
|
||||
|
||||
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
|
||||
for the A20-OLinuXino-MICRO board using mainline kernel
|
||||
- olimex_a20_olinuxino_lime_defconfig
|
||||
for the A20-OLinuXino-LIME board using mainline kernel
|
||||
- olimex_a20_olinuxino_lime2_defconfig
|
||||
for the A20-OLinuXino-LIME2 board using mainline kernel
|
||||
|
||||
The Mainline Kernel is already a much better choice for a headless server.
|
||||
And also the mainline kernel works fine even for a basic Linux desktop
|
||||
system running on top of a simple framebuffer, which may be good enough for
|
||||
the users who do not need fancy 3D graphics or video playback acceleration.
|
||||
|
||||
(see http://linux-sunxi.org/Linux_Kernel for more details)
|
||||
|
||||
How to build it
|
||||
===============
|
||||
|
||||
Configure Buildroot:
|
||||
|
||||
$ make <board>_defconfig
|
||||
|
||||
Compile everything and build the rootfs image:
|
||||
|
||||
$ make
|
||||
|
||||
Result of the build
|
||||
-------------------
|
||||
|
||||
After building, you should get a tree like this:
|
||||
|
||||
output/images/
|
||||
+-- rootfs.ext2
|
||||
+-- rootfs.ext4 -> rootfs.ext2
|
||||
+-- sdcard.img
|
||||
+-- sun7i-a20-olinuxino-lime.dtb (lime, mainline)
|
||||
+-- sun7i-a20-olinuxino-lime2.dtb (lime2, mainline)
|
||||
+-- sun7i-a20-olinuxino-micro.dtb (micro, mainline)
|
||||
+-- u-boot.bin
|
||||
+-- u-boot-sunxi-with-spl.bin
|
||||
`-- zImage
|
||||
|
||||
|
||||
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:
|
||||
|
||||
# dd if=output/images/sdcard.img of=/dev/sdX
|
||||
|
||||
Where 'sdX' is the device node of the uSD.
|
||||
|
||||
Eject the SD card, insert it in the A20-OLinuXino board, and power it up.
|
||||
|
||||
5
board/olimex/a33_olinuxino/boot.cmd
Normal file
5
board/olimex/a33_olinuxino/boot.cmd
Normal file
@@ -0,0 +1,5 @@
|
||||
setenv bootargs console=ttyS0,115200 root=/dev/mmcblk0p1 rootwait panic=10 ${extra}
|
||||
ext4load mmc 0 0x49000000 /boot/${fdtfile}
|
||||
ext4load mmc 0 0x46000000 /boot/zImage
|
||||
env set fdt_high ffffffff
|
||||
bootz 0x46000000 - 0x49000000
|
||||
17
board/olimex/a33_olinuxino/genimage.cfg
Normal file
17
board/olimex/a33_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
|
||||
}
|
||||
}
|
||||
2
board/olimex/a33_olinuxino/post-build.sh
Executable file
2
board/olimex/a33_olinuxino/post-build.sh
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
cp $BINARIES_DIR/boot.scr $TARGET_DIR/boot/boot.scr
|
||||
50
board/olimex/a33_olinuxino/readme.txt
Normal file
50
board/olimex/a33_olinuxino/readme.txt
Normal file
@@ -0,0 +1,50 @@
|
||||
A33-OLinuXino
|
||||
|
||||
Intro
|
||||
=====
|
||||
|
||||
This board is based on Allwinner A33 SoC.
|
||||
|
||||
Home Page: https://www.olimex.com/Products/OLinuXino/A33/A33-OLinuXino/open-source-hardware
|
||||
Wiki: https://wiki.amarulasolutions.com/bsp/sunxi/a33/Olimex-A33-Olinuxino.html
|
||||
|
||||
How to build it
|
||||
===============
|
||||
|
||||
Configure Buildroot:
|
||||
|
||||
$ make olimex_a33_olinuxino_defconfig
|
||||
|
||||
Build everything by running:
|
||||
|
||||
$ make
|
||||
|
||||
Result of the build
|
||||
-------------------
|
||||
|
||||
After building, you should get a tree like this:
|
||||
|
||||
output/images/
|
||||
├── boot.scr
|
||||
├── rootfs.ext2
|
||||
├── rootfs.ext4 -> rootfs.ext2
|
||||
├── rootfs.tar
|
||||
├── sdcard.img
|
||||
├── sun8i-a33-olinuxino.dtb
|
||||
├── u-boot.bin
|
||||
├── u-boot-sunxi-with-spl.bin
|
||||
└── zImage
|
||||
|
||||
|
||||
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:
|
||||
|
||||
# dd if=output/images/sdcard.img of=/dev/sdX
|
||||
|
||||
Where 'sdX' is the device node of the uSD.
|
||||
|
||||
Eject the SD card, insert it in the A33-OLinuXino board, and power it up.
|
||||
6
board/olimex/a64-olinuxino/boot.cmd
Normal file
6
board/olimex/a64-olinuxino/boot.cmd
Normal file
@@ -0,0 +1,6 @@
|
||||
setenv bootargs console=ttyS0,115200 earlyprintk root=/dev/mmcblk0p2 rootwait
|
||||
|
||||
fatload mmc 0 $kernel_addr_r Image
|
||||
fatload mmc 0 $fdt_addr_r sun50i-a64-olinuxino.dtb
|
||||
|
||||
booti $kernel_addr_r - $fdt_addr_r
|
||||
39
board/olimex/a64-olinuxino/genimage.cfg
Normal file
39
board/olimex/a64-olinuxino/genimage.cfg
Normal file
@@ -0,0 +1,39 @@
|
||||
image boot.vfat {
|
||||
vfat {
|
||||
files = {
|
||||
"Image",
|
||||
"sun50i-a64-olinuxino.dtb",
|
||||
"boot.scr"
|
||||
}
|
||||
}
|
||||
size = 64M
|
||||
}
|
||||
|
||||
image sdcard.img {
|
||||
hdimage {
|
||||
}
|
||||
|
||||
partition spl {
|
||||
in-partition-table = "no"
|
||||
image = "sunxi-spl.bin"
|
||||
offset = 8192
|
||||
}
|
||||
|
||||
partition u-boot {
|
||||
in-partition-table = "no"
|
||||
image = "u-boot.itb"
|
||||
offset = 40K
|
||||
size = 1M # 1MB - 40K
|
||||
}
|
||||
|
||||
partition boot {
|
||||
partition-type = 0xC
|
||||
bootable = "true"
|
||||
image = "boot.vfat"
|
||||
}
|
||||
|
||||
partition rootfs {
|
||||
partition-type = 0x83
|
||||
image = "rootfs.ext4"
|
||||
}
|
||||
}
|
||||
37
board/olimex/a64-olinuxino/readme.txt
Normal file
37
board/olimex/a64-olinuxino/readme.txt
Normal file
@@ -0,0 +1,37 @@
|
||||
Intro
|
||||
=====
|
||||
|
||||
This default configuration will allow you to start experimenting with the
|
||||
buildroot environment for the A64-OLinuXino. With the current configuration
|
||||
it will bring-up the board, and allow access through the serial console.
|
||||
|
||||
A64-OLinuXino link:
|
||||
https://www.olimex.com/Products/OLinuXino/A64/
|
||||
|
||||
Wiki link:
|
||||
https://openedev.amarulasolutions.com/display/ODWIKI/Olimex+A64-Olinuxino
|
||||
|
||||
This configuration uses U-Boot mainline and kernel mainline.
|
||||
|
||||
How to build
|
||||
============
|
||||
|
||||
$ make olimex_a64_olinuxino_defconfig
|
||||
$ make
|
||||
|
||||
Note: you will need access to the internet to download the required
|
||||
sources.
|
||||
|
||||
How to write the SD card
|
||||
========================
|
||||
|
||||
Once the build process is finished you will have an image called "sdcard.img"
|
||||
in the output/images/ directory.
|
||||
|
||||
Copy the bootable "sdcard.img" onto an SD card with "dd":
|
||||
|
||||
$ sudo dd if=output/images/sdcard.img of=/dev/sdX
|
||||
$ sudo sync
|
||||
|
||||
Insert the micro SDcard in your A64-OLinuXino and power it up. The console
|
||||
is on the serial line, 115200 8N1.
|
||||
18
board/olimex/imx233_olinuxino/linux-wifi.fragment
Normal file
18
board/olimex/imx233_olinuxino/linux-wifi.fragment
Normal file
@@ -0,0 +1,18 @@
|
||||
# Network testing
|
||||
CONFIG_WIRELESS=y
|
||||
CONFIG_CFG80211=y
|
||||
CONFIG_CFG80211_WEXT=y
|
||||
CONFIG_MAC80211=y
|
||||
# MII PHY device drivers
|
||||
CONFIG_WLAN=y
|
||||
CONFIG_RTL8187=m
|
||||
CONFIG_ATH9K_HTC=m
|
||||
CONFIG_RT2X00=m
|
||||
CONFIG_RT73USB=m
|
||||
CONFIG_RT2800USB=m
|
||||
CONFIG_RT2800USB_RT53XX=y
|
||||
CONFIG_RT2800USB_RT55XX=y
|
||||
CONFIG_RT2800USB_UNKNOWN=y
|
||||
CONFIG_RTL_CARDS=m
|
||||
CONFIG_RTL8192CU=m
|
||||
CONFIG_ZD1211RW=m
|
||||
29
board/olimex/imx233_olinuxino/readme.txt
Normal file
29
board/olimex/imx233_olinuxino/readme.txt
Normal file
@@ -0,0 +1,29 @@
|
||||
This configuration is intended as a base image.
|
||||
It includes kernel and firmware support for the common USB WiFi hardware.
|
||||
Packages for WiFi support are up to the user, you'll probably want
|
||||
one or more of: hostapd, iw, wireless_tools and/or wpa_supplicant.
|
||||
|
||||
It also pulls up the console on the serial port, not on TV output.
|
||||
|
||||
=== Output files after building ==============================================
|
||||
|
||||
output/images
|
||||
+-- boot.vfat (VFAT kernel partition image generated by genimage)
|
||||
+-- imx23-olinuxino.dtb (device tree blob)
|
||||
+-- rootfs.ext2 (Root file system)
|
||||
+-- sdcard.img (Complete SD card image generated by genimage)
|
||||
+-- u-boot.sd (U-Boot image)
|
||||
+-- uImage (Kernel binary)
|
||||
|
||||
=== Use of generated SD card image ===========================================
|
||||
|
||||
To determine the device associated to the SD card have a look in the
|
||||
/proc/partitions file:
|
||||
|
||||
cat /proc/partitions
|
||||
|
||||
Then, run the following command as root:
|
||||
|
||||
*** WARNING! The command will destroy all the card content. Use with care! ***
|
||||
|
||||
sudo dd if=output/images/sdcard.img of=/dev/<your-microsd-device>
|
||||
Reference in New Issue
Block a user