attempting to follow the directions to build and I run into an error where it says it can't create a directory, but that directory exists.
build_deb.sh
...
LD [M] net/nsh/nsh.ko
LD [M] net/hsr/hsr.ko
LD [M] net/qrtr/qrtr.ko
INSTALL debian/linux-image-6.18.33-bone36/usr/lib/linux-image-6.18.33-bone36/am335x-baltos-ir2110.dtb
INSTALL debian/linux-image-6.18.33-bone36/usr/lib/linux-image-6.18.33-bone36/am335x-baltos-ir3220.dtb
INSTALL debian/linux-image-6.18.33-bone36/usr/lib/linux-image-6.18.33-bone36/am335x-baltos-ir5221.dtb
INSTALL debian/linux-image-6.18.33-bone36/usr/lib/linux-image-6.18.33-bone36/am335x-base0033.dtb
INSTALL debian/linux-image-6.18.33-bone36/usr/lib/linux-image-6.18.33-bone36/am335x-bone.dtb
INSTALL debian/linux-image-6.18.33-bone36/usr/lib/linux-image-6.18.33-bone36/am335x-boneblack.dtb
install: cannot create directory 'debian/linux-image-6.18.33-bone36/usr/lib/linux-image-6.18.33-bone36' INSTALL debian/linux-image-6.18.33-bone36/usr/lib/linux-image-6.18.33-bone36/am335x-boneblack-revd.dtb
install: INSTALL debian/linux-image-6.18.33-bone36/usr/lib/linux-image-6.18.33-bone36/am335x-boneblack-uboot.dtb
cannot create directory 'debian/linux-image-6.18.33-bone36/usr/lib/linux-image-6.18.33-bone36'
INSTALL debian/linux-image-6.18.33-bone36/usr/lib/linux-image-6.18.33-bone36/M-BB-BBGG-00A0.dtbo
make[6]: *** [scripts/Makefile.dtbinst:34: debian/linux-image-6.18.33-bone36/usr/lib/linux-image-6.18.33-bone36/am335x-baltos-ir3220.dtb] Error 1
make[6]: *** Waiting for unfinished jobs....
make[6]: *** [scripts/Makefile.dtbinst:34: debian/linux-image-6.18.33-bone36/usr/lib/linux-image-6.18.33-bone36/am335x-baltos-ir5221.dtb] Error 1
INSTALL debian/linux-image-6.18.33-bone36/usr/lib/linux-image-6.18.33-bone36/M-BB-BBG-00A0.dtbo
make[5]: *** [Makefile:1518: dtbs_install] Error 2
make[4]: *** [Makefile:2155: run-command] Error 2
make[3]: *** [debian/rules:67: binary-image] Error 2
make[3]: *** Waiting for unfinished jobs....
INSTALL debian/linux-libc-dev/usr/include
dpkg-gencontrol: warning: email address 'root <root@db985933579e>' with single label domain
dpkg-deb: building package 'linux-libc-dev' in '../linux-libc-dev_1xross_armhf.deb'.
dpkg-buildpackage: error: make -f debian/rules binary subprocess failed with exit status 2
make[2]: *** [scripts/Makefile.package:126: bindeb-pkg] Error 2
make[1]: *** [/root/bb-kernel/KERNEL/Makefile:1657: bindeb-pkg] Error 2
make: *** [Makefile:248: __sub-make] Error 2
I think it's trying to make that direcory inside ./KERNEL but when I went to check, that directory already exists. I'm not sure how to proceed with debugging.
If it's helpful, I'm working inside a docker container:
FROM ubuntu:26.04
ENV TZ=America/New_York
ENV DEBIAN_FRONTEND=noninteractive
RUN apt update
RUN apt-get install -y tzdata \
&& ln -snf /usr/share/zoneinfo/$TZ /etc/localtime
RUN apt install -y git bc bison build-essential cpio fakeroot flex lsb-release lz4 man-db gettext pkg-config libmpc-dev u-boot-tools zstd libdw-dev bindgen rust-src rustc rustfmt rust-clippy libncurses-dev:amd64 libssl-dev:amd64 wget kmod debhelper python3 rsync
RUN cd ~ && git clone https://github.com/RobertCNelson/bb-kernel
WORKDIR /root/bb-kernel
and then I just run ./build_deb.sh
attempting to follow the directions to build and I run into an error where it says it can't create a directory, but that directory exists.
I think it's trying to make that direcory inside ./KERNEL but when I went to check, that directory already exists. I'm not sure how to proceed with debugging.
If it's helpful, I'm working inside a docker container:
and then I just run ./build_deb.sh