odroid*: remove

umaintained for a long time, unsupported kernel version, python 2
This commit is contained in:
classabbyamp 2023-10-06 15:31:38 -04:00 committed by classabbyamp
parent d3d97e7090
commit f75c57c05c
20 changed files with 0 additions and 4715 deletions

View file

@ -1,8 +0,0 @@
case "$ACTION" in
post)
mkdir -p etc/runit/runsvdir/default/
ln -s /etc/sv/sshd etc/runit/runsvdir/default/
ln -s /etc/sv/ntpd etc/runit/runsvdir/default/
ln -s /etc/sv/dhcpcd etc/runit/runsvdir/default/
;;
esac

View file

@ -1,5 +0,0 @@
# LED_BOOT_BEHAVIOR: Control the behavior of the blue LED on boot
# enable: turn LED on
# disable: turn LED off
# auto: do nothing (LED will blink)
LED_BOOT_BEHAVIOR=enable

View file

@ -1,48 +0,0 @@
#!/bin/sh
usage() {
cat >&2 <<EOF
usage: $0 [enable|disable]
EOF
exit 1;
}
die() {
echo $@ >&2
exit 1;
}
LED=/sys/class/leds/led1/brightness
MAXLED=/sys/class/leds/led1/max_brightness
if [ $# -eq 1 ]; then
[ -z "$1" ] && usage
behavior=$1
elif [ $# -gt 1 ]; then
usage;
elif [ -f /etc/default/odroid-led ]; then
. /etc/default/odroid-led
behavior=$LED_BOOT_BEHAVIOR
auto_config=1
else
exit 1
fi
case "$behavior" in
enable)
[ -f $LED -a -f $MAXLED ] || die "LED control file can not be found"
echo 0 > $LED
cat $MAXLED > $LED
;;
disable)
[ -f $LED ] || die "LED control file can not be found"
echo 0 > $LED
;;
*)
[ "$auto_config" ] || usage
exit 0;
;;
esac

View file

@ -1,5 +0,0 @@
#!/bin/sh
exec 2>&1
set -e
odroid-led
exec chpst -b odroid-led pause

View file

@ -1,25 +0,0 @@
# Template file for 'odroid-u2-base'
pkgname=odroid-u2-base
version=2.4
revision=2
build_style=meta
homepage="http://www.voidlinux.org"
short_desc="Void Linux Odroid U2 platform package"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="Public Domain"
archs="armv7l"
depends="virtual?ntp-daemon odroid-u2-kernel odroid-u2-uboot odroid-u2-boot-fw linux-firmware-network"
conf_files=/etc/default/odroid-led
do_install() {
# Set proper perms to some devices.
vmkdir usr/lib/udev/rules.d
echo 'KERNEL=="disp|cedar_dev|mali|ump", MODE="0660", GROUP="video"' > ${DESTDIR}/usr/lib/udev/rules.d/50-odroid-u2.rules
# Install LED utilities
vinstall ${FILESDIR}/odroid-led.sh 744 /usr/bin odroid-led
vinstall ${FILESDIR}/odroid-led.default 744 /etc/default odroid-led
vsv odroid-led
}

View file

@ -1,19 +0,0 @@
# Template file for 'odroid-u2-uboot'
pkgname=odroid-u2-boot-fw
version=1.0
revision=1
build_style=meta
short_desc="Odroid U2 proprietary boot files"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="proprietary"
homepage="http://dev.odroid.com/projects/4412boot/wiki/FrontPage"
distfiles="http://dev.odroid.com/projects/4412boot/wiki/FrontPage?action=download&value=boot.tar.gz"
checksum="e0db737d9e49f937425e4778b0ab892623bcc389d7c26329ba2e97ae7bb475c4"
archs="armv7l"
do_install() {
vinstall E4412_S.bl1.HardKernel.bin 600 boot
vinstall bl2.signed.bin 600 boot
vinstall E4412_S.tzsw.signed.bin 600 boot
}

View file

