Comments

ARM64 – Pi3 Success – Almost.. — 2 Comments

  1. Hi Robert.
    At first I’d like to thank you for writing this blog. It’s very interesting.
    Recently I also bought a Raspberry Pi3 and Odroid-C2.
    At the moment I try to compile a running kernel for the Raspberry Pi3 in aarch64,
    but always fail. It does not only seem to be a hardware issue,because my kernels fail to boot in qemu-system-aarch64 as well, while the kernel included in the debian image you mentioned above boots at both of them Rpi and qemu. Because I could not get the debian kernel to work with an nfs-root, I try to make my own kernel. I tried to use the /proc/kernel/config.gz from the debian image , copied it to the “anholt” tree. used “make oldconfig” but still the kernel does not boot up. (no more messages after u-boot says “booting kernel”.) I also tried Fedora23 aarch64 kernel configs with “anholt” and a stock 4.6.2 but failed. Could you provide me a config file e.g. for you “anholt” kernel and tell me which commands you use for compiling? I tried cross-compiling on Fedora 23 x86_64 with “make all modules -j -l7 ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu-” as well as compiling on a odroid-c2 but always fail. Feels like back in the 90s when I started compiling my first x86 kernels.

    Thanks in advance,
    Chris.

    • The Odroid C2 still lacks mmc support in the ‘mainline’ kernel, although it is in the (patched) u-boot.
      I have not had much success with the 64-bit patched kernels for the Pi3 (see latest article).. So..I don’t yet have a working config for either..
      I usually use this sort of workflow (for cross-compiling)

      export ARCH=arm64
      export CROSS_COMPILE=aarch64-linux-gnu-
      export INSTALL_PATH=../
      export INSTALL_MOD_PATH=../ << install locally, in ../boot and ../lib) make defconfig make xconfig make -j4 Image make dtbs make -j4 modules make modules_install make firmware_install - then copy across the kernel Image and xxxx.dtb files, etc... RG.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.