* Re: [meta-freescale] Cannot run "devtool mofidy linux-fslc" in Dunfell branch [not found] <Groupsio.2.8T6j.1596182415784285232.EDu6@lists.yoctoproject.org> @ 2020-10-27 8:24 ` Ks89 2020-10-27 8:46 ` bartvanderlaan 0 siblings, 1 reply; 8+ messages in thread From: Ks89 @ 2020-10-27 8:24 UTC (permalink / raw) To: Stefano Cappa; +Cc: meta-freescale [-- Attachment #1: Type: text/plain, Size: 3165 bytes --] I'm still having the same issue. I cannot run devtool modify linux-fslc. I'm using dunfell with imx6ullevk. Il mar 4 ago 2020, 16:27 Ks89 via lists.yoctoproject.org <stefano.cappa.ks89=gmail.com@lists.yoctoproject.org> ha scritto: > [Edited Message Follows] > [Reason: remove quoted log] > Hi, > If I build my image based on imx6ullevk with linux-fslc everything works > fine, > but when I run "devtool modify linux-fslc" it throws this error: > > NOTE: Executing Tasks > ERROR: Execution of > '/home/myuser/git/dunfell/poky/build/tmp/work/myproduct-poky-linux-gnueabi/linux-fslc/5.4.51+gitAUTOINC+d051c7c9af-r0/devtooltmp-mtebo5r_/temp/run.do_preconfigure.20615' > failed with exit code 2: > /home/myuser/git/dunfell/poky/build/tmp/work/myproduct-poky-linux-gnueabi/linux-fslc/5.4.51+gitAUTOINC+d051c7c9af-r0/devtooltmp-mtebo5r_/temp/run.do_preconfigure.20615: > 120: > /home/myuser/git/dunfell/poky/build/tmp/work/myproduct-poky-linux-gnueabi/linux-fslc/5.4.51+gitAUTOINC+d051c7c9af-r0/devtooltmp-mtebo5r_/temp/run.do_preconfigure.20615: > cannot open > /home/myuser/git/dunfell/poky/build/tmp/work/myproduct-poky-linux-gnueabi/linux-fslc/5.4.51+gitAUTOINC+d051c7c9af-r0/devtooltmp-mtebo5r_/workdir/defconfig: > No such file > WARNING: exit code 2 from a shell command. > > ERROR: Logfile of failure stored in: > /home/myuser/git/dunfell/poky/build/tmp/work/myproduct-poky-linux-gnueabi/linux-fslc/5.4.51+gitAUTOINC+d051c7c9af-r0/devtooltmp-mtebo5r_/temp/log.do_preconfigure.20615 > Log data follows: > | DEBUG: Executing shell function do_preconfigure > | > /home/myuser/git/dunfell/poky/build/tmp/work/myproduct-poky-linux-gnueabi/linux-fslc/5.4.51+gitAUTOINC+d051c7c9af-r0/devtooltmp-mtebo5r_/temp/run.do_preconfigure.20615: > 120: > /home/myuser/git/dunfell/poky/build/tmp/work/myproduct-poky-linux-gnueabi/linux-fslc/5.4.51+gitAUTOINC+d051c7c9af-r0/devtooltmp-mtebo5r_/temp/run.do_preconfigure.20615: > cannot open > /home/myuser/git/dunfell/poky/build/tmp/work/myproduct-poky-linux-gnueabi/linux-fslc/5.4.51+gitAUTOINC+d051c7c9af-r0/devtooltmp-mtebo5r_/workdir/defconfig: > No such file > | WARNING: exit code 2 from a shell command. > | ERROR: Execution of > '/home/myuser/git/dunfell/poky/build/tmp/work/myproduct-poky-linux-gnueabi/linux-fslc/5.4.51+gitAUTOINC+d051c7c9af-r0/devtooltmp-mtebo5r_/temp/run.do_preconfigure.20615' > failed with exit code 2: > | > /home/myuser/git/dunfell/poky/build/tmp/work/myproduct-poky-linux-gnueabi/linux-fslc/5.4.51+gitAUTOINC+d051c7c9af-r0/devtooltmp-mtebo5r_/temp/run.do_preconfigure.20615: > 120: > /home/myuser/git/dunfell/poky/build/tmp/work/myproduct-poky-linux-gnueabi/linux-fslc/5.4.51+gitAUTOINC+d051c7c9af-r0/devtooltmp-mtebo5r_/temp/run.do_preconfigure.20615: > cannot open > /home/myuser/git/dunfell/poky/build/tmp/work/myproduct-poky-linux-gnueabi/linux-fslc/5.4.51+gitAUTOINC+d051c7c9af-r0/devtooltmp-mtebo5r_/workdir/defconfig: > No such file > | WARNING: exit code 2 from a shell command. > | > NOTE: Tasks Summary: Attempted 427 tasks of which 417 didn't need to be > rerun and 1 failed. > ERROR: Extracting source for linux-fslc faile > > [-- Attachment #2: Type: text/html, Size: 3675 bytes --] ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Cannot run "devtool mofidy linux-fslc" in Dunfell branch 2020-10-27 8:24 ` [meta-freescale] Cannot run "devtool mofidy linux-fslc" in Dunfell branch Ks89 @ 2020-10-27 8:46 ` bartvanderlaan 2021-02-15 20:35 ` sam.van.den.berge 0 siblings, 1 reply; 8+ messages in thread From: bartvanderlaan @ 2020-10-27 8:46 UTC (permalink / raw) To: meta-freescale [-- Attachment #1: Type: text/plain, Size: 986 bytes --] Hi, I'm facing the exact same issue. This is the ("same") message after updating to 5.4.72 on poky 3.2 to see if that would resolve the issue. ERROR: Execution of '/home/user/project/build/tmp/work/imx7d_pico-poky-linux-gnueabi/linux-fslc/5.4.72+gitAUTOINC+3bd0fd4e0f-r0/devtooltmp-l63mos0r/temp/run.do_preconfigure.32540' failed with exit code 2: /home/user/project/build/tmp/work/imx7d_pico-poky-linux-gnueabi/linux-fslc/5.4.72+gitAUTOINC+3bd0fd4e0f-r0/devtooltmp-l63mos0r/temp/run.do_preconfigure.32540: 160: /home/user/project/build/tmp/work/imx7d_pico-poky-linux-gnueabi/linux-fslc/5.4.72+gitAUTOINC+3bd0fd4e0f-r0/devtooltmp-l63mos0r/temp/run.do_preconfigure.32540: cannot open /home/user/project/build/tmp/work/imx7d_pico-poky-linux-gnueabi/linux-fslc/5.4.72+gitAUTOINC+3bd0fd4e0f-r0/devtooltmp-l63mos0r/workdir/defconfig: No such file WARNING: exit code 2 from a shell command. Would one of you be so kind to give me some pointers where to start resolving this? Thanks! [-- Attachment #2: Type: text/html, Size: 1010 bytes --] ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Cannot run "devtool mofidy linux-fslc" in Dunfell branch 2020-10-27 8:46 ` bartvanderlaan @ 2021-02-15 20:35 ` sam.van.den.berge 2021-02-15 22:10 ` [meta-freescale] " Andrey Zhizhikin 0 siblings, 1 reply; 8+ messages in thread From: sam.van.den.berge @ 2021-02-15 20:35 UTC (permalink / raw) To: meta-freescale [-- Attachment #1: Type: text/plain, Size: 59 bytes --] I also have the exact same error with linux-fslc 5.10.12. [-- Attachment #2: Type: text/html, Size: 59 bytes --] ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [meta-freescale] Cannot run "devtool mofidy linux-fslc" in Dunfell branch 2021-02-15 20:35 ` sam.van.den.berge @ 2021-02-15 22:10 ` Andrey Zhizhikin 2021-02-16 11:05 ` svdb 0 siblings, 1 reply; 8+ messages in thread From: Andrey Zhizhikin @ 2021-02-15 22:10 UTC (permalink / raw) To: sam.van.den.berge; +Cc: meta-freescale Hello Sam, On Mon, Feb 15, 2021 at 9:35 PM <sam.van.den.berge@gmail.com> wrote: > > I also have the exact same error with linux-fslc 5.10.12. Can you try to change SRCBRANCH in recipes-kernel/linux/linux-fslc_5.10.bb to KBRANCH? I've just tried it out and it should solve the problem. I have a patch for this and made a PR to address the issue, please have a look at https://github.com/Freescale/meta-freescale/pull/652. I would appreciate if you test it locally on your end and report here if that solves your devtool errors. > > -- Regards, Andrey. ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [meta-freescale] Cannot run "devtool mofidy linux-fslc" in Dunfell branch 2021-02-15 22:10 ` [meta-freescale] " Andrey Zhizhikin @ 2021-02-16 11:05 ` svdb 2021-02-16 11:13 ` Andrey Zhizhikin 0 siblings, 1 reply; 8+ messages in thread From: svdb @ 2021-02-16 11:05 UTC (permalink / raw) To: Andrey Zhizhikin; +Cc: meta-freescale On Mon, Feb 15, 2021 at 11:10 PM Andrey Zhizhikin <andrey.z@gmail.com> wrote: > > Hello Sam, > > On Mon, Feb 15, 2021 at 9:35 PM <sam.van.den.berge@gmail.com> wrote: > > > > I also have the exact same error with linux-fslc 5.10.12. > > Can you try to change SRCBRANCH in > recipes-kernel/linux/linux-fslc_5.10.bb to KBRANCH? I've just tried it > out and it should solve the problem. > > I have a patch for this and made a PR to address the issue, please > have a look at https://github.com/Freescale/meta-freescale/pull/652. I > would appreciate if you test it locally on your end and report here if > that solves your devtool errors. Unfortunately it's not solved in my case. Depending on the path that gets executed in devtool/standard.py, I do think your patch does solve the issue in some cases. > > > > > > > > -- > Regards, > Andrey. ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [meta-freescale] Cannot run "devtool mofidy linux-fslc" in Dunfell branch 2021-02-16 11:05 ` svdb @ 2021-02-16 11:13 ` Andrey Zhizhikin 2021-02-16 15:00 ` svdb 0 siblings, 1 reply; 8+ messages in thread From: Andrey Zhizhikin @ 2021-02-16 11:13 UTC (permalink / raw) To: Sam Van Den Berge; +Cc: meta-freescale Hello Sam, On Tue, Feb 16, 2021 at 12:05 PM Sam Van Den Berge <sam.van.den.berge@gmail.com> wrote: > > On Mon, Feb 15, 2021 at 11:10 PM Andrey Zhizhikin <andrey.z@gmail.com> wrote: > > > > Hello Sam, > > > > On Mon, Feb 15, 2021 at 9:35 PM <sam.van.den.berge@gmail.com> wrote: > > > > > > I also have the exact same error with linux-fslc 5.10.12. > > > > Can you try to change SRCBRANCH in > > recipes-kernel/linux/linux-fslc_5.10.bb to KBRANCH? I've just tried it > > out and it should solve the problem. > > > > I have a patch for this and made a PR to address the issue, please > > have a look at https://github.com/Freescale/meta-freescale/pull/652. I > > would appreciate if you test it locally on your end and report here if > > that solves your devtool errors. > > Unfortunately it's not solved in my case. Depending on the path that > gets executed in > devtool/standard.py, I do think your patch does solve the issue in some cases. Since linux-fslc[-imx] recipes are inheriting kernel-yocto class, it is needed that the KBRANCH to be defined as it can be seen in scripts/lib/devtool/standard.py on line 822. Which particular error do you see when you apply the patch from PR? Do you have any appends to the kernel recipe? Which machine are you trying to build and which distro? > > > > > > > > > > > > > > > -- > > Regards, > > Andrey. -- Regards, Andrey. ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [meta-freescale] Cannot run "devtool mofidy linux-fslc" in Dunfell branch 2021-02-16 11:13 ` Andrey Zhizhikin @ 2021-02-16 15:00 ` svdb 2021-02-17 13:50 ` Andrey Zhizhikin 0 siblings, 1 reply; 8+ messages in thread From: svdb @ 2021-02-16 15:00 UTC (permalink / raw) To: Andrey Zhizhikin; +Cc: meta-freescale On Tue, Feb 16, 2021 at 12:13 PM Andrey Zhizhikin <andrey.z@gmail.com> wrote: > > Hello Sam, > > On Tue, Feb 16, 2021 at 12:05 PM Sam Van Den Berge > <sam.van.den.berge@gmail.com> wrote: > > > > On Mon, Feb 15, 2021 at 11:10 PM Andrey Zhizhikin <andrey.z@gmail.com> wrote: > > > > > > Hello Sam, > > > > > > On Mon, Feb 15, 2021 at 9:35 PM <sam.van.den.berge@gmail.com> wrote: > > > > > > > > I also have the exact same error with linux-fslc 5.10.12. > > > > > > Can you try to change SRCBRANCH in > > > recipes-kernel/linux/linux-fslc_5.10.bb to KBRANCH? I've just tried it > > > out and it should solve the problem. > > > > > > I have a patch for this and made a PR to address the issue, please > > > have a look at https://github.com/Freescale/meta-freescale/pull/652. I > > > would appreciate if you test it locally on your end and report here if > > > that solves your devtool errors. > > > > Unfortunately it's not solved in my case. Depending on the path that > > gets executed in > > devtool/standard.py, I do think your patch does solve the issue in some cases. > > Since linux-fslc[-imx] recipes are inheriting kernel-yocto class, it > is needed that the KBRANCH to be defined as it can be seen in > scripts/lib/devtool/standard.py on line 822. > > Which particular error do you see when you apply the patch from PR? > Do you have any appends to the kernel recipe? > Which machine are you trying to build and which distro? > We have one small append to the kernel recipe but it's something with a dts. No additional kernel configs or whatsoever. Machine is imx6q and distro is an internal one. I modified devtool a little bit so that it prints the variables from line 822 and this is what I get: kernelVersion=5.10.12 kbranch=5.10.x+fslc staging_kerVer= staging_kbranch= so in my case the if statement at line 822 is not True. I think this is because we do not clone the git repo but have extracted a tar.gz and we use that as the source. Not sure though... As a result of the False if-statement, _extract_source will be executed. Then at line 607 it will start executing the configure task. At the point the execution reaches the do_preconfigure() from fsl-kernel-localversion.bbclass while the file defconfig is not in ${WORKDIR} but in the ${WORKDIR}/../oe-local-files folder. As a result, the following command in the do_preconfigure() will fail: sed -e "${CONF_SED_SCRIPT}" < '${WORKDIR}/defconfig' >> '${B}/.config' This is the error I get: DEBUG: Executing shell function do_preconfigure ..../linux-fslc/5.10.12+gitAUTOINC+ed3accb10c-r0/devtooltmp-otiy_odb/temp/run.do_preconfigure.3336084: line 160: ...../devtooltmp-otiy_odb/workdir/defconfig: No such file or directory WARNING: ..../devtooltmp-otiy_odb/temp/run.do_preconfigure.3336084:160 exit 1 from 'sed -e "${CONF_SED_SCRIPT}" < ..../devtooltmp-otiy_odb/workdir/defconfig' >> '....devtooltmp-otiy_odb/workdir/build/.config'' The problem really is that devtool copies Non-patch files to an oe-local-files folder, in contrast to just running bitbake which puts both patch and non-patch files in the ${WORKDIR}. > -- > Regards, > Andrey. ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [meta-freescale] Cannot run "devtool mofidy linux-fslc" in Dunfell branch 2021-02-16 15:00 ` svdb @ 2021-02-17 13:50 ` Andrey Zhizhikin 0 siblings, 0 replies; 8+ messages in thread From: Andrey Zhizhikin @ 2021-02-17 13:50 UTC (permalink / raw) To: Sam Van Den Berge; +Cc: meta-freescale Hello Sam, On Tue, Feb 16, 2021 at 4:00 PM Sam Van Den Berge <sam.van.den.berge@gmail.com> wrote: > > On Tue, Feb 16, 2021 at 12:13 PM Andrey Zhizhikin <andrey.z@gmail.com> wrote: > > > > Hello Sam, > > > > On Tue, Feb 16, 2021 at 12:05 PM Sam Van Den Berge > > <sam.van.den.berge@gmail.com> wrote: > > > > > > On Mon, Feb 15, 2021 at 11:10 PM Andrey Zhizhikin <andrey.z@gmail.com> wrote: > > > > > > > > Hello Sam, > > > > > > > > On Mon, Feb 15, 2021 at 9:35 PM <sam.van.den.berge@gmail.com> wrote: > > > > > > > > > > I also have the exact same error with linux-fslc 5.10.12. > > > > > > > > Can you try to change SRCBRANCH in > > > > recipes-kernel/linux/linux-fslc_5.10.bb to KBRANCH? I've just tried it > > > > out and it should solve the problem. > > > > > > > > I have a patch for this and made a PR to address the issue, please > > > > have a look at https://github.com/Freescale/meta-freescale/pull/652. I > > > > would appreciate if you test it locally on your end and report here if > > > > that solves your devtool errors. > > > > > > Unfortunately it's not solved in my case. Depending on the path that > > > gets executed in > > > devtool/standard.py, I do think your patch does solve the issue in some cases. > > > > Since linux-fslc[-imx] recipes are inheriting kernel-yocto class, it > > is needed that the KBRANCH to be defined as it can be seen in > > scripts/lib/devtool/standard.py on line 822. > > > > Which particular error do you see when you apply the patch from PR? > > Do you have any appends to the kernel recipe? > > Which machine are you trying to build and which distro? > > > > We have one small append to the kernel recipe but it's something with a dts. No > additional kernel configs or whatsoever. Machine is imx6q and distro > is an internal one. > > I modified devtool a little bit so that it prints the variables from > line 822 and this is > what I get: > > kernelVersion=5.10.12 > kbranch=5.10.x+fslc > staging_kerVer= > staging_kbranch= > > so in my case the if statement at line 822 is not True. I think this > is because we > do not clone the git repo but have extracted a tar.gz and we use that > as the source. > Not sure though... Can you try to use linux-fslc from the git repository instead of tarball? If it is proven to be working - then the problem might be in the implementation of devtool itself and should be taken upstream for further investigations. > > As a result of the False if-statement, _extract_source will be executed. > Then at line 607 it will start executing the configure task. At the > point the execution > reaches the do_preconfigure() from fsl-kernel-localversion.bbclass > while the file > defconfig is not in ${WORKDIR} but in the ${WORKDIR}/../oe-local-files folder. > As a result, the following command in the do_preconfigure() will fail: > > sed -e "${CONF_SED_SCRIPT}" < '${WORKDIR}/defconfig' >> '${B}/.config' > > This is the error I get: > DEBUG: Executing shell function do_preconfigure > ..../linux-fslc/5.10.12+gitAUTOINC+ed3accb10c-r0/devtooltmp-otiy_odb/temp/run.do_preconfigure.3336084: > line 160: ...../devtooltmp-otiy_odb/workdir/defconfig: No such file or directory > WARNING: ..../devtooltmp-otiy_odb/temp/run.do_preconfigure.3336084:160 > exit 1 from > 'sed -e "${CONF_SED_SCRIPT}" < > ..../devtooltmp-otiy_odb/workdir/defconfig' >> > '....devtooltmp-otiy_odb/workdir/build/.config'' > > The problem really is that devtool copies Non-patch files to an > oe-local-files folder, > in contrast to just running bitbake which puts both patch and > non-patch files in the > ${WORKDIR}. > > > -- > > Regards, > > Andrey. -- Regards, Andrey. ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2021-02-17 13:50 UTC | newest] Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- [not found] <Groupsio.2.8T6j.1596182415784285232.EDu6@lists.yoctoproject.org> 2020-10-27 8:24 ` [meta-freescale] Cannot run "devtool mofidy linux-fslc" in Dunfell branch Ks89 2020-10-27 8:46 ` bartvanderlaan 2021-02-15 20:35 ` sam.van.den.berge 2021-02-15 22:10 ` [meta-freescale] " Andrey Zhizhikin 2021-02-16 11:05 ` svdb 2021-02-16 11:13 ` Andrey Zhizhikin 2021-02-16 15:00 ` svdb 2021-02-17 13:50 ` Andrey Zhizhikin
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.