bitbake not producing a zImage file












0















I've been running a Yocto build in bitbake for a few days, but I've noticed it sometimes stops producing the zImage file of my kernel. Most of the changes I'm making are to the kernel config, and the machine.conf file. when this happens, I still get updated tar.gz files with each build, but the zImage stops being updated. Running the do_clean, do_cleanall and do_cleansstate tasks do not help, and neither does deleting the old zImage file from build/tmp/deploy. The only thing that helps is deleting the entire pocky/build/tmp directory and rebuilding the entire project from scratch. Here is my current machine.conf file:



#@TYPE: Machine 
#@Name: EMAC, Inc. SoM-9G45M Module
#@DESCRIPTION: Machine.inc configuration for the SoM-9G45M board with a at91sam9g45 processor

TARGET_ARCH = "arm"

PREFERRED_PROVIDER_virtual/kernel = "linux-2.6.30-at91-emac"
PREFERRED_PROVIDER_xserver = "xserver-kdrive"
KERNEL_IMAGETYPE = "zImage"
KERNEL_EXTRA_ARGS = "LOADADDR=0x74000000"

#don't try to access tty1
USE_VT = "0"
MACHINE_FEATURES = "kernel26 apm alsa ext2 usbhost usbgadget"
KERNEL_DEVICETREE = "at91som9g45.dtb"

# used by sysvinit_2
#SERIAL_CONSOLE = "115200 ttyS1"
SERIAL_CONSOLE = "115200 ttyS0"
#SERIAL_CONSOLES = "115200;ttyS0 115200;ttyS1"
#SYSLINUX_DEFAULT_CONSOLE = "console=ttyS0"
#SYSLINUX_SERIAL = "0 115200"
#SYSLINUX_SERIAL_TTY = "console=ttyS0,115200"
#EXTRA_IMAGECMD_jffs2 = "--pad=0xA00000 --little-endian --eraseblock=0x20000"

# NAND
MKUBIFS_ARGS = " -e 129024 -c 2047 -m 2048 -x lzo"
UBINIZE_ARGS = " -m 2048 -p 128KiB -s 512"

UBI_VOLNAME = "rootfs"

UBOOT_MACHINE = "${MACHINE}_nandflash_config"
UBOOT_ENTRYPOINT = "0x74000000"
UBOOT_LOADADDRESS = "0x74000000"

require include/at91sam9.inc


What can cause a bitbake build to stop producing the specified kernel image, and how do I fix it?










share|improve this question

























  • Did you tried bitbake -c cleansstate linux-2.6.30-at91-emac and compile either the whole image or kernel alone bitbake linux-2.6.30-at91-emac? Usually this should work.

    – Parthiban
    Nov 13 '18 at 20:16











  • That ended up being most of the solution. The linux-2.6.30-at91-emac value ended up being incorrect and I never spotted it since I had copied that file form elsewhere.

    – Smurph269
    Nov 13 '18 at 20:51
















0















I've been running a Yocto build in bitbake for a few days, but I've noticed it sometimes stops producing the zImage file of my kernel. Most of the changes I'm making are to the kernel config, and the machine.conf file. when this happens, I still get updated tar.gz files with each build, but the zImage stops being updated. Running the do_clean, do_cleanall and do_cleansstate tasks do not help, and neither does deleting the old zImage file from build/tmp/deploy. The only thing that helps is deleting the entire pocky/build/tmp directory and rebuilding the entire project from scratch. Here is my current machine.conf file:



#@TYPE: Machine 
#@Name: EMAC, Inc. SoM-9G45M Module
#@DESCRIPTION: Machine.inc configuration for the SoM-9G45M board with a at91sam9g45 processor

TARGET_ARCH = "arm"

PREFERRED_PROVIDER_virtual/kernel = "linux-2.6.30-at91-emac"
PREFERRED_PROVIDER_xserver = "xserver-kdrive"
KERNEL_IMAGETYPE = "zImage"
KERNEL_EXTRA_ARGS = "LOADADDR=0x74000000"

#don't try to access tty1
USE_VT = "0"
MACHINE_FEATURES = "kernel26 apm alsa ext2 usbhost usbgadget"
KERNEL_DEVICETREE = "at91som9g45.dtb"

