Skip to content

Commit

Permalink
Staging linuxboot#1381
Browse files Browse the repository at this point in the history
Moved boards to 5.10.5, staging for 5.10.178 (LTS)
kernel configs to not cause regression on crypto backend, both with cryptsetup and current gpg toolstack
modules/linux added 5.10.178 but nothing migrated at this stage.
modules/linux includes Android tethering modules to be packed when needed per board configs (maximized only)
Kernel configs for x230 good to go.
 - Removed unneedead crypto support for ivy and sandy bridge (no AVX2, and AVX support needed only for AES (ctypestup is XTS-AES on most deployments)
 - Added required crypto hash HMAC

Note: those two commands are really useful to analyse in-kernel sizes.
Summary, to dig down in directory reported as being biggest:
user@heads-tests:~/heads/build/x86/linux-5.10.5/linux-x230-maximized$ for f in */built-in.a; do size -t $f | tail -1 | sed "s|(TOTALS)|$f|"; done | sort -nr
Detailed view of biggest built-in components and objects linked:
user@heads-tests:~/heads/build/x86/linux-5.10.5/linux-x230-maximized$ size -t $(find ./ -name built-in.a) | tail -n +2 | sort -n -r -k 4|less
Then follow those amazing guides to axe/hammer kernel size:
Axing: https://lwn.net/Articles/746780/
General: https://elinux.org/Kernel_Size_Tuning_Guide
And analyse needs of each module/kernel config option: https://www.kernelconfig.io

u-root module containing bases for using exp/tcz and wget (with only root ca module included)
qemu kernel config includes changes needed to support CGROUPS and
busybox upgraded and config changed to include adduser/addgroup/delgoup/deluser per determist/systems requirements, but still failing
Makefile: adds packing of u-root under initrd if requested
initrd/bin/tinycorePoC: requires manual activation of libraries under u-root module

kexec patch still carries old multiboot patch. Not sure wasa good idea to remove since user could decide to use old default multiboot1 (default is now multiboot2 under kexec 2.0.26 under master)
CircleCI changes revisioning to 4.19 (textual, not changing any behavior)
  • Loading branch information
tlaurion committed May 7, 2023
1 parent 5058c35 commit 7c93680
Show file tree
Hide file tree
Showing 24 changed files with 469 additions and 251 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ include $(CONFIG)

# Unless otherwise specified, we are building for heads
CONFIG_HEADS ?= y
CONFIG_UROOT ?= n

# Unless otherwise specified, we are building bash to have non-interactive shell for scripts (arrays and bashisms)
CONFIG_BASH ?= y
Expand Down Expand Up @@ -529,6 +530,7 @@ initrd-y += $(pwd)/blobs/dev.cpio
initrd-y += $(build)/$(initrd_dir)/modules.cpio
initrd-y += $(build)/$(initrd_dir)/tools.cpio
initrd-$(CONFIG_HEADS) += $(build)/$(initrd_dir)/heads.cpio
initrd-$(CONFIG_UROOT) += $(build)/$(initrd_dir)/u-root.cpio

#$(build)/$(initrd_dir)/.build: $(build)/$(initrd_dir)/initrd.cpio.xz

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ CONFIG_LINUX_CONFIG=config/linux-x230-maximized.config
CONFIG_COREBOOT_CONFIG=config/coreboot-p8z77-m_pro-tpm1.config

export CONFIG_COREBOOT=y
export CONFIG_COREBOOT_VERSION=4.17
export CONFIG_COREBOOT_VERSION=4.19
export CONFIG_LINUX_VERSION=5.10.5

CONFIG_CRYPTSETUP2=y
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#
# TPM can be used with a qemu software TPM (TIS, 2.0).
export CONFIG_COREBOOT=y
export CONFIG_COREBOOT_VERSION=4.13
export CONFIG_COREBOOT_VERSION=4.19
export CONFIG_LINUX_VERSION=5.10.5

#Enable DEBUG output
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# TPM can be used with a qemu software TPM (TIS, 2.0).
export CONFIG_COREBOOT=y
export CONFIG_COREBOOT_VERSION=4.13
export CONFIG_COREBOOT_VERSION=4.19
export CONFIG_LINUX_VERSION=5.10.5

#Enable DEBUG output
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,19 @@ export CONFIG_COREBOOT=y
export CONFIG_COREBOOT_VERSION=4.19
export CONFIG_LINUX_VERSION=5.10.5


#Enable DEBUG output
export CONFIG_DEBUG_OUTPUT=y
export CONFIG_ENABLE_FUNCTION_TRACING_OUTPUT=y

CONFIG_COREBOOT_CONFIG=config/coreboot-qemu-tpm1.config
CONFIG_LINUX_CONFIG=config/linux-qemu.config

ifeq "$(CONFIG_UROOT)" "y"
CONFIG_BUSYBOX=n
else
#Testing
CONFIG_UROOT=y
#CONFIG_TINYCORE_ROOTFS=y
export CONFIG_SYNC_TIME_ON_NETWORK_INIT=n

CONFIG_KEXEC=y
CONFIG_QRENCODE=y
CONFIG_TPMTOTP=y
Expand All @@ -41,8 +44,6 @@ CONFIG_MSRTOOLS=y
CONFIG_NEWT=y
CONFIG_SLANG=y

endif

export CONFIG_LINUX_USB_COMPANION_CONTROLLER=y
CONFIG_LINUX_USB=y
CONFIG_LINUX_E1000=y
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#
# TPM can be used with a qemu software TPM (TIS, 2.0).
export CONFIG_COREBOOT=y
export CONFIG_COREBOOT_VERSION=4.13
export CONFIG_COREBOOT_VERSION=4.19
export CONFIG_LINUX_VERSION=5.10.5

#Enable DEBUG output
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# TPM can be used with a qemu software TPM (TIS, 2.0).
export CONFIG_COREBOOT=y
export CONFIG_COREBOOT_VERSION=4.13
export CONFIG_COREBOOT_VERSION=4.19
export CONFIG_LINUX_VERSION=5.10.5

#Enable DEBUG output
Expand Down
Loading

0 comments on commit 7c93680

Please sign in to comment.