mirror of
https://github.com/RROrg/rr.git
synced 2025-06-21 05:51:05 +08:00
Reformuling modules/addons
This commit is contained in:
parent
f3ec684758
commit
d3580ee40b
@ -43,6 +43,29 @@ function compile-lkm {
|
|||||||
mv "/tmp/input/redpill.ko" "/output/redpill-prod.ko"
|
mv "/tmp/input/redpill.ko" "/output/redpill-prod.ko"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function compile-drivers {
|
||||||
|
while read platform kver; do
|
||||||
|
SRC_PATH="/opt/${platform}"
|
||||||
|
echo "Compiling for ${platform}-${kver}"
|
||||||
|
cd /opt/linux-${kver}/drivers
|
||||||
|
while read dir; do
|
||||||
|
if [ -f "${dir}/Makefile" ]; then
|
||||||
|
echo "Driver `basename ${dir}`"
|
||||||
|
grep "CONFIG_.*/.*" "${dir}/Makefile" | sed 's/.*\(CONFIG_[^)]*\).*/\1=n/g' > /tmp/env
|
||||||
|
grep "CONFIG_.*\.o.*" "${dir}/Makefile" | sed 's/.*\(CONFIG_[^)]*\).*/\1=m/g' >> /tmp/env
|
||||||
|
make -C "${SRC_PATH}" M=$(readlink -f "${dir}") clean
|
||||||
|
cat /tmp/env | xargs -d '\n' make -C "${SRC_PATH}" M=$(readlink -f "${dir}") modules $@
|
||||||
|
fi
|
||||||
|
done < <(find -type d)
|
||||||
|
DST_PATH="/output/compiled-mods/${platform}-${kver}"
|
||||||
|
mkdir -p "${DST_PATH}"
|
||||||
|
while read f; do
|
||||||
|
strip -g "${f}"
|
||||||
|
mv "${f}" "${DST_PATH}"
|
||||||
|
done < <(find -name \*.ko)
|
||||||
|
done </opt/platforms
|
||||||
|
}
|
||||||
|
|
||||||
if [ $# -lt 1 ]; then
|
if [ $# -lt 1 ]; then
|
||||||
echo "Use: <command> (<params>)"
|
echo "Use: <command> (<params>)"
|
||||||
exit 1
|
exit 1
|
||||||
@ -51,5 +74,7 @@ case $1 in
|
|||||||
bash) bash -l ;;
|
bash) bash -l ;;
|
||||||
compile-module) compile-module $2 ;;
|
compile-module) compile-module $2 ;;
|
||||||
compile-lkm) compile-lkm $2 ;;
|
compile-lkm) compile-lkm $2 ;;
|
||||||
|
compile-drivers) compile-drivers ;;
|
||||||
*) echo "Command not recognized: $1" ;;
|
*) echo "Command not recognized: $1" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
2
external/Config.in
vendored
2
external/Config.in
vendored
@ -1,2 +1,2 @@
|
|||||||
source "$BR2_EXTERNAL_ARPL_PATH/r8125/Config.in"
|
|
||||||
source "$BR2_EXTERNAL_ARPL_PATH/r8168/Config.in"
|
source "$BR2_EXTERNAL_ARPL_PATH/r8168/Config.in"
|
||||||
|
source "$BR2_EXTERNAL_ARPL_PATH/r8125/Config.in"
|
||||||
|
@ -15,7 +15,7 @@ BOARD_PATH="${CONFIG_DIR}/board/arpl"
|
|||||||
|
|
||||||
echo "Creating image file"
|
echo "Creating image file"
|
||||||
# Create image zeroed
|
# Create image zeroed
|
||||||
dd if="/dev/zero" of="${IMAGE_FILE}" bs=1M count=250 conv=sync 2>/dev/null
|
dd if="/dev/zero" of="${IMAGE_FILE}" bs=1M count=300 conv=sync 2>/dev/null
|
||||||
# Copy grub stage1 to image
|
# Copy grub stage1 to image
|
||||||
dd if="${BOARD_PATH}/grub.bin" of="${IMAGE_FILE}" conv=notrunc,sync 2>/dev/null
|
dd if="${BOARD_PATH}/grub.bin" of="${IMAGE_FILE}" conv=notrunc,sync 2>/dev/null
|
||||||
# Create partitions on image
|
# Create partitions on image
|
||||||
@ -25,7 +25,7 @@ echo -e "n\np\n\n\n+100M\nt\n\n0b\nn\np\n\n\n+100M\nn\np\n\n\n\nw" | fdisk "${IM
|
|||||||
sudo umount "${BINARIES_DIR}/p1" 2>/dev/null || true
|
sudo umount "${BINARIES_DIR}/p1" 2>/dev/null || true
|
||||||
sudo umount "${BINARIES_DIR}/p3" 2>/dev/null || true
|
sudo umount "${BINARIES_DIR}/p3" 2>/dev/null || true
|
||||||
# Force unsetup of loop device
|
# Force unsetup of loop device
|
||||||
sudSetupo losetup -d "/dev/loop8" 2>/dev/null || true
|
sudo losetup -d "/dev/loop8" 2>/dev/null || true
|
||||||
# Setup the loop8 loop device
|
# Setup the loop8 loop device
|
||||||
sudo losetup -P "/dev/loop8" "${IMAGE_FILE}"
|
sudo losetup -P "/dev/loop8" "${IMAGE_FILE}"
|
||||||
# Format partitions
|
# Format partitions
|
||||||
|
BIN
files/board/arpl/overlayfs/opt/arpl/kmod
Executable file
BIN
files/board/arpl/overlayfs/opt/arpl/kmod
Executable file
Binary file not shown.
@ -63,9 +63,7 @@ builds:
|
|||||||
patch:
|
patch:
|
||||||
- "ramdisk-common-disable-root-pwd.patch"
|
- "ramdisk-common-disable-root-pwd.patch"
|
||||||
- "ramdisk-common-init-script.patch"
|
- "ramdisk-common-init-script.patch"
|
||||||
- "ramdisk-common-rc.patch"
|
|
||||||
- "ramdisk-common-post-init-script.patch"
|
- "ramdisk-common-post-init-script.patch"
|
||||||
- "ramdisk-common-network-hosts.patch"
|
|
||||||
|
|
||||||
42661:
|
42661:
|
||||||
ver: "7.1.0"
|
ver: "7.1.0"
|
||||||
@ -85,6 +83,4 @@ builds:
|
|||||||
patch:
|
patch:
|
||||||
- "ramdisk-common-disable-root-pwd.patch"
|
- "ramdisk-common-disable-root-pwd.patch"
|
||||||
- "ramdisk-common-init-script.patch"
|
- "ramdisk-common-init-script.patch"
|
||||||
- "ramdisk-42661-rc.patch"
|
|
||||||
- "ramdisk-42661-post-init-script.patch"
|
- "ramdisk-42661-post-init-script.patch"
|
||||||
- "ramdisk-common-network-hosts.patch"
|
|
||||||
|
@ -60,7 +60,4 @@ builds:
|
|||||||
patch:
|
patch:
|
||||||
- "ramdisk-common-disable-root-pwd.patch"
|
- "ramdisk-common-disable-root-pwd.patch"
|
||||||
- "ramdisk-common-init-script.patch"
|
- "ramdisk-common-init-script.patch"
|
||||||
- "ramdisk-common-rc.patch"
|
|
||||||
- "ramdisk-common-post-init-script.patch"
|
- "ramdisk-common-post-init-script.patch"
|
||||||
- "ramdisk-common-network-hosts.patch"
|
|
||||||
- "ramdisk-common-disable-disabled-ports.patch"
|
|
||||||
|
@ -27,7 +27,7 @@ cmdline: &cmdline
|
|||||||
syno_hdd_detect: 0
|
syno_hdd_detect: 0
|
||||||
platform: "bromolow"
|
platform: "bromolow"
|
||||||
serial:
|
serial:
|
||||||
prefix:
|
prefix:
|
||||||
- "1130"
|
- "1130"
|
||||||
- "1230"
|
- "1230"
|
||||||
- "1330"
|
- "1330"
|
||||||
@ -55,9 +55,7 @@ builds:
|
|||||||
patch:
|
patch:
|
||||||
- "ramdisk-common-disable-root-pwd.patch"
|
- "ramdisk-common-disable-root-pwd.patch"
|
||||||
- "ramdisk-common-init-script.patch"
|
- "ramdisk-common-init-script.patch"
|
||||||
- "ramdisk-common-rc.patch"
|
|
||||||
- "ramdisk-common-post-init-script.patch"
|
- "ramdisk-common-post-init-script.patch"
|
||||||
- "ramdisk-common-network-hosts.patch"
|
|
||||||
- "ramdisk-common-disable-disabled-ports.patch"
|
- "ramdisk-common-disable-disabled-ports.patch"
|
||||||
|
|
||||||
42661:
|
42661:
|
||||||
@ -78,7 +76,5 @@ builds:
|
|||||||
patch:
|
patch:
|
||||||
- "ramdisk-common-disable-root-pwd.patch"
|
- "ramdisk-common-disable-root-pwd.patch"
|
||||||
- "ramdisk-common-init-script.patch"
|
- "ramdisk-common-init-script.patch"
|
||||||
- "ramdisk-42661-rc.patch"
|
|
||||||
- "ramdisk-42661-post-init-script.patch"
|
- "ramdisk-42661-post-init-script.patch"
|
||||||
- "ramdisk-common-network-hosts.patch"
|
|
||||||
- "ramdisk-42661-disable-disabled-ports.patch"
|
- "ramdisk-42661-disable-disabled-ports.patch"
|
||||||
|
@ -59,9 +59,7 @@ builds:
|
|||||||
patch:
|
patch:
|
||||||
- "ramdisk-common-disable-root-pwd.patch"
|
- "ramdisk-common-disable-root-pwd.patch"
|
||||||
- "ramdisk-common-init-script.patch"
|
- "ramdisk-common-init-script.patch"
|
||||||
- "ramdisk-common-rc.patch"
|
|
||||||
- "ramdisk-common-post-init-script.patch"
|
- "ramdisk-common-post-init-script.patch"
|
||||||
- "ramdisk-common-network-hosts.patch"
|
|
||||||
- "ramdisk-common-disable-disabled-ports.patch"
|
- "ramdisk-common-disable-disabled-ports.patch"
|
||||||
|
|
||||||
42661:
|
42661:
|
||||||
@ -82,7 +80,5 @@ builds:
|
|||||||
patch:
|
patch:
|
||||||
- "ramdisk-common-disable-root-pwd.patch"
|
- "ramdisk-common-disable-root-pwd.patch"
|
||||||
- "ramdisk-common-init-script.patch"
|
- "ramdisk-common-init-script.patch"
|
||||||
- "ramdisk-42661-rc.patch"
|
|
||||||
- "ramdisk-42661-post-init-script.patch"
|
- "ramdisk-42661-post-init-script.patch"
|
||||||
- "ramdisk-common-network-hosts.patch"
|
|
||||||
- "ramdisk-42661-disable-disabled-ports.patch"
|
- "ramdisk-42661-disable-disabled-ports.patch"
|
||||||
|
@ -66,9 +66,7 @@ builds:
|
|||||||
patch:
|
patch:
|
||||||
- "ramdisk-common-disable-root-pwd.patch"
|
- "ramdisk-common-disable-root-pwd.patch"
|
||||||
- "ramdisk-common-init-script.patch"
|
- "ramdisk-common-init-script.patch"
|
||||||
- "ramdisk-common-rc.patch"
|
|
||||||
- "ramdisk-common-post-init-script.patch"
|
- "ramdisk-common-post-init-script.patch"
|
||||||
- "ramdisk-common-network-hosts.patch"
|
|
||||||
- "ramdisk-common-disable-disabled-ports.patch"
|
- "ramdisk-common-disable-disabled-ports.patch"
|
||||||
|
|
||||||
42661:
|
42661:
|
||||||
@ -89,7 +87,5 @@ builds:
|
|||||||
patch:
|
patch:
|
||||||
- "ramdisk-common-disable-root-pwd.patch"
|
- "ramdisk-common-disable-root-pwd.patch"
|
||||||
- "ramdisk-common-init-script.patch"
|
- "ramdisk-common-init-script.patch"
|
||||||
- "ramdisk-42661-rc.patch"
|
|
||||||
- "ramdisk-42661-post-init-script.patch"
|
- "ramdisk-42661-post-init-script.patch"
|
||||||
- "ramdisk-common-network-hosts.patch"
|
|
||||||
- "ramdisk-42661-disable-disabled-ports.patch"
|
- "ramdisk-42661-disable-disabled-ports.patch"
|
||||||
|
@ -61,9 +61,7 @@ builds:
|
|||||||
patch:
|
patch:
|
||||||
- "ramdisk-common-disable-root-pwd.patch"
|
- "ramdisk-common-disable-root-pwd.patch"
|
||||||
- "ramdisk-common-init-script.patch"
|
- "ramdisk-common-init-script.patch"
|
||||||
- "ramdisk-common-rc.patch"
|
|
||||||
- "ramdisk-common-post-init-script.patch"
|
- "ramdisk-common-post-init-script.patch"
|
||||||
- "ramdisk-common-network-hosts.patch"
|
|
||||||
- "ramdisk-common-disable-disabled-ports.patch"
|
- "ramdisk-common-disable-disabled-ports.patch"
|
||||||
|
|
||||||
42661:
|
42661:
|
||||||
@ -84,7 +82,5 @@ builds:
|
|||||||
patch:
|
patch:
|
||||||
- "ramdisk-common-disable-root-pwd.patch"
|
- "ramdisk-common-disable-root-pwd.patch"
|
||||||
- "ramdisk-common-init-script.patch"
|
- "ramdisk-common-init-script.patch"
|
||||||
- "ramdisk-42661-rc.patch"
|
|
||||||
- "ramdisk-42661-post-init-script.patch"
|
- "ramdisk-42661-post-init-script.patch"
|
||||||
- "ramdisk-common-network-hosts.patch"
|
|
||||||
- "ramdisk-42661-disable-disabled-ports.patch"
|
- "ramdisk-42661-disable-disabled-ports.patch"
|
||||||
|
@ -55,9 +55,7 @@ builds:
|
|||||||
patch:
|
patch:
|
||||||
- "ramdisk-common-disable-root-pwd.patch"
|
- "ramdisk-common-disable-root-pwd.patch"
|
||||||
- "ramdisk-common-init-script.patch"
|
- "ramdisk-common-init-script.patch"
|
||||||
- "ramdisk-common-rc.patch"
|
|
||||||
- "ramdisk-common-post-init-script.patch"
|
- "ramdisk-common-post-init-script.patch"
|
||||||
- "ramdisk-common-network-hosts.patch"
|
|
||||||
|
|
||||||
42661:
|
42661:
|
||||||
ver: "7.1.0"
|
ver: "7.1.0"
|
||||||
@ -77,6 +75,4 @@ builds:
|
|||||||
patch:
|
patch:
|
||||||
- "ramdisk-common-disable-root-pwd.patch"
|
- "ramdisk-common-disable-root-pwd.patch"
|
||||||
- "ramdisk-common-init-script.patch"
|
- "ramdisk-common-init-script.patch"
|
||||||
- "ramdisk-42661-rc.patch"
|
|
||||||
- "ramdisk-42661-post-init-script.patch"
|
- "ramdisk-42661-post-init-script.patch"
|
||||||
- "ramdisk-common-network-hosts.patch"
|
|
||||||
|
@ -64,6 +64,4 @@ builds:
|
|||||||
patch:
|
patch:
|
||||||
- "ramdisk-common-disable-root-pwd.patch"
|
- "ramdisk-common-disable-root-pwd.patch"
|
||||||
- "ramdisk-common-init-script.patch"
|
- "ramdisk-common-init-script.patch"
|
||||||
- "ramdisk-42661-rc.patch"
|
|
||||||
- "ramdisk-42661-post-init-script.patch"
|
- "ramdisk-42661-post-init-script.patch"
|
||||||
- "ramdisk-common-network-hosts.patch"
|
|
||||||
|
@ -61,9 +61,7 @@ builds:
|
|||||||
patch:
|
patch:
|
||||||
- "ramdisk-common-disable-root-pwd.patch"
|
- "ramdisk-common-disable-root-pwd.patch"
|
||||||
- "ramdisk-common-init-script.patch"
|
- "ramdisk-common-init-script.patch"
|
||||||
- "ramdisk-common-rc.patch"
|
|
||||||
- "ramdisk-common-post-init-script.patch"
|
- "ramdisk-common-post-init-script.patch"
|
||||||
- "ramdisk-common-network-hosts.patch"
|
|
||||||
- "ramdisk-common-disable-disabled-ports.patch"
|
- "ramdisk-common-disable-disabled-ports.patch"
|
||||||
|
|
||||||
42661:
|
42661:
|
||||||
@ -84,7 +82,5 @@ builds:
|
|||||||
patch:
|
patch:
|
||||||
- "ramdisk-common-disable-root-pwd.patch"
|
- "ramdisk-common-disable-root-pwd.patch"
|
||||||
- "ramdisk-common-init-script.patch"
|
- "ramdisk-common-init-script.patch"
|
||||||
- "ramdisk-42661-rc.patch"
|
|
||||||
- "ramdisk-42661-post-init-script.patch"
|
- "ramdisk-42661-post-init-script.patch"
|
||||||
- "ramdisk-common-network-hosts.patch"
|
|
||||||
- "ramdisk-42661-disable-disabled-ports.patch"
|
- "ramdisk-42661-disable-disabled-ports.patch"
|
||||||
|
@ -1,86 +0,0 @@
|
|||||||
id: "RS4021xs+"
|
|
||||||
modules-notneeded: &modules-notneeded
|
|
||||||
- ahci
|
|
||||||
- i40e
|
|
||||||
- ixgbe
|
|
||||||
- igb
|
|
||||||
- e1000e
|
|
||||||
- dca
|
|
||||||
- etxhci_hcd
|
|
||||||
- xhci_hcd
|
|
||||||
- ehci-pci
|
|
||||||
- uhci_hcd
|
|
||||||
synoinfo: &synoinfo
|
|
||||||
support_bde_internal_10g: "no"
|
|
||||||
support_disk_compatibility: "no"
|
|
||||||
supportraidgroup: "no"
|
|
||||||
esataportcfg: "0x00"
|
|
||||||
rss_server: "http://example.com/null.xml"
|
|
||||||
rss_server_ssl: "https://example.com/null.xml"
|
|
||||||
rss_server_v2: "https://example.com/autoupdate/v2/getList"
|
|
||||||
update_server: "http://example.com/"
|
|
||||||
update_server_ssl: "https://example.com/"
|
|
||||||
small_info_path: "https://example.com/null"
|
|
||||||
updateurl: "http://example.com/"
|
|
||||||
myds_region_api_base_url: "https://example.com"
|
|
||||||
security_version_server: "https://example.com/smallupdate"
|
|
||||||
cmdline: &cmdline
|
|
||||||
syno_hdd_powerup_seq: 0
|
|
||||||
HddHotplug: 0
|
|
||||||
vender_format_version: 2
|
|
||||||
syno_port_thaw: 1
|
|
||||||
syno_hdd_detect: 0
|
|
||||||
platform: "broadwellnk"
|
|
||||||
dom: 1
|
|
||||||
serial:
|
|
||||||
prefix:
|
|
||||||
- "0000"
|
|
||||||
middle: "XXX"
|
|
||||||
suffix: "numeric"
|
|
||||||
disks: 16
|
|
||||||
builds:
|
|
||||||
42218:
|
|
||||||
ver: "7.0.1"
|
|
||||||
kver: "4.4.180"
|
|
||||||
rd-compressed: false
|
|
||||||
efi-bug: no
|
|
||||||
modules-notneeded: *modules-notneeded
|
|
||||||
cmdline:
|
|
||||||
<<: *cmdline
|
|
||||||
synoinfo:
|
|
||||||
<<: *synoinfo
|
|
||||||
pat:
|
|
||||||
url: "https://global.download.synology.com/download/DSM/release/7.0.1/42218/DSM_RS4021xs%2B_42218.pat"
|
|
||||||
hash: "7afca3970ac7324d7431c1484d4249939bedd4c18ac34187f894c43119edf3a1"
|
|
||||||
ramdisk-hash: "3510afe5b3dfe3662bfe054c1728c8794911da431718b533cd03d2a2c061ffd5"
|
|
||||||
zimage-hash: "b4cc62e9953f226960de98b65887e17dd6df5fa0ad28f665e0b4660dbd5f2fa8"
|
|
||||||
patch:
|
|
||||||
- "ramdisk-common-disable-root-pwd.patch"
|
|
||||||
- "ramdisk-common-init-script.patch"
|
|
||||||
- "ramdisk-common-rc.patch"
|
|
||||||
- "ramdisk-common-post-init-script.patch"
|
|
||||||
- "ramdisk-common-network-hosts.patch"
|
|
||||||
- "ramdisk-common-disable-disabled-ports.patch"
|
|
||||||
|
|
||||||
42661:
|
|
||||||
ver: "7.1.0"
|
|
||||||
kver: "4.4.180"
|
|
||||||
rd-compressed: false
|
|
||||||
efi-bug: no
|
|
||||||
modules-notneeded: *modules-notneeded
|
|
||||||
cmdline:
|
|
||||||
<<: *cmdline
|
|
||||||
synoinfo:
|
|
||||||
<<: *synoinfo
|
|
||||||
pat:
|
|
||||||
url: "https://global.download.synology.com/download/DSM/release/7.1/42661-1/DSM_RS4021xs%2B_42661.pat"
|
|
||||||
hash: "496b64e431dafa34cdebb92da8ac736bf1610fe157f03df7e6d11152d60991f5"
|
|
||||||
ramdisk-hash: "143e475fe73c0adb3377361402b4baad21448476e844e55e16d1ed51ffc4c971"
|
|
||||||
zimage-hash: "e073dd84054f652811e0ae1932af2c7cdbd5fb6e5f18f265097072b8af4605e8"
|
|
||||||
patch:
|
|
||||||
- "ramdisk-common-disable-root-pwd.patch"
|
|
||||||
- "ramdisk-common-init-script.patch"
|
|
||||||
- "ramdisk-42661-rc.patch"
|
|
||||||
- "ramdisk-42661-post-init-script.patch"
|
|
||||||
- "ramdisk-common-network-hosts.patch"
|
|
||||||
- "ramdisk-42661-disable-disabled-ports.patch"
|
|
@ -1,16 +0,0 @@
|
|||||||
#!/usr/bin/sh
|
|
||||||
# This script is saved to /sbin/modprobe which is a so called UMH (user-mode-helper) for kmod (kernel/kmod.c)
|
|
||||||
# The kmod subsystem in the kernel is used to load modules from kernel. We exploit it a bit to load RP as soon as
|
|
||||||
# possible (which turns out to be via init/main.c => load_default_modules => load_default_elevator_module
|
|
||||||
# When the kernel is booted with "elevator=elevator" it will attempt to load a module "elevator-iosched"... and the rest
|
|
||||||
# should be obvious from the code below. DO NOT print anything here (kernel doesn't attach STDOUT)
|
|
||||||
for arg in "$@"
|
|
||||||
do
|
|
||||||
if [ "$arg" = "elevator-iosched" ]; then
|
|
||||||
insmod /usr/lib/modules/rp.ko
|
|
||||||
rm /usr/lib/modules/rp.ko
|
|
||||||
rm /sbin/modprobe
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
exit 1
|
|
@ -1,11 +0,0 @@
|
|||||||
--- a/etc/rc
|
|
||||||
+++ b/etc/rc
|
|
||||||
@@ -247,7 +247,7 @@
|
|
||||||
/etc.defaults/AHAtasks load_network_modules_junior
|
|
||||||
fi
|
|
||||||
SYNOLoadModules ${NET_MODULES}
|
|
||||||
-
|
|
||||||
+/addons/addons.sh modules
|
|
||||||
|
|
||||||
if [ "no" != "$RUN_SYNOBIOS" ]; then
|
|
||||||
SYNOLoadModules "synobios"
|
|
@ -1,11 +0,0 @@
|
|||||||
--- a/etc/rc
|
|
||||||
+++ b/etc/rc
|
|
||||||
@@ -230,7 +230,7 @@
|
|
||||||
/etc.defaults/AHAtasks load_network_modules_junior
|
|
||||||
fi
|
|
||||||
SYNOLoadModules ${NET_MODULES}
|
|
||||||
-
|
|
||||||
+/usr/sbin/depmod -a
|
|
||||||
|
|
||||||
if [ "no" != "$RUN_SYNOBIOS" ]; then
|
|
||||||
SYNOLoadModules "synobios"
|
|
@ -81,25 +81,28 @@ done
|
|||||||
sed -e "/@@@CONFIG-GENERATED@@@/ {" -e "r ${TMP_PATH}/rp.txt" -e 'd' -e '}' -i "${RAMDISK_PATH}/sbin/init.post"
|
sed -e "/@@@CONFIG-GENERATED@@@/ {" -e "r ${TMP_PATH}/rp.txt" -e 'd' -e '}' -i "${RAMDISK_PATH}/sbin/init.post"
|
||||||
rm "${TMP_PATH}/rp.txt"
|
rm "${TMP_PATH}/rp.txt"
|
||||||
|
|
||||||
# Copying fake modprobe
|
# Copying modified kmod
|
||||||
echo -n "."
|
echo -n "."
|
||||||
#cp "${PATCH_PATH}/iosched-trampoline.sh" "${RAMDISK_PATH}/usr/sbin/modprobe"
|
cp /opt/arpl/kmod "${RAMDISK_PATH}/usr/sbin"
|
||||||
cp -d ${CACHE_PATH}/kmod ${RAMDISK_PATH}/usr/sbin
|
ln -sf kmod "${RAMDISK_PATH}/usr/sbin/modprobe"
|
||||||
cp -d ${CACHE_PATH}/depmod ${RAMDISK_PATH}/usr/sbin
|
|
||||||
cp -d ${CACHE_PATH}/insmod ${RAMDISK_PATH}/usr/sbin
|
# Extract modules to ramdisk
|
||||||
cp -d ${CACHE_PATH}/lsmod ${RAMDISK_PATH}/usr/sbin
|
rm -rf "${TMP_PATH}/modules"
|
||||||
cp -d ${CACHE_PATH}/modinfo ${RAMDISK_PATH}/usr/sbin
|
mkdir -p "${TMP_PATH}/modules"
|
||||||
cp -d ${CACHE_PATH}/modprobe ${RAMDISK_PATH}/usr/sbin
|
gzip -dc "${CACHE_PATH}/modules/${PLATFORM}-${KVER}.tgz" | tar xf - -C "${TMP_PATH}/modules"
|
||||||
cp -d ${CACHE_PATH}/rmmod ${RAMDISK_PATH}/usr/sbin
|
for F in `ls "${TMP_PATH}/modules/"*.ko`; do
|
||||||
cp -r ${CACHE_PATH}/modules/4.4.180+ ${RAMDISK_PATH}/lib/modules
|
M=`basename ${F}`
|
||||||
for F in `ls ${RAMDISK_PATH}/lib/modules/*.ko`; do
|
# Skip existent modules
|
||||||
mv ${F} ${RAMDISK_PATH}/lib/modules/4.4.180+/
|
[ -f "${RAMDISK_PATH}/lib/modules/${M}" ] || mv "${F}" "${RAMDISK_PATH}/lib/modules/${M}"
|
||||||
ln -sf 4.4.180+/`basename ${F}` ${F}
|
done
|
||||||
done
|
# Clean
|
||||||
|
rm -rf "${TMP_PATH}/modules"
|
||||||
|
|
||||||
# Copying LKM to /usr/lib/modules/rp.ko
|
|
||||||
echo -n "."
|
echo -n "."
|
||||||
cp "${LKM_PATH}/rp-${PLATFORM}-${KVER}-${LKM}.ko" "${RAMDISK_PATH}/usr/lib/modules/4.4.180+/elevator-iosched.ko"
|
# Copying LKM to /usr/lib/modules
|
||||||
|
cp "${LKM_PATH}/rp-${PLATFORM}-${KVER}-${LKM}.ko" "${RAMDISK_PATH}/usr/lib/modules/elevator-iosched.ko"
|
||||||
|
# Build modules dependencies
|
||||||
|
/opt/arpl/depmod -a -b ${RAMDISK_PATH} 2>/dev/null
|
||||||
|
|
||||||
# Addons
|
# Addons
|
||||||
# Check if model needs Device-tree dynamic patch
|
# Check if model needs Device-tree dynamic patch
|
||||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,25 +0,0 @@
|
|||||||
version: 1
|
|
||||||
name: alx
|
|
||||||
description: "Driver for Qualcomm Atheros AR816x/AR817x ethernet adapters"
|
|
||||||
available-for:
|
|
||||||
bromolow-3.10.108:
|
|
||||||
install-script: &script "install.sh"
|
|
||||||
modules: true
|
|
||||||
apollolake-4.4.180:
|
|
||||||
install-script: *script
|
|
||||||
modules: true
|
|
||||||
broadwell-4.4.180:
|
|
||||||
install-script: *script
|
|
||||||
modules: true
|
|
||||||
broadwellnk-4.4.180:
|
|
||||||
install-script: *script
|
|
||||||
modules: true
|
|
||||||
denverton-4.4.180:
|
|
||||||
install-script: *script
|
|
||||||
modules: true
|
|
||||||
geminilake-4.4.180:
|
|
||||||
install-script: *script
|
|
||||||
modules: true
|
|
||||||
v1000-4.4.180:
|
|
||||||
install-script: *script
|
|
||||||
modules: true
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,25 +0,0 @@
|
|||||||
version: 1
|
|
||||||
name: arcmsr
|
|
||||||
description: "Driver for Areca ARC11xx/12xx/16xx/188x SAS/SATA RAID Controller"
|
|
||||||
available-for:
|
|
||||||
bromolow-3.10.108:
|
|
||||||
install-script: &script "install.sh"
|
|
||||||
modules: true
|
|
||||||
apollolake-4.4.180:
|
|
||||||
install-script: *script
|
|
||||||
modules: true
|
|
||||||
broadwell-4.4.180:
|
|
||||||
install-script: *script
|
|
||||||
modules: true
|
|
||||||
broadwellnk-4.4.180:
|
|
||||||
install-script: *script
|
|
||||||
modules: true
|
|
||||||
denverton-4.4.180:
|
|
||||||
install-script: *script
|
|
||||||
modules: true
|
|
||||||
geminilake-4.4.180:
|
|
||||||
install-script: *script
|
|
||||||
modules: true
|
|
||||||
v1000-4.4.180:
|
|
||||||
install-script: *script
|
|
||||||
modules: true
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,25 +0,0 @@
|
|||||||
version: 1
|
|
||||||
name: atl1c
|
|
||||||
description: "Driver for Atheros L1C Gigabit Ethernet adapters"
|
|
||||||
available-for:
|
|
||||||
bromolow-3.10.108:
|
|
||||||
install-script: &script "install.sh"
|
|
||||||
modules: true
|
|
||||||
apollolake-4.4.180:
|
|
||||||
install-script: *script
|
|
||||||
modules: true
|
|
||||||
broadwell-4.4.180:
|
|
||||||
install-script: *script
|
|
||||||
modules: true
|
|
||||||
broadwellnk-4.4.180:
|
|
||||||
install-script: *script
|
|
||||||
modules: true
|
|
||||||
denverton-4.4.180:
|
|
||||||
install-script: *script
|
|
||||||
modules: true
|
|
||||||
geminilake-4.4.180:
|
|
||||||
install-script: *script
|
|
||||||
modules: true
|
|
||||||
v1000-4.4.180:
|
|
||||||
install-script: *script
|
|
||||||
modules: true
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,25 +0,0 @@
|
|||||||
version: 1
|
|
||||||
name: atl1e
|
|
||||||
description: "Driver for Atheros L1E Gigabit Ethernet adapters"
|
|
||||||
available-for:
|
|
||||||
bromolow-3.10.108:
|
|
||||||
install-script: &script "install.sh"
|
|
||||||
modules: true
|
|
||||||
apollolake-4.4.180:
|
|
||||||
install-script: *script
|
|
||||||
modules: true
|
|
||||||
broadwell-4.4.180:
|
|
||||||
install-script: *script
|
|
||||||
modules: true
|
|
||||||
broadwellnk-4.4.180:
|
|
||||||
install-script: *script
|
|
||||||
modules: true
|
|
||||||
denverton-4.4.180:
|
|
||||||
install-script: *script
|
|
||||||
modules: true
|
|
||||||
geminilake-4.4.180:
|
|
||||||
install-script: *script
|
|
||||||
modules: true
|
|
||||||
v1000-4.4.180:
|
|
||||||
install-script: *script
|
|
||||||
modules: true
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,25 +0,0 @@
|
|||||||
version: 1
|
|
||||||
name: atlantic
|
|
||||||
description: "Driver for aQuantia AQtion(tm) Ethernet card"
|
|
||||||
available-for:
|
|
||||||
bromolow-3.10.108:
|
|
||||||
install-script: &script "install.sh"
|
|
||||||
modules: true
|
|
||||||
apollolake-4.4.180:
|
|
||||||
install-script: *script
|
|
||||||
modules: true
|
|
||||||
broadwell-4.4.180:
|
|
||||||
install-script: *script
|
|
||||||
modules: true
|
|
||||||
broadwellnk-4.4.180:
|
|
||||||
install-script: *script
|
|
||||||
modules: true
|
|
||||||
denverton-4.4.180:
|
|
||||||
install-script: *script
|
|
||||||
modules: true
|
|
||||||
geminilake-4.4.180:
|
|
||||||
install-script: *script
|
|
||||||
modules: true
|
|
||||||
v1000-4.4.180:
|
|
||||||
install-script: *script
|
|
||||||
modules: true
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,25 +0,0 @@
|
|||||||
version: 1
|
|
||||||
name: bnx2x
|
|
||||||
description: "Driver for Broadcom NetXtremeII 10Gb adapter"
|
|
||||||
available-for:
|
|
||||||
bromolow-3.10.108:
|
|
||||||
install-script: &script "install.sh"
|
|
||||||
modules: true
|
|
||||||
apollolake-4.4.180:
|
|
||||||
install-script: *script
|
|
||||||
modules: true
|
|
||||||
broadwell-4.4.180:
|
|
||||||
install-script: *script
|
|
||||||
modules: true
|
|
||||||
broadwellnk-4.4.180:
|
|
||||||
install-script: *script
|
|
||||||
modules: true
|
|
||||||
denverton-4.4.180:
|
|
||||||
install-script: *script
|
|
||||||
modules: true
|
|
||||||
geminilake-4.4.180:
|
|
||||||
install-script: *script
|
|
||||||
modules: true
|
|
||||||
v1000-4.4.180:
|
|
||||||
install-script: *script
|
|
||||||
modules: true
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,25 +0,0 @@
|
|||||||
version: 1
|
|
||||||
name: e1000
|
|
||||||
description: "Driver for Intel(R) PRO/1000 Gigabit Ethernet adapters"
|
|
||||||
available-for:
|
|
||||||
bromolow-3.10.108:
|
|
||||||
install-script: &script "install.sh"
|
|
||||||
modules: true
|
|
||||||
apollolake-4.4.180:
|
|
||||||
install-script: *script
|
|
||||||
modules: true
|
|
||||||
broadwell-4.4.180:
|
|
||||||
install-script: *script
|
|
||||||
modules: true
|
|
||||||
broadwellnk-4.4.180:
|
|
||||||
install-script: *script
|
|
||||||
modules: true
|
|
||||||
denverton-4.4.180:
|
|
||||||
install-script: *script
|
|
||||||
modules: true
|
|
||||||
geminilake-4.4.180:
|
|
||||||
install-script: *script
|
|
||||||
modules: true
|
|
||||||
v1000-4.4.180:
|
|
||||||
install-script: *script
|
|
||||||
modules: true
|
|
Binary file not shown.
Binary file not shown.
@ -1,10 +0,0 @@
|
|||||||
version: 1
|
|
||||||
name: e1000e
|
|
||||||
description: "Driver for Intel(R) PRO/1000 Gigabit Ethernet PCI-e adapters"
|
|
||||||
available-for:
|
|
||||||
geminilake-4.4.180:
|
|
||||||
install-script: &script "install.sh"
|
|
||||||
modules: true
|
|
||||||
v1000-4.4.180:
|
|
||||||
install-script: *script
|
|
||||||
modules: true
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,13 +0,0 @@
|
|||||||
version: 1
|
|
||||||
name: ehci-pci
|
|
||||||
description: "Driver for USB 2.0 Host Controller"
|
|
||||||
available-for:
|
|
||||||
broadwell-4.4.180:
|
|
||||||
install-script: &script "install.sh"
|
|
||||||
modules: true
|
|
||||||
geminilake-4.4.180:
|
|
||||||
install-script: *script
|
|
||||||
modules: true
|
|
||||||
apollolake-4.4.180:
|
|
||||||
install-script: *script
|
|
||||||
modules: true
|
|
Binary file not shown.
@ -1,6 +0,0 @@
|
|||||||
version: 1
|
|
||||||
name: eudev
|
|
||||||
description: "eudev project"
|
|
||||||
all:
|
|
||||||
copy: "all"
|
|
||||||
install-script: "install.sh"
|
|
Binary file not shown.
Binary file not shown.
@ -1,10 +0,0 @@
|
|||||||
version: 1
|
|
||||||
name: i40e
|
|
||||||
description: "Driver for Intel(R) Ethernet Connection XL710 adapter"
|
|
||||||
available-for:
|
|
||||||
apollolake-4.4.180:
|
|
||||||
install-script: &script "install.sh"
|
|
||||||
modules: true
|
|
||||||
geminilake-4.4.180:
|
|
||||||
install-script: *script
|
|
||||||
modules: true
|
|
Binary file not shown.
@ -1,10 +0,0 @@
|
|||||||
version: 1
|
|
||||||
name: igb
|
|
||||||
description: "Driver for Intel(R) 82575 PCI-Express ethernet adapter"
|
|
||||||
available-for:
|
|
||||||
geminilake-4.4.180:
|
|
||||||
install-script: &script "install.sh"
|
|
||||||
modules: true
|
|
||||||
v1000-4.4.180:
|
|
||||||
install-script: *script
|
|
||||||
modules: true
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,10 +0,0 @@
|
|||||||
version: 1
|
|
||||||
name: ixgbe
|
|
||||||
description: "Driver for Intel(R) 10GbE PCI Express adapters"
|
|
||||||
available-for:
|
|
||||||
apollolake-4.4.180:
|
|
||||||
install-script: &script "install.sh"
|
|
||||||
modules: true
|
|
||||||
geminilake-4.4.180:
|
|
||||||
install-script: *script
|
|
||||||
modules: true
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,25 +0,0 @@
|
|||||||
version: 1
|
|
||||||
name: megaraid_sas
|
|
||||||
description: "Driver for Avago MegaRAID SAS adapter"
|
|
||||||
available-for:
|
|
||||||
bromolow-3.10.108:
|
|
||||||
install-script: &script "install.sh"
|
|
||||||
modules: true
|
|
||||||
apollolake-4.4.180:
|
|
||||||
install-script: *script
|
|
||||||
modules: true
|
|
||||||
broadwell-4.4.180:
|
|
||||||
install-script: *script
|
|
||||||
modules: true
|
|
||||||
broadwellnk-4.4.180:
|
|
||||||
install-script: *script
|
|
||||||
modules: true
|
|
||||||
denverton-4.4.180:
|
|
||||||
install-script: *script
|
|
||||||
modules: true
|
|
||||||
geminilake-4.4.180:
|
|
||||||
install-script: *script
|
|
||||||
modules: true
|
|
||||||
v1000-4.4.180:
|
|
||||||
install-script: *script
|
|
||||||
modules: true
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user