RobertCNelson / bb-kernel

MIT License
130 stars 102 forks source link

zImage not found #52

Closed hoang408 closed 6 years ago

hoang408 commented 6 years ago

I am following this link to create a bootable SD card. I am stuck at Copy Kernel Image.

sudo cp -v ./bb-kernel/deploy/${kernel_version}.zImage /media/rootfs/boot/vmlinuz-${kernel_version}

The terminal complains:

cp: cannot stat './bb-kernel/deploy/4.10.0-42-generic.zImage': No such file or directory

I go to look inside /home/administrator/bb-kernel/deploy/ and there is nothing there. Searching the entire computer for *.zImage returns nothing.

Before that step, I check out:

git checkout origin/am33x-rt-v4.9 -b tmp

And then:

./build_kernel.sh

I only save and exit here. Is that enough, or do I need to do anything else? Am I missing something here? What cause the zImage file to be not there? Can someone please help? Thank you.

hoang408 commented 6 years ago

OK, I check the output of the kernel build. It complains:

/bin/sh: 1: lzop: not found
arch/arm/boot/compressed/Makefile:186: recipe for target 'arch/arm/boot/compressed/piggy_data' failed
make[2]: *** [arch/arm/boot/compressed/piggy_data] Error 1
arch/arm/boot/Makefile:57: recipe for target 'arch/arm/boot/compressed/vmlinux' failed
make[1]: *** [arch/arm/boot/compressed/vmlinux] Error 2
arch/arm/Makefile:334: recipe for target 'zImage' failed

Apparently, I need sudo apt-get install lzop.