Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Config.in
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ menu "System"
source "$BR2_EXTERNAL_BATOCERA_PATH/package/batocera/boot/uboot-hugsun-x99/Config.in"
source "$BR2_EXTERNAL_BATOCERA_PATH/package/batocera/boot/uboot-evb-rk3399/Config.in"
source "$BR2_EXTERNAL_BATOCERA_PATH/package/batocera/boot/rk3128-blobs/Config.in"
source "$BR2_EXTERNAL_BATOCERA_PATH/package/batocera/boot/rkbin/Config.in"
source "$BR2_EXTERNAL_BATOCERA_PATH/package/batocera/boot/uboot-multiboard/Config.in"
source "$BR2_EXTERNAL_BATOCERA_PATH/package/batocera/boot/uboot-bananapi-m7/Config.in"
source "$BR2_EXTERNAL_BATOCERA_PATH/package/batocera/boot/uboot-orangepi-5-pro/Config.in"
Expand All @@ -57,6 +58,7 @@ menu "System"
source "$BR2_EXTERNAL_BATOCERA_PATH/package/batocera/boot/rocknix-abl/Config.in"
source "$BR2_EXTERNAL_BATOCERA_PATH/package/batocera/boot/uboot-odroid-m2/Config.in"
source "$BR2_EXTERNAL_BATOCERA_PATH/package/batocera/boot/uboot-rk356x/Config.in"
source "$BR2_EXTERNAL_BATOCERA_PATH/package/batocera/boot/uboot-rk3562/Config.in"
source "$BR2_EXTERNAL_BATOCERA_PATH/package/batocera/boot/uboot-rk3576/Config.in"
source "$BR2_EXTERNAL_BATOCERA_PATH/package/batocera/boot/uboot-gameforce-ace/Config.in"
source "$BR2_EXTERNAL_BATOCERA_PATH/package/batocera/boot/uboot-anbernic-h700/Config.in"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
Define.pbk_mux "SPK"

If.1 {
Condition {
Type ControlExists
Control "name='Internal Speakers Switch'"
}

True {
Define.pbk_mux "HP"
SectionDevice."Speaker".EnableSequence [
cset "name='Internal Speakers Switch' on"
]

SectionDevice."Speaker".DisableSequence [
cset "name='Internal Speakers Switch' off"
]
}
}

SectionDevice."Speaker" {
Comment "Internal Speaker"

EnableSequence [
cset "name='Playback Mux' ${var:pbk_mux}"
]

Value {
PlaybackMixerElem "Master"
PlaybackPriority 100
PlaybackPCM "hw:${CardId}"
}

ConflictingDevice [
"Headphones"
]
}

SectionDevice."Mic" {
Comment "Microphone"

Value {
CapturePriority 100
CapturePCM "hw:${CardId}"
CaptureMixerElem "Mic Capture Gain"
CaptureMasterElem "Master Capture Volume"
}
}

SectionDevice."Headphones" {
Comment "Headphones"

EnableSequence [
cset "name='Playback Mux' HP"
]

Value {
PlaybackMixerElem "Master"
PlaybackPriority 200
PlaybackPCM "hw:${CardId}"
JackControl "Headphones Jack"
JackHWMute "Speaker"
}

ConflictingDevice [
"Speaker"
]
}
5 changes: 5 additions & 0 deletions board/batocera/rockchip/rk3562/kickpi-k3b/boot/extlinux.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
LABEL batocera.linux
LINUX /boot/linux
FDT /boot/rk3562-kickpi-k3b.dtb
FDTOVERLAYS /boot/overlays/rk3562-kickpi-k3b-demo-dsi-panel.dtbo
APPEND initrd=/boot/initrd.lz4 label=BATOCERA rootwait quiet loglevel=0 console=tty3 console=ttyS0,1500000n8 vt.global_cursor_default=0
37 changes: 37 additions & 0 deletions board/batocera/rockchip/rk3562/kickpi-k3b/create-boot-script.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#!/bin/bash

# HOST_DIR = host dir
# BOARD_DIR = board specific dir
# BUILD_DIR = base dir/build
# BINARIES_DIR = images dir
# TARGET_DIR = target dir
# BATOCERA_BINARIES_DIR = batocera binaries sub directory

