Skip to content

Commit

Permalink
add k18 product
Browse files Browse the repository at this point in the history
  • Loading branch information
yorkie committed Dec 3, 2019
1 parent 3187623 commit 1c897d7
Show file tree
Hide file tree
Showing 94 changed files with 1,088 additions and 0 deletions.
6 changes: 6 additions & 0 deletions products/k18/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
cmake_minimum_required(VERSION 3.0)
project(raspberry_yodaos_product CXX)
include(ExternalProject)

install(DIRECTORY ./res/media DESTINATION ${CMAKE_INSTALL_DIR}/opt)
install(DIRECTORY ./res/light DESTINATION ${CMAKE_INSTALL_DIR}/opt)
186 changes: 186 additions & 0 deletions products/k18/configs/rpi3b_plus_defconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,186 @@
CONFIG_TARGET_brcm2708=y
CONFIG_TARGET_brcm2708_bcm2710=y
CONFIG_TARGET_brcm2708_bcm2710_RaspberryPi_3B_Plus=y
CONFIG_DEVEL=y
CONFIG_TOOLCHAINOPTS=y
# CONFIG_AI_KAMINO is not set
CONFIG_AI_RASPI=y
CONFIG_BLUETOOTH_USE_BLUEZ=y
CONFIG_BOARD_LED_NUMS=12
CONFIG_BOARD_MIC_CHANNEL=4
CONFIG_BT_UART_DEV="ttyAMA0"
CONFIG_GLIBC_USE_VERSION_2_22=y
CONFIG_GLIBC_VERSION="2.22"
CONFIG_GLIBC_VERSION_2_22=y
CONFIG_LED_HAL_YODASTAGE=y
CONFIG_LIBC="glibc"
CONFIG_LIBC_USE_GLIBC=y
# CONFIG_LIBC_USE_MUSL is not set
CONFIG_LIBC_VERSION="2.22"
CONFIG_MIC_ARRAY_HAL_PCM=y
CONFIG_OPENSSL_ENGINE_CRYPTO=y
CONFIG_OPENSSL_HARDWARE_SUPPORT=y
CONFIG_PACKAGE_SDL2=y
CONFIG_PACKAGE_ai-libs-common=y
# CONFIG_PACKAGE_aicore is not set
CONFIG_PACKAGE_aliyunloglite=y
CONFIG_PACKAGE_alsa-utils=y
CONFIG_PACKAGE_alsa-utils-seq=y
CONFIG_PACKAGE_alsa-utils-tests=y
CONFIG_PACKAGE_android-hardware=y
CONFIG_PACKAGE_android-kernel-headers=y
CONFIG_PACKAGE_android-system-core=y
# CONFIG_PACKAGE_appmedia is not set
CONFIG_PACKAGE_bluetooth_service=y
CONFIG_PACKAGE_bluez-daemon=y
CONFIG_PACKAGE_bluez-libs=y
CONFIG_PACKAGE_bluez-utils=y
CONFIG_PACKAGE_cJSON=y
CONFIG_PACKAGE_dbus-cpp=y
CONFIG_PACKAGE_dbus-utils=y
CONFIG_PACKAGE_dhcpcd=y
# CONFIG_PACKAGE_eesen-master is not set
CONFIG_PACKAGE_flora=y
CONFIG_PACKAGE_flora-dispatcher=y
# CONFIG_PACKAGE_gxavdev is not set
# CONFIG_PACKAGE_gxffmpegplugin is not set
# CONFIG_PACKAGE_gxmpd is not set
# CONFIG_PACKAGE_gxnpu is not set
# CONFIG_PACKAGE_gxomx is not set
CONFIG_PACKAGE_hciattach=y
# CONFIG_PACKAGE_httpdns is not set
CONFIG_PACKAGE_httpsession=y
CONFIG_PACKAGE_i2c-tools=y
CONFIG_PACKAGE_input-event=y
CONFIG_PACKAGE_iperf=y
# CONFIG_PACKAGE_jsruntime is not set
CONFIG_PACKAGE_kmod-ac97=y
CONFIG_PACKAGE_kmod-crypto-hash=y
CONFIG_PACKAGE_kmod-i2c-bcm2835=y
CONFIG_PACKAGE_kmod-i2c-core=y
CONFIG_PACKAGE_kmod-lib-crc-itu-t=y
CONFIG_PACKAGE_kmod-lib-crc7=y
CONFIG_PACKAGE_kmod-lib-lzo=y
CONFIG_PACKAGE_kmod-lib80211=y
CONFIG_PACKAGE_kmod-mmc-spi=y
# CONFIG_PACKAGE_kmod-npu is not set
CONFIG_PACKAGE_kmod-regmap=y
# CONFIG_PACKAGE_kmod-rtl8192cu is not set
CONFIG_PACKAGE_kmod-sound-seq=y
CONFIG_PACKAGE_kmod-sound-soc-ac97=y
CONFIG_PACKAGE_kmod-sound-soc-bcm2835-i2s=y
CONFIG_PACKAGE_kmod-sound-soc-core=y
CONFIG_PACKAGE_kmod-sound-soc-seeed=y
CONFIG_PACKAGE_kmod-spi-bcm2835=y
CONFIG_PACKAGE_kmod-spi-bcm2835-aux=y
CONFIG_PACKAGE_libeloop_mini=y
CONFIG_PACKAGE_libffmpeg-full=y
CONFIG_PACKAGE_libgmp=y
CONFIG_PACKAGE_libical=y
CONFIG_PACKAGE_libopus=y
CONFIG_PACKAGE_libpcre=y
CONFIG_PACKAGE_librplayer=y
CONFIG_PACKAGE_libssp=y
CONFIG_PACKAGE_libusb-1.0=y
CONFIG_PACKAGE_lumenlight=y
CONFIG_PACKAGE_mingutils=y
CONFIG_PACKAGE_net_manager=y
CONFIG_PACKAGE_ota_unpack=y
# CONFIG_PACKAGE_poco-1.7.8p2-all is not set
CONFIG_PACKAGE_products=y
CONFIG_PACKAGE_property=y
CONFIG_PACKAGE_property_service=y
# CONFIG_PACKAGE_protobuf is not set
CONFIG_PACKAGE_pulseaudio-profiles=y
CONFIG_PACKAGE_pulseaudio-tools=y
CONFIG_PACKAGE_pulseaudio_enable_bluez=y
CONFIG_PACKAGE_python-crypto=y
# CONFIG_PACKAGE_rkamsex is not set
CONFIG_PACKAGE_rklog=y
# CONFIG_PACKAGE_rtl8192cu-firmware is not set
CONFIG_PACKAGE_seeed=y
# CONFIG_PACKAGE_senseflow is not set
CONFIG_PACKAGE_shadow-node=y
# CONFIG_PACKAGE_speech is not set
# CONFIG_PACKAGE_speech-service is not set
# CONFIG_PACKAGE_sptk-3.9 is not set
CONFIG_PACKAGE_tinyalsa=y
CONFIG_PACKAGE_uWS=y
CONFIG_PACKAGE_vol_ctrl=y
# CONFIG_PACKAGE_vsp is not set
CONFIG_PACKAGE_wget=y
CONFIG_PACKAGE_wpa-cli=y
CONFIG_PACKAGE_wpa_ctrl=y
CONFIG_PACKAGE_zlib-dev=y
CONFIG_PRODUCT_NAME="Raspberry-pi-plus"
CONFIG_PRODUCT_OS_NAME="yodaos"
CONFIG_PRODUCT_PATHNAME="rpi"
CONFIG_ROKIDOS_BOARDCONFIG_CAPTURE_DEVICEID=0
CONFIG_ROKIDOS_BOARDCONFIG_SOUND_CARDID=1
CONFIG_SSP_SUPPORT=y
CONFIG_STRIP_ARGS="--strip-all"
# CONFIG_TARGET_EXT4_JOURNAL is not set
CONFIG_TARGET_ROOTFS_PARTSIZE=256
CONFIG_TARGET_SUFFIX="gnu"
CONFIG_USE_GLIBC=y
CONFIG_USE_LIBSTDCXX=y
CONFIG_USE_STRIP=y
# CONFIG_USE_UCLIBCXX is not set
CONFIG_WIFI_BT_RPI3B_PLUS=y
CONFIG_PACKAGE_MAC80211_DEBUGFS=y
CONFIG_PACKAGE_MAC80211_MESH=y
# CONFIG_PACKAGE_MAC80211_TRACING is not set
CONFIG_PACKAGE_bash=y
CONFIG_PACKAGE_boost=y
# CONFIG_PACKAGE_boost-atomic is not set
# CONFIG_PACKAGE_boost-chrono is not set
CONFIG_PACKAGE_boost-container=y
# CONFIG_PACKAGE_boost-context is not set
# CONFIG_PACKAGE_boost-coroutine is not set
# CONFIG_PACKAGE_boost-date_time is not set
# CONFIG_PACKAGE_boost-fiber is not set
# CONFIG_PACKAGE_boost-filesystem is not set
# CONFIG_PACKAGE_boost-graph is not set
# CONFIG_PACKAGE_boost-iostreams is not set
# CONFIG_PACKAGE_boost-log is not set
# CONFIG_PACKAGE_boost-math is not set
# CONFIG_PACKAGE_boost-program_options is not set
# CONFIG_PACKAGE_boost-python is not set
# CONFIG_PACKAGE_boost-random is not set
# CONFIG_PACKAGE_boost-regex is not set
# CONFIG_PACKAGE_boost-serialization is not set
# CONFIG_PACKAGE_boost-signals is not set
# CONFIG_PACKAGE_boost-system is not set
# CONFIG_PACKAGE_boost-thread is not set
# CONFIG_PACKAGE_boost-timer is not set
# CONFIG_PACKAGE_boost-wave is not set
CONFIG_PACKAGE_hostapd-common=y
CONFIG_PACKAGE_jansson=y
CONFIG_PACKAGE_kmod-mac80211=y
CONFIG_PACKAGE_libaudiofile=y
CONFIG_PACKAGE_libfaad2=y
CONFIG_PACKAGE_libflac=y
CONFIG_PACKAGE_libid3tag=y
CONFIG_PACKAGE_libmad=y
CONFIG_PACKAGE_libmms=y
CONFIG_PACKAGE_libmpdclient=y
CONFIG_PACKAGE_libogg=y
CONFIG_PACKAGE_libupnp=y
# CONFIG_PACKAGE_libupnp-sample is not set
CONFIG_PACKAGE_libvorbis=y
CONFIG_PACKAGE_libvorbisidec=y
CONFIG_PACKAGE_mpc=y
CONFIG_PACKAGE_screen=y
# CONFIG_PACKAGE_zabbix-extra-mac80211 is not set
# CONFIG_boost-coroutine2 is not set
# CONFIG_boost-graph-parallel is not set
# CONFIG_boost-libs-all is not set
CONFIG_boost-runtime-shared=y
# CONFIG_boost-shared-libs is not set
CONFIG_boost-static-and-shared-libs=y
# CONFIG_boost-static-libs is not set
# CONFIG_boost-test-pkg is not set
# CONFIG_boost-use-name-tags is not set
# CONFIG_boost-variant-debug is not set
# CONFIG_boost-variant-profile is not set
CONFIG_boost-variant-release=y
7 changes: 7 additions & 0 deletions products/k18/ota/flash_ota_bin.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
file_name="u-boot.bin.usb.bl2" sub_type="bootloader" start_position="0x0" flash_partsize="0x0"
file_name="u-boot.bin.usb.tpl" sub_type="tpl" start_position="0x0" flash_partsize="0x0"
file_name="boot.img" sub_type="kernel" start_position="0x0" flash_partsize="0x0"
file_name="recovery.img" sub_type="recovery" start_position="0x0" flash_partsize="0x0"
file_name="openwrt-amlogic-a113-root.ubi" sub_type="system" start_position="0x0" flash_partsize="0x0"
#file_name="openwrt-app.img" sub_type="data" start_position="0x0" flash_partsize="0x0"

