Re: [yocto] SRCREV Issue for custom linux kernel
On 2015-04-15 1:38 AM, Raghavendra Kakarla wrote: Hi Bruce, My recipe is like following: # oe-core kernel classes to apply a subset of yocto kernel # management to git managed kernel repositories. # # Warning: # # Building this kernel without providing a defconfig or BSP # configuration will result in build or boot errors. This is not a # bug. # # Notes: # # patches: patches can be merged into to the source git tree itself, #added via the SRC_URI, or controlled via a BSP #configuration. # # example configuration addition: #SRC_URI += file://smp.cfg # example patch addition: #SRC_URI += file://0001-linux-version-tweak.patch # example feature addition: #SRC_URI += file://feature.scc # inherit kernel require recipes-kernel/linux/linux-yocto.inc SRC_URI = svn://192.168.24.190:9090/svn/trunk/code/kernels;module=linux-3.10.14;protocol=http;user=admin;pswd=Welcome123 I don't have a SVN server with the linux kernel handy, so I wasn't able to test this exact same configuration. But I can say a similar git configuration to kernel.org, or to a tgz worked when I tried a test build. Looking through the code more .. this is simply a case that isn't common or anticipated. The mixing of the SVN SRCREV and the linux-yocto-custom means that the code that follows is looking to manipulate the tree as a git repository. Can you look at your linux source directory in the build, and see if the SVN checkout has been converted to a git repo ? If so, the workaround would be to set SRCREV_machine = AUTOREV, and that should short circuit the SRCREV validation that simply won't be correct for a converted git tree. Alternatively, you can also create an override to do_validate_branches and stub out the functionality completely. Bruce SRC_URI += file://defconfig SRC_URI += file://arqlyn.scc \ file://arqlyn.cfg \ file://arqlyn-user-config.cfg \ file://arqlyn-user-patches.scc \ LINUX_VERSION ?= 3.10.14 LINUX_VERSION_EXTENSION ?= -custom SRCREV = 94 PR = r0 PV = ${LINUX_VERSION} S = ${WORKDIR}/linux-3.10.14 COMPATIBLE_MACHINE_arqlyn = arqlyn Regards, Raghavendra From: Bruce Ashfield bruce.ashfi...@windriver.com Sent: Tuesday, April 14, 2015 5:36 PM To: Raghavendra Kakarla; yocto@yoctoproject.org Subject: Re: [yocto] SRCREV Issue for custom linux kernel On 2015-04-14 6:48 AM, Raghavendra Kakarla wrote: Hi All, I got the an error while i am checking out the linux kernel from the SVN to build in the YOCTO project environment. What release is this ? master ? An older release ? And are you seeing this same error if you have a kernel recipe that builds from git ? i.e. one of the Yocto reference boards with a similar SRCREV ? The yocto kernel's expect to be able to validate the commits and then modify the tree with additional git commands, so the tree is either in git format, or is converted to a git format (in the case of a tgz) .. so it could be that the SVN checkout is preventing that conversion from happening. Bruce Could please help me in resolving the Issue. Error log is: Log data follows: | DEBUG: Executing shell function do_validate_branches | NOTE: custom recipe is being built, forcing SRCREV to INVALID | NOTE: SRCREV validation skipped for AUTOREV or empty meta branch | fatal: ambiguous argument 'INVALID': unknown revision or path not in the working tree. | Use '--' to separate paths from revisions | WARNING: exit code 128 from a shell command. | ERROR: Function failed: do_validate_branches (log file is located at /home/testuser/poky/build/tmp/work/dhruva-poky-linux/linux-yocto-custom/3.10.14-r0/temp/log.do_validate_branches.6852) Thanks in advance. Regards, Raghavendra K. From: yocto-boun...@yoctoproject.org yocto-boun...@yoctoproject.org on behalf of yocto-requ...@yoctoproject.org yocto-requ...@yoctoproject.org Sent: Tuesday, April 14, 2015 2:50 PM To: yocto@yoctoproject.org Subject: yocto Digest, Vol 55, Issue 46 Send yocto mailing list submissions to yocto@yoctoproject.org To subscribe or unsubscribe via the World Wide Web, visit https://lists.yoctoproject.org/listinfo/yocto or, via email, send a message with subject or body 'help' to yocto-requ...@yoctoproject.org You can reach the person managing the list at yocto-ow...@yoctoproject.org When replying, please edit your Subject line so it is more specific than Re: Contents of yocto digest... Today's Topics: 1. Re: yocto Digest, Vol 53, Issue 97 (Raghavendra Kakarla) -- Message: 1 Date: Tue, 14 Apr 2015 09:20:38 + From: Raghavendra Kakarla raghavendra.kaka...@inedasystems.com To: yocto@yoctoproject.org yocto@yoctoproject.org Subject: Re: [yocto] yocto Digest, Vol 53, Issue 97 Message-ID: 1429003199394.19
Re: [yocto] SRCREV Issue for custom linux kernel
Hi Bruce, Thank you for your reply. I modified the do_validate_sources function in kernel_yocto.bbclasses and now it is working. This issue is resolved now. I have another issue with the package building. While I am trying to build a package which is not present in open embedded git source i got the oe_runmake errors. I wrote a recipe for that package by following the commands given by the yocto project manual. Could help me in resolving this. Thanks in advance. Regards, Raghavendra K. From: Bruce Ashfield bruce.ashfi...@windriver.com Sent: Friday, April 17, 2015 10:04 AM To: Raghavendra Kakarla; yocto@yoctoproject.org Subject: Re: [yocto] SRCREV Issue for custom linux kernel On 2015-04-15 1:38 AM, Raghavendra Kakarla wrote: Hi Bruce, My recipe is like following: # oe-core kernel classes to apply a subset of yocto kernel # management to git managed kernel repositories. # # Warning: # # Building this kernel without providing a defconfig or BSP # configuration will result in build or boot errors. This is not a # bug. # # Notes: # # patches: patches can be merged into to the source git tree itself, #added via the SRC_URI, or controlled via a BSP #configuration. # # example configuration addition: #SRC_URI += file://smp.cfg # example patch addition: #SRC_URI += file://0001-linux-version-tweak.patch # example feature addition: #SRC_URI += file://feature.scc # inherit kernel require recipes-kernel/linux/linux-yocto.inc SRC_URI = svn://192.168.24.190:9090/svn/trunk/code/kernels;module=linux-3.10.14;protocol=http;user=admin;pswd=Welcome123 I don't have a SVN server with the linux kernel handy, so I wasn't able to test this exact same configuration. But I can say a similar git configuration to kernel.org, or to a tgz worked when I tried a test build. Looking through the code more .. this is simply a case that isn't common or anticipated. The mixing of the SVN SRCREV and the linux-yocto-custom means that the code that follows is looking to manipulate the tree as a git repository. Can you look at your linux source directory in the build, and see if the SVN checkout has been converted to a git repo ? If so, the workaround would be to set SRCREV_machine = AUTOREV, and that should short circuit the SRCREV validation that simply won't be correct for a converted git tree. Alternatively, you can also create an override to do_validate_branches and stub out the functionality completely. Bruce SRC_URI += file://defconfig SRC_URI += file://arqlyn.scc \ file://arqlyn.cfg \ file://arqlyn-user-config.cfg \ file://arqlyn-user-patches.scc \ LINUX_VERSION ?= 3.10.14 LINUX_VERSION_EXTENSION ?= -custom SRCREV = 94 PR = r0 PV = ${LINUX_VERSION} S = ${WORKDIR}/linux-3.10.14 COMPATIBLE_MACHINE_arqlyn = arqlyn Regards, Raghavendra From: Bruce Ashfield bruce.ashfi...@windriver.com Sent: Tuesday, April 14, 2015 5:36 PM To: Raghavendra Kakarla; yocto@yoctoproject.org Subject: Re: [yocto] SRCREV Issue for custom linux kernel On 2015-04-14 6:48 AM, Raghavendra Kakarla wrote: Hi All, I got the an error while i am checking out the linux kernel from the SVN to build in the YOCTO project environment. What release is this ? master ? An older release ? And are you seeing this same error if you have a kernel recipe that builds from git ? i.e. one of the Yocto reference boards with a similar SRCREV ? The yocto kernel's expect to be able to validate the commits and then modify the tree with additional git commands, so the tree is either in git format, or is converted to a git format (in the case of a tgz) .. so it could be that the SVN checkout is preventing that conversion from happening. Bruce Could please help me in resolving the Issue. Error log is: Log data follows: | DEBUG: Executing shell function do_validate_branches | NOTE: custom recipe is being built, forcing SRCREV to INVALID | NOTE: SRCREV validation skipped for AUTOREV or empty meta branch | fatal: ambiguous argument 'INVALID': unknown revision or path not in the working tree. | Use '--' to separate paths from revisions | WARNING: exit code 128 from a shell command. | ERROR: Function failed: do_validate_branches (log file is located at /home/testuser/poky/build/tmp/work/dhruva-poky-linux/linux-yocto-custom/3.10.14-r0/temp/log.do_validate_branches.6852) Thanks in advance. Regards, Raghavendra K. From: yocto-boun...@yoctoproject.org yocto-boun...@yoctoproject.org on behalf of yocto-requ...@yoctoproject.org yocto-requ...@yoctoproject.org Sent: Tuesday, April 14, 2015 2:50 PM To: yocto@yoctoproject.org Subject: yocto Digest, Vol 55, Issue 46 Send yocto mailing list submissions to yocto
Re: [yocto] SRCREV Issue for custom linux kernel
On 2015-04-14 6:48 AM, Raghavendra Kakarla wrote: Hi All, I got the an error while i am checking out the linux kernel from the SVN to build in the YOCTO project environment. What release is this ? master ? An older release ? And are you seeing this same error if you have a kernel recipe that builds from git ? i.e. one of the Yocto reference boards with a similar SRCREV ? The yocto kernel's expect to be able to validate the commits and then modify the tree with additional git commands, so the tree is either in git format, or is converted to a git format (in the case of a tgz) .. so it could be that the SVN checkout is preventing that conversion from happening. Bruce Could please help me in resolving the Issue. Error log is: Log data follows: | DEBUG: Executing shell function do_validate_branches | NOTE: custom recipe is being built, forcing SRCREV to INVALID | NOTE: SRCREV validation skipped for AUTOREV or empty meta branch | fatal: ambiguous argument 'INVALID': unknown revision or path not in the working tree. | Use '--' to separate paths from revisions | WARNING: exit code 128 from a shell command. | ERROR: Function failed: do_validate_branches (log file is located at /home/testuser/poky/build/tmp/work/dhruva-poky-linux/linux-yocto-custom/3.10.14-r0/temp/log.do_validate_branches.6852) Thanks in advance. Regards, Raghavendra K. From: yocto-boun...@yoctoproject.org yocto-boun...@yoctoproject.org on behalf of yocto-requ...@yoctoproject.org yocto-requ...@yoctoproject.org Sent: Tuesday, April 14, 2015 2:50 PM To: yocto@yoctoproject.org Subject: yocto Digest, Vol 55, Issue 46 Send yocto mailing list submissions to yocto@yoctoproject.org To subscribe or unsubscribe via the World Wide Web, visit https://lists.yoctoproject.org/listinfo/yocto or, via email, send a message with subject or body 'help' to yocto-requ...@yoctoproject.org You can reach the person managing the list at yocto-ow...@yoctoproject.org When replying, please edit your Subject line so it is more specific than Re: Contents of yocto digest... Today's Topics: 1. Re: yocto Digest, Vol 53, Issue 97 (Raghavendra Kakarla) -- Message: 1 Date: Tue, 14 Apr 2015 09:20:38 + From: Raghavendra Kakarla raghavendra.kaka...@inedasystems.com To: yocto@yoctoproject.org yocto@yoctoproject.org Subject: Re: [yocto] yocto Digest, Vol 53, Issue 97 Message-ID: 1429003199394.19...@inedasystems.com Content-Type: text/plain; charset=iso-8859-1 Hi All, When I take kernel from the SVN I got the validation error that SRCREV is not proper. Could you please help me in resolving this issue. Thanks in advance. Regards, Raghavendra. From: yocto-boun...@yoctoproject.org yocto-boun...@yoctoproject.org on behalf of yocto-requ...@yoctoproject.org yocto-requ...@yoctoproject.org Sent: Saturday, February 21, 2015 4:04 AM To: yocto@yoctoproject.org Subject: yocto Digest, Vol 53, Issue 97 Send yocto mailing list submissions to yocto@yoctoproject.org To subscribe or unsubscribe via the World Wide Web, visit https://lists.yoctoproject.org/listinfo/yocto or, via email, send a message with subject or body 'help' to yocto-requ...@yoctoproject.org You can reach the person managing the list at yocto-ow...@yoctoproject.org When replying, please edit your Subject line so it is more specific than Re: Contents of yocto digest... Today's Topics: 1. Re: Simple recipe quit working in dizzy (akuster) -- Message: 1 Date: Fri, 20 Feb 2015 14:28:10 -0800 From: akuster akus...@mvista.com To: yocto@yoctoproject.org Subject: Re: [yocto] Simple recipe quit working in dizzy Message-ID: 54e7b4fa@mvista.com Content-Type: text/plain; charset=windows-1252; format=flowed On 02/20/2015 09:49 AM, Jim Rafert wrote: Hi Paul, Thank you for taking an interest in this. I looked at the log.do_rootfs, and didn't see anything that was immediately suspicious. I have inlined the log at the end of my reply, here. I don't see how such a simple recipe could be broken by a Yocto bug, and not have the whole thing be massively broken. Is it possible for you to try your recipe on 'master'? that might tell use if something is missing in dizzy. - Armin -Jim- cat ./core-image-full-cmdline/1.0-r0/temp/log.do_rootfs DEBUG: Executing python function rootfs_process_ignore DEBUG: Python function rootfs_process_ignore finished DEBUG: Executing python function rootfs_runtime_mapping DEBUG: Python function rootfs_runtime_mapping finished DEBUG: Executing python function do_rootfs NOTE: configuring RPM platform settings NOTE: configuring RPM system provides NOTE: configuring RPM DB settings NOTE: configuring Smart settings NOTE: Note: adding Smart channel spectra_ls (35) NOTE: Note:
Re: [yocto] SRCREV Issue for custom linux kernel
Hi Bruce, My recipe is like following: # oe-core kernel classes to apply a subset of yocto kernel # management to git managed kernel repositories. # # Warning: # # Building this kernel without providing a defconfig or BSP # configuration will result in build or boot errors. This is not a # bug. # # Notes: # # patches: patches can be merged into to the source git tree itself, #added via the SRC_URI, or controlled via a BSP #configuration. # # example configuration addition: #SRC_URI += file://smp.cfg # example patch addition: #SRC_URI += file://0001-linux-version-tweak.patch # example feature addition: #SRC_URI += file://feature.scc # inherit kernel require recipes-kernel/linux/linux-yocto.inc SRC_URI = svn://192.168.24.190:9090/svn/trunk/code/kernels;module=linux-3.10.14;protocol=http;user=admin;pswd=Welcome123 SRC_URI += file://defconfig SRC_URI += file://arqlyn.scc \ file://arqlyn.cfg \ file://arqlyn-user-config.cfg \ file://arqlyn-user-patches.scc \ LINUX_VERSION ?= 3.10.14 LINUX_VERSION_EXTENSION ?= -custom SRCREV = 94 PR = r0 PV = ${LINUX_VERSION} S = ${WORKDIR}/linux-3.10.14 COMPATIBLE_MACHINE_arqlyn = arqlyn Regards, Raghavendra From: Bruce Ashfield bruce.ashfi...@windriver.com Sent: Tuesday, April 14, 2015 5:36 PM To: Raghavendra Kakarla; yocto@yoctoproject.org Subject: Re: [yocto] SRCREV Issue for custom linux kernel On 2015-04-14 6:48 AM, Raghavendra Kakarla wrote: Hi All, I got the an error while i am checking out the linux kernel from the SVN to build in the YOCTO project environment. What release is this ? master ? An older release ? And are you seeing this same error if you have a kernel recipe that builds from git ? i.e. one of the Yocto reference boards with a similar SRCREV ? The yocto kernel's expect to be able to validate the commits and then modify the tree with additional git commands, so the tree is either in git format, or is converted to a git format (in the case of a tgz) .. so it could be that the SVN checkout is preventing that conversion from happening. Bruce Could please help me in resolving the Issue. Error log is: Log data follows: | DEBUG: Executing shell function do_validate_branches | NOTE: custom recipe is being built, forcing SRCREV to INVALID | NOTE: SRCREV validation skipped for AUTOREV or empty meta branch | fatal: ambiguous argument 'INVALID': unknown revision or path not in the working tree. | Use '--' to separate paths from revisions | WARNING: exit code 128 from a shell command. | ERROR: Function failed: do_validate_branches (log file is located at /home/testuser/poky/build/tmp/work/dhruva-poky-linux/linux-yocto-custom/3.10.14-r0/temp/log.do_validate_branches.6852) Thanks in advance. Regards, Raghavendra K. From: yocto-boun...@yoctoproject.org yocto-boun...@yoctoproject.org on behalf of yocto-requ...@yoctoproject.org yocto-requ...@yoctoproject.org Sent: Tuesday, April 14, 2015 2:50 PM To: yocto@yoctoproject.org Subject: yocto Digest, Vol 55, Issue 46 Send yocto mailing list submissions to yocto@yoctoproject.org To subscribe or unsubscribe via the World Wide Web, visit https://lists.yoctoproject.org/listinfo/yocto or, via email, send a message with subject or body 'help' to yocto-requ...@yoctoproject.org You can reach the person managing the list at yocto-ow...@yoctoproject.org When replying, please edit your Subject line so it is more specific than Re: Contents of yocto digest... Today's Topics: 1. Re: yocto Digest, Vol 53, Issue 97 (Raghavendra Kakarla) -- Message: 1 Date: Tue, 14 Apr 2015 09:20:38 + From: Raghavendra Kakarla raghavendra.kaka...@inedasystems.com To: yocto@yoctoproject.org yocto@yoctoproject.org Subject: Re: [yocto] yocto Digest, Vol 53, Issue 97 Message-ID: 1429003199394.19...@inedasystems.com Content-Type: text/plain; charset=iso-8859-1 Hi All, When I take kernel from the SVN I got the validation error that SRCREV is not proper. Could you please help me in resolving this issue. Thanks in advance. Regards, Raghavendra. From: yocto-boun...@yoctoproject.org yocto-boun...@yoctoproject.org on behalf of yocto-requ...@yoctoproject.org yocto-requ...@yoctoproject.org Sent: Saturday, February 21, 2015 4:04 AM To: yocto@yoctoproject.org Subject: yocto Digest, Vol 53, Issue 97 Send yocto mailing list submissions to yocto@yoctoproject.org To subscribe or unsubscribe via the World Wide Web, visit https://lists.yoctoproject.org/listinfo/yocto or, via email, send a message with subject or body 'help' to yocto-requ...@yoctoproject.org You can reach the person
Re: [yocto] SRCREV Issue for custom linux kernel
Hi Bruce, I downloaded the yocto from the following link: git clone -b dizzy git://git.yoctoproject.org/poky.git And added the my custom recipe for downloading our custom kernel from SVN. This gives the error. Regards, Raghavendra. From: Bruce Ashfield bruce.ashfi...@windriver.com Sent: Tuesday, April 14, 2015 5:36 PM To: Raghavendra Kakarla; yocto@yoctoproject.org Subject: Re: [yocto] SRCREV Issue for custom linux kernel On 2015-04-14 6:48 AM, Raghavendra Kakarla wrote: Hi All, I got the an error while i am checking out the linux kernel from the SVN to build in the YOCTO project environment. What release is this ? master ? An older release ? And are you seeing this same error if you have a kernel recipe that builds from git ? i.e. one of the Yocto reference boards with a similar SRCREV ? The yocto kernel's expect to be able to validate the commits and then modify the tree with additional git commands, so the tree is either in git format, or is converted to a git format (in the case of a tgz) .. so it could be that the SVN checkout is preventing that conversion from happening. Bruce Could please help me in resolving the Issue. Error log is: Log data follows: | DEBUG: Executing shell function do_validate_branches | NOTE: custom recipe is being built, forcing SRCREV to INVALID | NOTE: SRCREV validation skipped for AUTOREV or empty meta branch | fatal: ambiguous argument 'INVALID': unknown revision or path not in the working tree. | Use '--' to separate paths from revisions | WARNING: exit code 128 from a shell command. | ERROR: Function failed: do_validate_branches (log file is located at /home/testuser/poky/build/tmp/work/dhruva-poky-linux/linux-yocto-custom/3.10.14-r0/temp/log.do_validate_branches.6852) Thanks in advance. Regards, Raghavendra K. From: yocto-boun...@yoctoproject.org yocto-boun...@yoctoproject.org on behalf of yocto-requ...@yoctoproject.org yocto-requ...@yoctoproject.org Sent: Tuesday, April 14, 2015 2:50 PM To: yocto@yoctoproject.org Subject: yocto Digest, Vol 55, Issue 46 Send yocto mailing list submissions to yocto@yoctoproject.org To subscribe or unsubscribe via the World Wide Web, visit https://lists.yoctoproject.org/listinfo/yocto or, via email, send a message with subject or body 'help' to yocto-requ...@yoctoproject.org You can reach the person managing the list at yocto-ow...@yoctoproject.org When replying, please edit your Subject line so it is more specific than Re: Contents of yocto digest... Today's Topics: 1. Re: yocto Digest, Vol 53, Issue 97 (Raghavendra Kakarla) -- Message: 1 Date: Tue, 14 Apr 2015 09:20:38 + From: Raghavendra Kakarla raghavendra.kaka...@inedasystems.com To: yocto@yoctoproject.org yocto@yoctoproject.org Subject: Re: [yocto] yocto Digest, Vol 53, Issue 97 Message-ID: 1429003199394.19...@inedasystems.com Content-Type: text/plain; charset=iso-8859-1 Hi All, When I take kernel from the SVN I got the validation error that SRCREV is not proper. Could you please help me in resolving this issue. Thanks in advance. Regards, Raghavendra. From: yocto-boun...@yoctoproject.org yocto-boun...@yoctoproject.org on behalf of yocto-requ...@yoctoproject.org yocto-requ...@yoctoproject.org Sent: Saturday, February 21, 2015 4:04 AM To: yocto@yoctoproject.org Subject: yocto Digest, Vol 53, Issue 97 Send yocto mailing list submissions to yocto@yoctoproject.org To subscribe or unsubscribe via the World Wide Web, visit https://lists.yoctoproject.org/listinfo/yocto or, via email, send a message with subject or body 'help' to yocto-requ...@yoctoproject.org You can reach the person managing the list at yocto-ow...@yoctoproject.org When replying, please edit your Subject line so it is more specific than Re: Contents of yocto digest... Today's Topics: 1. Re: Simple recipe quit working in dizzy (akuster) -- Message: 1 Date: Fri, 20 Feb 2015 14:28:10 -0800 From: akuster akus...@mvista.com To: yocto@yoctoproject.org Subject: Re: [yocto] Simple recipe quit working in dizzy Message-ID: 54e7b4fa@mvista.com Content-Type: text/plain; charset=windows-1252; format=flowed On 02/20/2015 09:49 AM, Jim Rafert wrote: Hi Paul, Thank you for taking an interest in this. I looked at the log.do_rootfs, and didn't see anything that was immediately suspicious. I have inlined the log at the end of my reply, here. I don't see how such a simple recipe could be broken by a Yocto bug, and not have the whole thing be massively broken. Is it possible for you to try your recipe on 'master'? that might tell use if something