Skip to content

Instantly share code, notes, and snippets.

@macromorgan
macromorgan / cbmem.dump
Created February 5, 2020 15:55
Coreboot on T440P with dGPU (dGPU Not Working)
coreboot-4.11-1077-g99035650aa-dirty Sat Feb 1 18:31:08 UTC 2020 bootblock starting (log level: 5)...
FMAP: Found "FLASH" version 1.1 at 0xa50000.
FMAP: base = 0xff400000 size = 0xc00000 #areas = 5
FMAP: area COREBOOT found @ a50200 (1768960 bytes)
CBFS: Locating 'fallback/romstage'
CBFS: Found @ offset 80 size 5d44
BS: bootblock times (exec / console): total (unknown) / 0 ms
coreboot-4.11-1077-g99035650aa-dirty Sat Feb 1 18:31:08 UTC 2020 romstage starting (log level: 5)...
@macromorgan
macromorgan / dsdt_coreboot.dsl
Created February 18, 2020 16:05
DSDT Comparison Between Stock T440P w/ dGPU and Coreboot
/*
* Intel ACPI Component Architecture
* AML/ASL+ Disassembler version 20180105 (64-bit version)
* Copyright (c) 2000 - 2018 Intel Corporation
*
* Disassembling to symbolic ASL+ operators
*
* Disassembly of dsdt.dat, Wed Feb 12 10:49:16 2020
*
* Original Table Header:
@macromorgan
macromorgan / dmesg
Created March 10, 2020 03:42
dmesg log of CF-EW72
[ 0.000000] Linux version 4.19.108 (cmorgan@macrobox) (gcc version 8.3.0 (OpenWrt GCC 8.3.0 r12463-a508ab1ac8)) #0 Mon Mar 9 23:35:35 2020
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU0 revision is: 00019374 (MIPS 24Kc)
[ 0.000000] MIPS: machine is COMFAST CF-EW72
[ 0.000000] SoC: Qualcomm Atheros QCA9533 ver 2 rev 0
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 08000000 @ 00000000 (usable)
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[ 0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
@macromorgan
macromorgan / .config
Created July 10, 2020 02:38
Coreboot T420 Config for Tag 4.12
#
# Automatically generated file; DO NOT EDIT.
# coreboot configuration
#
#
# General setup
#
CONFIG_COREBOOT_BUILD=y
CONFIG_LOCALVERSION=""
@macromorgan
macromorgan / .config
Created September 4, 2020 00:31
Config for 5.9 Upstream-ish Kernel for Odroid Go Advance
#
# Automatically generated file; DO NOT EDIT.
# Linux/arm64 5.9.0-rc3 Kernel Configuration
#
CONFIG_CC_VERSION_TEXT="aarch64-linux-gnu-gcc (Ubuntu 9.3.0-10ubuntu1) 9.3.0"
CONFIG_CC_IS_GCC=y
CONFIG_GCC_VERSION=90300
CONFIG_LD_VERSION=234000000
CONFIG_CLANG_VERSION=0
CONFIG_CC_CAN_LINK=y
@macromorgan
macromorgan / Installation Instructions
Created November 20, 2020 16:47
Pocket CHIP Mainline Kernel Mainline U-Boot
copy rootfs.ubi and boot.img to the root of a FAT32 formatted USB flash drive, and plug it into CHIP
boot CHIP into FEL mode
from FEL mode do:
sunxi-fel spl sunxi-spl.bin
sunxi-fel write 0x4a000000 u-boot-dtb.bin
sunxi-fel write 0x43000000 spl-400000-4000-500.bin
sunxi-fel exe 0x4a000000
from a serial console booted into u-boot do:
@macromorgan
macromorgan / .config
Created February 18, 2021 15:42
Coreboot Config for T420
#
# Automatically generated file; DO NOT EDIT.
# coreboot configuration
#
#
# General setup
#
CONFIG_COREBOOT_BUILD=y
CONFIG_LOCALVERSION=""
@macromorgan
macromorgan / kernel
Created February 19, 2021 15:27
Boot Logs for my Odroid Go Advance on 5.10.17 kernel
[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd042]
[ 0.000000] Linux version 5.10.17+ (cmorgan@wintermute) (Ubuntu clang version 11.0.0-2~ubuntu20.04.1, LLD 11.0.0) #2 SMP PREEMPT Thu Feb 18 21:31:11 CST 2021
[ 0.000000] Machine model: ODROID-GO Advance
[ 0.000000] Zone ranges:
[ 0.000000] DMA [mem 0x0000000000200000-0x000000003fffffff]
[ 0.000000] DMA32 empty
[ 0.000000] Normal empty
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000000200000-0x00000000083fffff]
From 9db6eb1d8e5610f97e4a3e89bcaea5b482658fa7 Mon Sep 17 00:00:00 2001
From: Chris Morgan <macromorgan@hotmail.com>
Date: Fri, 19 Feb 2021 22:50:43 -0600
Subject: [PATCH] Make U-boot work with the SPI Flash chip in the Odroid Go
Advance without the rockchip SFC driver.
---
arch/arm/dts/px30.dtsi | 2 +-
arch/arm/dts/rk3326-odroid-go2.dts | 36 +++++++++++++++++++++++++++++-
drivers/mtd/spi/Kconfig | 6 +++++
@macromorgan
macromorgan / kernel-panic-no-dma
Last active March 1, 2021 15:26
Rockchip SFC Driver for 5.11 Kernels
[ 30.239682] Internal error: synchronous external abort: 96000010 [#1] PREEMPT SMP
[ 30.253908] Modules linked in:
[ 30.257332] CPU: 0 PID: 404 Comm: fdisk Not tainted 5.11.0+ #62
[ 30.263956] Hardware name: ODROID-GO Advance (DT)
[ 30.269215] pstate: 60400005 (nZCv daif +PAN -UAO -TCO BTYPE=--)
[ 30.275935] pc : rockchip_sfc_wait_idle.constprop.0+0x30/0xac
[ 30.282376] lr : rockchip_sfc_wait_idle.constprop.0+0x20/0xac
[ 30.288802] sp : ffffffc01248ba70
[ 30.292503] x29: ffffffc01248ba70 x28: ffffff8004ba7400
[ 30.298452] x27: 000000007fffffff x26: 0000000000000000