This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python3 | |
| from Crypto.Cipher import AES | |
| import binascii | |
| def get_uid(uid_string): | |
| """ | |
| Convert the UID string to lowercase and then to a byte array of specified length. | |
| Parameters: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ ifdtool --platform adl --dump LP-BS-S70NC1R200-SR-A.bin | |
| File LP-BS-S70NC1R200-SR-A.bin is 16777216 bytes | |
| PCH Revision: 500 series Tiger Point/ 600 series Alder Point | |
| FLMAP0: 0x00040003 | |
| FRBA: 0x40 | |
| NC: 1 | |
| FCBA: 0x30 | |
| FLMAP1: 0x46100208 | |
| PSL: 0x46 | |
| FPSBA: 0x100 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| kunyi@kunyi-TP-P53:/tmp/coreboot-24.05$ make | |
| # | |
| # No change to /tmp/coreboot-24.05/.config | |
| # | |
| MAKE | |
| vboot SHA256 built with tight loops (slower, smaller code size) | |
| CC firmware/2lib/2api.o | |
| CC firmware/2lib/2auxfw_sync.o | |
| CC firmware/2lib/2common.o | |
| CC firmware/2lib/2context.o |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034] | |
| [ 0.000000] Linux version 5.4.188 (cmdc@opdev) (gcc version 8.4.0 (OpenWrt GCC 8.4.0 r0-9a55f5104)) #0 SMP Tue Oct 10 00:55:19 2023 | |
| [ 0.000000] Machine model: MediaTek MT7981 RFB | |
| [ 0.000000] earlycon: uart8250 at MMIO32 0x0000000011002000 (options '') | |
| [ 0.000000] printk: bootconsole [uart8250] enabled | |
| [ 0.000000] On node 0 totalpages: 130128 | |
| [ 0.000000] DMA32 zone: 2048 pages used for memmap | |
| [ 0.000000] DMA32 zone: 0 pages reserved | |
| [ 0.000000] DMA32 zone: 130128 pages, LIFO batch:31 | |
| [ 0.000000] psci: probing for conduit method from DT. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ### XBL/SBL message, JD Cloud AX1800Pro | |
| Format: Log Type - Time(microsec) - Message - Optional Info | |
| Log Type: B - Since Boot(Power On Reset), D - Delta, S - Statistic | |
| S - QC_IMAGE_VERSION_STRING=BOOT.XF.0.3-00086-IPQ60xxLZB-1 | |
| S - IMAGE_VARIANT_STRING=IPQ6018LA | |
| S - OEM_IMAGE_VERSION_STRING=crm-ubuntu200 | |
| S - Boot Interface: eMMC | |
| S - Secure Boot: Off |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x51af8014] | |
| [ 0.000000] Linux version 6.6.30 (kunyi@kunyi-TP-P53) (aarch64-openwrt-linux-musl-gcc (OpenWrt GCC 13.2.0 r26467-ecf848762d) 13.2.0, GNU ld (GNU Binutils) 2.42) #0 SMP PREEMPT Tue May 14 02:41:28 2024 | |
| [ 0.000000] Machine model: JDCloud AX1800 Pro | |
| [ 0.000000] OF: reserved mem: 0x0000000000060000..0x0000000000065fff (24 KiB) nomap non-reusable memory@60000 | |
| [ 0.000000] OF: reserved mem: 0x0000000040000000..0x0000000040ffffff (16384 KiB) nomap non-reusable nss@40000000 | |
| [ 0.000000] OF: reserved mem: 0x000000004a100000..0x000000004a4fffff (4096 KiB) nomap non-reusable bootloader@4a100000 | |
| [ 0.000000] OF: reserved mem: 0x000000004a600000..0x000000004a9fffff (4096 KiB) nomap non-reusable memory@4a600000 | |
| [ 0.000000] OF: reserved mem: 0x000000004aa00000..0x000000004aafffff (1024 KiB) nomap non-reusable memory@4aa00000 | |
| [ 0.000000] OF: reserved mem: 0x000000004ab00000..0x000000004e1fffff (56320 KiB) nomap non-reusable memory@4ab |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // to code base on | |
| // https://gist.github.com/xpn/9dca0c1663ecdee76ede | |
| // and modify to another pid(0x0b12) | |
| // | |
| // build commands on Ubuntu 22.04 | |
| // gcc libusbxboxone.c -o test_xboxone -lusb-1.0 | |
| // | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** @file | |
| This sample application bases on HelloWorld PCD setting | |
| to print "UEFI Hello World!" to the UEFI Console. | |
| Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR> | |
| SPDX-License-Identifier: BSD-2-Clause-Patent | |
| **/ | |
| #include <Uefi.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| kunyi@kunyi-TP-P53:/tmp/edk2$ build -t GCC -b RELEASE -a IA32 -p MdeModulePkg/CE7OSLoader.dsc | |
| Build environment: Linux-5.15.0-102-generic-x86_64-with-glibc2.35 | |
| Build start time: 16:02:11, Apr.09 2024 | |
| WORKSPACE = /tmp/edk2 | |
| EDK_TOOLS_PATH = /tmp/edk2/BaseTools | |
| CONF_PATH = /tmp/edk2/Conf | |
| PYTHON_COMMAND = python3 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 2024-02-26 17:49:05:351 [INFO] [neuron] driver.c:171 update driver: Modbus, group: Modbus, tag: Modbus, type: NEU_TYPE_UINT16, timestamp: 1708940945349 n_meta: 0 | |
| 2024-02-26 17:49:05:371 [DEBUG] [neuron] driver.c:1695 Modbus-Modbus timer: 30 | |
| 2024-02-26 17:49:05:767 [INFO] [neuron] metric_handle.c:121 GET /api/v2/metrics?category=app&node=MQTT [200] | |
| 2024-02-26 17:49:06:004 [DEBUG] [neuron] adapter.c:594 adapter(MQTT) recv msg from: Modbus (nil), type: NEU_REQRESP_TRANS_DATA | |
| 2024-02-26 17:49:06:004 [DEBUG] [neuron] adapter.c:117 adapter(MQTT) recv msg from: Modbus (nil), type: NEU_REQRESP_TRANS_DATA, 0 | |
| 2024-02-26 17:49:06:004 [DEBUG] [MQTT] mqtt_client.c:255 pub [/neuron/MQTT, QoS0] 107 bytes | |
| 2024-02-26 17:49:06:371 [DEBUG] [Modbus] log.h:125 >>(12) 0x00 0x66 0x00 0x00 0x00 0x06 0x01 0x03 0x00 0x00 0x00 0x01 | |
| 2024-02-26 17:49:06:373 [DEBUG] [Modbus] log.h:125 <<(6) 0x00 0x66 0x00 0x00 0x00 0x05 | |
| 2024-02-26 17:49:06:373 [DEBUG] [Modbus] log.h:125 <<(11) 0x00 0x66 0x00 0x00 0x00 0x05 0x01 0x03 0x02 0x00 0x00 | |
| 2024-02 |