Error at the end of compiling: cp: cannot stat '/home/debian/openwrt/staging_dir/target-x86_64_musl/root-x86/boot/.': No such file or directory

I'm compiling a custom x86 firmware using upstream 6.5.8 kernel. It seems to compile everything and at the last part of creating the image, i'm getting no such file or directory error. The image however gets built despite these errors. I removed most of the patches in the hack and pending folder since this is an experiment to see if a particular QCN9074 wifi module work in vm in 6.5.8 kernel. Not sure if thats the cause since everything actually seems to compile ignoring this error until image creation part. Do you have any idea what might be causing this? Or we can ignore this at all? I saw some posts with similar errors and suggestion is to increase root partion size but didn't help.

Furthermore, if I use squashfs image, it stucks here forever:

If i use ext4 image, then the system seems to boot but then stuck at below and reboot itself.

How can further troubleshoot from here?

cp: cannot stat '/home/debian/openwrt/staging_dir/target-x86_64_musl/root-x86/boot/.': No such file or directory
make[5]: [Makefile:158: /home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/tmp/openwrt-x86-64-generic-ext4-combined-efi.img.gz] Error 1 (ignored)
Parallel mksquashfs: Using 16 processors
Creating 4.0 filesystem on /home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/root.squashfs, block size 262144.
Pseudo file "dev" exists in source filesystem "/home/debian/openwrt/build_dir/target-x86_64_musl/root-x86/dev".
Ignoring, exclude it (-e/-ef) to override.
[|                                                                                                                                       ]   0/927   0%Creating filesystem with parameters:
    Size: 1073741824
    Block size: 4096
    Blocks per group: 32768
    Inodes per group: 8192
    Inode size: 256
    Journal blocks: 0
    Label: rootfs
    Blocks: 262144
    Block groups: 8
    Reserved blocks: 0
    Reserved block group size: 63
