Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions Documentation/arch/arm64/apple-j813.rst
Original file line number Diff line number Diff line change
Expand Up @@ -116,13 +116,12 @@ Build
On an arm64 Linux build host with the usual kernel build dependencies::

out="$PWD/../j813-build"
make ARCH=arm64 O="$out" \
KCONFIG_ALLCONFIG=arch/arm64/configs/j813.config allnoconfig
make ARCH=arm64 O="$out" -j"$(nproc)" W=1 Image apple/t8142-j813.dtb
make ARCH=arm64 LLVM=1 O="$out" aurora_defconfig
make ARCH=arm64 LLVM=1 O="$out" -j"$(nproc)" W=1 Image modules apple/t8142-j813.dtb

The fragment does not enable KVM or storage drivers. Add
``CROSS_COMPILE=aarch64-linux-gnu-`` to both commands when
cross-compiling with GCC from another architecture.
``aurora_defconfig`` is the configuration every supported Mac uses. Many
drivers are modules, so a RAM-only initramfs must carry the ones it needs
(for a display and keyboard: the DCP and dockchannel HID modules).

With dtschema installed, check the affected bindings and DTB::

Expand Down
6 changes: 6 additions & 0 deletions arch/arm64/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,12 @@ PHONY += virtconfig
virtconfig:
$(call merge_into_defconfig_override,defconfig,virt)

# The one configuration for every supported Apple silicon Mac: the generic
# distribution base with the Apple hardware fragment merged over it.
PHONY += aurora_defconfig
aurora_defconfig:
$(call merge_into_defconfig,aurora-base.config,asahi)

define archhelp
echo '* Image.gz - Compressed kernel image (arch/$(ARCH)/boot/Image.gz)'
echo ' Image - Uncompressed kernel image (arch/$(ARCH)/boot/Image)'
Expand Down
3 changes: 3 additions & 0 deletions arch/arm64/configs/asahi.config
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,9 @@ CONFIG_NVMEM_APPLE_EFUSES=m
CONFIG_NVMEM_APPLE_SPMI=y
CONFIG_MUX_APPLE_DPXBAR=m
CONFIG_TYPEC_TPS6598X=m
# usb/tipd/<port>/command in debugfs (root only): tuxvdmtool and
# macvdmtool send Apple VDMs (reboot, DFU, serial) to a Mac on the port.
CONFIG_TYPEC_TPS6598X_DEBUG_COMMANDS=y
CONFIG_RESET_APPLE_CIO=y
CONFIG_INFINIBAND=m
CONFIG_INFINIBAND_USER_ACCESS=m
Expand Down
Loading
Loading