# used by sysvinit_2
#SERIAL_CONSOLE = "115200 ttyS1"
SERIAL_CONSOLE = "115200 ttyS0"
#SERIAL_CONSOLES = "115200;ttyS0 115200;ttyS1"
#SYSLINUX_DEFAULT_CONSOLE = "console=ttyS0"
#SYSLINUX_SERIAL = "0 115200"
#SYSLINUX_SERIAL_TTY = "console=ttyS0,115200"
#EXTRA_IMAGECMD_jffs2 = "--pad=0xA00000 --little-endian --eraseblock=0x20000"

# NAND
MKUBIFS_ARGS = " -e 129024 -c 2047 -m 2048 -x lzo"
UBINIZE_ARGS = " -m 2048 -p 128KiB -s 512"

UBI_VOLNAME = "rootfs"

UBOOT_MACHINE = "${MACHINE}_nandflash_config"
UBOOT_ENTRYPOINT = "0x74000000"
UBOOT_LOADADDRESS = "0x74000000"

require include/at91sam9.inc


What can cause a bitbake build to stop producing the specified kernel image, and how do I fix it?










share|improve this question

























  • Did you tried bitbake -c cleansstate linux-2.6.30-at91-emac and compile either the whole image or kernel alone bitbake linux-2.6.30-at91-emac? Usually this should work.

    – Parthiban
    Nov 13 '18 at 20:16











  • That ended up being most of the solution. The linux-2.6.30-at91-emac value ended up being incorrect and I never spotted it since I had copied that file form elsewhere.

    – Smurph269
    Nov 13 '18 at 20:51














0












0








0








I've been running a Yocto build in bitbake for a few days, but I've noticed it sometimes stops producing the zImage file of my kernel. Most of the changes I'm making are to the kernel config, and the machine.conf file. when this happens, I still get updated tar.gz files with each build, but the zImage stops being updated. Running the do_clean, do_cleanall and do_cleansstate tasks do not help, and neither does deleting the old zImage file from build/tmp/deploy. The only thing that helps is deleting the entire pocky/build/tmp directory and rebuilding the entire project from scratch. Here is my current machine.conf file:



#@TYPE: Machine 
#@Name: EMAC, Inc. SoM-9G45M Module
#@DESCRIPTION: Machine.inc configuration for the SoM-9G45M board with a at91sam9g45 processor

TARGET_ARCH = "arm"

PREFERRED_PROVIDER_virtual/kernel = "linux-2.6.30-at91-emac"
PREFERRED_PROVIDER_xserver = "xserver-kdrive"
KERNEL_IMAGETYPE = "zImage"
KERNEL_EXTRA_ARGS = "LOADADDR=0x74000000"

#don't try to access tty1
USE_VT = "0"
MACHINE_FEATURES = "kernel26 apm alsa ext2 usbhost usbgadget"
KERNEL_DEVICETREE = "at91som9g45.dtb"

# used by sysvinit_2
#SERIAL_CONSOLE = "115200 ttyS1"
SERIAL_CONSOLE = "115200 ttyS0"
#SERIAL_CONSOLES = "115200;ttyS0 115200;ttyS1"
#SYSLINUX_DEFAULT_CONSOLE = "console=ttyS0"
#SYSLINUX_SERIAL = "0 115200"
#SYSLINUX_SERIAL_TTY = "console=ttyS0,115200"
#EXTRA_IMAGECMD_jffs2 = "--pad=0xA00000 --little-endian --eraseblock=0x20000"

# NAND
MKUBIFS_ARGS = " -e 129024 -c 2047 -m 2048 -x lzo"
UBINIZE_ARGS = " -m 2048 -p 128KiB -s 512"

UBI_VOLNAME = "rootfs"

UBOOT_MACHINE = "${MACHINE}_nandflash_config"
UBOOT_ENTRYPOINT = "0x74000000"
UBOOT_LOADADDRESS = "0x74000000"

require include/at91sam9.inc


What can cause a bitbake build to stop producing the specified kernel image, and how do I fix it?










share|improve this question
















I've been running a Yocto build in bitbake for a few days, but I've noticed it sometimes stops producing the zImage file of my kernel. Most of the changes I'm making are to the kernel config, and the machine.conf file. when this happens, I still get updated tar.gz files with each build, but the zImage stops being updated. Running the do_clean, do_cleanall and do_cleansstate tasks do not help, and neither does deleting the old zImage file from build/tmp/deploy. The only thing that helps is deleting the entire pocky/build/tmp directory and rebuilding the entire project from scratch. Here is my current machine.conf file:



#@TYPE: Machine 
#@Name: EMAC, Inc. SoM-9G45M Module
#@DESCRIPTION: Machine.inc configuration for the SoM-9G45M board with a at91sam9g45 processor