9 changes: 9 additions & 0 deletions products/k18/ota/flash_package_bin.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
file_name="mcu.bin" sub_type="mcu" start_position="0x0" flash_partsize="0x100000"
file_name="uboot-spl.bin" sub_type="spl" start_position="0x100000" flash_partsize="0x80000"
file_name="uboot.bin" sub_type="uboot" start_position="0x180000" flash_partsize="0x100000"
file_name="bootmusic.wav" sub_type="boot_music" start_position="0x280000" flash_partsize="0x80000"
file_name="openwrt-rokid.dtb" sub_type="dtb" start_position="0x300000" flash_partsize="0x080000"
file_name="openwrt-rokid.zImage" sub_type="kernel" start_position="0x480000" flash_partsize="0x500000"
file_name="openwrt-recovery.img" sub_type="recovery" start_position="0x980000" flash_partsize="0x800000"
file_name="openwrt-ubi.img" sub_type="rootfs" start_position="0x1180000" flash_partsize="0x2880000"
#file_name="openwrt-app.img" sub_type="data" start_position="0x3A00000" flash_partsize="0x4600000"
9 changes: 9 additions & 0 deletions products/k18/ota/recovery.fstab
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/dev/mtd0: "bootloader"
/dev/mtd1: "tpl"
/dev/mtd2: "misc"
/dev/mtd3: "key"
/dev/mtd4: "recovery_a"
/dev/mtd5: "recovery_b"
/dev/mtd6: "kernel"
/dev/mtd7: "system"
/dev/mtd8: "data"
35 changes: 35 additions & 0 deletions products/k18/pulse/client.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# This file is part of PulseAudio.
#
# PulseAudio is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# PulseAudio is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with PulseAudio; if not, see <http://www.gnu.org/licenses/>.