Created filesystem with 1186/65536 inodes and 12117/262144 blocks
[ -f /home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/generic-kernel.bin -a -f /home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/root.ext4 ]
[ -f /home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/generic-kernel.bin -a -f /home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/root.ext4 ]
dd if=/home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/root.ext4 >> /home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/tmp/openwrt-x86-64-generic-ext4-rootfs.img.gz
rm -fR /home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/tmp/openwrt-x86-64-generic-ext4-combined.img.gz.boot
[======================/                                                                                                                 ] 152/927  16%install -d -m0755 /home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/tmp/openwrt-x86-64-generic-ext4-combined.img.gz.boot/boot/grub
[ -f /home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/generic-kernel.bin -a -f /home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/root.ext4 ]
sed -e 's#@SERIAL_CONFIG@#serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1 --rtscts=off#g' -e 's#@TERMINAL_CONFIG@#terminal_input console serial; terminal_output console serial#g' -e 's#@ROOTPART@#root=PARTUUID=dce40621-02 rootwait#g' -e 's#@GPT_ROOTPART@#root=PARTUUID=dce40621-30eb-c7b6-8218-d9ce2697db02 rootwait#g' -e 's#@CMDLINE@# console=tty0 console=ttyS0,115200n8#g' -e 's#@TIMEOUT@#5#g' -e 's#@TITLE@#OpenWrt#g' ./grub-pc.cfg > /home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/tmp/openwrt-x86-64-generic-ext4-combined.img.gz.boot/boot/grub/grub.cfg
rm -fR /home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/tmp/openwrt-x86-64-generic-ext4-combined-efi.img.gz.boot
install -d -m0755 /home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/tmp/openwrt-x86-64-generic-ext4-combined-efi.img.gz.boot/boot/grub
cp -fpR /home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/bzImage /home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/tmp/openwrt-x86-64-generic-ext4-combined.img.gz.boot/boot/vmlinuz
sed -e 's#@SERIAL_CONFIG@#serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1 --rtscts=off#g' -e 's#@TERMINAL_CONFIG@#terminal_input console serial; terminal_output console serial#g' -e 's#@ROOTPART@#root=PARTUUID=dce40621-02 rootwait#g' -e 's#@GPT_ROOTPART@#root=PARTUUID=dce40621-30eb-c7b6-8218-d9ce2697db02 rootwait#g' -e 's#@CMDLINE@# console=tty0 console=ttyS0,115200n8#g' -e 's#@TIMEOUT@#5#g' -e 's#@TITLE@#OpenWrt#g' ./grub-efi.cfg > /home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/tmp/openwrt-x86-64-generic-ext4-combined-efi.img.gz.boot/boot/grub/grub.cfg
cp -fpR /home/debian/openwrt/staging_dir/target-x86_64_musl/root-x86/boot/. /home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/tmp/openwrt-x86-64-generic-ext4-combined.img.gz.boot/boot/
cp: cannot stat '/home/debian/openwrt/staging_dir/target-x86_64_musl/root-x86/boot/.': No such file or directory
make[5]: [Makefile:158: /home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/tmp/openwrt-x86-64-generic-ext4-combined.img.gz] Error 1 (ignored)
cp -fpR /home/debian/openwrt/staging_dir/target-x86_64_musl/image/grub2/boot.img /home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/tmp/openwrt-x86-64-generic-ext4-combined.img.gz.boot/boot/grub/
cp -fpR /home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/bzImage /home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/tmp/openwrt-x86-64-generic-ext4-combined-efi.img.gz.boot/boot/vmlinuz
cp -fpR /home/debian/openwrt/staging_dir/target-x86_64_musl/image/grub2/generic-core.img /home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/tmp/openwrt-x86-64-generic-ext4-combined.img.gz.boot/boot/grub/core.img
cp -fpR /home/debian/openwrt/staging_dir/target-x86_64_musl/root-x86/boot/. /home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/tmp/openwrt-x86-64-generic-ext4-combined-efi.img.gz.boot/boot/
PADDING="1" SIGNATURE="dce40621"  /home/debian/openwrt/scripts/gen_image_generic.sh /home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/tmp/openwrt-x86-64-generic-ext4-combined.img.gz 256 /home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/tmp/openwrt-x86-64-generic-ext4-combined.img.gz.boot 1024 /home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/root.ext4 1024
cp: cannot stat '/home/debian/openwrt/staging_dir/target-x86_64_musl/root-x86/boot/.': No such file or directory
make[5]: [Makefile:158: /home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/tmp/openwrt-x86-64-generic-ext4-combined-efi.img.gz] Error 1 (ignored)
cp -fpR /home/debian/openwrt/staging_dir/target-x86_64_musl/image/grub2/boot.img /home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/tmp/openwrt-x86-64-generic-ext4-combined-efi.img.gz.boot/boot/grub/
+ [ 6 -ne 5 ]
+ [ 6 -ne 6 ]
+ OUTPUT=/home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/tmp/openwrt-x86-64-generic-ext4-combined.img.gz
+ KERNELSIZE=256
+ KERNELDIR=/home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/tmp/openwrt-x86-64-generic-ext4-combined.img.gz.boot
+ KERNELPARTTYPE=83
+ ROOTFSSIZE=1024
+ ROOTFSIMAGE=/home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/root.ext4
+ ROOTFSPARTTYPE=83
+ ALIGN=1024
+ rm -f /home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/tmp/openwrt-x86-64-generic-ext4-combined.img.gz
cp -fpR /home/debian/openwrt/staging_dir/target-x86_64_musl/image/grub2/gpt-core.img /home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/tmp/openwrt-x86-64-generic-ext4-combined-efi.img.gz.boot/boot/grub/core.img
+ head=16
+ sect=63
install -d -m0755 /home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/tmp/openwrt-x86-64-generic-ext4-combined-efi.img.gz.boot/efi/boot
+ ptgen -o /home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/tmp/openwrt-x86-64-generic-ext4-combined.img.gz -h 16 -s 63 -t 83 -p 256m -t 83 -p 1024m -l 1024 -S 0xdce40621
part 0 262144
part 0 1048576
+ set 1048576 268435456 270532608 1073741824
+ KERNELOFFSET=2048
+ KERNELSIZE=268435456
+ ROOTFSOFFSET=528384
+ ROOTFSSIZE=2097152
+ [ -n 1 ]
+ dd if=/dev/zero of=/home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/tmp/openwrt-x86-64-generic-ext4-combined.img.gz bs=512 seek=528384 conv=notrunc count=2097152
cp -fpR /home/debian/openwrt/staging_dir/target-x86_64_musl/image/grub2/bootx64.efi /home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/tmp/openwrt-x86-64-generic-ext4-combined-efi.img.gz.boot/efi/boot/
PADDING="1" SIGNATURE="dce40621" GUID="dce40621-30eb-c7b6-8218-d9ce2697db00" /home/debian/openwrt/scripts/gen_image_generic.sh /home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/tmp/openwrt-x86-64-generic-ext4-combined-efi.img.gz 256 /home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/tmp/openwrt-x86-64-generic-ext4-combined-efi.img.gz.boot 1024 /home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/root.ext4 1024
+ [ 6 -ne 5 ]
+ [ 6 -ne 6 ]
+ OUTPUT=/home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/tmp/openwrt-x86-64-generic-ext4-combined-efi.img.gz
+ KERNELSIZE=256
+ KERNELDIR=/home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/tmp/openwrt-x86-64-generic-ext4-combined-efi.img.gz.boot
+ KERNELPARTTYPE=83
+ ROOTFSSIZE=1024
+ ROOTFSIMAGE=/home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/root.ext4
+ ROOTFSPARTTYPE=83
+ ALIGN=1024
+ rm -f /home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/tmp/openwrt-x86-64-generic-ext4-combined-efi.img.gz
+ head=16
+ sect=63
+ ptgen -o /home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/tmp/openwrt-x86-64-generic-ext4-combined-efi.img.gz -h 16 -s 63 -g -t 83 -p 256m -t 83 -p 1024m -l 1024 -S 0xdce40621 -G dce40621-30eb-c7b6-8218-d9ce2697db00
part 0 262144
part 0 1048576
+ set 1048576 268435456 269484032 1073741824
+ KERNELOFFSET=2048
+ KERNELSIZE=268435456
+ ROOTFSOFFSET=526336
+ ROOTFSSIZE=2097152
+ [ -n 1 ]
+ dd if=/dev/zero of=/home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/tmp/openwrt-x86-64-generic-ext4-combined-efi.img.gz bs=512 seek=526336 conv=notrunc count=2097152
[=======================================================================================================================================-] 927/927 100%

