| Summary: | [Yocto 2.2.1] kernel version mismatched when using yocto-bsp to create custom qemu bsp | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] Meta-yocto | Reporter: | Yi Zhao <yi.zhao> | ||||||
| Component: | meta-yocto | Assignee: | Armin Kuster <akuster> | ||||||
| Status: | RESOLVED FIXED | QA Contact: | Yi Zhao <yi.zhao> | ||||||
| Severity: | normal | ||||||||
| Priority: | Medium+ | CC: | akuster, dl9pf, jose.perez.carranza, leonardo.sandoval.gonzalez, poky.bs.watcher, poky.watcher, richard.purdie, yi.zhao | ||||||
| Version: | 2.2.1 | ||||||||
| Target Milestone: | 2.2.2 | ||||||||
| Hardware: | x86 | ||||||||
| OS: | Multiple | ||||||||
| Whiteboard: | |||||||||
| OS type for building Yocto: | --- | Type of Regression: | Regression (Used to work) | ||||||
| Verified: | Documentation change: | No (bug/feature does not impact docs) | |||||||
| Attachments: |
|
||||||||
|
Description
Yi Zhao
2017-02-17 07:15:20 UTC
This issue also happened on 2.3 M3. Git rev: master/6e20b31d5d17133e0fca086e12a0ad06ab5c4cc8 ERROR: linux-yocto-4.8.18+gitAUTOINC+4fb6f24600_03e1ac6e03-r0.8 do_kernel_version_sanity_check: Package Version (4.8.18+gitAUTOINC+4fb6f24600_03e1ac6e03) does not match of kernel being built (4.8.20). Please update the PV variable to match the kernel source or set KERNEL_VERSION_SANITY_SKIP="1" in your recipe. ERROR: linux-yocto-4.8.18+gitAUTOINC+4fb6f24600_03e1ac6e03-r0.8 do_kernel_version_sanity_check: Function failed: do_kernel_version_sanity_check (log file is located at /buildarea/jenkins-yocto/workspace/Yocto2.3-yocto-bsp_create_qemu_bsp/build_1/tmp/work/myqemux86-poky-linux/linux-yocto/4.8.18+gitAUTOINC+4fb6f24600_03e1ac6e03-r0.8/temp/log.do_kernel_version_sanity_check.10335) ERROR: Logfile of failure stored in: /buildarea/jenkins-yocto/workspace/Yocto2.3-yocto-bsp_create_qemu_bsp/build_1/tmp/work/myqemux86-poky-linux/linux-yocto/4.8.18+gitAUTOINC+4fb6f24600_03e1ac6e03-r0.8/temp/log.do_kernel_version_sanity_check.10335 ERROR: Task (/buildarea/jenkins-yocto/poky/meta/recipes-kernel/linux/linux-yocto_4.8.bb:do_kernel_version_sanity_check) failed with exit code '1' If you comment the the following lines on the new BSP, do you get the same result? I ran this on master and worked.
----- snip -----
# replace these SRCREVs with the real commit ids once you've had
# the appropriate changes committed to the upstream linux-yocto repo
SRCREV_machine_pn-linux-yocto_myqemu ?= "${AUTOREV}"
SRCREV_meta_pn-linux-yocto_myqemu ?= "${AUTOREV}"
#LINUX_VERSION = "4.8
----- snip -----
This code is located inside meta-myqemu/recipes-kernel/linux/linux-yocto_4.8.bbappend.
I believe, by default these should be commented, but I need to dig more before proposing this change.
Series sent to review master: https://lists.yoctoproject.org/pipermail/poky/2017-March/010928.html morty: https://lists.yoctoproject.org/pipermail/poky/2017-March/010929.html (In reply to comment #2) > If you comment the the following lines on the new BSP, do you get the same > result? I ran this on master and worked. > > ----- snip ----- > # replace these SRCREVs with the real commit ids once you've had > > # the appropriate changes committed to the upstream linux-yocto repo > > SRCREV_machine_pn-linux-yocto_myqemu ?= "${AUTOREV}" > SRCREV_meta_pn-linux-yocto_myqemu ?= "${AUTOREV}" > #LINUX_VERSION = "4.8 > ----- snip ----- > > This code is located inside > meta-myqemu/recipes-kernel/linux/linux-yocto_4.8.bbappend. > > I believe, by default these should be commented, but I need to dig more > before proposing this change. Hi, I commented the above lines then the test could pass both on master and morty. But I never commented these lines in previous testing and it worked well. Can you confirm that we should comment these lines in testing ? Thanks, Yi (In reply to comment #4) > (In reply to comment #2) > > If you comment the the following lines on the new BSP, do you get the same > > result? I ran this on master and worked. > > > > ----- snip ----- > > # replace these SRCREVs with the real commit ids once you've had > > > > # the appropriate changes committed to the upstream linux-yocto repo > > > > SRCREV_machine_pn-linux-yocto_myqemu ?= "${AUTOREV}" > > SRCREV_meta_pn-linux-yocto_myqemu ?= "${AUTOREV}" > > #LINUX_VERSION = "4.8 > > ----- snip ----- > > > > This code is located inside > > meta-myqemu/recipes-kernel/linux/linux-yocto_4.8.bbappend. > > > > I believe, by default these should be commented, but I need to dig more > > before proposing this change. > > Hi, > > I commented the above lines then the test could pass both on master and > morty. But I never commented these lines in previous testing and it worked > well. > Can you confirm that we should comment these lines in testing ? > > Thanks, > Yi Right, this is not the right approach but helped us to figure out the real problem. I have sent two series, master and morty series, the later needs a v2. Sent a v2 for morty branch https://lists.yoctoproject.org/pipermail/poky/2017-March/010934.html This issue still happens on 2.2.2 rc1 build. Git rev: morty/d05941ae4567def4a288894717e5f550da246107 I think what happened here are the bsp hashes did not get updated when going to 4.8.18. the bsps are still at 4.8.12. (In reply to comment #8) > I think what happened here are the bsp hashes did not get updated when going > to 4.8.18. > > the bsps are still at 4.8.12. Armin, the problem is that the patch (comment 6) has not been merged into morty so problem is still present on morty (not in master). (In reply to comment #9) > (In reply to comment #8) > > I think what happened here are the bsp hashes did not get updated when going > > to 4.8.18. > > > > the bsps are still at 4.8.12. > > Armin, the problem is that the patch (comment 6) has not been merged into > morty so problem is still present on morty (not in master). ok got it now. in akuster/morty-next Thanks Armin! patch merged (poky id cf781e2f9b406075d97d363443eba4a74171a8c0) Yi, can you please test it again? patch is now at the stable branch (2.2.x). Created attachment 3837 [details]
log.do_kernel_version_sanity_check
(In reply to comment #12) > Thanks Armin! > > patch merged (poky id cf781e2f9b406075d97d363443eba4a74171a8c0) > > Yi, can you please test it again? patch is now at the stable branch (2.2.x). Still can NOT work with lastest morty branch (b4cf48ecee9e2c0fd4aad96911aecd1b805cfa5a) : ERROR: linux-yocto-4.8.18+gitAUTOINC+c84532b647_f6329fd287-r0.1 do_kernel_version_sanity_check: Package Version (4.8.18+gitAUTOINC+c84532b647_f6329fd287) does not match of kernel being built (4.8.24). Please update the PV variable to match the kernel source. ERROR: linux-yocto-4.8.18+gitAUTOINC+c84532b647_f6329fd287-r0.1 do_kernel_version_sanity_check: Function failed: do_kernel_version_sanity_check (log file is located at /home/build/poky/build/tmp/work/myqemuarm-poky-linux-gnueabi/linux-yocto/4.8.18+gitAUTOINC+c84532b647_f6329fd287-r0.1/temp/log.do_kernel_version_sanity_check.27224) ERROR: Logfile of failure stored in: /home/build/poky/build/tmp/work/myqemuarm-poky-linux-gnueabi/linux-yocto/4.8.18+gitAUTOINC+c84532b647_f6329fd287-r0.1/temp/log.do_kernel_version_sanity_check.27224 ERROR: Task (/home/build/poky/meta/recipes-kernel/linux/linux-yocto_4.8.bb:do_kernel_version_sanity_check) failed with exit code '1' The full log is attached. (In reply to comment #14) > (In reply to comment #12) > > Thanks Armin! > > > > patch merged (poky id cf781e2f9b406075d97d363443eba4a74171a8c0) > > > > Yi, can you please test it again? patch is now at the stable branch (2.2.x). > > Still can NOT work with lastest morty branch > (b4cf48ecee9e2c0fd4aad96911aecd1b805cfa5a) : > > ERROR: linux-yocto-4.8.18+gitAUTOINC+c84532b647_f6329fd287-r0.1 > do_kernel_version_sanity_check: Package Version > (4.8.18+gitAUTOINC+c84532b647_f6329fd287) does not match of kernel being > built (4.8.24). Please update the PV variable to match the kernel source. > ERROR: linux-yocto-4.8.18+gitAUTOINC+c84532b647_f6329fd287-r0.1 > do_kernel_version_sanity_check: Function failed: > do_kernel_version_sanity_check (log file is located at > /home/build/poky/build/tmp/work/myqemuarm-poky-linux-gnueabi/linux-yocto/4.8. > 18+gitAUTOINC+c84532b647_f6329fd287-r0.1/temp/log. > do_kernel_version_sanity_check.27224) > ERROR: Logfile of failure stored in: > /home/build/poky/build/tmp/work/myqemuarm-poky-linux-gnueabi/linux-yocto/4.8. > 18+gitAUTOINC+c84532b647_f6329fd287-r0.1/temp/log. > do_kernel_version_sanity_check.27224 > ERROR: Task > (/home/build/poky/meta/recipes-kernel/linux/linux-yocto_4.8.bb: > do_kernel_version_sanity_check) failed with exit code '1' > > > The full log is attached. Yi, sorry the for the iteration. Armin, we need the patch from comment 6 to be on morty. Can you help me merging it? It is actually present at master (poky hash e6adeac7aa) but not in morty. (In reply to comment #15) > (In reply to comment #14) > > (In reply to comment #12) > > > Thanks Armin! > > > > > > patch merged (poky id cf781e2f9b406075d97d363443eba4a74171a8c0) > > > > > > Yi, can you please test it again? patch is now at the stable branch (2.2.x). > > > > Still can NOT work with lastest morty branch > > (b4cf48ecee9e2c0fd4aad96911aecd1b805cfa5a) : > > > > ERROR: linux-yocto-4.8.18+gitAUTOINC+c84532b647_f6329fd287-r0.1 > > do_kernel_version_sanity_check: Package Version > > (4.8.18+gitAUTOINC+c84532b647_f6329fd287) does not match of kernel being > > built (4.8.24). Please update the PV variable to match the kernel source. > > ERROR: linux-yocto-4.8.18+gitAUTOINC+c84532b647_f6329fd287-r0.1 > > do_kernel_version_sanity_check: Function failed: > > do_kernel_version_sanity_check (log file is located at > > /home/build/poky/build/tmp/work/myqemuarm-poky-linux-gnueabi/linux-yocto/4.8. > > 18+gitAUTOINC+c84532b647_f6329fd287-r0.1/temp/log. > > do_kernel_version_sanity_check.27224) > > ERROR: Logfile of failure stored in: > > /home/build/poky/build/tmp/work/myqemuarm-poky-linux-gnueabi/linux-yocto/4.8. > > 18+gitAUTOINC+c84532b647_f6329fd287-r0.1/temp/log. > > do_kernel_version_sanity_check.27224 > > ERROR: Task > > (/home/build/poky/meta/recipes-kernel/linux/linux-yocto_4.8.bb: > > do_kernel_version_sanity_check) failed with exit code '1' > > > > > > The full log is attached. > > Yi, sorry the for the iteration. > > Armin, we need the patch from comment 6 to be on morty. Can you help me > merging it? It is actually present at master (poky hash e6adeac7aa) but not > in morty. Answering to myself: patch is on morty-next as mentioned by Armin http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/commit/?h=akuster/morty-next&id=3ce6fdf19a28d25e58a2c353e87dffd753daf67d Sorry for the noise. Armin, once patch land on master, assign this bug to me so I can test it again. by mistake, I set it to needinfo, but the status should be new. got dropped somewhere and is now back in my morty-next. http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/commit/?h=akuster/morty-next&id=3d5c96d6dc25c1d444f0e168070adc9d6a9dddce With 2.2.2 rc2 testing, there is no such issue. This bug can be marked as fixed. |