I was able to solve this myself, I should not use openwrt-boardname-squashfs.img , but instaed I should use the openwrt-architecture-uImage image containing only the kernel, take root.squashfs and openwrt-boardname.dtb from build_dir , since they are not copied to the bin/ directory.
after that, these commands will correctly return the board:
tftp 0xfc1e0000 openwrt-kilauea.dtb tftp 0x400000 openwrt-ppc40x-uImage tftp 0x200000 root.squashfs setenv bootargs 'console=ttyS0,115200 root=/dev/mtdblock2 rw' bootm 0x400000 - 0xfc1e0000
there may be an easier way, but I did not understand how to โrepartitionโ mtd, so I would not have to load the kernel image into user space in memory first.
source share