I am trying to rebuild the linux-am33x kernel on my BeagleBoneBlack using the PKGBUILD from git but I receive the error:
$this->bbcode_second_pass_code('', '
MK_FW firmware/am335x-pm-firmware.bin.gen.S
make[1]: *** No rule to make target `firmware/am335x-pm-firmware.bin', needed by `firmware/am335x-pm-firmware.bin.gen.o'. Stop.
make: *** [firmware] Error 2
==> ERROR: A failure occurred in build().
Aborting...
')
I received a very similar error when trying to cross compiling on an x86_64 machine and it was suggested on IRC that I build on the actual hardware. So I created a fresh install on an SD Card, SSH'd into the BeagleBoneBlack and ran exactly the following commands:
$this->bbcode_second_pass_code('', '
# Update system and boot into latest kernel
pacman -Syu
reboot
# Install depends and create regular user
pacman -S git base-devel
useradd -m -g users -s /bin/bash tdio
passwd tdio
visudo
exit
# Login as regular user, clone repo, run makepkg
git clone git://github.com/archlinuxarm/PKGBUILDs.git
cd PKGBUILDs/core/linux-am33x
makepkg -A -s
# The kernel will start compiling, several hours later it will fail will the error above.
')
Could anyone point out what I am doing wrong? I am obviously missing something. I was instructed on the IRC channel to run makepkg with the ignore-arch flag (makepkg -A).
Thanks