HOST_DIR=$1
BOARD_DIR=$2
BUILD_DIR=$3
BINARIES_DIR=$4
TARGET_DIR=$5
BATOCERA_BINARIES_DIR=$6

DTB="rk3562-kickpi-k3b.dtb"
DTBOVERLAYS="rk3562-kickpi-k3b-demo-dsi-panel.dtbo"

mkdir -p "${BATOCERA_BINARIES_DIR}/boot/boot" || exit 1
mkdir -p "${BATOCERA_BINARIES_DIR}/boot/extlinux" || exit 1
mkdir -p "${BATOCERA_BINARIES_DIR}/boot/boot/overlays" || exit 1

cp "${BINARIES_DIR}/Image" "${BATOCERA_BINARIES_DIR}/boot/boot/linux" || exit 1
cp "${BINARIES_DIR}/initrd.lz4" "${BATOCERA_BINARIES_DIR}/boot/boot/initrd.lz4" || exit 1
cp "${BINARIES_DIR}/rootfs.squashfs" "${BATOCERA_BINARIES_DIR}/boot/boot/batocera.update" || exit 1
cp "${BINARIES_DIR}/rufomaculata" "${BATOCERA_BINARIES_DIR}/boot/boot/rufomaculata.update" || exit 1

cp "${BINARIES_DIR}/${DTB}" "${BATOCERA_BINARIES_DIR}/boot/boot/" || exit 1
cp "${BOARD_DIR}/boot/extlinux.conf" "${BATOCERA_BINARIES_DIR}/boot/extlinux/" || exit 1

for dtbo in ${DTBOVERLAYS}
do
cp "${BINARIES_DIR}/dtbos/${dtbo}" "${BATOCERA_BINARIES_DIR}/boot/boot/overlays/" || exit 1
done

exit 0
48 changes: 48 additions & 0 deletions board/batocera/rockchip/rk3562/kickpi-k3b/genimage.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
image boot.vfat {
vfat {
extraargs = "-F 32 -n BATOCERA"
@files
}
size = 6G
}

image userdata.ext4 {
ext4 {
label = "SHARE"
use-mke2fs = "true"
extraargs = "-m 0"
}
size = "512M"
# include files from TARGET_DIR/userdata
mountpoint = "/userdata"
}

image batocera.img {
hdimage {
partition-table-type = "hybrid"
align = "1M"
}

partition part_idbloader {
in-partition-table = "no"
image = "../../uboot-rk3562/kickpi-k3b/idbloader.img"
offset = 32K
}

partition uboot {
in-partition-table = "no"
image = "../../uboot-rk3562/kickpi-k3b/u-boot.itb"
offset = 8M
}

partition vfat {
partition-type = 0xC
image = "boot.vfat"
offset = 16M
}

partition userdata {
partition-type = 0x83
image = "userdata.ext4"
}
}
28 changes: 28 additions & 0 deletions board/batocera/rockchip/rk3562/linux-defconfig-fragment.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# required for batocera squashfs
CONFIG_NLS_ISO8859_1=y
CONFIG_OVERLAY_FS=y
CONFIG_SQUASHFS=y
CONFIG_CHR_DEV_SG=m

# logo
# CONFIG_LOGO is not set

# required for evmapy
CONFIG_INPUT_UINPUT=y

# smb/cifs
CONFIG_CIFS=m
CONFIG_CIFS_STATS=y
# CONFIG_CIFS_STATS2 is not set
CONFIG_CIFS_WEAK_PW_HASH=y
CONFIG_CIFS_UPCALL=y
CONFIG_CIFS_XATTR=y
CONFIG_CIFS_POSIX=y
CONFIG_CIFS_ACL=y
CONFIG_CIFS_DEBUG=y
# CONFIG_CIFS_DEBUG2 is not set
# CONFIG_CIFS_DEBUG_DUMP_KEYS is not set
CONFIG_CIFS_DFS_UPCALL=y
CONFIG_CIFS_SMB2=y
CONFIG_CIFS_SMB311=y
# CONFIG_CIFS_SMB_DIRECT is not set
Loading