@ -1 +0,0 @@
odroid-u2-kernel

File diff suppressed because it is too large Load diff

View file

@ -1,75 +0,0 @@
From 7ca88764d45c209791e8813131c1457c2e9e51e7 Mon Sep 17 00:00:00 2001
From: Yevgeny Pats <yevgeny@perception-point.io>
Date: Mon, 11 Jan 2016 12:05:28 +0000
Subject: KEYS: Fix keyring ref leak in join_session_keyring()
If a thread is asked to join as a session keyring the keyring that's already
set as its session, we leak a keyring reference.
This can be tested with the following program:
#include <stddef.h>
#include <stdio.h>
#include <sys/types.h>
#include <keyutils.h>
int main(int argc, const char *argv[])
{
int i = 0;
key_serial_t serial;
serial = keyctl(KEYCTL_JOIN_SESSION_KEYRING,
"leaked-keyring");
if (serial < 0) {
perror("keyctl");
return -1;
}
if (keyctl(KEYCTL_SETPERM, serial,
KEY_POS_ALL | KEY_USR_ALL) < 0) {
perror("keyctl");
return -1;
}
for (i = 0; i < 100; i++) {
serial = keyctl(KEYCTL_JOIN_SESSION_KEYRING,
"leaked-keyring");
if (serial < 0) {
perror("keyctl");
return -1;
}
}
return 0;
}
If, after the program has run, there something like the following line in
/proc/keys:
3f3d898f I--Q--- 100 perm 3f3f0000 0 0 keyring leaked-keyring: empty
with a usage count of 100 * the number of times the program has been run,
then the kernel is malfunctioning. If leaked-keyring has zero usages or
has been garbage collected, then the problem is fixed.
Reported-by: Yevgeny Pats <yevgeny@perception-point.io>
Signed-off-by: David Howells <dhowells@redhat.com>
---
security/keys/process_keys.c | 1 +
1 file changed, 1 insertion(+)
diff --git security/keys/process_keys.c security/keys/process_keys.c
index a3f85d2..e6d50172 100644
--- a/security/keys/process_keys.c
+++ b/security/keys/process_keys.c
@@ -794,6 +794,7 @@ long join_session_keyring(const char *name)
ret = PTR_ERR(keyring);
goto error2;
} else if (keyring == new->session_keyring) {
+ key_put(keyring);
ret = 0;
goto error2;
}
--
2.7.0.rc3

View file