Exportable Squashfs 4.0 filesystem, xz compressed, data block size 262144
        compressed data, compressed metadata, compressed fragments,
        no xattrs, compressed ids
        duplicates are removed
Filesystem size 8432.87 Kbytes (8.24 Mbytes)
        30.66% of uncompressed filesystem size (27506.54 Kbytes)
Inode table size 8142 bytes (7.95 Kbytes)
        20.71% of uncompressed inode table size (39305 bytes)
Directory table size 11256 bytes (10.99 Kbytes)
        45.20% of uncompressed directory table size (24902 bytes)
Number of duplicate files found 148
Number of inodes 1177
Number of files 872
Number of fragments 37
Number of symbolic links 215
Number of device nodes 1
Number of fifo nodes 0
Number of socket nodes 0
Number of directories 89
Number of hard-links 0
Number of ids (unique uids + gids) 1
Number of uids 1
        root (0)
Number of gids 1
        root (0)
[ -f /home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/generic-kernel.bin -a -f /home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/root.squashfs ]
[ -f /home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/generic-kernel.bin -a -f /home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/root.squashfs ]
dd if=/home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/root.squashfs >> /home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/tmp/openwrt-x86-64-generic-squashfs-rootfs.img.gz
[ -f /home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/generic-kernel.bin -a -f /home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/root.squashfs ]
rm -fR /home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/tmp/openwrt-x86-64-generic-squashfs-combined.img.gz.boot
rm -fR /home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/tmp/openwrt-x86-64-generic-squashfs-combined-efi.img.gz.boot
install -d -m0755 /home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/tmp/openwrt-x86-64-generic-squashfs-combined.img.gz.boot/boot/grub
install -d -m0755 /home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/tmp/openwrt-x86-64-generic-squashfs-combined-efi.img.gz.boot/boot/grub
sed -e 's#@SERIAL_CONFIG@#serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1 --rtscts=off#g' -e 's#@TERMINAL_CONFIG@#terminal_input console serial; terminal_output console serial#g' -e 's#@ROOTPART@#root=PARTUUID=dce40621-02 rootwait#g' -e 's#@GPT_ROOTPART@#root=PARTUUID=dce40621-30eb-c7b6-8218-d9ce2697db02 rootwait#g' -e 's#@CMDLINE@# console=tty0 console=ttyS0,115200n8#g' -e 's#@TIMEOUT@#5#g' -e 's#@TITLE@#OpenWrt#g' ./grub-pc.cfg > /home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/tmp/openwrt-x86-64-generic-squashfs-combined.img.gz.boot/boot/grub/grub.cfg
sed -e 's#@SERIAL_CONFIG@#serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1 --rtscts=off#g' -e 's#@TERMINAL_CONFIG@#terminal_input console serial; terminal_output console serial#g' -e 's#@ROOTPART@#root=PARTUUID=dce40621-02 rootwait#g' -e 's#@GPT_ROOTPART@#root=PARTUUID=dce40621-30eb-c7b6-8218-d9ce2697db02 rootwait#g' -e 's#@CMDLINE@# console=tty0 console=ttyS0,115200n8#g' -e 's#@TIMEOUT@#5#g' -e 's#@TITLE@#OpenWrt#g' ./grub-efi.cfg > /home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/tmp/openwrt-x86-64-generic-squashfs-combined-efi.img.gz.boot/boot/grub/grub.cfg
cp -fpR /home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/bzImage /home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/tmp/openwrt-x86-64-generic-squashfs-combined.img.gz.boot/boot/vmlinuz
cp -fpR /home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/bzImage /home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/tmp/openwrt-x86-64-generic-squashfs-combined-efi.img.gz.boot/boot/vmlinuz
cp -fpR /home/debian/openwrt/staging_dir/target-x86_64_musl/root-x86/boot/. /home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/tmp/openwrt-x86-64-generic-squashfs-combined.img.gz.boot/boot/
cp: cannot stat '/home/debian/openwrt/staging_dir/target-x86_64_musl/root-x86/boot/.': No such file or directory
make[5]: [Makefile:158: /home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/tmp/openwrt-x86-64-generic-squashfs-combined.img.gz] Error 1 (ignored)
cp -fpR /home/debian/openwrt/staging_dir/target-x86_64_musl/image/grub2/boot.img /home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/tmp/openwrt-x86-64-generic-squashfs-combined.img.gz.boot/boot/grub/
cp -fpR /home/debian/openwrt/staging_dir/target-x86_64_musl/root-x86/boot/. /home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/tmp/openwrt-x86-64-generic-squashfs-combined-efi.img.gz.boot/boot/
cp -fpR /home/debian/openwrt/staging_dir/target-x86_64_musl/image/grub2/generic-core.img /home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/tmp/openwrt-x86-64-generic-squashfs-combined.img.gz.boot/boot/grub/core.img
cp: cannot stat '/home/debian/openwrt/staging_dir/target-x86_64_musl/root-x86/boot/.': No such file or directory
make[5]: [Makefile:158: /home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/tmp/openwrt-x86-64-generic-squashfs-combined-efi.img.gz] Error 1 (ignored)
cp -fpR /home/debian/openwrt/staging_dir/target-x86_64_musl/image/grub2/boot.img /home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/tmp/openwrt-x86-64-generic-squashfs-combined-efi.img.gz.boot/boot/grub/
PADDING="1" SIGNATURE="dce40621"  /home/debian/openwrt/scripts/gen_image_generic.sh /home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/tmp/openwrt-x86-64-generic-squashfs-combined.img.gz 256 /home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/tmp/openwrt-x86-64-generic-squashfs-combined.img.gz.boot 1024 /home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/root.squashfs 1024
cp -fpR /home/debian/openwrt/staging_dir/target-x86_64_musl/image/grub2/gpt-core.img /home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/tmp/openwrt-x86-64-generic-squashfs-combined-efi.img.gz.boot/boot/grub/core.img
+ [ 6 -ne 5 ]
+ [ 6 -ne 6 ]
+ OUTPUT=/home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/tmp/openwrt-x86-64-generic-squashfs-combined.img.gz
+ KERNELSIZE=256
+ KERNELDIR=/home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/tmp/openwrt-x86-64-generic-squashfs-combined.img.gz.boot
+ KERNELPARTTYPE=83
+ ROOTFSSIZE=1024
+ ROOTFSIMAGE=/home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/root.squashfs
+ ROOTFSPARTTYPE=83
+ ALIGN=1024
+ rm -f /home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/tmp/openwrt-x86-64-generic-squashfs-combined.img.gz
+ head=16
+ sect=63
install -d -m0755 /home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/tmp/openwrt-x86-64-generic-squashfs-combined-efi.img.gz.boot/efi/boot
+ ptgen -o /home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/tmp/openwrt-x86-64-generic-squashfs-combined.img.gz -h 16 -s 63 -t 83 -p 256m -t 83 -p 1024m -l 1024 -S 0xdce40621
part 0 262144
part 0 1048576
+ set 1048576 268435456 270532608 1073741824
+ KERNELOFFSET=2048
+ KERNELSIZE=268435456
+ ROOTFSOFFSET=528384
+ ROOTFSSIZE=2097152
+ [ -n 1 ]
+ dd if=/dev/zero of=/home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/tmp/openwrt-x86-64-generic-squashfs-combined.img.gz bs=512 seek=528384 conv=notrunc count=2097152
cp -fpR /home/debian/openwrt/staging_dir/target-x86_64_musl/image/grub2/bootx64.efi /home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/tmp/openwrt-x86-64-generic-squashfs-combined-efi.img.gz.boot/efi/boot/
PADDING="1" SIGNATURE="dce40621" GUID="dce40621-30eb-c7b6-8218-d9ce2697db00" /home/debian/openwrt/scripts/gen_image_generic.sh /home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/tmp/openwrt-x86-64-generic-squashfs-combined-efi.img.gz 256 /home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/tmp/openwrt-x86-64-generic-squashfs-combined-efi.img.gz.boot 1024 /home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/root.squashfs 1024
16865+1 records in
16865+1 records out
8635255 bytes (8.6 MB, 8.2 MiB) copied, 0.0170074 s, 508 MB/s
dd if=/home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/tmp/openwrt-x86-64-generic-squashfs-rootfs.img.gz of=/home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/tmp/openwrt-x86-64-generic-squashfs-rootfs.img.gz.new bs=1073741824 conv=sync
+ [ 6 -ne 5 ]
+ [ 6 -ne 6 ]
+ OUTPUT=/home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/tmp/openwrt-x86-64-generic-squashfs-combined-efi.img.gz
+ KERNELSIZE=256
+ KERNELDIR=/home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/tmp/openwrt-x86-64-generic-squashfs-combined-efi.img.gz.boot
+ KERNELPARTTYPE=83
+ ROOTFSSIZE=1024
+ ROOTFSIMAGE=/home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/root.squashfs
+ ROOTFSPARTTYPE=83
+ ALIGN=1024
+ rm -f /home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/tmp/openwrt-x86-64-generic-squashfs-combined-efi.img.gz
+ head=16
+ sect=63
+ ptgen -o /home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/tmp/openwrt-x86-64-generic-squashfs-combined-efi.img.gz -h 16 -s 63 -g -t 83 -p 256m -t 83 -p 1024m -l 1024 -S 0xdce40621 -G dce40621-30eb-c7b6-8218-d9ce2697db00
part 0 262144
part 0 1048576
+ set 1048576 268435456 269484032 1073741824
+ KERNELOFFSET=2048
+ KERNELSIZE=268435456
+ ROOTFSOFFSET=526336
+ ROOTFSSIZE=2097152
+ [ -n 1 ]
+ dd if=/dev/zero of=/home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/tmp/openwrt-x86-64-generic-squashfs-combined-efi.img.gz bs=512 seek=526336 conv=notrunc count=2097152
2097152+0 records in
2097152+0 records out
1073741824 bytes (1.1 GB, 1.0 GiB) copied, 1.6164 s, 664 MB/s
+ dd if=/home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/root.ext4 of=/home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/tmp/openwrt-x86-64-generic-ext4-combined.img.gz bs=512 seek=528384 conv=notrunc
2097152+0 records in
2097152+0 records out
1073741824 bytes (1.1 GB, 1.0 GiB) copied, 1.95569 s, 549 MB/s
+ dd if=/home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/root.ext4 of=/home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/tmp/openwrt-x86-64-generic-ext4-combined-efi.img.gz bs=512 seek=526336 conv=notrunc
0+1 records in
1+0 records out
1073741824 bytes (1.1 GB, 1.0 GiB) copied, 1.14956 s, 934 MB/s
mv /home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/tmp/openwrt-x86-64-generic-squashfs-rootfs.img.gz.new /home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/tmp/openwrt-x86-64-generic-squashfs-rootfs.img.gz
2097152+0 records in
2097152+0 records out
1073741824 bytes (1.1 GB, 1.0 GiB) copied, 2.59053 s, 414 MB/s
dd if=/home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/tmp/openwrt-x86-64-generic-ext4-rootfs.img.gz of=/home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/tmp/openwrt-x86-64-generic-ext4-rootfs.img.gz.new bs=1073741824 conv=sync
2097152+0 records in
2097152+0 records out
1073741824 bytes (1.1 GB, 1.0 GiB) copied, 1.12475 s, 955 MB/s
+ [ -n  ]
+ make_ext4fs -J -L kernel -l 268435456 -T 1697873592 /home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/tmp/openwrt-x86-64-generic-ext4-combined.img.gz.kernel /home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/tmp/openwrt-x86-64-generic-ext4-combined.img.gz.boot
2097152+0 records in
2097152+0 records out
1073741824 bytes (1.1 GB, 1.0 GiB) copied, 1.19965 s, 895 MB/s
+ [ -n dce40621-30eb-c7b6-8218-d9ce2697db00 ]
+ [ -n 1 ]
+ dd if=/dev/zero of=/home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/tmp/openwrt-x86-64-generic-ext4-combined-efi.img.gz bs=512 seek=2623488 conv=notrunc count=63
2097152+0 records in
2097152+0 records out
1073741824 bytes (1.1 GB, 1.0 GiB) copied, 6.42613 s, 167 MB/s
+ dd if=/home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/root.squashfs of=/home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/tmp/openwrt-x86-64-generic-squashfs-combined.img.gz bs=512 seek=528384 conv=notrunc
2097152+0 records in
2097152+0 records out
1073741824 bytes (1.1 GB, 1.0 GiB) copied, 7.68878 s, 140 MB/s
+ dd if=/home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/root.squashfs of=/home/debian/openwrt/build_dir/target-x86_64_musl/linux-x86_64/tmp/openwrt-x86-64-generic-squashfs-combined-efi.img.gz bs=512 seek=526336 conv=notrunc

After adding nomodeset to grub, i see there is a kernel panic.