forked from batocera-linux/batocera.linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
39 changed files
with
7,387 additions
and
7,276 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
board/batocera/rockchip/rk3588/youyeetoo-r1/boot/extlinux.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
LABEL batocera.linux | ||
LINUX /boot/linux | ||
FDT /boot/rk3588s-youyeetoo-r1.dtb | ||
APPEND initrd=/boot/initrd.lz4 label=BATOCERA rootwait quiet loglevel=0 console=ttyS0,115200n8 coherent_pool=2M |
29 changes: 29 additions & 0 deletions
29
board/batocera/rockchip/rk3588/youyeetoo-r1/create-boot-script.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/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="rk3588s-youyeetoo-r1.dtb" | ||
|
||
mkdir -p "${BATOCERA_BINARIES_DIR}/boot/boot" || exit 1 | ||
mkdir -p "${BATOCERA_BINARIES_DIR}/boot/extlinux" || 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}/${DTB}" "${BATOCERA_BINARIES_DIR}/boot/boot/" || exit 1 | ||
cp "${BOARD_DIR}/boot/extlinux.conf" "${BATOCERA_BINARIES_DIR}/boot/extlinux/" || exit 1 | ||
|
||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 { | ||
align = "1M" | ||
partition-table-type = "gpt" | ||
} | ||
|
||
partition part_idbloader { | ||
in-partition-table = "no" | ||
image = "../../uboot-youyeetoo-r1/idbloader.img" | ||
offset = 32K | ||
} | ||
|
||
partition part_uboot { | ||
in-partition-table = "no" | ||
image = "../../uboot-youyeetoo-r1/u-boot.itb" | ||
offset = 8M | ||
} | ||
|
||
partition vfat { | ||
partition-type-uuid = "F" | ||
image = "boot.vfat" | ||
offset = 16M | ||
} | ||
|
||
partition userdata { | ||
partition-type-uuid = "L" | ||
image = "userdata.ext4" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
config BR2_PACKAGE_UBOOT_YOUYEETOO_R1 | ||
bool "uboot-youyeetoo-r1" | ||
help | ||
U-Boot files for Youyeetoo R1 |
Binary file not shown.
Binary file not shown.
24 changes: 24 additions & 0 deletions
24
package/batocera/boot/uboot-youyeetoo-r1/uboot-youyeetoo-r1.mk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
################################################################################ | ||
# | ||
# uboot-youyeetoo-r1 | ||
# | ||
################################################################################ | ||
|
||
UBOOT_YOUYEETOO_R1_VERSION = 2017.09-1.0.8 | ||
UBOOT_YOUYEETOO_R1_SOURCE = | ||
|
||
define UBOOT_YOUYEETOO_R1_BUILD_CMDS | ||
endef | ||
|
||
UBOOT_YOUYEETOO_R1_PATH = \ | ||
$(BR2_EXTERNAL_BATOCERA_PATH)/package/batocera/boot/uboot-youyeetoo-r1 | ||
|
||
define UBOOT_YOUYEETOO_R1_INSTALL_TARGET_CMDS | ||
mkdir -p $(BINARIES_DIR)/uboot-youyeetoo-r1 | ||
cp -f $(BR2_EXTERNAL_BATOCERA_PATH)/package/batocera/boot/uboot-youyeetoo-r1/idbloader.img \ | ||
$(BINARIES_DIR)/uboot-youyeetoo-r1/idbloader.img | ||
cp -f $(BR2_EXTERNAL_BATOCERA_PATH)/package/batocera/boot/uboot-youyeetoo-r1/u-boot.itb \ | ||
$(BINARIES_DIR)/uboot-youyeetoo-r1/u-boot.itb | ||
endef | ||
|
||
$(eval $(generic-package)) |
Oops, something went wrong.