@ -1,164 +0,0 @@
# Template file for 'odroid-u2-kernel'
#
# Latest commit as of 20140809
_githash="0c5ca23376fdddc43a08e5709e4d4bf18bc747f0"
_gitshort="${_githash:0:7}"
pkgname=odroid-u2-kernel
version=3.8.13.28
revision=4
maintainer="Enno Boland <gottox@voidlinux.org>"
homepage="http://www.kernel.org"
license="GPL-2"
short_desc="The Linux kernel and modules for the Odroid U2/U3 (${version%.*} series [git ${_gitshort}])"
distfiles="https://github.com/hardkernel/linux/archive/${_githash}.tar.gz"
checksum=d87e988b1000e4ae28172a2d83676e64e8b8a0c9a77a2554dc394152141b5b26
provides="kernel-odroid-u2-${version}_${revision}"
replaces="kernel-odroid-u2>=0"
_kernver="${version}_${revision}"
nostrip=yes
noverifyrdeps=yes
archs="armv7l"
hostmakedepends="perl python kmod uboot-mkimage openssl elfutils bc"
makedepends="ncurses-devel"
depends="kmod>=11_2"
triggers="kernel-hooks"
# These files could be modified when an external module is built.
mutable_files="
/usr/lib/modules/${_kernver}/modules.dep
/usr/lib/modules/${_kernver}/modules.dep.bin
/usr/lib/modules/${_kernver}/modules.symbols
/usr/lib/modules/${_kernver}/modules.symbols.bin
/usr/lib/modules/${_kernver}/modules.alias
/usr/lib/modules/${_kernver}/modules.alias.bin
/usr/lib/modules/${_kernver}/modules.devname"
do_configure() {
if [ "$CROSS_BUILD" ]; then
_args="CROSS_COMPILE=${XBPS_CROSS_TRIPLET}-"
fi
unset LDFLAGS
cat ${FILESDIR}/u2-dotconfig-custom > .config
# Always use our revision to CONFIG_LOCALVERSION to match our pkg version.
sed -i -e "s|^\(CONFIG_LOCALVERSION=\).*|\1\"_${revision}\"|" .config
}
do_build() {
if [ "$CROSS_BUILD" ]; then
_args="CROSS_COMPILE=${XBPS_CROSS_TRIPLET}-"
fi
unset LDFLAGS
make ${makejobs} ${_args} ARCH=arm prepare
make ${makejobs} ${_args} ARCH=arm zImage modules
}
do_install() {
local hdrdest
# Run depmod after compressing modules.
sed -i '2iexit 0' scripts/depmod.sh
# Install kernel, firmware and modules
make ARCH=arm INSTALL_MOD_PATH=${DESTDIR} modules_install
vinstall arch/arm/boot/zImage 644 boot
hdrdest=${DESTDIR}/usr/src/${sourcepkg}-headers-${_kernver}
# Switch to /usr.
vmkdir usr
mv ${DESTDIR}/lib ${DESTDIR}/usr
cd ${DESTDIR}/usr/lib/modules/${_kernver}
rm -f source build
ln -sf ../../../src/${sourcepkg}-headers-${_kernver} build
cd ${wrksrc}
# Remove firmware stuff provided by the "linux-firmware" pkg.
rm -rf ${DESTDIR}/usr/lib/firmware
mkdir -p ${hdrdest}/include
for i in acpi asm-generic config crypto drm generated linux math-emu \
media net pcmcia scsi sound trace video xen; do
[ -d include/$i ] && cp -a include/$i ${hdrdest}/include
done
cd ${wrksrc}
# Copy files necessary for later builds.
cp Module.symvers ${hdrdest}
cp -a scripts ${hdrdest}
# fix permissions on scripts dir
chmod og-w -R ${hdrdest}/scripts
# copy arch includes for external modules
mkdir -p ${hdrdest}/arch/arm/mach-exynos
mkdir -p ${hdrdest}/arch/arm/plat-samsung
cp -a arch/arm/include ${hdrdest}/arch/arm
cp -a arch/arm/mach-exynos/include ${hdrdest}/arch/arm/mach-exynos
cp -a arch/arm/plat-samsung/include ${hdrdest}/arch/arm/plat-samsung
mkdir -p ${hdrdest}/arch/arm/kernel
cp arch/arm/Makefile ${hdrdest}/arch/arm
if [ "$MACHINE_ARCH" = "i686" ]; then
cp arch/arm/Makefile_32.cpu ${hdrdest}/arch/arm
fi
cp arch/arm/kernel/asm-offsets.s ${hdrdest}/arch/arm/kernel
# Add docbook makefile
install -Dm644 Documentation/DocBook/Makefile \
${hdrdest}/Documentation/DocBook/Makefile
# Add md headers
mkdir -p ${hdrdest}/drivers/md
cp drivers/md/*.h ${hdrdest}/drivers/md
# Add inotify.h
mkdir -p ${hdrdest}/include/linux
cp include/linux/inotify.h ${hdrdest}/include/linux
# Add wireless headers
mkdir -p ${hdrdest}/net/mac80211/
cp net/mac80211/*.h ${hdrdest}/net/mac80211
# add dvb headers for external modules
mkdir -p ${hdrdest}/include/config/dvb/
cp include/config/dvb/*.h ${hdrdest}/include/config/dvb/
# Copy in Kconfig files
for i in $(find . -name "Kconfig*"); do
mkdir -p ${hdrdest}/$(echo $i | sed 's|/Kconfig.*||')
cp $i ${hdrdest}/$i
done
# Remove unneeded architectures
for arch in alpha arm26 avr32 blackfin cris frv h8300 \
ia64 m* p* s* um v850 x86 xtensa; do
rm -rf ${hdrdest}/arch/${arch}
done
# Compress all modules with xz to save a few MBs.
msg_normal "$pkgver: compressing kernel modules with gzip, please wait...\n"
find ${DESTDIR} -name '*.ko' -exec gzip -9 {} \;
# ... and run depmod again.
depmod -b ${DESTDIR}/usr -F System.map ${_kernver}
}
odroid-u2-kernel-headers_package() {
nostrip=yes
noverifyrdeps=yes
short_desc="Linux kernel headers for the Odroid U2/U3 (${version%.*} series [${_gitshort}])"
pkg_install() {
vmove usr/src
vmove usr/lib/modules/${_kernver}/build
}
}

View file

@ -1 +0,0 @@
ignore="3.1[0-9]*"

View file

@ -1,6 +0,0 @@
setenv initrd_high "0xffffffff"
setenv fdt_high "0xffffffff"
setenv bootcmd "fatload mmc 0:1 0x40008000 /zImage; bootm 0x40008000"
setenv edid_load "drm_kms_helper.edid_firmware=edid/1024x768.bin"
setenv bootargs "console=tty1 console=ttySAC1,115200n8 ${edid_load} root=/dev/mmcblk0p2 rootwait ro mem=2047M"
boot

View file

@ -1,6 +0,0 @@
setenv initrd_high "0xffffffff"
setenv fdt_high "0xffffffff"
setenv drm_video_mode "HDMI-A-1:1920x1080@60"
setenv bootcmd "fatload mmc 0:1 0x40008000 /zImage; bootm 0x40008000"
setenv bootargs "console=tty1 console=ttySAC1,115200n8 video=${drm_video_mode} root=/dev/mmcblk0p2 rootwait ro mem=2047M"
boot

View file

@ -1,6 +0,0 @@
setenv initrd_high "0xffffffff"
setenv fdt_high "0xffffffff"
setenv bootcmd "fatload mmc 0:1 0x40008000 /zImage; bootm 0x40008000"
setenv edid_load "drm_kms_helper.edid_firmware=edid/1920x1080.bin"
setenv bootargs "console=tty1 console=ttySAC1,115200n8 ${edid_load} root=/dev/mmcblk0p2 rootwait ro mem=2047M"
boot

View file

@ -1,6 +0,0 @@
setenv initrd_high "0xffffffff"
setenv fdt_high "0xffffffff"
setenv drm_video_mode "HDMI-A-1:1280x720M@60"
setenv bootcmd "fatload mmc 0:1 0x40008000 /zImage; bootm 0x40008000"
setenv bootargs "console=tty1 console=ttySAC1,115200n8 video=${drm_video_mode} root=/dev/mmcblk0p2 rootwait ro mem=2047M"
boot

View file

@ -1,6 +0,0 @@
setenv initrd_high "0xffffffff"
setenv fdt_high "0xffffffff"
setenv bootcmd "fatload mmc 0:1 0x40008000 /zImage; bootm 0x40008000"
setenv edid_load "drm_kms_helper.edid_firmware=edid/1280x720.bin"
setenv bootargs "console=tty1 console=ttySAC1,115200n8 ${edid_load} root=/dev/mmcblk0p2 rootwait ro mem=2047M"
boot

View file

@ -1,5 +0,0 @@
setenv initrd_high "0xffffffff"
setenv fdt_high "0xffffffff"
setenv bootcmd "fatload mmc 0:1 0x40008000 zImage; bootm 0x40008000"
setenv bootargs "console=tty1 console=ttySAC1,115200n8 root=/dev/mmcblk0p2 rootwait ro mem=2047M"
boot

View file

@ -1,13 +0,0 @@
diff --git a/arch/arm/cpu/armv7/config.mk b/arch/arm/cpu/armv7/config.mk
index 7f9b171..788caaa 100644
--- a/arch/arm/cpu/armv7/config.mk
+++ b/arch/arm/cpu/armv7/config.mk
@@ -20,7 +20,7 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
# MA 02111-1307 USA
#
-PLATFORM_RELFLAGS += -fno-common -ffixed-r8 -msoft-float
+PLATFORM_RELFLAGS += -fno-common -ffixed-r8 -mfloat-abi=hard -mfpu=vfpv3
# Make ARMv5 to allow more compilers to work, even though its v7a.
PLATFORM_CPPFLAGS += -march=armv7-a

View file

@ -1,95 +0,0 @@
/*
* Copyright (c) 2010 Samsung Electronics Co., Ltd.
* http://www.samsung.com/
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
int main (int argc, char *argv[])
{
FILE *fp;
unsigned char src;
char *Buf, *a;
int BufLen;
int nbytes, fileLen;
unsigned int checksum = 0;
int i;
if (argc != 4)
{
printf("Usage: mkbl1 <source file> <destination file> <size> \n");
return -1;
}
BufLen = atoi(argv[3]);
Buf = (char *)malloc(BufLen);
memset(Buf, 0x00, BufLen);
fp = fopen(argv[1], "rb");
if( fp == NULL)
{
printf("source file open error\n");
free(Buf);
return -1;
}
fseek(fp, 0L, SEEK_END);
fileLen = ftell(fp);
fseek(fp, 0L, SEEK_SET);
if ( BufLen > fileLen )
{
printf("Usage: unsupported size\n");
free(Buf);
fclose(fp);
return -1;
}
nbytes = fread(Buf, 1, BufLen, fp);
if ( nbytes != BufLen )
{
printf("source file read error\n");
free(Buf);
fclose(fp);
return -1;
}
fclose(fp);
for(i = 0;i < (14 * 1024) - 4;i++)
{
checksum += (unsigned char)(Buf[i]);
}
*(unsigned int*)(Buf+i) = checksum;
fp = fopen(argv[2], "wb");
if (fp == NULL)
{
printf("destination file open error\n");
free(Buf);
return -1;
}
a = Buf;
nbytes = fwrite( a, 1, BufLen, fp);
if ( nbytes != BufLen )
{
printf("destination file write error\n");
free(Buf);
fclose(fp);
return -1;
}
free(Buf);
fclose(fp);
return 0;
}

View file

@ -1,52 +0,0 @@
# Template file for 'odroid-u2-uboot'
_githash=89f2ab95e7304fe02e5267f1282fbc178550d528
pkgname=odroid-u2-uboot
version=v2010.12
revision=2
hostmakedepends="uboot-mkimage"
short_desc="Odroid U2 U-Boot files for SD booting"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-2"
homepage="https://github.com/hardkernel/u-boot"
distfiles="https://github.com/hardkernel/u-boot/archive/${_githash}.tar.gz"
checksum="29593e636a0d908230910522aab74c09a35b92fee71b165d088f561e85ba3e1d"
archs="armv7l"
_default_scr="boot-auto_edid.scr"
do_configure() {
make mrproper
patch -p1 < ${FILESDIR}/config.patch
make smdk4412_config
}
do_build() {
${BUILD_CC} ${BUILD_CFLAGS} -o mkbl2 ${FILESDIR}/mkbl2.c
unset CFLAGS CXXFLAGS LDFLAGS
if [ "$CROSS_BUILD" ]; then
make ARCH=arm CROSS_COMPILE=${XBPS_CROSS_TRIPLET}-
else
make ARCH=arm
fi
# Building uboot scr's
for source in ${FILESDIR}/*.ini; do
name=$(basename ${source%.ini})
mkimage -A arm -T script -C none -n "${name}" -d $source ${name}.scr
done
cp ${_default_scr} boot.scr
}
do_install() {
vinstall u-boot.bin 600 boot
# Install uboot scr's
for scr in *.scr; do
echo $scr
vinstall $scr 600 boot
done
}