## Configuration file for PulseAudio clients. See pulse-client.conf(5) for
## more information. Default values are commented out. Use either ; or # for
## commenting.

; default-sink =
; default-source =
; default-server =
; default-dbus-server =

; autospawn = yes
; daemon-binary = /usr/bin/pulseaudio
; extra-arguments = --log-target=syslog

; cookie-file =

; enable-shm = yes
; shm-size-bytes = 0 # setting this 0 will use the system-default, usually 64 MiB

; auto-connect-localhost = no
; auto-connect-display = no
87 changes: 87 additions & 0 deletions products/k18/pulse/daemon.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
# This file is part of PulseAudio.
#
# PulseAudio is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# PulseAudio is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with PulseAudio; if not, see <http://www.gnu.org/licenses/>.

## Configuration file for the PulseAudio daemon. See pulse-daemon.conf(5) for
## more information. Default values are commented out. Use either ; or # for
## commenting.

; daemonize = no
; fail = yes
; allow-module-loading = yes
; allow-exit = yes
; use-pid-file = yes
; system-instance = no
; local-server-type = user
; enable-shm = yes
; enable-memfd = yes
; shm-size-bytes = 0 # setting this 0 will use the system-default, usually 64 MiB
; lock-memory = no
; cpu-limit = no

; high-priority = yes
; nice-level = -11

