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:
8
board/linksprite/pcduino/boot.cmd
Normal file
8
board/linksprite/pcduino/boot.cmd
Normal file
@@ -0,0 +1,8 @@
|
||||
setenv fdt_high ffffffff
|
||||
|
||||
setenv bootargs console=ttyS0,115200 console=tty1 earlyprintk root=/dev/mmcblk0p2 rootwait panic=10 ${extra}
|
||||
|
||||
fatload mmc 0 $kernel_addr_r zImage
|
||||
fatload mmc 0 $fdt_addr_r sun4i-a10-pcduino.dtb
|
||||
|
||||
bootz $kernel_addr_r - $fdt_addr_r
|
||||
42
board/linksprite/pcduino/genimage.cfg
Normal file
42
board/linksprite/pcduino/genimage.cfg
Normal file
@@ -0,0 +1,42 @@
|
||||
#
|
||||
# Minimal SD card image for the pcDuino
|
||||
#
|
||||
|
||||
image boot.vfat {
|
||||
vfat {
|
||||
files = {
|
||||
"zImage",
|
||||
"sun4i-a10-pcduino.dtb",
|
||||
"boot.scr"
|
||||
}
|
||||
}
|
||||
size = 16M
|
||||
}
|
||||
|
||||
#
|
||||
# Note: u-boot environment is stored between u-boot and boot partitions
|
||||
#
|
||||
|
||||
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"
|
||||
offset = 1M
|
||||
}
|
||||
|
||||
partition rootfs {
|
||||
partition-type = 0x83
|
||||
image = "rootfs.ext4"
|
||||
}
|
||||
}
|
||||
16
board/linksprite/pcduino/linux-extras.config
Normal file
16
board/linksprite/pcduino/linux-extras.config
Normal file
@@ -0,0 +1,16 @@
|
||||
# spidev
|
||||
CONFIG_SPI_SPIDEV=y
|
||||
|
||||
# wireless core
|
||||
CONFIG_CFG80211=m
|
||||
CONFIG_CFG80211_WEXT=y
|
||||
CONFIG_MAC80211=m
|
||||
|
||||
# wireless drivers
|
||||
CONFIG_WLAN=y
|
||||
CONFIG_RTL_CARDS=m
|
||||
CONFIG_RTL8192CU=m
|
||||
CONFIG_RTLWIFI=m
|
||||
CONFIG_RTLWIFI_USB=m
|
||||
CONFIG_RTLWIFI_DEBUG=y
|
||||
CONFIG_RTL8192C_COMMON=m
|
||||
11
board/linksprite/pcduino/post-build.sh
Executable file
11
board/linksprite/pcduino/post-build.sh
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
# post-build.sh for pcDuino taken from OrangePi post-build.sh
|
||||
# 2013, Carlo Caione <carlo.caione@gmail.com>
|
||||
|
||||
BOARD_DIR="$(dirname $0)"
|
||||
MKIMAGE=$HOST_DIR/bin/mkimage
|
||||
BOOT_CMD=$BOARD_DIR/boot.cmd
|
||||
BOOT_CMD_H=$BINARIES_DIR/boot.scr
|
||||
|
||||
# U-Boot script
|
||||
$MKIMAGE -C none -A arm -T script -d $BOOT_CMD $BOOT_CMD_H
|
||||
16
board/linksprite/pcduino/post-image.sh
Executable file
16
board/linksprite/pcduino/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 $?
|
||||
42
board/linksprite/pcduino/readme.txt
Normal file
42
board/linksprite/pcduino/readme.txt
Normal file
@@ -0,0 +1,42 @@
|
||||
pcDuino v1 boards (http://www.linksprite.com/linksprite-pcduino)
|
||||
|
||||
Intro
|
||||
=====
|
||||
|
||||
This default configuration will allow you to start experimenting
|
||||
with the buildroot environment for the LinkSprite pcDuino v1 board
|
||||
including its flavors pcDuino-Lite and pcDuino-Lite-WiFi. With the
|
||||
current configuration it will bring-up the board and allow access
|
||||
through the serial console as well as ethernet and wireless
|
||||
network interfaces.
|
||||
|
||||
How to build it
|
||||
===============
|
||||
|
||||
Configure Buildroot:
|
||||
|
||||
$ make linksprite_pcduino_defconfig
|
||||
|
||||
Modify configuration if needed, e.g. add more packages to target:
|
||||
|
||||
$ make menuconfig
|
||||
|
||||
Compile everything and build the SD card image:
|
||||
|
||||
$ make
|
||||
|
||||
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
|
||||
|
||||
How to boot new image
|
||||
=====================
|
||||
|
||||
Insert SD card and reset the board. By default pcDuino board
|
||||
boots from SD card.
|
||||
Reference in New Issue
Block a user