Skip to content

Raspberry3b+:cp: cannot stat 'arch/arm64/boot/dts/broadcom/*.dtb': No such file or directory #4883

Closed

Description

@tcexeexe

Describe the bug

I follow the guide from https://www.raspberrypi.com/documentation/computers/linux_kernel.html#default_configuration to build the kernel, follow the step

cd linux
KERNEL=kernel8
make bcm2711_defconfig
make -j4 Image modules dtbs
sudo make modules_install

but when l input
sudo cp arch/arm64/boot/dts/broadcom/*.dtb /boot/
an error occurred cannot stat 'arch/arm64/boot/dts/broadcom/*.dtb': No such file or directory

and l affirm that their isn't any .dtb file in arch/arm64/boot/dts/broadcom.

Meanwhile, I notice that the destination of the dtb file is arch/arm/boot/dts/ not the 'arch/arm64/boot/dts'
1644503060(1)

So are there any procedural issues in the official guidelines when compiling 64-bit?

Steps to reproduce the behaviour

0

Device (s)

Raspberry Pi 3 Mod. B+

System

Raspberry Pi reference 2022-01-28
Jan 20 2022 13:58:22
Copyright (c) 2012 Broadcom
version bd88f66f8952d34e4e0613a85c7a6d3da49e13e2 (clean) (release) (start)
Linux raspberrypi 5.10.92-v7+ #1514 SMP Mon Jan 17 17:36:39 GMT 2022 armv7l GNU/Linux

Logs

No response

Additional context

No response

Activity

  1. pelwell commented on Feb 10, 2022

    @pelwell
    Contributor

    You are trying to build a 64-bit kernel from a 32-bit kernel (5.10.92-v7+), and therefore a 32-bit userland. That is not a native build - it's cross-compilation, the steps for which are here: https://www.raspberrypi.com/documentation/computers/linux_kernel.html#cross-compiling-the-kernel

    By the way, I have never tried building a 64-bit kernel on a 32-bit RPiOS - it might work, but I'm not going to guarantee it.

  2. tcexeexe commented on Feb 10, 2022

    @tcexeexe
    Author

    You are trying to build a 64-bit kernel from a 32-bit kernel (5.10.92-v7+), and therefore a 32-bit userland. That is not a native build - it's cross-compilation, the steps for which are here: https://www.raspberrypi.com/documentation/computers/linux_kernel.html#cross-compiling-the-kernel

    By the way, I have never tried building a 64-bit kernel on a 32-bit RPiOS - it might work, but I'm not going to guarantee it.

    I am a beginner, thank you for your guidance!

  3. tcexeexe commented on Feb 10, 2022

    @tcexeexe
    Author

    You are trying to build a 64-bit kernel from a 32-bit kernel (5.10.92-v7+), and therefore a 32-bit userland. That is not a native build - it's cross-compilation, the steps for which are here: https://www.raspberrypi.com/documentation/computers/linux_kernel.html#cross-compiling-the-kernel

    By the way, I have never tried building a 64-bit kernel on a 32-bit RPiOS - it might work, but I'm not going to guarantee it.

    I am a beginner, thank you for your guidance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions