Rename create an rpi target.
TG-8 closed
This commit is contained in:
15
projects/rpi_domo/Makefile
Normal file
15
projects/rpi_domo/Makefile
Normal file
@@ -0,0 +1,15 @@
|
||||
#
|
||||
# Entry point for the project.
|
||||
|
||||
# Define the target.
|
||||
export BR_PROJECT:=$(shell pwd)
|
||||
export BR_PROJECT_NAME:=pi_domo
|
||||
|
||||
export BR_BOARD:=$(shell pwd)/../../bsp/board/domo/
|
||||
|
||||
include $(BR_BOARD)/main.mk
|
||||
|
||||
install:
|
||||
cp $(BR_STAGING)/buildroot/images/zImage /tftpboot/
|
||||
cp $(BR_STAGING)/buildroot/images/pi_Domo.dtb /tftpboot/
|
||||
cp $(BR_STAGING)/buildroot/images/rootfs.cpio.uboot /tftpboot/
|
||||
2440
projects/rpi_domo/configs/buildroot.config
Normal file
2440
projects/rpi_domo/configs/buildroot.config
Normal file
File diff suppressed because it is too large
Load Diff
23
projects/rpi_domo/configs/config.txt
Normal file
23
projects/rpi_domo/configs/config.txt
Normal file
@@ -0,0 +1,23 @@
|
||||
# Please note that this is only a sample, we recommend you to change it to fit
|
||||
# your needs.
|
||||
# You should override this file using a post-build script.
|
||||
# See http://buildroot.org/manual.html#rootfs-custom
|
||||
# and http://elinux.org/RPiconfig for a description of config.txt syntax
|
||||
|
||||
kernel=u-boot.bin
|
||||
|
||||
# To use an external initramfs file
|
||||
#initramfs rootfs.cpio.gz
|
||||
|
||||
# Disable overscan assuming the display supports displaying the full resolution
|
||||
# If the text shown on the screen disappears off the edge, comment this out
|
||||
disable_overscan=1
|
||||
|
||||
# How much memory in MB to assign to the GPU on Pi models having
|
||||
# 256, 512 or 1024 MB total memory
|
||||
gpu_mem_256=100
|
||||
gpu_mem_512=100
|
||||
gpu_mem_1024=100
|
||||
|
||||
# Enable audio (loads snd_bcm2835)
|
||||
dtparam=audio=on
|
||||
47
projects/rpi_domo/configs/genimage.config
Normal file
47
projects/rpi_domo/configs/genimage.config
Normal file
@@ -0,0 +1,47 @@
|
||||
image boot.vfat {
|
||||
vfat {
|
||||
files = {
|
||||
"bcm2708-rpi-b-plus.dtb",
|
||||
"bcm2708-rpi-b.dtb",
|
||||
"bcm2708-rpi-cm.dtb",
|
||||
"boot.scr",
|
||||
"rpi-firmware/bootcode.bin",
|
||||
"config.txt",
|
||||
"dev.scr",
|
||||
"rpi-firmware/fixup.dat",
|
||||
"pi_Domo.dtb",
|
||||
"rootfs.cpio.uboot",
|
||||
"rpi-firmware/start.elf",
|
||||
"u-boot.bin",
|
||||
"uboot.env",
|
||||
"update.scr",
|
||||
"zImage"
|
||||
}
|
||||
}
|
||||
size = 30M
|
||||
}
|
||||
|
||||
image data.vfat {
|
||||
vfat {
|
||||
files = {
|
||||
"rpi-firmware/config.txt"
|
||||
}
|
||||
}
|
||||
size = 10M
|
||||
}
|
||||
|
||||
image sdcard.img {
|
||||
hdimage {
|
||||
}
|
||||
|
||||
partition boot {
|
||||
partition-type = 0xC
|
||||
bootable = "true"
|
||||
image = "boot.vfat"
|
||||
}
|
||||
|
||||
partition data {
|
||||
partition-type = 0xC
|
||||
image = "data.vfat"
|
||||
}
|
||||
}
|
||||
2914
projects/rpi_domo/configs/linuxKernel.config
Normal file
2914
projects/rpi_domo/configs/linuxKernel.config
Normal file
File diff suppressed because it is too large
Load Diff
2430
projects/rpi_domo/configs/toolchain.config
Normal file
2430
projects/rpi_domo/configs/toolchain.config
Normal file
File diff suppressed because it is too large
Load Diff
250
projects/rpi_domo/configs/uClibc-ng.config
Normal file
250
projects/rpi_domo/configs/uClibc-ng.config
Normal file
@@ -0,0 +1,250 @@
|
||||
#
|
||||
# Automatically generated file; DO NOT EDIT.
|
||||
# uClibc-ng 1.0.17 C Library Configuration
|
||||
#
|
||||
# TARGET_alpha is not set
|
||||
# TARGET_arc is not set
|
||||
TARGET_arm=y
|
||||
# TARGET_avr32 is not set
|
||||
# TARGET_bfin is not set
|
||||
# TARGET_c6x is not set
|
||||
# TARGET_cris is not set
|
||||
# TARGET_frv is not set
|
||||
# TARGET_h8300 is not set
|
||||
# TARGET_hppa is not set
|
||||
# TARGET_i386 is not set
|
||||
# TARGET_ia64 is not set
|
||||
# TARGET_lm32 is not set
|
||||
# TARGET_m68k is not set
|
||||
# TARGET_metag is not set
|
||||
# TARGET_microblaze is not set
|
||||
# TARGET_mips is not set
|
||||
# TARGET_nds32 is not set
|
||||
# TARGET_nios2 is not set
|
||||
# TARGET_or1k is not set
|
||||
# TARGET_powerpc is not set
|
||||
# TARGET_sh is not set
|
||||
# TARGET_sparc is not set
|
||||
# TARGET_x86_64 is not set
|
||||
# TARGET_xtensa is not set
|
||||
|
||||
#
|
||||
# Target Architecture Features and Options
|
||||
#
|
||||
TARGET_ARCH="arm"
|
||||
FORCE_OPTIONS_FOR_ARCH=y
|
||||
CONFIG_ARM_EABI=y
|
||||
TARGET_SUBARCH=""
|
||||
|
||||
#
|
||||
# Using ELF file format
|
||||
#
|
||||
ARCH_HAS_DEPRECATED_SYSCALLS=y
|
||||
ARCH_ANY_ENDIAN=y
|
||||
ARCH_LITTLE_ENDIAN=y
|
||||
# ARCH_WANTS_BIG_ENDIAN is not set
|
||||
ARCH_WANTS_LITTLE_ENDIAN=y
|
||||
ARCH_HAS_MMU=y
|
||||
ARCH_USE_MMU=y
|
||||
UCLIBC_HAS_FLOATS=y
|
||||
UCLIBC_HAS_FPU=y
|
||||
DO_C99_MATH=y
|
||||
DO_XSI_MATH=y
|
||||
# UCLIBC_HAS_FENV is not set
|
||||
KERNEL_HEADERS="/home/jbnadal/sources/git/audio/_builds/sun8i-h3_QuartetIII-release/buildroot/build/linux-headers-3.4.112/usr/include"
|
||||
HAVE_DOT_CONFIG=y
|
||||
|
||||
#
|
||||
# General Library Settings
|
||||
#
|
||||
DOPIC=y
|
||||
ARCH_HAS_UCONTEXT=y
|
||||
HAVE_SHARED=y
|
||||
# FORCE_SHAREABLE_TEXT_SEGMENTS is not set
|
||||
LDSO_LDD_SUPPORT=y
|
||||
# LDSO_CACHE_SUPPORT is not set
|
||||
LDSO_PRELOAD_ENV_SUPPORT=y
|
||||
# LDSO_PRELOAD_FILE_SUPPORT is not set
|
||||
# LDSO_STANDALONE_SUPPORT is not set
|
||||
# LDSO_PRELINK_SUPPORT is not set
|
||||
# UCLIBC_STATIC_LDCONFIG is not set
|
||||
LDSO_RUNPATH=y
|
||||
LDSO_RUNPATH_OF_EXECUTABLE=y
|
||||
LDSO_SAFE_RUNPATH=y
|
||||
LDSO_SEARCH_INTERP_PATH=y
|
||||
LDSO_LD_LIBRARY_PATH=y
|
||||
# LDSO_NO_CLEANUP is not set
|
||||
UCLIBC_CTOR_DTOR=y
|
||||
# LDSO_GNU_HASH_SUPPORT is not set
|
||||
# HAS_NO_THREADS is not set
|
||||
UCLIBC_HAS_THREADS_NATIVE=y
|
||||
UCLIBC_HAS_THREADS=y
|
||||
UCLIBC_HAS_TLS=y
|
||||
# PTHREADS_DEBUG_SUPPORT is not set
|
||||
UCLIBC_HAS_SYSLOG=y
|
||||
UCLIBC_HAS_LFS=y
|
||||
# MALLOC is not set
|
||||
# MALLOC_SIMPLE is not set
|
||||
MALLOC_STANDARD=y
|
||||
MALLOC_GLIBC_COMPAT=y
|
||||
UCLIBC_HAS_OBSTACK=y
|
||||
UCLIBC_DYNAMIC_ATEXIT=y
|
||||
# COMPAT_ATEXIT is not set
|
||||
UCLIBC_HAS_UTMPX=y
|
||||
UCLIBC_HAS_UTMP=y
|
||||
UCLIBC_SUSV2_LEGACY=y
|
||||
UCLIBC_SUSV3_LEGACY=y
|
||||
UCLIBC_HAS_CONTEXT_FUNCS=y
|
||||
# UCLIBC_SUSV3_LEGACY_MACROS is not set
|
||||
UCLIBC_SUSV4_LEGACY=y
|
||||
# UCLIBC_STRICT_HEADERS is not set
|
||||
# UCLIBC_HAS_STUBS is not set
|
||||
UCLIBC_HAS_SHADOW=y
|
||||
UCLIBC_HAS_PROGRAM_INVOCATION_NAME=y
|
||||
UCLIBC_HAS___PROGNAME=y
|
||||
UCLIBC_HAS_PTY=y
|
||||
ASSUME_DEVPTS=y
|
||||
UNIX98PTY_ONLY=y
|
||||
UCLIBC_HAS_GETPT=y
|
||||
UCLIBC_HAS_LIBUTIL=y
|
||||
UCLIBC_HAS_TM_EXTENSIONS=y
|
||||
UCLIBC_HAS_TZ_CACHING=y
|
||||
UCLIBC_HAS_TZ_FILE=y
|
||||
UCLIBC_HAS_TZ_FILE_READ_MANY=y
|
||||
UCLIBC_TZ_FILE_PATH="/etc/TZ"
|
||||
UCLIBC_FALLBACK_TO_ETC_LOCALTIME=y
|
||||
|
||||
#
|
||||
# Advanced Library Settings
|
||||
#
|
||||
UCLIBC_PWD_BUFFER_SIZE=256
|
||||
UCLIBC_GRP_BUFFER_SIZE=256
|
||||
|
||||
#
|
||||
# Support various families of functions
|
||||
#
|
||||
UCLIBC_LINUX_MODULE_26=y
|
||||
# UCLIBC_LINUX_MODULE_24 is not set
|
||||
UCLIBC_LINUX_SPECIFIC=y
|
||||
UCLIBC_HAS_GNU_ERROR=y
|
||||
UCLIBC_BSD_SPECIFIC=y
|
||||
UCLIBC_HAS_BSD_ERR=y
|
||||
UCLIBC_HAS_OBSOLETE_BSD_SIGNAL=y
|
||||
# UCLIBC_HAS_OBSOLETE_SYSV_SIGNAL is not set
|
||||
UCLIBC_NTP_LEGACY=y
|
||||
# UCLIBC_SV4_DEPRECATED is not set
|
||||
UCLIBC_HAS_REALTIME=y
|
||||
UCLIBC_HAS_ADVANCED_REALTIME=y
|
||||
UCLIBC_HAS_EPOLL=y
|
||||
UCLIBC_HAS_XATTR=y
|
||||
UCLIBC_HAS_PROFILING=y
|
||||
UCLIBC_HAS_CRYPT_IMPL=y
|
||||
UCLIBC_HAS_SHA256_CRYPT_IMPL=y
|
||||
UCLIBC_HAS_SHA512_CRYPT_IMPL=y
|
||||
UCLIBC_HAS_CRYPT=y
|
||||
UCLIBC_HAS_NETWORK_SUPPORT=y
|
||||
UCLIBC_HAS_SOCKET=y
|
||||
UCLIBC_HAS_IPV4=y
|
||||
UCLIBC_HAS_IPV6=y
|
||||
UCLIBC_HAS_RPC=y
|
||||
UCLIBC_HAS_FULL_RPC=y
|
||||
UCLIBC_HAS_REENTRANT_RPC=y
|
||||
UCLIBC_USE_NETLINK=y
|
||||
UCLIBC_SUPPORT_AI_ADDRCONFIG=y
|
||||
# UCLIBC_HAS_BSD_RES_CLOSE is not set
|
||||
UCLIBC_HAS_COMPAT_RES_STATE=y
|
||||
# UCLIBC_HAS_EXTRA_COMPAT_RES_STATE is not set
|
||||
UCLIBC_HAS_RESOLVER_SUPPORT=y
|
||||
UCLIBC_HAS_LIBRESOLV_STUB=y
|
||||
UCLIBC_HAS_LIBNSL_STUB=y
|
||||
|
||||
#
|
||||
# String and Stdio Support
|
||||
#
|
||||
UCLIBC_HAS_STRING_GENERIC_OPT=y
|
||||
UCLIBC_HAS_STRING_ARCH_OPT=y
|
||||
UCLIBC_HAS_STDIO_FUTEXES=y
|
||||
UCLIBC_HAS_CTYPE_TABLES=y
|
||||
UCLIBC_HAS_CTYPE_SIGNED=y
|
||||
# UCLIBC_HAS_CTYPE_UNSAFE is not set
|
||||
UCLIBC_HAS_CTYPE_CHECKED=y
|
||||
# UCLIBC_HAS_CTYPE_ENFORCED is not set
|
||||
UCLIBC_HAS_WCHAR=y
|
||||
# UCLIBC_HAS_LOCALE is not set
|
||||
UCLIBC_HAS_HEXADECIMAL_FLOATS=y
|
||||
UCLIBC_HAS_GLIBC_CUSTOM_PRINTF=y
|
||||
UCLIBC_PRINTF_SCANF_POSITIONAL_ARGS=9
|
||||
# UCLIBC_HAS_STDIO_BUFSIZ_256 is not set
|
||||
# UCLIBC_HAS_STDIO_BUFSIZ_512 is not set
|
||||
# UCLIBC_HAS_STDIO_BUFSIZ_1024 is not set
|
||||
# UCLIBC_HAS_STDIO_BUFSIZ_2048 is not set
|
||||
UCLIBC_HAS_STDIO_BUFSIZ_4096=y
|
||||
# UCLIBC_HAS_STDIO_BUFSIZ_8192 is not set
|
||||
UCLIBC_HAS_STDIO_BUILTIN_BUFFER_NONE=y
|
||||
# UCLIBC_HAS_STDIO_BUILTIN_BUFFER_4 is not set
|
||||
# UCLIBC_HAS_STDIO_BUILTIN_BUFFER_8 is not set
|
||||
# UCLIBC_HAS_STDIO_SHUTDOWN_ON_ABORT is not set
|
||||
UCLIBC_HAS_STDIO_GETC_MACRO=y
|
||||
UCLIBC_HAS_STDIO_PUTC_MACRO=y
|
||||
UCLIBC_HAS_STDIO_AUTO_RW_TRANSITION=y
|
||||
# UCLIBC_HAS_FOPEN_LARGEFILE_MODE is not set
|
||||
UCLIBC_HAS_FOPEN_EXCLUSIVE_MODE=y
|
||||
# UCLIBC_HAS_FOPEN_CLOSEEXEC_MODE is not set
|
||||
UCLIBC_HAS_GLIBC_CUSTOM_STREAMS=y
|
||||
UCLIBC_HAS_PRINTF_M_SPEC=y
|
||||
UCLIBC_HAS_ERRNO_MESSAGES=y
|
||||
# UCLIBC_HAS_SYS_ERRLIST is not set
|
||||
UCLIBC_HAS_SIGNUM_MESSAGES=y
|
||||
# UCLIBC_HAS_SYS_SIGLIST is not set
|
||||
UCLIBC_HAS_GNU_GETOPT=y
|
||||
UCLIBC_HAS_GETOPT_LONG=y
|
||||
UCLIBC_HAS_GNU_GETSUBOPT=y
|
||||
# UCLIBC_HAS_ARGP is not set
|
||||
|
||||
#
|
||||
# Big and Tall
|
||||
#
|
||||
UCLIBC_HAS_REGEX=y
|
||||
# UCLIBC_HAS_REGEX_OLD is not set
|
||||
UCLIBC_HAS_FNMATCH=y
|
||||
# UCLIBC_HAS_FNMATCH_OLD is not set
|
||||
# UCLIBC_HAS_WORDEXP is not set
|
||||
UCLIBC_HAS_NFTW=y
|
||||
UCLIBC_HAS_FTW=y
|
||||
# UCLIBC_HAS_FTS is not set
|
||||
UCLIBC_HAS_GLOB=y
|
||||
UCLIBC_HAS_GNU_GLOB=y
|
||||
|
||||
#
|
||||
# Library Installation Options
|
||||
#
|
||||
RUNTIME_PREFIX="/"
|
||||
DEVEL_PREFIX="/usr"
|
||||
MULTILIB_DIR="lib"
|
||||
HARDWIRED_ABSPATH=y
|
||||
|
||||
#
|
||||
# Security options
|
||||
#
|
||||
# UCLIBC_BUILD_PIE is not set
|
||||
# UCLIBC_HAS_ARC4RANDOM is not set
|
||||
# UCLIBC_HAS_SSP is not set
|
||||
UCLIBC_BUILD_RELRO=y
|
||||
UCLIBC_BUILD_NOW=y
|
||||
UCLIBC_BUILD_NOEXECSTACK=y
|
||||
|
||||
#
|
||||
# Development/debugging options
|
||||
#
|
||||
CROSS_COMPILER_PREFIX="/home/jbnadal/sources/git/audio/AwoxBSP/projects/customers/sun8i-h3_QuartetIII/../../../../_builds/sun8i-h3_QuartetIII-release//cross/usr/bin/arm-awox-linux-uclibcgnueabihf-"
|
||||
UCLIBC_EXTRA_CFLAGS=""
|
||||
# DODEBUG is not set
|
||||
# DOSTRIP is not set
|
||||
# DOASSERTS is not set
|
||||
# SUPPORT_LD_DEBUG is not set
|
||||
# SUPPORT_LD_DEBUG_EARLY is not set
|
||||
# UCLIBC_MALLOC_DEBUGGING is not set
|
||||
# UCLIBC_HAS_BACKTRACE is not set
|
||||
WARNINGS="-Wall"
|
||||
# EXTRA_WARNINGS is not set
|
||||
# DOMULTI is not set
|
||||
BIN
projects/rpi_domo/dts/bcm2708-rpi-b-plus.dtb
Normal file
BIN
projects/rpi_domo/dts/bcm2708-rpi-b-plus.dtb
Normal file
Binary file not shown.
523
projects/rpi_domo/dts/bcm2708-rpi-b-plus.dti
Normal file
523
projects/rpi_domo/dts/bcm2708-rpi-b-plus.dti
Normal file
@@ -0,0 +1,523 @@
|
||||
|
||||
/ {
|
||||
#address-cells = <0x00000001>;
|
||||
#size-cells = <0x00000001>;
|
||||
interrupt-parent = <0x00000001>;
|
||||
compatible = "brcm,bcm2708";
|
||||
model = "Raspberry Pi Model B+";
|
||||
chosen {
|
||||
bootargs = [00];
|
||||
};
|
||||
aliases {
|
||||
audio = "/soc/audio";
|
||||
aux = "/soc/aux@0x7e215004";
|
||||
sound = "/soc/sound";
|
||||
soc = "/soc";
|
||||
dma = "/soc/dma@7e007000";
|
||||
intc = "/soc/interrupt-controller@7e00b200";
|
||||
watchdog = "/soc/watchdog@7e100000";
|
||||
random = "/soc/rng@7e104000";
|
||||
mailbox = "/soc/mailbox@7e00b800";
|
||||
gpio = "/soc/gpio@7e200000";
|
||||
uart0 = "/soc/uart@7e201000";
|
||||
sdhost = "/soc/sdhost@7e202000";
|
||||
i2s = "/soc/i2s@7e203000";
|
||||
spi0 = "/soc/spi@7e204000";
|
||||
i2c0 = "/soc/i2c@7e205000";
|
||||
uart1 = "/soc/uart@7e215040";
|
||||
spi1 = "/soc/spi@7e215080";
|
||||
spi2 = "/soc/spi@7e2150C0";
|
||||
mmc = "/soc/mmc@7e300000";
|
||||
i2c1 = "/soc/i2c@7e804000";
|
||||
i2c2 = "/soc/i2c@7e805000";
|
||||
usb = "/soc/usb@7e980000";
|
||||
leds = "/soc/leds";
|
||||
fb = "/soc/fb";
|
||||
vchiq = "/soc/vchiq";
|
||||
thermal = "/soc/thermal";
|
||||
clocks = "/clocks";
|
||||
};
|
||||
memory {
|
||||
device_type = "memory";
|
||||
reg = <0x00000000 0x00000000>;
|
||||
};
|
||||
soc {
|
||||
compatible = "simple-bus";
|
||||
#address-cells = <0x00000001>;
|
||||
#size-cells = <0x00000001>;
|
||||
ranges = <0x7e000000 0x20000000 0x01000000>;
|
||||
phandle = <0x00000022>;
|
||||
dma@7e007000 {
|
||||
compatible = "brcm,bcm2835-dma";
|
||||
reg = <0x7e007000 0x00000f00>;
|
||||
interrupts = <0x00000001 0x00000010 0x00000001 0x00000011 0x00000001 0x00000012 0x00000001 0x00000013 0x00000001 0x00000014 0x00000001 0x00000015 0x00000001 0x00000016 0x00000001 0x00000017 0x00000001 0x00000018 0x00000001 0x00000019 0x00000001 0x0000001a 0x00000001 0x0000001b>;
|
||||
#dma-cells = <0x00000001>;
|
||||
brcm,dma-channel-mask = <0x00000f35>;
|
||||
phandle = <0x00000006>;
|
||||
};
|
||||
interrupt-controller@7e00b200 {
|
||||
compatible = "brcm,bcm2835-armctrl-ic";
|
||||
reg = <0x7e00b200 0x00000200>;
|
||||
interrupt-controller;
|
||||
#interrupt-cells = <0x00000002>;
|
||||
phandle = <0x00000001>;
|
||||
};
|
||||
mailbox@7e00b800 {
|
||||
compatible = "brcm,bcm2835-mbox";
|
||||
reg = <0x7e00b880 0x00000040>;
|
||||
interrupts = <0x00000000 0x00000001>;
|
||||
#mbox-cells = <0x00000000>;
|
||||
phandle = <0x00000012>;
|
||||
};
|
||||
watchdog@7e100000 {
|
||||
compatible = "brcm,bcm2835-pm-wdt";
|
||||
reg = <0x7e100000 0x00000028>;
|
||||
status = "okay";
|
||||
phandle = <0x0000001f>;
|
||||
};
|
||||
cprman@7e101000 {
|
||||
compatible = "brcm,bcm2835-cprman";
|
||||
#clock-cells = <0x00000001>;
|
||||
reg = <0x7e101000 0x00002000>;
|
||||
clocks = <0x00000002>;
|
||||
status = "disabled";
|
||||
phandle = <0x00000023>;
|
||||
};
|
||||
rng@7e104000 {
|
||||
compatible = "brcm,bcm2835-rng";
|
||||
reg = <0x7e104000 0x00000010>;
|
||||
status = "okay";
|
||||
phandle = <0x00000020>;
|
||||
};
|
||||
gpio@7e200000 {
|
||||
compatible = "brcm,bcm2835-gpio";
|
||||
reg = <0x7e200000 0x000000b4>;
|
||||
interrupts = <0x00000002 0x00000011 0x00000002 0x00000012>;
|
||||
gpio-controller;
|
||||
#gpio-cells = <0x00000002>;
|
||||
interrupt-controller;
|
||||
#interrupt-cells = <0x00000002>;
|
||||
phandle = <0x00000009>;
|
||||
sdhost_pins {
|
||||
brcm,pins = <0x00000030 0x00000031 0x00000032 0x00000033 0x00000034 0x00000035>;
|
||||
brcm,function = <0x00000004>;
|
||||
phandle = <0x00000007>;
|
||||
};
|
||||
spi0_pins {
|
||||
brcm,pins = <0x00000009 0x0000000a 0x0000000b>;
|
||||
brcm,function = <0x00000004>;
|
||||
phandle = <0x0000000a>;
|
||||
};
|
||||
spi0_cs_pins {
|
||||
brcm,pins = <0x00000008 0x00000007>;
|
||||
brcm,function = <0x00000001>;
|
||||
phandle = <0x0000000b>;
|
||||
};
|
||||
i2c0 {
|
||||
brcm,pins = <0x00000000 0x00000001>;
|
||||
brcm,function = <0x00000004>;
|
||||
phandle = <0x0000000c>;
|
||||
};
|
||||
i2c1 {
|
||||
brcm,pins = <0x00000002 0x00000003>;
|
||||
brcm,function = <0x00000004>;
|
||||
phandle = <0x00000011>;
|
||||
};
|
||||
i2s {
|
||||
brcm,pins = <0x00000012 0x00000013 0x00000014 0x00000015>;
|
||||
brcm,function = <0x00000004>;
|
||||
phandle = <0x00000008>;
|
||||
};
|
||||
};
|
||||
uart@7e201000 {
|
||||
compatible = "arm,pl011", "arm,primecell";
|
||||
reg = <0x7e201000 0x00001000>;
|
||||
interrupts = <0x00000002 0x00000019>;
|
||||
clocks = <0x00000003 0x00000004>;
|
||||
clock-names = "uartclk", "apb_pclk";
|
||||
arm,primecell-periphid = <0x00241011>;
|
||||
status = "okay";
|
||||
phandle = <0x00000015>;
|
||||
};
|
||||
sdhost@7e202000 {
|
||||
compatible = "brcm,bcm2835-sdhost";
|
||||
reg = <0x7e202000 0x00000100>;
|
||||
interrupts = <0x00000002 0x00000018>;
|
||||
clocks = <0x00000005>;
|
||||
dmas = <0x00000006 0x0000000d>;
|
||||
dma-names = "rx-tx";
|
||||
brcm,overclock-50 = <0x00000000>;
|
||||
brcm,pio-limit = <0x00000001>;
|
||||
status = "okay";
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <0x00000007>;
|
||||
bus-width = <0x00000004>;
|
||||
phandle = <0x00000021>;
|
||||
};
|
||||
i2s@7e203000 {
|
||||
compatible = "brcm,bcm2835-i2s";
|
||||
reg = <0x7e203000 0x00000024 0x7e101098 0x00000008>;
|
||||
dmas = <0x00000006 0x00000002 0x00000006 0x00000003>;
|
||||
dma-names = "tx", "rx";
|
||||
status = "disabled";
|
||||
#sound-dai-cells = <0x00000000>;
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <0x00000008>;
|
||||
phandle = <0x00000017>;
|
||||
};
|
||||
spi@7e204000 {
|
||||
compatible = "brcm,bcm2835-spi";
|
||||
reg = <0x7e204000 0x00001000>;
|
||||
interrupts = <0x00000002 0x00000016>;
|
||||
clocks = <0x00000005>;
|
||||
#address-cells = <0x00000001>;
|
||||
#size-cells = <0x00000000>;
|
||||
status = "disabled";
|
||||
dmas = <0x00000006 0x00000006 0x00000006 0x00000007>;
|
||||
dma-names = "tx", "rx";
|
||||
cs-gpios = <0x00000009 0x00000008 0x00000001 0x00000009 0x00000007 0x00000001>;
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <0x0000000a 0x0000000b>;
|
||||
phandle = <0x00000018>;
|
||||
spidev@0 {
|
||||
compatible = "spidev";
|
||||
reg = <0x00000000>;
|
||||
#address-cells = <0x00000001>;
|
||||
#size-cells = <0x00000000>;
|
||||
spi-max-frequency = <0x0007a120>;
|
||||
phandle = <0x00000024>;
|
||||
};
|
||||
spidev@1 {
|
||||
compatible = "spidev";
|
||||
reg = <0x00000001>;
|
||||
#address-cells = <0x00000001>;
|
||||
#size-cells = <0x00000000>;
|
||||
spi-max-frequency = <0x0007a120>;
|
||||
phandle = <0x00000025>;
|
||||
};
|
||||
};
|
||||
i2c@7e205000 {
|
||||
compatible = "brcm,bcm2708-i2c";
|
||||
reg = <0x7e205000 0x00001000>;
|
||||
interrupts = <0x00000002 0x00000015>;
|
||||
clocks = <0x00000005>;
|
||||
#address-cells = <0x00000001>;
|
||||
#size-cells = <0x00000000>;
|
||||
status = "disabled";
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <0x0000000c>;
|
||||
clock-frequency = <0x000186a0>;
|
||||
phandle = <0x00000019>;
|
||||
};
|
||||
pwm@7e20c000 {
|
||||
compatible = "brcm,bcm2835-pwm";
|
||||
reg = <0x7e20c000 0x00000028>;
|
||||
clocks = <0x0000000d>;
|
||||
#pwm-cells = <0x00000002>;
|
||||
status = "disabled";
|
||||
phandle = <0x00000026>;
|
||||
};
|
||||
aux@0x7e215004 {
|
||||
compatible = "brcm,bcm2835-aux";
|
||||
#clock-cells = <0x00000001>;
|
||||
reg = <0x7e215000 0x00000008>;
|
||||
clocks = <0x00000005>;
|
||||
status = "disabled";
|
||||
phandle = <0x0000000f>;
|
||||
};
|
||||
uart@7e215040 {
|
||||
compatible = "brcm,bcm2835-aux-uart", "ns16550";
|
||||
reg = <0x7e215040 0x00000040>;
|
||||
interrupts = <0x00000001 0x0000001d>;
|
||||
clocks = <0x0000000e>;
|
||||
reg-shift = <0x00000002>;
|
||||
no-loopback-test;
|
||||
status = "disabled";
|
||||
phandle = <0x00000016>;
|
||||
};
|
||||
spi@7e215080 {
|
||||
compatible = "brcm,bcm2835-aux-spi";
|
||||
reg = <0x7e215080 0x00000040 0x7e215000 0x00000008>;
|
||||
interrupts = <0x00000001 0x0000001d>;
|
||||
clocks = <0x0000000f 0x00000001>;
|
||||
#address-cells = <0x00000001>;
|
||||
#size-cells = <0x00000000>;
|
||||
status = "disabled";
|
||||
phandle = <0x00000027>;
|
||||
};
|
||||
spi@7e2150C0 {
|
||||
compatible = "brcm,bcm2835-aux-spi";
|
||||
reg = <0x7e2150c0 0x00000040 0x7e215000 0x00000008>;
|
||||
interrupts = <0x00000001 0x0000001d>;
|
||||
clocks = <0x0000000f 0x00000002>;
|
||||
#address-cells = <0x00000001>;
|
||||
#size-cells = <0x00000000>;
|
||||
status = "disabled";
|
||||
phandle = <0x00000028>;
|
||||
};
|
||||
mmc@7e300000 {
|
||||
compatible = "brcm,bcm2835-mmc";
|
||||
reg = <0x7e300000 0x00000100>;
|
||||
interrupts = <0x00000002 0x0000001e>;
|
||||
clocks = <0x00000010>;
|
||||
dmas = <0x00000006 0x0000000b>;
|
||||
dma-names = "rx-tx";
|
||||
brcm,overclock-50 = <0x00000000>;
|
||||
status = "disabled";
|
||||
phandle = <0x00000029>;
|
||||
};
|
||||
i2c@7e804000 {
|
||||
compatible = "brcm,bcm2708-i2c";
|
||||
reg = <0x7e804000 0x00001000>;
|
||||
interrupts = <0x00000002 0x00000015>;
|
||||
clocks = <0x00000005>;
|
||||
#address-cells = <0x00000001>;
|
||||
#size-cells = <0x00000000>;
|
||||
status = "disabled";
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <0x00000011>;
|
||||
clock-frequency = <0x000186a0>;
|
||||
phandle = <0x0000001a>;
|
||||
};
|
||||
i2c@7e805000 {
|
||||
compatible = "brcm,bcm2708-i2c";
|
||||
reg = <0x7e805000 0x00001000>;
|
||||
interrupts = <0x00000002 0x00000015>;
|
||||
clocks = <0x00000005>;
|
||||
#address-cells = <0x00000001>;
|
||||
#size-cells = <0x00000000>;
|
||||
status = "disabled";
|
||||
clock-frequency = <0x000186a0>;
|
||||
phandle = <0x0000001b>;
|
||||
};
|
||||
smi@7e600000 {
|
||||
compatible = "brcm,bcm2835-smi";
|
||||
reg = <0x7e600000 0x00000044 0x7e1010b0 0x00000008>;
|
||||
interrupts = <0x00000002 0x00000010>;
|
||||
brcm,smi-clock-source = <0x00000006>;
|
||||
brcm,smi-clock-divisor = <0x00000004>;
|
||||
dmas = <0x00000006 0x00000004>;
|
||||
dma-names = "rx-tx";
|
||||
status = "disabled";
|
||||
phandle = <0x0000002a>;
|
||||
};
|
||||
usb@7e980000 {
|
||||
compatible = "brcm,bcm2708-usb";
|
||||
reg = <0x7e980000 0x00010000 0x7e006000 0x00001000>;
|
||||
interrupts = <0x00000002 0x00000000 0x00000001 0x00000009>;
|
||||
phandle = <0x0000002b>;
|
||||
};
|
||||
firmware {
|
||||
compatible = "raspberrypi,bcm2835-firmware";
|
||||
mboxes = <0x00000012>;
|
||||
phandle = <0x00000013>;
|
||||
};
|
||||
power {
|
||||
compatible = "raspberrypi,bcm2835-power";
|
||||
firmware = <0x00000013>;
|
||||
#power-domain-cells = <0x00000001>;
|
||||
phandle = <0x0000002c>;
|
||||
};
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
phandle = <0x0000002d>;
|
||||
act {
|
||||
label = "led0";
|
||||
linux,default-trigger = "mmc0";
|
||||
gpios = <0x00000009 0x0000002f 0x00000000>;
|
||||
phandle = <0x0000001c>;
|
||||
};
|
||||
pwr {
|
||||
label = "led1";
|
||||
linux,default-trigger = "input";
|
||||
gpios = <0x00000009 0x00000023 0x00000000>;
|
||||
phandle = <0x0000001d>;
|
||||
};
|
||||
};
|
||||
fb {
|
||||
compatible = "brcm,bcm2708-fb";
|
||||
firmware = <0x00000013>;
|
||||
status = "okay";
|
||||
phandle = <0x0000002e>;
|
||||
};
|
||||
vchiq {
|
||||
compatible = "brcm,bcm2835-vchiq";
|
||||
reg = <0x7e00b840 0x0000000f>;
|
||||
interrupts = <0x00000000 0x00000002>;
|
||||
cache-line-size = <0x00000020>;
|
||||
firmware = <0x00000013>;
|
||||
phandle = <0x00000014>;
|
||||
};
|
||||
thermal {
|
||||
compatible = "brcm,bcm2835-thermal";
|
||||
firmware = <0x00000013>;
|
||||
phandle = <0x0000002f>;
|
||||
};
|
||||
audio {
|
||||
compatible = "brcm,bcm2835-audio";
|
||||
brcm,pwm-channels = <0x00000008>;
|
||||
status = "disabled";
|
||||
phandle = <0x0000001e>;
|
||||
};
|
||||
sound {
|
||||
status = "disabled";
|
||||
phandle = <0x00000030>;
|
||||
};
|
||||
timer@7e003000 {
|
||||
compatible = "brcm,bcm2835-system-timer";
|
||||
reg = <0x7e003000 0x00001000>;
|
||||
interrupts = <0x00000001 0x00000000 0x00000001 0x00000001 0x00000001 0x00000002 0x00000001 0x00000003>;
|
||||
clock-frequency = <0x000f4240>;
|
||||
};
|
||||
arm-pmu {
|
||||
compatible = "arm,arm1176-pmu";
|
||||
};
|
||||
gpiomem {
|
||||
compatible = "brcm,bcm2835-gpiomem";
|
||||
reg = <0x7e200000 0x00001000>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
clocks {
|
||||
compatible = "simple-bus";
|
||||
#address-cells = <0x00000001>;
|
||||
#size-cells = <0x00000000>;
|
||||
phandle = <0x00000031>;
|
||||
clock@0 {
|
||||
compatible = "fixed-clock";
|
||||
reg = <0x00000000>;
|
||||
#clock-cells = <0x00000000>;
|
||||
clock-output-names = "core";
|
||||
clock-frequency = <0x0ee6b280>;
|
||||
phandle = <0x00000005>;
|
||||
};
|
||||
clock@1 {
|
||||
compatible = "fixed-clock";
|
||||
reg = <0x00000001>;
|
||||
#clock-cells = <0x00000000>;
|
||||
clock-output-names = "mmc";
|
||||
clock-frequency = <0x0ee6b280>;
|
||||
phandle = <0x00000010>;
|
||||
};
|
||||
clock@2 {
|
||||
compatible = "fixed-clock";
|
||||
reg = <0x00000002>;
|
||||
#clock-cells = <0x00000000>;
|
||||
clock-output-names = "uart0_pclk";
|
||||
clock-frequency = <0x002dc6c0>;
|
||||
phandle = <0x00000003>;
|
||||
};
|
||||
clock@3 {
|
||||
compatible = "fixed-clock";
|
||||
reg = <0x00000003>;
|
||||
#clock-cells = <0x00000000>;
|
||||
clock-output-names = "apb_pclk";
|
||||
clock-frequency = <0x07829b80>;
|
||||
phandle = <0x00000004>;
|
||||
};
|
||||
clock@4 {
|
||||
compatible = "fixed-clock";
|
||||
reg = <0x00000004>;
|
||||
#clock-cells = <0x00000000>;
|
||||
clock-output-names = "pwm";
|
||||
clock-frequency = <0x05f5e100>;
|
||||
phandle = <0x0000000d>;
|
||||
};
|
||||
clock@5 {
|
||||
compatible = "fixed-factor-clock";
|
||||
reg = <0x00000005>;
|
||||
clocks = <0x00000005>;
|
||||
#clock-cells = <0x00000000>;
|
||||
clock-div = <0x00000001>;
|
||||
clock-mult = <0x00000002>;
|
||||
phandle = <0x0000000e>;
|
||||
};
|
||||
clock@6 {
|
||||
compatible = "fixed-clock";
|
||||
reg = <0x00000006>;
|
||||
#clock-cells = <0x00000000>;
|
||||
clock-output-names = "osc";
|
||||
clock-frequency = <0x0124f800>;
|
||||
phandle = <0x00000002>;
|
||||
};
|
||||
};
|
||||
__overrides__ {
|
||||
cache_line_size = [00 00 00 14 63 61 63 68 65 2d 6c 69 6e 65 2d 73 69 7a 65 3a 30 00];
|
||||
uart0 = [00 00 00 15 73 74 61 74 75 73 00];
|
||||
uart0_clkrate = [00 00 00 03 63 6c 6f 63 6b 2d 66 72 65 71 75 65 6e 63 79 3a 30 00];
|
||||
uart1 = [00 00 00 16 73 74 61 74 75 73 00];
|
||||
i2s = [00 00 00 17 73 74 61 74 75 73 00];
|
||||
spi = [00 00 00 18 73 74 61 74 75 73 00];
|
||||
i2c0 = [00 00 00 19 73 74 61 74 75 73 00];
|
||||
i2c1 = [00 00 00 1a 73 74 61 74 75 73 00];
|
||||
i2c2_iknowwhatimdoing = [00 00 00 1b 73 74 61 74 75 73 00];
|
||||
i2c0_baudrate = [00 00 00 19 63 6c 6f 63 6b 2d 66 72 65 71 75 65 6e 63 79 3a 30 00];
|
||||
i2c1_baudrate = [00 00 00 1a 63 6c 6f 63 6b 2d 66 72 65 71 75 65 6e 63 79 3a 30 00];
|
||||
i2c2_baudrate = [00 00 00 1b 63 6c 6f 63 6b 2d 66 72 65 71 75 65 6e 63 79 3a 30 00];
|
||||
core_freq = [00 00 00 05 63 6c 6f 63 6b 2d 66 72 65 71 75 65 6e 63 79 3a 30 00];
|
||||
act_led_gpio = <0x0000001c 0x6770696f 0x733a3400>;
|
||||
act_led_activelow = <0x0000001c 0x6770696f 0x733a3800>;
|
||||
act_led_trigger = [00 00 00 1c 6c 69 6e 75 78 2c 64 65 66 61 75 6c 74 2d 74 72 69 67 67 65 72 00];
|
||||
pwr_led_gpio = <0x0000001d 0x6770696f 0x733a3400>;
|
||||
pwr_led_activelow = <0x0000001d 0x6770696f 0x733a3800>;
|
||||
pwr_led_trigger = [00 00 00 1d 6c 69 6e 75 78 2c 64 65 66 61 75 6c 74 2d 74 72 69 67 67 65 72 00];
|
||||
audio = [00 00 00 1e 73 74 61 74 75 73 00];
|
||||
watchdog = [00 00 00 1f 73 74 61 74 75 73 00];
|
||||
random = [00 00 00 20 73 74 61 74 75 73 00];
|
||||
sd_overclock = <0x00000021 0x6272636d 0x2c6f7665 0x72636c6f 0x636b2d35 0x303a3000>;
|
||||
sd_force_pio = <0x00000021 0x6272636d 0x2c666f72 0x63652d70 0x696f3f00>;
|
||||
sd_pio_limit = [00 00 00 21 62 72 63 6d 2c 70 69 6f 2d 6c 69 6d 69 74 3a 30 00];
|
||||
sd_debug = [00 00 00 21 62 72 63 6d 2c 64 65 62 75 67 00];
|
||||
};
|
||||
__symbols__ {
|
||||
soc = "/soc";
|
||||
dma = "/soc/dma@7e007000";
|
||||
intc = "/soc/interrupt-controller@7e00b200";
|
||||
mailbox = "/soc/mailbox@7e00b800";
|
||||
watchdog = "/soc/watchdog@7e100000";
|
||||
cprman = "/soc/cprman@7e101000";
|
||||
random = "/soc/rng@7e104000";
|
||||
gpio = "/soc/gpio@7e200000";
|
||||
sdhost_pins = "/soc/gpio@7e200000/sdhost_pins";
|
||||
spi0_pins = "/soc/gpio@7e200000/spi0_pins";
|
||||
spi0_cs_pins = "/soc/gpio@7e200000/spi0_cs_pins";
|
||||
i2c0_pins = "/soc/gpio@7e200000/i2c0";
|
||||
i2c1_pins = "/soc/gpio@7e200000/i2c1";
|
||||
i2s_pins = "/soc/gpio@7e200000/i2s";
|
||||
uart0 = "/soc/uart@7e201000";
|
||||
sdhost = "/soc/sdhost@7e202000";
|
||||
i2s = "/soc/i2s@7e203000";
|
||||
spi0 = "/soc/spi@7e204000";
|
||||
spidev0 = "/soc/spi@7e204000/spidev@0";
|
||||
spidev1 = "/soc/spi@7e204000/spidev@1";
|
||||
i2c0 = "/soc/i2c@7e205000";
|
||||
pwm = "/soc/pwm@7e20c000";
|
||||
aux = "/soc/aux@0x7e215004";
|
||||
uart1 = "/soc/uart@7e215040";
|
||||
spi1 = "/soc/spi@7e215080";
|
||||
spi2 = "/soc/spi@7e2150C0";
|
||||
mmc = "/soc/mmc@7e300000";
|
||||
i2c1 = "/soc/i2c@7e804000";
|
||||
i2c2 = "/soc/i2c@7e805000";
|
||||
smi = "/soc/smi@7e600000";
|
||||
usb = "/soc/usb@7e980000";
|
||||
firmware = "/soc/firmware";
|
||||
power = "/soc/power";
|
||||
leds = "/soc/leds";
|
||||
act_led = "/soc/leds/act";
|
||||
pwr_led = "/soc/leds/pwr";
|
||||
fb = "/soc/fb";
|
||||
vchiq = "/soc/vchiq";
|
||||
thermal = "/soc/thermal";
|
||||
audio = "/soc/audio";
|
||||
sound = "/soc/sound";
|
||||
clocks = "/clocks";
|
||||
clk_core = "/clocks/clock@0";
|
||||
clk_mmc = "/clocks/clock@1";
|
||||
clk_uart0 = "/clocks/clock@2";
|
||||
clk_apb_p = "/clocks/clock@3";
|
||||
clk_pwm = "/clocks/clock@4";
|
||||
clk_uart1 = "/clocks/clock@5";
|
||||
clk_osc = "/clocks/clock@6";
|
||||
};
|
||||
};
|
||||
7
projects/rpi_domo/dts/build.sh
Executable file
7
projects/rpi_domo/dts/build.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
|
||||
# Dump the final dtb file for the PI B+ used for the Pi_QuartetIII target.
|
||||
#
|
||||
#../../../../../_builds/pi_QuartetIII-release/cross/usr/bin/fdtdump bcm2708-rpi-b-plus.dtb > bcm2708-rpi-b-plus.dti
|
||||
#
|
||||
|
||||
../../../_builds/pi_domo-release/cross/usr/bin/dtc -O dtb -o pi_Domo.dtb pi_Domo.dts
|
||||
BIN
projects/rpi_domo/dts/pi_Domo.dtb
Normal file
BIN
projects/rpi_domo/dts/pi_Domo.dtb
Normal file
Binary file not shown.
14
projects/rpi_domo/dts/pi_Domo.dts
Normal file
14
projects/rpi_domo/dts/pi_Domo.dts
Normal file
@@ -0,0 +1,14 @@
|
||||
/dts-v1/;
|
||||
|
||||
/include/ "bcm2708-rpi-b-plus.dti"
|
||||
|
||||
/ {
|
||||
soc {
|
||||
mmc {
|
||||
status = "okay";
|
||||
};
|
||||
i2c {
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
};
|
||||
9
projects/rpi_domo/ovl/etc/config/network
Normal file
9
projects/rpi_domo/ovl/etc/config/network
Normal file
@@ -0,0 +1,9 @@
|
||||
config interface loopback
|
||||
option ifname lo
|
||||
option proto static
|
||||
option ipaddr 127.0.0.1
|
||||
option netmask 255.0.0.0
|
||||
|
||||
config interface wan
|
||||
option ifname eth0
|
||||
option proto dhcp
|
||||
2
projects/rpi_domo/ovl/etc/fw_env.config
Normal file
2
projects/rpi_domo/ovl/etc/fw_env.config
Normal file
@@ -0,0 +1,2 @@
|
||||
# MTD device name Device offset Env. size Flash sector size Number of sectors
|
||||
/boot/uboot.env 0x0000 0x4000 0x4000
|
||||
1
projects/rpi_domo/ovl/etc/modules-boot.d/15-r8188eu
Symbolic link
1
projects/rpi_domo/ovl/etc/modules-boot.d/15-r8188eu
Symbolic link
@@ -0,0 +1 @@
|
||||
../modules.d/r8188eu
|
||||
1
projects/rpi_domo/ovl/etc/modules.d/r8188eu
Normal file
1
projects/rpi_domo/ovl/etc/modules.d/r8188eu
Normal file
@@ -0,0 +1 @@
|
||||
r8188eu
|
||||
22
projects/rpi_domo/post-build.sh
Executable file
22
projects/rpi_domo/post-build.sh
Executable file
@@ -0,0 +1,22 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Catch Postbuild Error
|
||||
function error {
|
||||
|
||||
echo "Postbuild Failed."
|
||||
exit 1;
|
||||
}
|
||||
|
||||
set -e
|
||||
trap error ERR
|
||||
|
||||
echo "==> POSTBUILD:"
|
||||
|
||||
echo "BR_STAGING: ${BR_STAGING}"
|
||||
echo "BR_PROJECT: " ${BR_PROJECT}
|
||||
|
||||
cp -a ${BR_PROJECT}/configs/config.txt ${BR_STAGING}/buildroot/images/
|
||||
|
||||
cp -a ${BR_PROJECT}/dts/pi_Domo.dtb ${BR_STAGING}/buildroot/images/
|
||||
|
||||
cp -a ${BR_STAGING}/buildroot/images/uboot-env.bin ${BR_STAGING}/buildroot/images/uboot.env
|
||||
8
projects/rpi_domo/uboot/boot.cmd
Normal file
8
projects/rpi_domo/uboot/boot.cmd
Normal file
@@ -0,0 +1,8 @@
|
||||
mmc dev 0
|
||||
fatload mmc 0:1 ${kernel_addr_r} zImage
|
||||
fatload mmc 0:1 ${fdt_addr_r} pi_Domo.dtb
|
||||
fatload mmc 0:1 ${ramdisk_addr_r} rootfs.cpio.uboot
|
||||
setenv mmc_freq 'sdhci-bcm2708.emmc_clock_freq=250000000 sdhci-bcm2708.enable_llm=0'
|
||||
setenv bootargs ${mmc_freq} console=ttyAMA0,115200
|
||||
bootz ${kernel_addr_r} ${ramdisk_addr_r} ${fdt_addr_r}
|
||||
#smsc95xx.macaddr=${ethaddr}
|
||||
9
projects/rpi_domo/uboot/dev.cmd
Normal file
9
projects/rpi_domo/uboot/dev.cmd
Normal file
@@ -0,0 +1,9 @@
|
||||
usb start
|
||||
mmc dev 0
|
||||
tftp ${fdt_addr_r} pi_Domo.dtb
|
||||
tftp ${kernel_addr_r} zImage
|
||||
tftp ${ramdisk_addr_r} rootfs.cpio.uboot
|
||||
setenv mmc_freq 'sdhci-bcm2708.emmc_clock_freq=250000000 sdhci-bcm2708.enable_llm=0'
|
||||
setenv usb_args 'dwc_otg.lpm_enable=0 dwc_otg.speed=1 dwc_otg.fiq_fix_enable=1'
|
||||
setenv bootargs ${usb_args} ${mmc_freq} console=ttyAMA0,115200
|
||||
bootz ${kernel_addr_r} ${ramdisk_addr_r} ${fdt_addr_r}
|
||||
33
projects/rpi_domo/uboot/uEnv.txt
Normal file
33
projects/rpi_domo/uboot/uEnv.txt
Normal file
@@ -0,0 +1,33 @@
|
||||
arch=arm
|
||||
baudrate=115200
|
||||
board=rpi
|
||||
board_name=Model B+
|
||||
board_rev=0x10
|
||||
board_rev_scheme=0
|
||||
board_revision=0x10
|
||||
stderr=serial
|
||||
stdin=serial
|
||||
stdout=serial
|
||||
boot_prefixes=/ /boot/
|
||||
boot_scripts=boot.scr boot.scr.uimg
|
||||
boot_targets=fel mmc0 mmc1
|
||||
bootcmd=run distro_bootcmd
|
||||
distro_bootcmd=for target in ${boot_targets}; do run bootcmd_${target}; done
|
||||
bootcmd_fel=if test -n ${fel_booted} && test -n ${fel_scriptaddr}; then echo '(FEL boot)'; source ${fel_scriptaddr}; fi
|
||||
bootcmd_mmc0=setenv devnum 0; run mmc_boot
|
||||
bootcmd_mmc1=setenv devnum 1; run mmc_boot
|
||||
mmc_boot=if mmc dev ${devnum}; then setenv devtype mmc; run scan_dev_for_boot_part; fi
|
||||
scan_dev_for_boot_part=part list ${devtype} ${devnum} -bootable devplist; env exists devplist || setenv devplist 1; for distro_bootpart in ${devplist}; do if fstype ${devtype} ${devnum}:${distro_bootpart} bootfstype; then run scan_dev_for_boot; fi; done
|
||||
scan_dev_for_boot=echo Scanning ${devtype} ${devnum}:${distro_bootpart}...; for prefix in ${boot_prefixes}; do run scan_dev_for_scripts; done;
|
||||
scan_dev_for_scripts=for script in ${boot_scripts}; do if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${script}; then echo Found U-Boot script ${prefix}${script}; run boot_a_script; echo SCRIPT FAILED: continuing...; fi; done
|
||||
boot_a_script=load ${devtype} ${devnum}:${distro_bootpart} ${scriptaddr} ${prefix}${script}; source ${scriptaddr}
|
||||
console=ttyS0,115200
|
||||
scriptaddr=0x43100000
|
||||
fdt_addr_r=0x43000000
|
||||
kernel_addr_r=0x42000000
|
||||
ramdisk_addr_r=0x43300000
|
||||
dev=run dev_boot
|
||||
dev_boot=mmc dev 0; fatload mmc 0:1 ${scriptaddr} dev.scr; source ${scriptaddr}
|
||||
update=run update_scr
|
||||
update_scr=mmc dev 0; fatload mmc 0:1 ${scriptaddr} update.scr; source ${scriptaddr}
|
||||
is_configured=0
|
||||
7
projects/rpi_domo/uboot/update.cmd
Normal file
7
projects/rpi_domo/uboot/update.cmd
Normal file
@@ -0,0 +1,7 @@
|
||||
usb start
|
||||
tftp ${kernel_addr_r} zImage
|
||||
fatwrite mmc 0:1 ${fileaddr} zImage ${filesize}
|
||||
tftp ${fdt_addr_r} pi_Domo.dtb
|
||||
fatwrite mmc 0:1 ${fileaddr} pi_Domo.dtb ${filesize}
|
||||
tftp ${ramdisk_addr_r} rootfs.cpio.uboot
|
||||
fatwrite mmc 0:1 ${fileaddr} rootfs.cpio.uboot ${filesize}
|
||||
Reference in New Issue
Block a user