2022-02-19 22:21:34 +00:00
|
|
|
pkgname=firmware-samsung-midas
|
2024-02-13 21:04:35 +00:00
|
|
|
pkgver=6.0
|
2021-09-26 15:28:24 +00:00
|
|
|
pkgrel=0
|
2022-02-19 22:21:34 +00:00
|
|
|
pkgdesc="Samsung Galaxy Midas board firmware (m0, m3, t0lte, ...)"
|
2022-01-21 16:39:23 +00:00
|
|
|
_commit="fdd8c44568a148c22fbf008de822ff4e27992da1"
|
|
|
|
url="https://github.com/TheMuppets/proprietary_vendor_samsung"
|
|
|
|
_armbian_commit="5ff122ef309a1ddabb4bf7f37c8347c43b314a61"
|
|
|
|
_armbian_url="https://github.com/armbian/firmware"
|
2022-03-11 08:29:31 +00:00
|
|
|
_androguide_commit="d5a8735a6ad1fff3091f100383ac004f411d7528"
|
|
|
|
_androguide_url="https://raw.githubusercontent.com/Androguide/android_vendor_samsung"
|
2024-02-13 21:04:35 +00:00
|
|
|
_vendor_bsp_uboot_commit="246091921433dd11c211a306f042d949ada38924"
|
|
|
|
_vendor_bsp_uboot_url="https://github.com/dmarszk/exynos4_uboot"
|
2021-09-26 15:28:24 +00:00
|
|
|
arch="armv7"
|
|
|
|
license="proprietary"
|
2022-02-19 22:21:34 +00:00
|
|
|
replaces="firmware-samsung-m0"
|
2021-09-26 15:28:24 +00:00
|
|
|
subpackages="
|
2024-02-13 21:04:35 +00:00
|
|
|
$pkgname-bootloader
|
2022-02-19 22:21:34 +00:00
|
|
|
$pkgname-bluetooth
|
|
|
|
$pkgname-wifi
|
2021-09-26 15:28:24 +00:00
|
|
|
"
|
2022-01-21 16:39:23 +00:00
|
|
|
source="
|
2024-02-13 21:04:35 +00:00
|
|
|
p4412_s_fwbl1.bin-$_vendor_bsp_uboot_commit::$_vendor_bsp_uboot_url/raw/$_vendor_bsp_uboot_commit/sd_fuse/p4412_s_fwbl1.bin
|
|
|
|
bcm4334.hcd-$_commit::$url/raw/$_commit/smdk4412-common/proprietary/bin/bcm4334.hcd
|
2022-03-11 08:29:31 +00:00
|
|
|
brcmfmac4334-sdio.samsung,i9300-$_armbian_commit.txt::$_armbian_url/raw/$_armbian_commit/brcm/brcmfmac4334-sdio.rockchip%2Crk3318-box.txt
|
|
|
|
brcmfmac4334-sdio.samsung,i9305-$_androguide_commit.txt::$_androguide_url/$_androguide_commit/smdk4412-common/proprietary/system/etc/wifi/nvram_net.txt
|
|
|
|
"
|
2021-09-26 15:28:24 +00:00
|
|
|
options="!check !strip !archcheck !spdx !tracedeps pmb:cross-native"
|
|
|
|
|
|
|
|
package() {
|
2022-03-11 08:29:31 +00:00
|
|
|
mkdir -p "$pkgdir"
|
2022-02-19 22:21:34 +00:00
|
|
|
}
|
2022-01-21 16:39:23 +00:00
|
|
|
|
2024-02-13 21:04:35 +00:00
|
|
|
# subpackage with bl1 that does not check signature of next
|
|
|
|
# bootloader, allowing open bootloaders like u-boot or xboot.
|
|
|
|
# Not yet used by pmOS.
|
|
|
|
bootloader() {
|
|
|
|
install -Dm644 "$srcdir"/p4412_s_fwbl1.bin-$_vendor_bsp_uboot_commit \
|
|
|
|
"$subpkgdir"/usr/share/u-boot/midas/bl1.bin
|
|
|
|
}
|
|
|
|
|
2022-02-19 22:21:34 +00:00
|
|
|
bluetooth() {
|
|
|
|
depends="$pkgname"
|
|
|
|
replaces="firmware-samsung-m0-mainline"
|
2022-03-11 08:29:31 +00:00
|
|
|
|
2024-02-13 21:04:35 +00:00
|
|
|
install -Dm644 "$srcdir"/bcm4334.hcd-$_commit \
|
2022-02-19 22:21:34 +00:00
|
|
|
"$subpkgdir"/lib/firmware/brcm/BCM4334B0.hcd
|
2021-09-26 15:28:24 +00:00
|
|
|
}
|
|
|
|
|
2022-02-19 22:21:34 +00:00
|
|
|
wifi() {
|
2022-03-11 08:29:31 +00:00
|
|
|
depends="$pkgname linux-firmware-brcm"
|
2022-02-19 22:21:34 +00:00
|
|
|
replaces="firmware-samsung-m0-mainline"
|
2022-01-21 16:39:23 +00:00
|
|
|
|
2022-03-11 08:29:31 +00:00
|
|
|
install -Dm644 "$srcdir"/brcmfmac4334-sdio.samsung,i9300-$_armbian_commit.txt \
|
2021-09-26 15:28:24 +00:00
|
|
|
"$subpkgdir"/lib/firmware/brcm/brcmfmac4334-sdio.samsung,i9300.txt
|
2022-03-11 08:29:31 +00:00
|
|
|
install -Dm644 "$srcdir"/brcmfmac4334-sdio.samsung,i9305-$_androguide_commit.txt \
|
2021-09-26 15:28:24 +00:00
|
|
|
"$subpkgdir"/lib/firmware/brcm/brcmfmac4334-sdio.samsung,i9305.txt
|
2022-03-23 21:38:15 +00:00
|
|
|
ln -s /lib/firmware/brcm/brcmfmac4334-sdio.samsung,i9305.txt \
|
|
|
|
"$subpkgdir"/lib/firmware/brcm/brcmfmac4334-sdio.samsung,n710x.txt
|
2022-03-21 16:02:49 +00:00
|
|
|
ln -s /lib/firmware/brcm/brcmfmac4334-sdio.samsung,i9300.txt \
|
|
|
|
"$subpkgdir"/lib/firmware/brcm/brcmfmac4334-sdio.samsung,n8010.txt
|
2021-09-26 15:28:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
sha512sums="
|
2024-02-13 21:04:35 +00:00
|
|
|
15cd879fc67829b06b99f5741a9a20affc444a0a36df277c0895fc8e7743cd7955b1fbacc9c1a1dd37c7ab0ea001cb68e5f446a7b8617aeef2cddaa1d6a7d990 p4412_s_fwbl1.bin-246091921433dd11c211a306f042d949ada38924
|
|
|
|
cbed1dc60829161c7ac9649dcae67fc45204c1a25e8de320ad3bc4e9d5cae573fb8a4745f91355fa96d2d3d4124a9e707341fc5bd1b22705cb2efb16831e029f bcm4334.hcd-fdd8c44568a148c22fbf008de822ff4e27992da1
|
2022-03-11 08:29:31 +00:00
|
|
|
d5c83e1dcd67630e186ab484d150ca5c0af12810de62a46ec6e525b50dabf64a75f1231ef8d7c1d102fb76389210fdb952975460179ca767acd0ffdd869907d7 brcmfmac4334-sdio.samsung,i9300-5ff122ef309a1ddabb4bf7f37c8347c43b314a61.txt
|
|
|
|
146aefcccd23d63e434bd7f7d0ac6d5975ad25e44362da10bc583ab9e38b18c53f6ce18890c9790ee88fbb8f6358085bb615d0595388ca43a322f7c819614049 brcmfmac4334-sdio.samsung,i9305-d5a8735a6ad1fff3091f100383ac004f411d7528.txt
|
2021-09-26 15:28:24 +00:00
|
|
|
"
|