TARGET_ARCH = "arm"

PREFERRED_PROVIDER_virtual/kernel = "linux-2.6.30-at91-emac"
PREFERRED_PROVIDER_xserver = "xserver-kdrive"
KERNEL_IMAGETYPE = "zImage"
KERNEL_EXTRA_ARGS = "LOADADDR=0x74000000"

#don't try to access tty1
USE_VT = "0"
MACHINE_FEATURES = "kernel26 apm alsa ext2 usbhost usbgadget"
KERNEL_DEVICETREE = "at91som9g45.dtb"

# used by sysvinit_2
#SERIAL_CONSOLE = "115200 ttyS1"
SERIAL_CONSOLE = "115200 ttyS0"
#SERIAL_CONSOLES = "115200;ttyS0 115200;ttyS1"
#SYSLINUX_DEFAULT_CONSOLE = "console=ttyS0"
#SYSLINUX_SERIAL = "0 115200"
#SYSLINUX_SERIAL_TTY = "console=ttyS0,115200"
#EXTRA_IMAGECMD_jffs2 = "--pad=0xA00000 --little-endian --eraseblock=0x20000"

# NAND
MKUBIFS_ARGS = " -e 129024 -c 2047 -m 2048 -x lzo"
UBINIZE_ARGS = " -m 2048 -p 128KiB -s 512"

UBI_VOLNAME = "rootfs"

UBOOT_MACHINE = "${MACHINE}_nandflash_config"
UBOOT_ENTRYPOINT = "0x74000000"
UBOOT_LOADADDRESS = "0x74000000"

require include/at91sam9.inc


What can cause a bitbake build to stop producing the specified kernel image, and how do I fix it?







embedded-linux yocto bitbake






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 16 '18 at 13:38







Smurph269

















asked Nov 13 '18 at 18:51









Smurph269Smurph269

34




34













  • Did you tried bitbake -c cleansstate linux-2.6.30-at91-emac and compile either the whole image or kernel alone bitbake linux-2.6.30-at91-emac? Usually this should work.

    – Parthiban
    Nov 13 '18 at 20:16











  • That ended up being most of the solution. The linux-2.6.30-at91-emac value ended up being incorrect and I never spotted it since I had copied that file form elsewhere.

    – Smurph269
    Nov 13 '18 at 20:51



















  • Did you tried bitbake -c cleansstate linux-2.6.30-at91-emac and compile either the whole image or kernel alone bitbake linux-2.6.30-at91-emac? Usually this should work.

    – Parthiban
    Nov 13 '18 at 20:16











  • That ended up being most of the solution. The linux-2.6.30-at91-emac value ended up being incorrect and I never spotted it since I had copied that file form elsewhere.

    – Smurph269
    Nov 13 '18 at 20:51

















Did you tried bitbake -c cleansstate linux-2.6.30-at91-emac and compile either the whole image or kernel alone bitbake linux-2.6.30-at91-emac? Usually this should work.

– Parthiban
Nov 13 '18 at 20:16





Did you tried bitbake -c cleansstate linux-2.6.30-at91-emac and compile either the whole image or kernel alone bitbake linux-2.6.30-at91-emac? Usually this should work.

– Parthiban
Nov 13 '18 at 20:16













That ended up being most of the solution. The linux-2.6.30-at91-emac value ended up being incorrect and I never spotted it since I had copied that file form elsewhere.

– Smurph269
Nov 13 '18 at 20:51





That ended up being most of the solution. The linux-2.6.30-at91-emac value ended up being incorrect and I never spotted it since I had copied that file form elsewhere.

– Smurph269
Nov 13 '18 at 20:51












1 Answer
1






active

oldest

votes


















0














The answer ended up having two parts.



First, running bitbake -c do_cleansstate linux-at91 and then bitbake core-image-sato successfully regenerated the zImage file.



Second, linux-2.6.30-at91-emac was incorrect since my kerenl was just called linux-at91. So my kernel build was likely only being run when I ran builds for other machines.



So my full image build wasn't rebuilding the kernel because I had referenced a different kernel. Once I fixed that, the kernel build would start running again. I'm not sure how I got a zImage in the first place, or why bitbake never threw an error after being told to build a kernel that didn't exist.






