Skip to content

Instantly share code, notes, and snippets.

@KunYi
KunYi / lattepanda_mu_memory_parameters.c
Created July 29, 2024 13:45
memory initial parameters for LattePanda MU
/* SPDX-License-Identifier: GPL-2.0-only */
#include <baseboard/variants.h>
#include <console/console.h>
#include <soc/romstage.h>
static const struct mb_cfg mu_lp5_mem_config = {
.type = MEM_TYPE_LP5X,
/* DQ byte map */
@KunYi
KunYi / lattepanda_mu_booting.log
Created July 29, 2024 13:43
coreboot on LattePanda Mu booting log
[NOTE ] coreboot-96a61745ea29-dirty Mon Jul 29 10:28:36 UTC 2024 x86_32 bootblock starting (log level: 7)...
[DEBUG] CPU: Intel(R) N100
[DEBUG] CPU: ID b06e0, Alderlake-N Platform, ucode: 00000015
[DEBUG] CPU: AES supported, TXT NOT supported, VT supported
[INFO ] Cache: Level 3: Associativity = 12 Partitions = 1 Line Size = 64 Sets = 8192
[INFO ] Cache size = 6 MiB
[DEBUG] MCH: device id 461c (rev 00) is Alderlake-N
[DEBUG] PCH: device id 5481 (rev 00) is Alderlake-N SKU
[DEBUG] IGD: device id 46d1 (rev 00) is Alderlake N GT2
[DEBUG] FMAP: Found "FLASH" version 1.1 at 0x610000.
@KunYi
KunYi / coreboot_fspmemoryinit.log
Created July 28, 2024 10:21
Debugging LatteMu FspMemoryInit()
[NOTE ] coreboot-d7e9b73722fb Sat Jul 27 12:49:33 UTC 2024 x86_32 bootblock starting (log level: 8)...
[DEBUG] CPU: Intel(R) N100
[DEBUG] CPU: ID b06e0, Alderlake-N Platform, ucode: 00000015
[DEBUG] CPU: AES supported, TXT NOT supported, VT supported
[INFO ] Cache: Level 3: Associativity = 12 Partitions = 1 Line Size = 64 Sets = 8192
[INFO ] Cache size = 6 MiB
[DEBUG] MCH: device id 461c (rev 00) is Alderlake-N
[DEBUG] PCH: device id 5481 (rev 00) is Alderlake-N SKU
[DEBUG] IGD: device id 46d1 (rev 00) is Alderlake N GT2
[DEBUG] FMAP: Found "FLASH" version 1.1 at 0x610000.
@KunYi
KunYi / LP-BS-S70NC1R200-SR-A.xml
Created July 19, 2024 11:06
LattePanda Mu BIOS CSME Decompress
<?xml version="1.0" ?>
<FitData version="" layout_name="Intel(R) AlderLake N Chipset - Consumer - SPI">
<BuildSettings label="Build Settings">
<BuildResults label="Build Results">
<MeuToolPath value="" label="Intel(R) Manifest Extension Utility Path" help_text="" key="ManifestSigningUtilPlugin:SigningContainer:MeuToolPath"/>
<OpenSSLToolPath value="" label="Open SSL Signing Tool Path" help_text="" key="ManifestSigningUtilPlugin:SigningContainer:OpenSSLToolPath"/>
<SigningEnabled value="Disabled" value_list="['Disabled', 'Enabled']" label="Signing Enabled" help_text="" key="ManifestSigningUtilPlugin:SigningContainer:SigningEnabled"/>
<DescSigningKey value="" label="Descriptor Debug Signing Key" help_text="This is the path to the private debug key used to sign the Descriptor, while public key hash of it is included in the OEM hash manifest. This setting is operative only when Flash Descriptor Verification is enabled (See DescConfiguration/FdvEnabled)." key="Descript
@KunYi
KunYi / 01_SPD_0x00D9977D.txt
Created July 19, 2024 03:32
SPDs informations from LP-BS-S70NC1R200-SR-A.bin of LattePanda MU
23 10 13 0E 15 1A F9 08 00 40 00 00 0A 01 00 00
48 00 0A FF 92 55 05 00 AA 00 90 A8 90 90 06 C0
03 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 7F 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
@KunYi
KunYi / enc.py
Created July 12, 2024 16:56
generation otp.bin for SWTG-118AS check otp
#!/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:
@KunYi
KunYi / ifd_dump_LP-BS-S70NC1R200-SR-A.log
Last active July 5, 2024 05:45
using ifdtool of coreboot tools to dump BIOS image of LattePanda Mu
$ 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
@KunYi
KunYi / coreboot_build.log
Created July 5, 2024 03:46
coreboot 24.05 build log for Alder Lake N with ChromOS EC
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
@KunYi
KunYi / cmcc_rax3000m_kernel_boot.log
Last active May 31, 2024 06:52
CMCC RAX3000M Kernel log
[ 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.
@KunYi
KunYi / bootlog_JDCloud_AX1800Pro.log
Created May 20, 2024 02:09
JD Cloud AX1800Pro Boot log
### 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