; realtime-scheduling = yes
; realtime-priority = 5

; exit-idle-time = 20
; scache-idle-time = 20

; dl-search-path = (depends on architecture)

; load-default-script-file = yes
; default-script-file = /etc/pulse/default.pa

; log-target = auto
; log-level = notice
; log-meta = no
; log-time = no
; log-backtrace = 0

; resample-method = soxr-vhq
; enable-remixing = yes
; enable-lfe-remixing = no
; lfe-crossover-freq = 0

; flat-volumes = yes

; rlimit-fsize = -1
; rlimit-data = -1
; rlimit-stack = -1
; rlimit-core = -1
; rlimit-as = -1
; rlimit-rss = -1
; rlimit-nproc = -1
; rlimit-nofile = 256
; rlimit-memlock = -1
; rlimit-locks = -1
; rlimit-sigpending = -1
; rlimit-msgqueue = -1
; rlimit-nice = 31
; rlimit-rtprio = 9
; rlimit-rttime = 200000

; default-sample-format = s16le
default-sample-rate = 48000
alternate-sample-rate = 48000
; default-sample-channels = 2
; default-channel-map = front-left,front-right

; default-fragments = 4
; default-fragment-size-msec = 25

; enable-deferred-volume = yes
; deferred-volume-safety-margin-usec = 8000
; deferred-volume-extra-delay-usec = 0
Loading

0 comments on commit 1c897d7

Please sign in to comment.