odroid-c2-*: remove, obsolete kernels.
This commit is contained in:
parent
ac5f760282
commit
6ce99104f4
13 changed files with 0 additions and 6496 deletions
|
@ -1,9 +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/
|
||||
ln -s /etc/sv/agetty-ttyS0 etc/runit/runsvdir/default/
|
||||
;;
|
||||
esac
|
|
@ -1,13 +0,0 @@
|
|||
# Template file for 'odroid-c2-base'
|
||||
pkgname=odroid-c2-base
|
||||
version=20160923
|
||||
revision=2
|
||||
build_style=meta
|
||||
homepage="http://www.voidlinux.org"
|
||||
short_desc="Void Linux Odroid C2 platform package"
|
||||
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
|
||||
license="Public Domain"
|
||||
|
||||
archs="aarch64*"
|
||||
makedepends="base-system"
|
||||
depends="virtual?ntp-daemon odroid-c2-kernel odroid-c2-uboot linux-firmware-network"
|
|
@ -1 +0,0 @@
|
|||
odroid-c2-kernel
|
File diff suppressed because it is too large
Load diff
|
@ -1,149 +0,0 @@
|
|||
# Template file for 'odroid-c2-kernel'
|
||||
pkgname=odroid-c2-kernel
|
||||
version=3.14.79
|
||||
revision=1
|
||||
_githash=558eb86c1abe7dc321b8457c5edf80bfe72492ec
|
||||
wrksrc="linux-${_githash}"
|
||||
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
|
||||
homepage="https://github.com/hardkernel/linux/tree/odroidc2-3.14.y"
|
||||
license="GPL-2"
|
||||
short_desc="The Linux kernel for ODROID-C2 (${version%.*} series)"
|
||||
distfiles="https://github.com/hardkernel/linux/archive/${_githash}.tar.gz"
|
||||
checksum=13e1833f930c246f05bac50bbf29dc142eb6c70520eeb60c1ab148a800798782
|
||||
|
||||
_kernver="${version}_${revision}"
|
||||
|
||||
nodebug=yes
|
||||
nostrip=yes
|
||||
noverifyrdeps=yes
|
||||
noshlibprovides=yes
|
||||
|
||||
archs="aarch64*"
|
||||
hostmakedepends="perl kmod libressl bc"
|
||||
makedepends="ncurses-devel"
|
||||
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
|
||||
cp ${FILESDIR}/config .config
|
||||
make ${makejobs} ${_args} ARCH=arm64 oldconfig
|
||||
# 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
|
||||
export LDFLAGS=
|
||||
make ${makejobs} ${_args} ARCH=arm64 prepare
|
||||
make ${makejobs} ${_args} ARCH=arm64 Image modules dtbs
|
||||
}
|
||||
do_install() {
|
||||
local hdrdest
|
||||
|
||||
# Run depmod after compressing modules.
|
||||
sed -i '2iexit 0' scripts/depmod.sh
|
||||
|
||||
# Install kernel, firmware and modules
|
||||
make ${makejobs} ARCH=arm64 INSTALL_MOD_PATH=${DESTDIR} modules_install
|
||||
|
||||
vmkdir boot
|
||||
vmkdir boot/dtbs
|
||||
vinstall arch/arm64/boot/Image 644 boot
|
||||
vinstall arch/arm64/boot/dts/meson64_odroidc2.dtb 644 boot/dtbs
|
||||
# install -D -m644 vmlinux "${pkgdir}/usr/lib/modules/${_kernver}/build/vmlinux"
|
||||
|
||||
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}
|
||||
# Install required headers to build external modules
|
||||
install -Dm644 Makefile ${hdrdest}/Makefile
|
||||
install -Dm644 kernel/Makefile ${hdrdest}/kernel/Makefile
|
||||
install -Dm644 .config ${hdrdest}/.config
|
||||
mkdir -p ${hdrdest}/include
|
||||
|
||||
# Remove firmware stuff provided by the "linux-firmware" pkg.
|
||||
rm -rf ${DESTDIR}/usr/lib/firmware
|
||||
|
||||
for i in acpi asm-generic config crypto drm generated linux math-emu \
|
||||
media net pcmcia scsi sound trace uapi 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
|
||||
|
||||
# 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' | xargs -n1 -P0 gzip -9
|
||||
|
||||
# ... and run depmod again.
|
||||
depmod -b ${DESTDIR}/usr -F System.map ${_kernver}
|
||||
}
|
||||
|
||||
odroid-c2-kernel-headers_package() {
|
||||
nostrip=yes
|
||||
noverifyrdeps=yes
|
||||
noshlibprovides=yes
|
||||
short_desc="The Linux kernel headers for ODROID-C2 (${version%.*} series)"
|
||||
pkg_install() {
|
||||
vmove usr/src
|
||||
vmove usr/lib/modules/${_kernver}/build
|
||||
}
|
||||
}
|
|
@ -1,89 +0,0 @@
|
|||
ODROIDC2-UBOOT-CONFIG
|
||||
|
||||
# Possible screen resolutions
|
||||
# Uncomment only a single Line! The line with setenv written.
|
||||
# At least one mode must be selected.
|
||||
|
||||
# 480 Lines (720x480)
|
||||
# setenv m "480i60hz" # Interlaced 60Hz
|
||||
# setenv m "480i_rpt" # Interlaced for Rear Projection Televisions 60Hz
|
||||
# setenv m "480p60hz" # 480 Progressive 60Hz
|
||||
# setenv m "480p_rpt" # 480 Progressive for Rear Projection Televisions 60Hz
|
||||
|
||||
# 576 Lines (720x576)
|
||||
# setenv m "576i50hz" # Interlaced 50Hz
|
||||
# setenv m "576i_rpt" # Interlaced for Rear Projection Televisions 50Hz
|
||||
# setenv m "576p50hz" # Progressive 50Hz
|
||||
# setenv m "576p_rpt" # Progressive for Rear Projection Televisions 50Hz
|
||||
|
||||
# 720 Lines (1280x720)
|
||||
# setenv m "720p50hz" # 50Hz
|
||||
# setenv m "720p60hz" # 60Hz
|
||||
|
||||
# 1080 Lines (1920x1080)
|
||||
# setenv m "1080i60hz" # Interlaced 60Hz
|
||||
setenv m "1080p60hz" # Progressive 60Hz
|
||||
# setenv m "1080i50hz" # Interlaced 50Hz
|
||||
# setenv m "1080p50hz" # Progressive 50Hz
|
||||
# setenv m "1080p24hz" # Progressive 24Hz
|
||||
|
||||
# 4K (3840x2160)
|
||||
# setenv m "2160p30hz" # Progressive 30Hz
|
||||
# setenv m "2160p25hz" # Progressive 25Hz
|
||||
# setenv m "2160p24hz" # Progressive 24Hz
|
||||
# setenv m "smpte24hz" # Progressive 24Hz SMPTE
|
||||
# setenv m "2160p50hz" # Progressive 50Hz
|
||||
# setenv m "2160p60hz" # Progressive 60Hz
|
||||
# setenv m "2160p50hz420" # Progressive 50Hz with YCbCr 4:2:0 (Requires TV/Monitor that supports it)
|
||||
# setenv m "2160p60hz420" # Progressive 60Hz with YCbCr 4:2:0 (Requires TV/Monitor that supports it)
|
||||
|
||||
### VESA modes ###
|
||||
# setenv m "640x480p60hz"
|
||||
# setenv m "800x480p60hz"
|
||||
# setenv m "800x600p60hz"
|
||||
# setenv m "1024x600p60hz"
|
||||
# setenv m "1024x768p60hz"
|
||||
# setenv m "1280x800p60hz"
|
||||
# setenv m "1280x1024p60hz"
|
||||
# setenv m "1360x768p60hz"
|
||||
# setenv m "1440x900p60hz"
|
||||
# setenv m "1600x900p60hz"
|
||||
# setenv m "1680x1050p60hz"
|
||||
# setenv m "1920x1200p60hz"
|
||||
|
||||
|
||||
# HDMI BPP Mode
|
||||
setenv m_bpp "32"
|
||||
# setenv m_bpp "24"
|
||||
# setenv m_bpp "16"
|
||||
|
||||
# HDMI DVI/VGA modes
|
||||
# Uncomment only a single Line! The line with setenv written.
|
||||
# At least one mode must be selected.
|
||||
# setenv vout "dvi"
|
||||
# setenv vout "vga"
|
||||
|
||||
# Default Console Device Setting
|
||||
setenv condev "console=ttyS0,115200n8 console=tty0" # on both
|
||||
|
||||
###########################################
|
||||
|
||||
# Boot Arguments
|
||||
setenv bootargs "root=/dev/mmcblk0p1 rootwait rw ${condev} no_console_suspend hdmimode=${m} m_bpp=${m_bpp} vout=${vout}"
|
||||
|
||||
# Booting
|
||||
|
||||
setenv loadaddr "0x11000000"
|
||||
setenv dtb_loadaddr "0x1000000"
|
||||
setenv initrd_loadaddr "0x13000000"
|
||||
|
||||
load mmc 0:1 ${loadaddr} /boot/Image
|
||||
load mmc 0:1 ${dtb_loadaddr} /boot/dtbs/meson64_odroidc2.dtb
|
||||
#load mmc 0:1 ${initrd_loadaddr} /boot/initramfs-linux.img
|
||||
|
||||
# Meson Timer
|
||||
fdt addr ${dtb_loadaddr}
|
||||
fdt rm /timer
|
||||
|
||||
#booti ${loadaddr} ${initrd_loadaddr}:${filesize} ${dtb_loadaddr}
|
||||
booti ${loadaddr} - ${dtb_loadaddr}
|
|
@ -1,41 +0,0 @@
|
|||
From 12983d91742d4b981d032b94a5349427670b2cc9 Mon Sep 17 00:00:00 2001
|
||||
From: Kevin Mihelich <kevin@archlinuxarm.org>
|
||||
Date: Wed, 3 Feb 2016 20:59:26 -0700
|
||||
Subject: [PATCH 2/4] sd_fusing tweaks
|
||||
|
||||
---
|
||||
sd_fuse/sd_fusing.sh | 13 ++++++-------
|
||||
1 file changed, 6 insertions(+), 7 deletions(-)
|
||||
|
||||
--- sd_fuse/sd_fusing.sh
|
||||
+++ sd_fuse/sd_fusing.sh
|
||||
@@ -15,20 +15,19 @@ if [ -z $1 ]; then
|
||||
fi
|
||||
|
||||
if [ ! -f $BL1 ]; then
|
||||
- echo "error: $BL1 is not exist"
|
||||
+ echo "error: $BL1 does not exist"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ ! -f $UBOOT ]; then
|
||||
- echo "error: $UBOOT is not exist"
|
||||
+ echo "error: $UBOOT does not exist"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
-sudo dd if=$BL1 of=$1 conv=fsync bs=1 count=442
|
||||
-sudo dd if=$BL1 of=$1 conv=fsync bs=512 skip=1 seek=1
|
||||
-sudo dd if=$UBOOT of=$1 conv=fsync bs=512 seek=97
|
||||
+dd if=$BL1 of=$1 conv=fsync bs=1 count=442
|
||||
+dd if=$BL1 of=$1 conv=fsync bs=512 skip=1 seek=1
|
||||
+dd if=$UBOOT of=$1 conv=fsync bs=512 seek=97
|
||||
|
||||
sync
|
||||
|
||||
-sudo eject $1
|
||||
-echo Finished.
|
||||
+echo "Successfully wrote U-Boot to $1"
|
||||
--
|
||||
2.7.1
|
||||
|
File diff suppressed because it is too large
Load diff
|
@ -1,11 +0,0 @@
|
|||
--- drivers/gpio/amlogic_gpio.c.orig 2018-11-17 11:44:17.580326515 +0100
|
||||
+++ drivers/gpio/amlogic_gpio.c 2018-11-17 11:44:22.666420744 +0100
|
||||
@@ -66,7 +66,7 @@ static int aml_gpio_get_function(struct
|
||||
unsigned int bit = plat->regs[REG_DIR].bit + offset;
|
||||
unsigned int val;
|
||||
val = readl(reg);
|
||||
- bool dir = !!(val * BIT(bit));
|
||||
+ bool dir = !!(val && BIT(bit) != 0);
|
||||
|
||||
|
||||
/* GPIOF_FUNC is not implemented yet */
|
|
@ -1,29 +0,0 @@
|
|||
--- arch/arm/cpu/armv8/gxb/bl31_apis.c.orig 2018-11-17 11:41:31.601584797 +0100
|
||||
+++ arch/arm/cpu/armv8/gxb/bl31_apis.c 2018-11-17 11:41:49.539917138 +0100
|
||||
@@ -59,10 +59,11 @@ int32_t meson_trustzone_efuse(struct efu
|
||||
offset = arg->offset;
|
||||
size = arg->size;
|
||||
|
||||
- if (arg->cmd == EFUSE_HAL_API_WRITE)
|
||||
+ if (arg->cmd == EFUSE_HAL_API_WRITE) {
|
||||
memcpy((void *)sharemem_input_base,
|
||||
(const void *)arg->buffer_phy, size);
|
||||
asm __volatile__("" : : : "memory");
|
||||
+ }
|
||||
|
||||
register uint64_t x0 asm("x0") = cmd;
|
||||
register uint64_t x1 asm("x1") = offset;
|
||||
--- drivers/mmc/aml_sd_emmc.c.orig 2018-11-17 11:47:36.303008208 +0100
|
||||
+++ drivers/mmc/aml_sd_emmc.c 2018-11-17 11:47:45.301174914 +0100
|
||||
@@ -239,8 +239,9 @@ static int sd_inand_staff_init(struct mm
|
||||
while (get_timer(base)<200) ;
|
||||
#endif
|
||||
}
|
||||
- if (!sdio->inited_flag)
|
||||
+ if (!sdio->inited_flag) {
|
||||
sdio->inited_flag = 1;
|
||||
+ }
|
||||
return SD_NO_ERROR;
|
||||
}
|
||||
|
||||
|
|
@ -1,11 +0,0 @@
|
|||
--- drivers/usb/gadget/s3c_udc_otg.c.orig 2018-11-17 11:50:35.892335415 +0100
|
||||
+++ drivers/usb/gadget/s3c_udc_otg.c 2018-11-17 11:50:39.228397221 +0100
|
||||
@@ -68,7 +68,7 @@ static char *state_names[] = {
|
||||
struct s3c_udc *the_controller;
|
||||
|
||||
static const char driver_name[] = "s3c-udc";
|
||||
-static const char driver_desc[] = DRIVER_DESC;
|
||||
+//static const char driver_desc[] = DRIVER_DESC;
|
||||
static const char ep0name[] = "ep0-control";
|
||||
|
||||
/* Max packet size*/
|
|
@ -1,30 +0,0 @@
|
|||
--- common/cmd_cfgload.c
|
||||
+++ common/cmd_cfgload.c
|
||||
@@ -52,7 +52,7 @@ static char* read_cfgload(void)
|
||||
|
||||
setenv("filesize", "0");
|
||||
|
||||
- sprintf(cmd, "fatload mmc 0:1 0x%p boot.ini", (void *)p);
|
||||
+ sprintf(cmd, "load mmc 0:1 0x%p /boot/boot.ini", (void *)p);
|
||||
run_command(cmd, 0);
|
||||
|
||||
filesize = getenv_ulong("filesize", 16, 0);
|
||||
--- include/configs/odroidc2.h
|
||||
+++ include/configs/odroidc2.h
|
||||
@@ -75,6 +75,13 @@
|
||||
#define CONFIG_BOOTDELAY 1 // Seconds
|
||||
#define CONFIG_ABORTBOOT_WITH_ENTERKEY
|
||||
|
||||
+/* Void */
|
||||
+#define CONFIG_CMD_FS_GENERIC
|
||||
+#define CONFIG_SUPPORT_RAW_INITRD
|
||||
+#define CONFIG_IDENT_STRING " Void Linux"
|
||||
+#define CONFIG_CMD_PART
|
||||
+#define CONFIG_PARTITION_UUIDS
|
||||
+
|
||||
/* args/envs */
|
||||
#define CONFIG_SYS_MAXARGS 64
|
||||
|
||||
--
|
||||
2.7.1
|
||||
|
|
@ -1,47 +0,0 @@
|
|||
# Template file for 'odroid-c2-uboot'
|
||||
pkgname=odroid-c2-uboot
|
||||
version=v2015.01
|
||||
revision=4
|
||||
_githash=f416a769454b89c39d5b217d28bd3c9f5d1594df
|
||||
wrksrc="u-boot-${_githash}"
|
||||
archs="aarch64*"
|
||||
conf_files="/boot/boot.ini"
|
||||
hostmakedepends="bc"
|
||||
short_desc="Odroid C2 U-Boot files for SD booting"
|
||||
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
|
||||
license="GPL-2"
|
||||
homepage="https://github.com/hardkernel/u-boot"
|
||||
distfiles="https://github.com/hardkernel/u-boot/archive/${_githash}.tar.gz"
|
||||
checksum=6b5fb2c5f278cdeaf8361fbcb349a75ffa551db3f993143f87cefd32fdc38874
|
||||
|
||||
make_build_args="ARCH=arm"
|
||||
if [ "$CROSS_BUILD" ]; then
|
||||
make_build_args+=" CROSS_COMPILE=${XBPS_CROSS_TRIPLET}-"
|
||||
else
|
||||
make_build_args+=" HOSTARCH=arm"
|
||||
fi
|
||||
|
||||
post_extract() {
|
||||
cp include/linux/compiler-gcc4.h include/linux/compiler-gcc8.h
|
||||
touch include/stddef.h # musl hack
|
||||
sed -i '1itypedef unsigned long ulong;' \
|
||||
include/image.h tools/mkimage.h tools/proftool.c
|
||||
}
|
||||
do_configure() {
|
||||
unset CFLAGS CXXFLAGS LDFLAGS
|
||||
|
||||
make ${make_build_args} distclean
|
||||
make ${make_build_args} odroidc2_config
|
||||
}
|
||||
do_build() {
|
||||
unset CFLAGS CXXFLAGS LDFLAGS
|
||||
|
||||
make ${makejobs} ${make_build_args}
|
||||
}
|
||||
do_install() {
|
||||
vmkdir boot
|
||||
vinstall sd_fuse/bl1.bin.hardkernel 644 boot
|
||||
vinstall sd_fuse/u-boot.bin 644 boot
|
||||
vinstall sd_fuse/sd_fusing.sh 755 boot
|
||||
vinstall ${FILESDIR}/boot.ini 644 boot
|
||||
}
|
Loading…
Reference in a new issue