具体运行代码如下:
root@ubuntu:/home/bigboss/2022# ./redpill_tool_chain.sh auto apollolake-7.0.1-42218
Checking if redpill-lkm sources require pull.
Nothing to do.
Check if redpill-load sources require pull.
Nothing to do.
Lay back and enjoy the show: Magic is about to happen!
make[1]: Entering directory '/opt/redpill-lkm'
make -C /opt/toolkit_dev-apollolake-7.0.1-42218 M=/opt/redpill-lkm RP_MODULE_TARGET="dev" RP_MODULE_TARGET_VER="7" modules
make[2]: Entering directory '/opt/toolkit_dev-apollolake-7.0.1-42218'
RP-TARGET SPECIFIED AS dev v7
CC [M] /opt/redpill-lkm/compat/string_compat.o
CC [M] /opt/redpill-lkm/internal/helper/math_helper.o
CC [M] /opt/redpill-lkm/internal/helper/memory_helper.o
CC [M] /opt/redpill-lkm/internal/helper/symbol_helper.o
CC [M] /opt/redpill-lkm/internal/scsi/scsi_toolbox.o
CC [M] /opt/redpill-lkm/internal/scsi/scsi_notifier_list.o
CC [M] /opt/redpill-lkm/internal/scsi/scsi_notifier.o
CC [M] /opt/redpill-lkm/internal/override/override_symbol.o
CC [M] /opt/redpill-lkm/internal/override/override_syscall.o
CC [M] /opt/redpill-lkm/internal/intercept_execve.o
CC [M] /opt/redpill-lkm/internal/call_protected.o
CC [M] /opt/redpill-lkm/internal/intercept_driver_register.o
CC [M] /opt/redpill-lkm/internal/stealth/sanitize_cmdline.o
CC [M] /opt/redpill-lkm/internal/stealth.o
CC [M] /opt/redpill-lkm/internal/virtual_pci.o
CC [M] /opt/redpill-lkm/internal/uart/uart_swapper.o
CC [M] /opt/redpill-lkm/internal/uart/vuart_virtual_irq.o
CC [M] /opt/redpill-lkm/internal/uart/virtual_uart.o
CC [M] /opt/redpill-lkm/internal/ioscheduler_fixer.o
CC [M] /opt/redpill-lkm/config/cmdline_delegate.o
/opt/redpill-lkm/config/cmdline_delegate.c: In function 'extract_config_from_cmdline':
/opt/redpill-lkm/config/cmdline_delegate.c:413:74: warning: value computed is not used [-Wunused-value]
extract_netif_macs(config->macs, single_param_chunk) ||
^~
CC [M] /opt/redpill-lkm/config/runtime_config.o
CC [M] /opt/redpill-lkm/shim/boot_dev/boot_shim_base.o
CC [M] /opt/redpill-lkm/shim/boot_dev/usb_boot_shim.o
CC [M] /opt/redpill-lkm/shim/boot_dev/fake_sata_boot_shim.o
In file included from /opt/redpill-lkm/shim/boot_dev/fake_sata_boot_shim.c:46:
/opt/redpill-lkm/compat/toolkit/include/../drivers/usb/storage/usb.h:50:2: warning: #warning "Using compatibility file for drivers/usb/storage/usb.h - if possible do NOT compile using toolkit" [-Wcpp]
#warning "Using compatibility file for drivers/usb/storage/usb.h - if possible do NOT compile using toolkit"
^~~~~~~
CC [M] /opt/redpill-lkm/shim/boot_dev/native_sata_boot_shim.o
CC [M] /opt/redpill-lkm/shim/boot_device_shim.o
CC [M] /opt/redpill-lkm/shim/storage/smart_shim.o
CC [M] /opt/redpill-lkm/shim/storage/sata_port_shim.o
CC [M] /opt/redpill-lkm/shim/bios/bios_hwcap_shim.o
CC [M] /opt/redpill-lkm/shim/bios/bios_hwmon_shim.o
CC [M] /opt/redpill-lkm/shim/bios/rtc_proxy.o
CC [M] /opt/redpill-lkm/shim/bios/bios_shims_collection.o
CC [M] /opt/redpill-lkm/shim/bios_shim.o
CC [M] /opt/redpill-lkm/shim/block_fw_update_shim.o
CC [M] /opt/redpill-lkm/shim/disable_exectutables.o
CC [M] /opt/redpill-lkm/shim/pci_shim.o
CC [M] /opt/redpill-lkm/shim/pmu_shim.o
CC [M] /opt/redpill-lkm/shim/uart_fixer.o
CC [M] /opt/redpill-lkm/redpill_main.o
LD [M] /opt/redpill-lkm/redpill.o
Building modules, stage 2.
RP-TARGET SPECIFIED AS dev v7
MODPOST 1 modules
CC /opt/redpill-lkm/redpill.mod.o
LD [M] /opt/redpill-lkm/redpill.ko
make[2]: Leaving directory '/opt/toolkit_dev-apollolake-7.0.1-42218'
make[1]: Leaving directory '/opt/redpill-lkm'
#############################################
filename: /opt/redpill-lkm/redpill.ko
license: GPL
version: v0.5-at-2022_02_08-04_37_25
author: TTG
srcversion: B8832A696B6882E8B0D5844
depends:
retpoline: Y
vermagic: 4.4.180+ SMP mod_unload
#############################################
Using user_config.json:
{
"extra_cmdline": {
"pid": "0x5591",
"vid": "0x0781",
"sn": "D1J81JN9H8GL9",
"netif_num": "2",
"mac1": "021132170671",
"mac2": "021132170672",
"SasIdxMap": "0",
"DiskIdxMap": "68",
"SataPortMap": "0007"
},
"synoinfo": {},
"ramdisk_copy": {},
"extensions": []
}
#############################################
/opt/redpill-load /opt
[#] Checking runtime for required tools... [OK]
[#] Updating extensions...