mirror of
https://github.com/RROrg/rr.git
synced 2025-06-21 05:51:05 +08:00
wip
This commit is contained in:
parent
823ba20f1a
commit
55bdd9ff12
@ -1,3 +1,4 @@
|
|||||||
|
epyc7002 5.10.55
|
||||||
bromolow 3.10.108
|
bromolow 3.10.108
|
||||||
apollolake 4.4.180
|
apollolake 4.4.180
|
||||||
broadwell 4.4.180
|
broadwell 4.4.180
|
||||||
@ -6,4 +7,3 @@ denverton 4.4.180
|
|||||||
geminilake 4.4.180
|
geminilake 4.4.180
|
||||||
v1000 4.4.180
|
v1000 4.4.180
|
||||||
r1000 4.4.180
|
r1000 4.4.180
|
||||||
epyc7002 5.10.55
|
|
||||||
|
Binary file not shown.
@ -1131,7 +1131,7 @@ while true; do
|
|||||||
x) cmdlineMenu; NEXT="i" ;;
|
x) cmdlineMenu; NEXT="i" ;;
|
||||||
i) synoinfoMenu; NEXT="d" ;;
|
i) synoinfoMenu; NEXT="d" ;;
|
||||||
d) make; NEXT="v" ;;
|
d) make; NEXT="v" ;;
|
||||||
v) advancedMenu; NEXT="b" ;;
|
v) advancedMenu; NEXT="d" ;;
|
||||||
b) boot ;;
|
b) boot ;;
|
||||||
k) keymapMenu ;;
|
k) keymapMenu ;;
|
||||||
c) dialog --backtitle "`backtitle`" --title "Cleaning" --aspect 18 \
|
c) dialog --backtitle "`backtitle`" --title "Cleaning" --aspect 18 \
|
||||||
|
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.
Binary file not shown.
Binary file not shown.
@ -13,3 +13,4 @@ available-for:
|
|||||||
geminilake-4.4.180:
|
geminilake-4.4.180:
|
||||||
v1000-4.4.180:
|
v1000-4.4.180:
|
||||||
r1000-4.4.180:
|
r1000-4.4.180:
|
||||||
|
epyc7002-5.10.55:
|
Binary file not shown.
@ -13,3 +13,4 @@ available-for:
|
|||||||
geminilake-4.4.180:
|
geminilake-4.4.180:
|
||||||
v1000-4.4.180:
|
v1000-4.4.180:
|
||||||
r1000-4.4.180:
|
r1000-4.4.180:
|
||||||
|
epyc7002-5.10.55:
|
||||||
|
Binary file not shown.
@ -15,3 +15,4 @@ available-for:
|
|||||||
geminilake-4.4.180:
|
geminilake-4.4.180:
|
||||||
v1000-4.4.180:
|
v1000-4.4.180:
|
||||||
r1000-4.4.180:
|
r1000-4.4.180:
|
||||||
|
epyc7002-5.10.55:
|
||||||
|
Binary file not shown.
@ -15,3 +15,4 @@ available-for:
|
|||||||
geminilake-4.4.180:
|
geminilake-4.4.180:
|
||||||
v1000-4.4.180:
|
v1000-4.4.180:
|
||||||
r1000-4.4.180:
|
r1000-4.4.180:
|
||||||
|
epyc7002-5.10.55:
|
||||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -13,3 +13,4 @@ available-for:
|
|||||||
geminilake-4.4.180:
|
geminilake-4.4.180:
|
||||||
v1000-4.4.180:
|
v1000-4.4.180:
|
||||||
r1000-4.4.180:
|
r1000-4.4.180:
|
||||||
|
epyc7002-5.10.55:
|
||||||
|
Binary file not shown.
@ -14,3 +14,4 @@ available-for:
|
|||||||
geminilake-4.4.180:
|
geminilake-4.4.180:
|
||||||
v1000-4.4.180:
|
v1000-4.4.180:
|
||||||
r1000-4.4.180:
|
r1000-4.4.180:
|
||||||
|
epyc7002-5.10.55:
|
||||||
|
Binary file not shown.
@ -13,3 +13,4 @@ available-for:
|
|||||||
geminilake-4.4.180:
|
geminilake-4.4.180:
|
||||||
v1000-4.4.180:
|
v1000-4.4.180:
|
||||||
r1000-4.4.180:
|
r1000-4.4.180:
|
||||||
|
epyc7002-5.10.55:
|
||||||
|
Binary file not shown.
@ -14,3 +14,4 @@ available-for:
|
|||||||
geminilake-4.4.180:
|
geminilake-4.4.180:
|
||||||
v1000-4.4.180:
|
v1000-4.4.180:
|
||||||
r1000-4.4.180:
|
r1000-4.4.180:
|
||||||
|
epyc7002-5.10.55:
|
||||||
|
Binary file not shown.
@ -3,7 +3,6 @@ name: reducelog
|
|||||||
description: "Addon to reduce DSM log"
|
description: "Addon to reduce DSM log"
|
||||||
all:
|
all:
|
||||||
install-script: "install.sh"
|
install-script: "install.sh"
|
||||||
copy: "all"
|
|
||||||
available-for:
|
available-for:
|
||||||
bromolow-3.10.108:
|
bromolow-3.10.108:
|
||||||
apollolake-4.4.180:
|
apollolake-4.4.180:
|
||||||
@ -13,3 +12,4 @@ available-for:
|
|||||||
geminilake-4.4.180:
|
geminilake-4.4.180:
|
||||||
v1000-4.4.180:
|
v1000-4.4.180:
|
||||||
r1000-4.4.180:
|
r1000-4.4.180:
|
||||||
|
epyc7002-5.10.55:
|
||||||
|
Binary file not shown.
@ -12,3 +12,4 @@ available-for:
|
|||||||
geminilake-4.4.180:
|
geminilake-4.4.180:
|
||||||
v1000-4.4.180:
|
v1000-4.4.180:
|
||||||
r1000-4.4.180:
|
r1000-4.4.180:
|
||||||
|
epyc7002-5.10.55:
|
||||||
|
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.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
files/board/arpl/p3/lkms/rp-epyc7002-5.10.55-dev.ko.gz
Normal file
BIN
files/board/arpl/p3/lkms/rp-epyc7002-5.10.55-dev.ko.gz
Normal file
Binary file not shown.
BIN
files/board/arpl/p3/lkms/rp-epyc7002-5.10.55-prod.ko.gz
Normal file
BIN
files/board/arpl/p3/lkms/rp-epyc7002-5.10.55-prod.ko.gz
Normal file
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.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
files/board/arpl/p3/modules/epyc7002-5.10.55.tgz
Normal file
BIN
files/board/arpl/p3/modules/epyc7002-5.10.55.tgz
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
kpatch/kpatch
Executable file
BIN
kpatch/kpatch
Executable file
Binary file not shown.
@ -60,6 +60,7 @@ void errorMsg(char *fmt, ...) {
|
|||||||
va_start(args, fmt);
|
va_start(args, fmt);
|
||||||
vfprintf(stderr, fmt, args);
|
vfprintf(stderr, fmt, args);
|
||||||
va_end(args);
|
va_end(args);
|
||||||
|
fprintf(stderr, "\n");
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -307,15 +308,39 @@ int main(int argc, char *argv[]) {
|
|||||||
Elf_Scn *section;
|
Elf_Scn *section;
|
||||||
GElf_Shdr sectionHeader;
|
GElf_Shdr sectionHeader;
|
||||||
char *sectionName;
|
char *sectionName;
|
||||||
|
char *fileIn = NULL, *fileOut = NULL;
|
||||||
|
int onlyBoot = 0, onlyRD = 0, onlyCMOS = 0, c;
|
||||||
|
|
||||||
if (argc != 3) {
|
if (argc < 3) {
|
||||||
errorMsg("Use: kpatch <vmlinux> <output>\n");
|
errorMsg("Use: kpatch (option) <vmlinux> <output>\nOptions:\n -b Only bootparams\n -r Only ramdisk\n -c Only CMOS");
|
||||||
|
}
|
||||||
|
c = 1;
|
||||||
|
while (c < argc) {
|
||||||
|
if (strcmp(argv[c], "-b") == 0) {
|
||||||
|
onlyBoot = 1;
|
||||||
|
} else if (strcmp(argv[c], "-r") == 0) {
|
||||||
|
onlyRD = 1;
|
||||||
|
} else if (strcmp(argv[c], "-c") == 0) {
|
||||||
|
onlyCMOS = 1;
|
||||||
|
} else if (fileIn == NULL) {
|
||||||
|
fileIn = argv[c];
|
||||||
|
} else {
|
||||||
|
fileOut = argv[c];
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
++c;
|
||||||
|
}
|
||||||
|
if (NULL == fileIn) {
|
||||||
|
errorMsg("Please give a input filename");
|
||||||
|
}
|
||||||
|
if (NULL == fileOut) {
|
||||||
|
errorMsg("Please give a output filename");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (elf_version(EV_CURRENT) == EV_NONE)
|
if (elf_version(EV_CURRENT) == EV_NONE)
|
||||||
elfErrno();
|
elfErrno();
|
||||||
|
|
||||||
if ((fd = open(argv[1], O_RDONLY)) == -1)
|
if ((fd = open(fileIn, O_RDONLY)) == -1)
|
||||||
errorNum();
|
errorNum();
|
||||||
|
|
||||||
if ((elfHandle = elf_begin(fd, ELF_C_READ, NULL)) == NULL)
|
if ((elfHandle = elf_begin(fd, ELF_C_READ, NULL)) == NULL)
|
||||||
@ -367,10 +392,22 @@ int main(int argc, char *argv[]) {
|
|||||||
printf("Found .init.text offset @ %lX\n", initTextOffs);
|
printf("Found .init.text offset @ %lX\n", initTextOffs);
|
||||||
printf("Found .rodata address @ %lX\n", rodataAddr);
|
printf("Found .rodata address @ %lX\n", rodataAddr);
|
||||||
printf("Found .rodata offset @ %lX\n", rodataOffs);
|
printf("Found .rodata offset @ %lX\n", rodataOffs);
|
||||||
|
if (onlyBoot == 0 && onlyCMOS == 0 && onlyRD == 0) {
|
||||||
patchBootParams();
|
patchBootParams();
|
||||||
patchRamdiskCheck();
|
patchRamdiskCheck();
|
||||||
patchCmosWrite();
|
patchCmosWrite();
|
||||||
if ((fd = open(argv[2], O_WRONLY | O_CREAT, 0644)) == -1) {
|
} else {
|
||||||
|
if (onlyBoot == 1) {
|
||||||
|
patchBootParams();
|
||||||
|
}
|
||||||
|
if (onlyRD == 1) {
|
||||||
|
patchRamdiskCheck();
|
||||||
|
}
|
||||||
|
if (onlyCMOS == 1) {
|
||||||
|
patchCmosWrite();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if ((fd = open(fileOut, O_WRONLY | O_CREAT, 0644)) == -1) {
|
||||||
errorNum();
|
errorNum();
|
||||||
}
|
}
|
||||||
if (fileSize != write(fd, fileData, fileSize)) {
|
if (fileSize != write(fd, fileData, fileSize)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user