share|improve this answer
























  • Did you try set KERNEL_IMAGETYPE = "zImage"?

    – Tomas Novotny
    Nov 16 '18 at 13:28













  • Just saw that, fixed it. I had been trying both uImage and zImage to get any kind of kernel image.

    – Smurph269
    Nov 16 '18 at 13:39











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53287708%2fbitbake-not-producing-a-zimage-file%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














The answer ended up having two parts.



First, running bitbake -c do_cleansstate linux-at91 and then bitbake core-image-sato successfully regenerated the zImage file.



Second, linux-2.6.30-at91-emac was incorrect since my kerenl was just called linux-at91. So my kernel build was likely only being run when I ran builds for other machines.



So my full image build wasn't rebuilding the kernel because I had referenced a different kernel. Once I fixed that, the kernel build would start running again. I'm not sure how I got a zImage in the first place, or why bitbake never threw an error after being told to build a kernel that didn't exist.






share|improve this answer
























  • Did you try set KERNEL_IMAGETYPE = "zImage"?

    – Tomas Novotny
    Nov 16 '18 at 13:28













  • Just saw that, fixed it. I had been trying both uImage and zImage to get any kind of kernel image.

    – Smurph269
    Nov 16 '18 at 13:39
















0














The answer ended up having two parts.



First, running bitbake -c do_cleansstate linux-at91 and then bitbake core-image-sato successfully regenerated the zImage file.



Second, linux-2.6.30-at91-emac was incorrect since my kerenl was just called linux-at91. So my kernel build was likely only being run when I ran builds for other machines.



So my full image build wasn't rebuilding the kernel because I had referenced a different kernel. Once I fixed that, the kernel build would start running again. I'm not sure how I got a zImage in the first place, or why bitbake never threw an error after being told to build a kernel that didn't exist.






share|improve this answer
























  • Did you try set KERNEL_IMAGETYPE = "zImage"?

    – Tomas Novotny
    Nov 16 '18 at 13:28













  • Just saw that, fixed it. I had been trying both uImage and zImage to get any kind of kernel image.

    – Smurph269
    Nov 16 '18 at 13:39














0












0








0







The answer ended up having two parts.



First, running bitbake -c do_cleansstate linux-at91 and then bitbake core-image-sato successfully regenerated the zImage file.



Second, linux-2.6.30-at91-emac was incorrect since my kerenl was just called linux-at91. So my kernel build was likely only being run when I ran builds for other machines.



So my full image build wasn't rebuilding the kernel because I had referenced a different kernel. Once I fixed that, the kernel build would start running again. I'm not sure how I got a zImage in the first place, or why bitbake never threw an error after being told to build a kernel that didn't exist.






share|improve this answer













The answer ended up having two parts.



First, running bitbake -c do_cleansstate linux-at91 and then bitbake core-image-sato successfully regenerated the zImage file.



Second, linux-2.6.30-at91-emac was incorrect since my kerenl was just called linux-at91. So my kernel build was likely only being run when I ran builds for other machines.



So my full image build wasn't rebuilding the kernel because I had referenced a different kernel. Once I fixed that, the kernel build would start running again. I'm not sure how I got a zImage in the first place, or why bitbake never threw an error after being told to build a kernel that didn't exist.







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 13 '18 at 20:59









Smurph269Smurph269

34




34













  • Did you try set KERNEL_IMAGETYPE = "zImage"?

    – Tomas Novotny
    Nov 16 '18 at 13:28













  • Just saw that, fixed it. I had been trying both uImage and zImage to get any kind of kernel image.

    – Smurph269
    Nov 16 '18 at 13:39



















  • Did you try set KERNEL_IMAGETYPE = "zImage"?

    – Tomas Novotny
    Nov 16 '18 at 13:28













  • Just saw that, fixed it. I had been trying both uImage and zImage to get any kind of kernel image.

    – Smurph269
    Nov 16 '18 at 13:39

















Did you try set KERNEL_IMAGETYPE = "zImage"?

– Tomas Novotny
Nov 16 '18 at 13:28







Did you try set KERNEL_IMAGETYPE = "zImage"?

– Tomas Novotny
Nov 16 '18 at 13:28















Just saw that, fixed it. I had been trying both uImage and zImage to get any kind of kernel image.

– Smurph269
Nov 16 '18 at 13:39





Just saw that, fixed it. I had been trying both uImage and zImage to get any kind of kernel image.

– Smurph269
Nov 16 '18 at 13:39


















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53287708%2fbitbake-not-producing-a-zimage-file%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Full-time equivalent

Bicuculline

さくらももこ