1 2 Previous Next 22 Replies Latest reply: Apr 22, 2012 9:54 PM by SimonB RSS

    compile linux for blackfin 548

    AlexNikitin

      Hi!

      I'am trying to compile linux for blackfin 548 with this document  http://docs.blackfin.uclinux.org/doku.php?id=quick-start:bf537-stamp, but receive many errors

       

      ln: creating symbolic link `config.arch' to `vendors/AnalogDevices/BF548-EZKIT/config.arch': Function not implemented
      config/setconfig: line 236: ARCH: command not found
      Makefile:412: /mnt/disk1/linux-2.6.x/arch//Makefile: No such file or directory
      make[2]: *** No rule to make target `/mnt/disk1/linux-2.6.x/arch//Makefile'.  Stop.
      make[1]: *** [oldconfig_linux] Error 2
      make[1]: *** [dep] Error 1
      make: *** [AnalogDevices/BF548-EZKIT_default] Error 2

      I see is not compile because script don't see the ARCH, and cant get Makefile for blackfin. Why?

      Can anybody help me?

        • 1. Re: compile linux for blackfin 548
          MarkBishop

          try 'make distclean' before you try and configure/build the kernel.

          • 2. Re: compile linux for blackfin 548
            AlexNikitin

            Hi. Thank for your answer. But I try to 'make distclean' and 'make clean' many-many times. And nothing change

             

            I'am try 'make AnalogDevices/BF548-EZKIT_default' but still has same error

            • 3. Re: compile linux for blackfin 548
              Aaronwu

              please run make bugreport and attache the generated bugreport.tar.gz

              • 4. Re: compile linux for blackfin 548
                AlexNikitin

                This is bugreport

                • 5. Re: compile linux for blackfin 548
                  Aaronwu

                  Please have the blackfin linux toolchain (and maybe packages on host also) set up properly first, some information in:

                  http://docs.blackfin.uclinux.org/doku.php?id=toolchain:installing

                  http://docs.blackfin.uclinux.org/doku.php?id=installing_linux

                  • 6. Re: compile linux for blackfin 548
                    AlexNikitin

                    Hmm. I installing toolchain (2008) from disk with EZKIT - has error.

                    Then I install toolchain (2011) from blackfin.linux.org - has same error/

                    Then I try install by 'sudo apt-get install blackfin-toolchain-uclinux'

                     

                    but has error

                    Reading package lists...

                    Building dependency tree...

                    Suggested packages:

                      blackfin-toolchain-elf

                    The following NEW packages will be installed:

                      blackfin-toolchain-uclinux

                    0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.

                    Need to get 0B/69.6MB of archives.

                    After unpacking 223MB of additional disk space will be used.

                    (Reading database ... 33321 files and directories currently installed.)

                    Unpacking blackfin-toolchain-uclinux (from .../blackfin-toolchain-uclinux_2010R1-rc4_i386.deb) ...

                     

                    dpkg: error processing /var/cache/apt/archives/blackfin-toolchain-uclinux_2010R1-rc4_i386.deb (--unpack):

                    trying to overwrite `/opt/uClinux/bfin-uclinux/info/stabs.info', which is also in package blackfin-toolchain

                    dpkg-deb: subprocess paste killed by signal (Broken pipe)

                    Errors were encountered while processing:

                    /var/cache/apt/archives/blackfin-toolchain-uclinux_2010R1-rc4_i386.deb

                    E: Sub-process /usr/bin/dpkg returned an error code (1)

                     

                    maybe this toolchain is older version?

                    • 7. Re: compile linux for blackfin 548
                      Aaronwu

                      If I were you I would try the pre-built binaries released on the website, the toolchain version should match your target distribution version, now we usually recommend customer to use 2011R1 release.

                      • 8. Re: compile linux for blackfin 548
                        AlexNikitin

                        I remove all toolchains and install new by "sudo apt-get install blackfin-toolchain-uclinux blackfin-toolchain-linux-uclibc". But has errors

                         

                        In '/mnt/windows' is located 'blackfin-linux-dist'

                         

                        And then i try 'make AnalogDevices/BF548-EZKIT_default'. And have this log:

                         

                        find vendors -mindepth 2 '(' -name .svn -prune ')' -o -type f -name Kconfig -print | sed 's:^:source ../:' > vendors/Kconfig

                        config/mkconfig > Kconfig

                        make AnalogDevices/BF548-EZKIT_defconfig

                        make[1]: Entering directory `/mnt/windows'

                        find vendors -mindepth 2 '(' -name .svn -prune ')' -o -type f -name Kconfig -print | sed 's:^:source ../:' > vendors/Kconfig

                        config/mkconfig > Kconfig

                        make clean > /dev/null 2>&1

                        cp vendors/AnalogDevices/BF548-EZKIT/config.device .config

                        chmod u+x config/setconfig

                        yes "" | config/setconfig defaults

                         

                         

                         

                         

                        *********************** NOTICE ****************************

                        There is no preset config for linux-2.6.x on platform AnalogDevices/BF548-EZKIT.

                        If you choose to continue you will have to setup a linux

                        config from scratch which is a very complex task.

                        You will find it easier if you can copy a config.linux-2.6.x

                        from another platform that is similar.

                         

                        If you know what you are doing press <ENTER> otherwise

                        Type ^C to abort.

                        make[2]: Entering directory `/mnt/windows'

                        KCONFIG_NOTIMESTAMP=1 make ARCH= CROSS_COMPILE= -C linux-2.6.x oldconfig

                        make[3]: Entering directory `/mnt/windows/linux-2.6.x'

                        make[3]: Leaving directory `/mnt/windows/linux-2.6.x'

                        make[2]: Leaving directory `/mnt/windows'

                        config/setconfig final

                        #make dep

                        make[1]: Leaving directory `/mnt/windows'

                        make

                        make[1]: Entering directory `/mnt/windows'

                        make -C tools/sg-cksum

                        make[2]: Entering directory `/mnt/windows/tools/sg-cksum'

                        make[2]: `cksum' is up to date.

                        make[2]: Leaving directory `/mnt/windows/tools/sg-cksum'

                        ln -sf /mnt/windows/tools/sg-cksum/cksum tools/cksum

                        make[1]: Leaving directory `/mnt/windows'

                         

                        ln: creating symbolic link `config.arch' to `vendors/AnalogDevices/BF548-EZKIT/config.arch': Function not implemented

                        Makefile:484: /mnt/windows/linux-2.6.x/arch//Makefile: No such file or directory

                        make[3]: *** No rule to make target `/mnt/windows/linux-2.6.x/arch//Makefile'.  Stop.

                        make[2]: *** [linux_oldconfig] Error 2

                        ln: creating symbolic link `tools/cksum' to `/mnt/windows/tools/sg-cksum/cksum': Function not implemented

                        make[1]: *** [tools/cksum] Error 1

                        make: *** [AnalogDevices/BF548-EZKIT_default] Error 2

                        • 9. Re: compile linux for blackfin 548
                          James.Kosin

                          Question:

                          Are you trying to compile on a mounting point to a Windows partition?

                          • 10. Re: compile linux for blackfin 548
                            AlexNikitin

                            I'am using coLinux. In my coLinux cofs0 mounting to /mnt/windows, in settings file adi.conf I set cofs0=E:\blackfin-linux-dist-2011R1-RC3\ (the directory with unpacked linux dist). I think error not here?

                            • 11. Re: compile linux for blackfin 548
                              Aaronwu

                              Recommend you strongly to move to the Linux environment for develop, other than the colinux on Windows, actually we have long no effort on mainting the coLinux. Thanks.

                              • 12. Re: compile linux for blackfin 548
                                AlexNikitin

                                Hmm. Then why CD with EZKIT contain coLinux?

                                • 13. Re: compile linux for blackfin 548
                                  sonic

                                  The CD is for 2008R1 release, which is obsolete.

                                  Now we only support 2011R1 release, which doesn’t include colinux.

                                  • 14. Re: compile linux for blackfin 548
                                    AlexNikitin

                                    But I'am trying to compile 2008 release too, and has errors.

                                    1 2 Previous Next