Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Boot2Qt on raspberry pi 0 wifi
Forum Updated to NodeBB v4.3 + New Features

Boot2Qt on raspberry pi 0 wifi

Scheduled Pinned Locked Moved Solved Mobile and Embedded
8 Posts 3 Posters 2.5k Views 1 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.
  • D Offline
    D Offline
    davidino
    wrote on last edited by davidino
    #1

    Goodmorning to all,
    I write you since I have correctly used boot2qt for crosscompile qt for raspberry pi 3, but I don't find raspberry pi zero among the available MACHINE.
    Can you suggest me the needed modification for including raspberry pi 0 wifi board?
    Thank you.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Not a direct answer but you should compare the various raspberry pi mkspecs and their corresponding devices. Then you might be able to deduce what modifications you may have to make.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • Cleiton BuenoC Offline
        Cleiton BuenoC Offline
        Cleiton Bueno
        wrote on last edited by
        #3

        Hi,
        use meta-raspberry support, you can add machine raspberrypi0-wifi.conf to your meta-layer
        https://git.yoctoproject.org/cgit/cgit.cgi/meta-raspberrypi/tree/conf/machine?h=rocko


        Cleiton Bueno

        Blog | Linkedin | B2Open

        1 Reply Last reply
        2
        • D Offline
          D Offline
          davidino
          wrote on last edited by
          #4

          Hello to all, thank you for your answer.
          Looking in the meta-boot2qt folders I found that there is already the file indicated, in meta-boot2qt/sources/meta-raspberrypi/conf/machine/raspberrypi0-wifi.conf.

          Instead in the folder meta-boot2qt/meta-boot2qt-distro/conf/distro/include, there are listed all the supported boards and I added a file named raspberrypi0-wifi.conf ( exact copy of raspberrypi.conf of the same folder), but unsuccessfully; when I export MACHINE=raspberrypi0-wifi.conf the MACHINE is not recognize.

          When you say to add raspberrypi0-wifi.conf, in which folder do you mean to add it?
          Thank you.

          Cleiton BuenoC 1 Reply Last reply
          0
          • D davidino

            Hello to all, thank you for your answer.
            Looking in the meta-boot2qt folders I found that there is already the file indicated, in meta-boot2qt/sources/meta-raspberrypi/conf/machine/raspberrypi0-wifi.conf.

            Instead in the folder meta-boot2qt/meta-boot2qt-distro/conf/distro/include, there are listed all the supported boards and I added a file named raspberrypi0-wifi.conf ( exact copy of raspberrypi.conf of the same folder), but unsuccessfully; when I export MACHINE=raspberrypi0-wifi.conf the MACHINE is not recognize.

            When you say to add raspberrypi0-wifi.conf, in which folder do you mean to add it?
            Thank you.

            Cleiton BuenoC Offline
            Cleiton BuenoC Offline
            Cleiton Bueno
            wrote on last edited by
            #5

            @davidino said in Boot2Qt on raspberry pi 0 wifi:

            export MACHINE=raspberrypi0-wifi.conf

            If the file already exists you do not need to add it again.

            Try this:
            export MACHINE=raspberrypi0-wifi


            Cleiton Bueno

            Blog | Linkedin | B2Open

            1 Reply Last reply
            1
            • D Offline
              D Offline
              davidino
              wrote on last edited by davidino
              #6

              Hello Cleiton Bueno,
              thank you for your message. I miswrote the export MACHINE command, copying and paste. I always do write export MACHINE=raspberrypi0-wifi. In figure 1, the command sequence that I use:

              0_1527186410297_Schermata del 2018-05-24 20-16-55.png

              The content of meta-boot2qt/meta-boot2qt-distro/conf/distro/include is shown on picture2.
              0_1527186331075_Schermata del 2018-05-24 20-18-42.png

              The content of meta-boot2qt/sources/meta-raspberrypi/conf/machine/ is shown in figure3.0_1527186552537_Schermata del 2018-05-24 20-24-59.png

              Today I modified the script source-environment,sh adding raspberrypi0-wifi as follow, and the result changes a little:

                  ;;
                  raspberrypi0|raspberrypi0-wifi|raspberrypi|raspberrypi2|raspberrypi3)
                    LAYERSCONF="bblayers.conf.rpi.sample"
                  ;;
              

              and I get the following errors:
              0_1527187601014_Schermata del 2018-05-24 20-45-11.png

              How that Qt staff didn't provide a tutorial for adding custom boards to their repository?
              Have you got any ideas?
              Thank you for your attention.

              1 Reply Last reply
              0
              • Cleiton BuenoC Offline
                Cleiton BuenoC Offline
                Cleiton Bueno
                wrote on last edited by
                #7

                Why not use raspberrypi0, it's practically the same.

                Look at meta-raspberrypi, raspberrypi0-wifi.conf is the merging of raspberrypi0.conf with raspberrypi.conf

                https://git.yoctoproject.org/cgit.cgi/meta-raspberrypi/tree/conf/machine?h=rocko

                So use raspberrypi0 and customize the packages you need for WiFi as well as device-tree.


                Cleiton Bueno

                Blog | Linkedin | B2Open

                1 Reply Last reply
                1
                • D Offline
                  D Offline
                  davidino
                  wrote on last edited by
                  #8

                  Hello,
                  I think that the problem has been as follow:

                  • As suggested by @Cleiton-Bueno, inside meta-boot2qt/meta-boot2qt-distro/conf/distro/include, I've made a copy of raspberrypi0.conf, renaming it as raspberrypi0-wifi.

                  • Modify source-environment.sh and b2qt-init-build-env scripts, adding raspberrypi0-wifi among the available machine.

                  • Remove the package VALGRIND from the recipe packagegroup-b2qt-embedded-tools.bb contained in the folder /home/davide/meta-boot2qt/meta-boot2qt-distro/recipes-core/packagegroups**
                    Reading in internet, I found out that valgrind package is not compatible with both raspberrypi1, raspberrypi0, raspberrypi0-wifi.

                  After that, it worked correctly.
                  Thank you for your support.

                  1 Reply Last reply
                  0

                  • Login

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Groups
                  • Search
                  • Get Qt Extensions
                  • Unsolved