Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Troubleshooting
  3. Compile on arm64 Raspi 3

Compile on arm64 Raspi 3

Scheduled Pinned Locked Moved Troubleshooting
5 Posts 2 Posters 933 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    moses
    wrote on last edited by
    #1

    Hi there,
    wanted to compile on a Raspi with arm64 but it thows errors at make:

    /home/moses/MySensors# ./configure --my-transport=rf24 --my-gateway=ethernet --my-port=5003
    [SECTION] Detecting target machine.
      [OK] machine detected: SoC=BCM2837, Type=rpi3, CPU=aarch64.
    [SECTION] Detecting SPI driver.
      [OK] SPI driver detected:BCM.
    [SECTION] Gateway configuration.
      [OK] Type: ethernet.
      [OK] Transport: rf24.
      [OK] Signing: Disabled.
      [OK] Encryption: Disabled.
      [OK] CPPFLAGS: -march=armv8-a+crc -mtune=cortex-a53 -mfpu=neon-fp-armv8 -mfloat-abi=hard -DMY_RADIO_RF24 -DMY_GATEWAY_LINUX -DMY_DEBUG -DLINUX_SPI_BCM -DLINUX_ARCH_RASPBERRYPI -DMY_PORT=5003
      [OK] CXXFLAGS:  -std=c++11
    [SECTION] Detecting init system.
      [OK] Init system detected: systemd.
    [SECTION] Saving configuration.
      [OK] Saved.
    [SECTION] Cleaning previous builds.
      [OK] Finished.
    root@raspberrypi:/home/moses/MySensors# make
    gcc -MT build/hal/architecture/Linux/drivers/core/config.o -MMD -MP -march=armv8-a+crc -mtune=cortex-a53 -mfpu=neon-fp-armv8 -mfloat-abi=hard -DMY_RADIO_RF24 -DMY_GATEWAY_LINUX -DMY_DEBUG -DLINUX_SPI_BCM -DLINUX_ARCH_RASPBERRYPI -DMY_PORT=5003  -Ofast -g -Wall -Wextra  -I. -I./core -I./hal/architecture/Linux/drivers/core -I./hal/architecture/Linux/drivers/BCM -c hal/architecture/Linux/drivers/core/config.c -o build/hal/architecture/Linux/drivers/core/config.o
    gcc: error: unrecognized command-line option ‘-mfpu=neon-fp-armv8’
    gcc: error: unrecognized command-line option ‘-mfloat-abi=hard’
    make: *** [Makefile:103: build/hal/architecture/Linux/drivers/core/config.o] Fehler 1
    

    Does it simple not work and i have to use 32bit OS or is there a way around? Would like to use the raspi just as Ethernetgateway for HASS. Didn't find a similar Info on the net so maybe its not popular to install it on raspberry and even less on 64bit?

    System Info:

    moses@raspberrypi:~ $ cat /proc/cpuinfo | grep Model && uname -a
    Model           : Raspberry Pi 3 Model B Rev 1.2
    Linux raspberrypi 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr  3 17:24:16 BST 2023 aarch64 GNU/Linux
    

    Thanks!

    monteM 1 Reply Last reply
    0
    • M moses

      Hi there,
      wanted to compile on a Raspi with arm64 but it thows errors at make:

      /home/moses/MySensors# ./configure --my-transport=rf24 --my-gateway=ethernet --my-port=5003
      [SECTION] Detecting target machine.
        [OK] machine detected: SoC=BCM2837, Type=rpi3, CPU=aarch64.
      [SECTION] Detecting SPI driver.
        [OK] SPI driver detected:BCM.
      [SECTION] Gateway configuration.
        [OK] Type: ethernet.
        [OK] Transport: rf24.
        [OK] Signing: Disabled.
        [OK] Encryption: Disabled.
        [OK] CPPFLAGS: -march=armv8-a+crc -mtune=cortex-a53 -mfpu=neon-fp-armv8 -mfloat-abi=hard -DMY_RADIO_RF24 -DMY_GATEWAY_LINUX -DMY_DEBUG -DLINUX_SPI_BCM -DLINUX_ARCH_RASPBERRYPI -DMY_PORT=5003
        [OK] CXXFLAGS:  -std=c++11
      [SECTION] Detecting init system.
        [OK] Init system detected: systemd.
      [SECTION] Saving configuration.
        [OK] Saved.
      [SECTION] Cleaning previous builds.
        [OK] Finished.
      root@raspberrypi:/home/moses/MySensors# make
      gcc -MT build/hal/architecture/Linux/drivers/core/config.o -MMD -MP -march=armv8-a+crc -mtune=cortex-a53 -mfpu=neon-fp-armv8 -mfloat-abi=hard -DMY_RADIO_RF24 -DMY_GATEWAY_LINUX -DMY_DEBUG -DLINUX_SPI_BCM -DLINUX_ARCH_RASPBERRYPI -DMY_PORT=5003  -Ofast -g -Wall -Wextra  -I. -I./core -I./hal/architecture/Linux/drivers/core -I./hal/architecture/Linux/drivers/BCM -c hal/architecture/Linux/drivers/core/config.c -o build/hal/architecture/Linux/drivers/core/config.o
      gcc: error: unrecognized command-line option ‘-mfpu=neon-fp-armv8’
      gcc: error: unrecognized command-line option ‘-mfloat-abi=hard’
      make: *** [Makefile:103: build/hal/architecture/Linux/drivers/core/config.o] Fehler 1
      

      Does it simple not work and i have to use 32bit OS or is there a way around? Would like to use the raspi just as Ethernetgateway for HASS. Didn't find a similar Info on the net so maybe its not popular to install it on raspberry and even less on 64bit?

      System Info:

      moses@raspberrypi:~ $ cat /proc/cpuinfo | grep Model && uname -a
      Model           : Raspberry Pi 3 Model B Rev 1.2
      Linux raspberrypi 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr  3 17:24:16 BST 2023 aarch64 GNU/Linux
      

      Thanks!

      monteM Online
      monteM Online
      monte
      wrote on last edited by monte
      #2

      @moses said in Compile on arm64 Raspi 3:

      unrecognized command-line option ‘-mfpu=neon-fp-armv8’
      unrecognized command-line option ‘-mfloat-abi=hard’

      Try removing those flags from make file, apparently they are not needed for arm64.

      1 Reply Last reply
      0
      • M Offline
        M Offline
        moses
        wrote on last edited by
        #3

        Thanks @monte - how can i do that? Think I google the wrong term...

        monteM 1 Reply Last reply
        0
        • M moses

          Thanks @monte - how can i do that? Think I google the wrong term...

          monteM Online
          monteM Online
          monte
          wrote on last edited by monte
          #4

          @moses https://github.com/mysensors/MySensors/blob/b9d9cc339659f724aa94d4108fc5289a720d1bcd/configure#L266
          This is where you edit it. Just delete -mfpu=neon-fp-armv8 -mfloat-abi=hard and do

          make clean
          ./configure
          

          I'm not sure this will work, but I did compile mysensors for aarch64, just for another board and SoC.

          M 1 Reply Last reply
          1
          • monteM monte

            @moses https://github.com/mysensors/MySensors/blob/b9d9cc339659f724aa94d4108fc5289a720d1bcd/configure#L266
            This is where you edit it. Just delete -mfpu=neon-fp-armv8 -mfloat-abi=hard and do

            make clean
            ./configure
            

            I'm not sure this will work, but I did compile mysensors for aarch64, just for another board and SoC.

            M Offline
            M Offline
            moses
            wrote on last edited by
            #5

            @monte thanks, did it!

            1 Reply Last reply
            2

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            16

            Online

            12.0k

            Users

            11.2k

            Topics

            113.4k

            Posts


            Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • MySensors
            • OpenHardware.io
            • Categories
            • Recent
            • Tags
            • Popular