odroid-hc2: move to archived
The maintainer is okay with this device being archived due to not having current device access nor time to work on this port. As such, this device is to be archived. Closes pmaports#4725 Signed-off-by: Aster Boese <asterboese@mailbox.org> Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/9215>
This commit is contained in:
@@ -1,57 +0,0 @@
|
||||
# Reference: <https://postmarketos.org/devicepkg>
|
||||
maintainer="knuxify <knuxify@gmail.com>"
|
||||
pkgname=device-odroid-hc2
|
||||
pkgdesc="ODROID HC2"
|
||||
pkgver=8
|
||||
pkgrel=0
|
||||
url="https://postmarketos.org"
|
||||
license="MIT"
|
||||
arch="armv7"
|
||||
options="!check !archcheck"
|
||||
depends="linux-stable
|
||||
firmware-odroid-hc2
|
||||
linux-firmware-other
|
||||
linux-firmware-rtl_nic
|
||||
linux-firmware-s5p-mfc
|
||||
postmarketos-base
|
||||
u-boot-odroid
|
||||
u-boot-tools
|
||||
"
|
||||
makedepends="devicepkg-dev u-boot-tools"
|
||||
subpackages="$pkgname-tools"
|
||||
source="deviceinfo modules-initfs uboot-script.cmd install-rootfs-hdd.sh"
|
||||
|
||||
build() {
|
||||
devicepkg_build $startdir $pkgname
|
||||
mkimage \
|
||||
-A arm \
|
||||
-O linux \
|
||||
-T script \
|
||||
-C none \
|
||||
-a 0 \
|
||||
-e 0 \
|
||||
-n postmarketos \
|
||||
-d "$srcdir"/uboot-script.cmd \
|
||||
"$srcdir"/boot.scr
|
||||
}
|
||||
|
||||
package() {
|
||||
devicepkg_package $startdir $pkgname
|
||||
install -Dm644 "$srcdir"/boot.scr \
|
||||
"$pkgdir"/boot/boot.scr
|
||||
}
|
||||
|
||||
tools() {
|
||||
pkgdesc="ODROID HC2 tools"
|
||||
depends="rsync e2fsprogs-extra"
|
||||
mkdir "$subpkgdir"
|
||||
install -Dm744 "$srcdir"/install-rootfs-hdd.sh \
|
||||
"$subpkgdir"/usr/bin/install-rootfs-hdd
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
46f640892990620c71a67e543fc04a97ac5cd002a298ecd08387c7c6de08a47bb3ef4616e698736e82255d1e4024a4fe3b600a8730f6afda1eeb4f8ba9529b39 deviceinfo
|
||||
125ee07a940e7ae8408ec73c47a521fc0aa940b499842779ff715eb8302a09c13e95ea7b9c1fcc4d5f28d4d64c9ad59846bf4f5bdecd146af56b5f618c75446b modules-initfs
|
||||
22212ee91d781bf9997569c986a340d4ff7ec2d30d19ae0233a664b5b91d8bbfe71586dae57d6a3d961f6e4e369733005e01c2cd58f941ce67f557b2e21ce37b uboot-script.cmd
|
||||
09a2191dce5b5c8fdf80c4473d9773a51f2c633db51477f2f64983dd030d7800fd80999a228ec7efe3f9feafeba35902bff68cf95e6ae59048dc64424f402b63 install-rootfs-hdd.sh
|
||||
"
|
||||
@@ -1,27 +0,0 @@
|
||||
# Reference: <https://postmarketos.org/deviceinfo>
|
||||
# Please use double quotes only. You can source this file in shell
|
||||
# scripts.
|
||||
|
||||
deviceinfo_format_version="0"
|
||||
deviceinfo_name="Odroid HC2"
|
||||
deviceinfo_manufacturer="Odroid"
|
||||
deviceinfo_codename="odroid-hc2"
|
||||
deviceinfo_year="2018"
|
||||
deviceinfo_dtb="exynos5422-odroidhc1"
|
||||
deviceinfo_arch="armv7"
|
||||
deviceinfo_no_framebuffer="true"
|
||||
deviceinfo_generate_legacy_uboot_initfs="true"
|
||||
deviceinfo_getty="ttySAC2;115200"
|
||||
deviceinfo_disable_dhcpd="true"
|
||||
|
||||
# Device related
|
||||
deviceinfo_drm="true"
|
||||
deviceinfo_chassis="embedded"
|
||||
deviceinfo_external_storage="true"
|
||||
|
||||
# Bootloader related
|
||||
deviceinfo_sd_embed_firmware="u-boot/odroid-hc2/bl1.bin:1,u-boot/odroid-hc2/bl2.bin:31,u-boot/odroid-xu3/u-boot.bin:63,u-boot/odroid-hc2/tzsw.bin:1503"
|
||||
deviceinfo_sd_embed_firmware_step_size="512"
|
||||
deviceinfo_boot_part_start="8192"
|
||||
# Embedded firmware interferes with GPT partition table; force MBR instead
|
||||
deviceinfo_partition_type="msdos"
|
||||
@@ -1,54 +0,0 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
MOUNT_POINT=/mnt/hdd
|
||||
MMC_ROOT_PARTITION=/dev/mmcblk0p2
|
||||
|
||||
echo "### Move rootfs to external HDD ###"
|
||||
echo "This script requires root permissions!"
|
||||
echo "This action is inreversible without reflashing your device!"
|
||||
echo "Are you sure you want to continue? [y/N]"
|
||||
read -n 1 ANSWER
|
||||
echo ""
|
||||
|
||||
if [ "$ANSWER" != "y" ]; then
|
||||
echo "Operation aborted"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Which partition should be used as rootfs?:"
|
||||
read HDD_ROOT_PARTITION
|
||||
echo ""
|
||||
|
||||
echo "### Copying rootfs to partition $HDD_ROOT_PARTITION ###"
|
||||
|
||||
# Mount partition
|
||||
echo "Trying to unmount $HDD_ROOT_PARTITION"
|
||||
umount $HDD_ROOT_PARTITION || true # may fail
|
||||
echo "Mounting $HDD_ROOT_PARTITION at $MOUNT_POINT"
|
||||
mkdir -p $MOUNT_POINT
|
||||
mount $HDD_ROOT_PARTITION $MOUNT_POINT
|
||||
|
||||
# Copy rootfs
|
||||
echo "Copying rootfs... This can take a while."
|
||||
rsync \
|
||||
-aAXx \
|
||||
--exclude={"/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/media/*","/lost+found"} \
|
||||
/ \
|
||||
$MOUNT_POINT
|
||||
|
||||
# Verify all files are copied
|
||||
rsync \
|
||||
-aAXx \
|
||||
--exclude={"/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/media/*","/lost+found"} \
|
||||
/ \
|
||||
$MOUNT_POINT
|
||||
sync
|
||||
echo "Rootfs successfully copied!"
|
||||
|
||||
# pmOS initfs looks for rootfs by label, rename partitions
|
||||
echo "Renaming partitions"
|
||||
e2label $MMC_ROOT_PARTITION old_rootfs
|
||||
e2label $HDD_ROOT_PARTITION pmOS_root
|
||||
|
||||
echo "Rootfs moved to external HDD, you must reboot NOW!"
|
||||
@@ -1,30 +0,0 @@
|
||||
pl330
|
||||
libata
|
||||
uas
|
||||
usb-storage
|
||||
scsi_mod
|
||||
sd_mod
|
||||
sdhci
|
||||
mmc_block
|
||||
dwc2
|
||||
dwc3
|
||||
dwc3-exynos
|
||||
ehci-hcd
|
||||
ehci-exynos
|
||||
ohci_hcd
|
||||
ohci-exynos
|
||||
configfs
|
||||
phy-exynos5-usbdrd
|
||||
phy-exynos-usb2
|
||||
udc-core
|
||||
dw_mmc
|
||||
dw_mmc-exynos
|
||||
r8152
|
||||
xhci-hcd
|
||||
xhci-plat-hcd
|
||||
sec-core
|
||||
sec-i2c
|
||||
sec-irq
|
||||
s2mps11
|
||||
clk-s2mps11
|
||||
cpufreq_dt
|
||||
@@ -1,38 +0,0 @@
|
||||
setenv kernel_addr_r "0x40008000"
|
||||
setenv initrd_addr_r "0x42000000"
|
||||
setenv fdt_addr_r "0x44000000"
|
||||
setenv kernel_image "vmlinuz"
|
||||
setenv initrd_image "uInitrd"
|
||||
setenv dtb_file "exynos5422-odroidhc1.dtb"
|
||||
|
||||
printenv
|
||||
|
||||
echo Setting bootargs
|
||||
setenv bootargs init=/init.sh rw console=tty0 console=ttySAC2,115200 panic=10 consoleblank=0 loglevel=9 cma=256M initcall_blacklist=exynos_drm_init no_bL_switcher PMOS_FORCE_PARTITION_RESIZE
|
||||
|
||||
if test -e mmc ${mmcbootdev}:${mmcbootpart} ${kernel_image}; then
|
||||
echo Loading Kernel: vmlinuz
|
||||
load mmc ${mmcbootdev}:${mmcbootpart} ${kernel_addr_r} ${kernel_image};
|
||||
fi
|
||||
|
||||
if test -e mmc ${mmcbootdev}:${mmcbootpart} ${kernel_image}-stable; then
|
||||
echo Loading Kernel: vmlinuz-stable
|
||||
load mmc ${mmcbootdev}:${mmcbootpart} ${kernel_addr_r} ${kernel_image}-stable
|
||||
fi
|
||||
|
||||
if test -e mmc ${mmcbootdev}:${mmcbootpart} ${kernel_image}-edge; then
|
||||
echo Loading Kernel: vmlinuz-edge
|
||||
load mmc ${mmcbootdev}:${mmcbootpart} ${kernel_addr_r} ${kernel_image}-edge
|
||||
fi
|
||||
|
||||
echo Loading Initramfs
|
||||
load mmc ${mmcbootdev}:${mmcbootpart} ${initrd_addr_r} ${initrd_image}
|
||||
|
||||
echo Loading DTB
|
||||
load mmc ${mmcbootdev}:${mmcbootpart} ${fdt_addr_r} ${dtb_file}
|
||||
|
||||
echo Resizing FDT
|
||||
fdt addr ${fdt_addr_r}
|
||||
|
||||
echo Booting kernel
|
||||
bootz ${kernel_addr_r} ${initrd_addr_r} ${fdt_addr_r}
|
||||
@@ -1,33 +0,0 @@
|
||||
maintainer="knuxify <knuxify@gmail.com>"
|
||||
pkgname=firmware-odroid-hc2
|
||||
pkgver=2
|
||||
pkgrel=0
|
||||
pkgdesc="Firmware for ODROID HC2"
|
||||
url="https://github.com/hardkernel/u-boot"
|
||||
arch="armv7"
|
||||
license="proprietary"
|
||||
options="!check !strip !archcheck !tracedeps pmb:cross-native"
|
||||
_commit="42ac93dcfbbb8a08c2bdc02e19f96eb35a81891a"
|
||||
source="bl1.bin.hardkernel::https://github.com/hardkernel/u-boot/raw/$_commit/sd_fuse/bl1.bin.hardkernel
|
||||
bl2.bin.hardkernel::https://github.com/hardkernel/u-boot/raw/$_commit/sd_fuse/bl2.bin.hardkernel.720k_uboot
|
||||
tzsw.bin.hardkernel::https://github.com/hardkernel/u-boot/raw/$_commit/sd_fuse/tzsw.bin.hardkernel
|
||||
"
|
||||
|
||||
package() {
|
||||
# Trim bl1.bin.hardkernel to 15360 bytes
|
||||
# See https://forum.odroid.com/viewtopic.php?f=93&t=42724
|
||||
truncate -s15360 "$srcdir"/bl1.bin.hardkernel
|
||||
|
||||
# Install firmware
|
||||
install -D -m644 "$srcdir"/bl1.bin.hardkernel \
|
||||
"$pkgdir"/usr/share/u-boot/odroid-hc2/bl1.bin
|
||||
install -D -m644 "$srcdir"/bl2.bin.hardkernel \
|
||||
"$pkgdir"/usr/share/u-boot/odroid-hc2/bl2.bin
|
||||
install -D -m644 "$srcdir"/tzsw.bin.hardkernel \
|
||||
"$pkgdir"/usr/share/u-boot/odroid-hc2/tzsw.bin
|
||||
}
|
||||
sha512sums="
|
||||
db2d53673a36c8c186804996354ca3dea8621444596751a1cf51140149a9cce2cdb368417290046393828e943af256bb609a65d30569c95c51105ee82e6cac20 bl1.bin.hardkernel
|
||||
0c6fb8b0cccfafe7d0d5ace2a18eaaa8f70ca4d87d7899ddb310462d2daf50dc0c9fca55392a46817153f797eef0262b1ffb6eb2ddbae8ba9dd3d20ff7b241f4 bl2.bin.hardkernel
|
||||
434f6b479ead6b5d25877bb615df4281f95d1637d4171354f4bf324f8a1d7df3855e0a696aa204285c3298b45bf7d1e0ad4c27a88bc705f4cff1f082754f444f tzsw.bin.hardkernel
|
||||
"
|
||||
Reference in New Issue
Block a user