@kirdes How do I go about creating the board-2.bin?
My board file:
[
{
"data": "bus=ahb,qmi-chip-id=0,qmi-board-id=255,variant=tplink_x80-5g.bin",
"names": [
"bus=ahb,qmi-chip-id=0,qmi-board-id=255,variant=tplink_x80-5g"
]
}
]
I have both booting logs on the Wiki oem and my initramfs image as below:
[OpenWrt Wiki] TP-Link X80-5G V1
But there is this here loading the file which indicates my board file has the correct data:
[ 14.244392] ath11k c000000.wifi: qmi ignore invalid mem req type 3
[ 14.251858] ath11k c000000.wifi: chip_id 0x0 chip_family 0x0 board_id 0xff soc_id 0xffffffff
[ 14.251894] ath11k c000000.wifi: fw_version 0x290604a5 fw_build_timestamp 2023-10-12 02:06 fw_build_id WLAN.HK.2.9.0.1-01977-QCAHKSWPL_SILICONZ-1
[ 14.328822] ath11k c000000.wifi: failed to fetch board data for bus=ahb,qmi-chip-id=0,qmi-board-id=255,variant=tplink_x80-5g from ath11k/IPQ8074/hw2.0/board-2.bin
[ 14.328884] ath11k c000000.wifi: failed to fetch board data for bus=ahb,qmi-chip-id=0,qmi-board-id=255 from ath11k/IPQ8074/hw2.0/board-2.bin
[ 14.342303] ath11k c000000.wifi: failed to fetch board data for bus=ahb,qmi-chip-id=0,qmi-board-id=255 from ath11k/IPQ8074/hw2.0/board-2.bin
[ 14.355106] ath11k c000000.wifi: failed to fetch board.bin from IPQ8074/hw2.0
I did manage to unpack the nand and unsquash the RootFS and dump the contents but, I'm a little confused which is the correct BDF file is as bdwlan.bin mentioned in boot and it is a symbolic link to the file in /tmp and we can't break into a running oem image because of the root password to pull it from there.
Same with the file bdwlan.b210 it is a symbolic link to /tmp
There is however bdwlan_NZ.b210 which is my country code and the obvious file BDF_x80_0813.bin that are 128k in size.
I did run bdencoder -c board.json and the resultant file is only like a header less than 1k in size. it is alongside my renamed firmware file and I tried both the bdwlan_NZ.b210 file and the BDF_x80_0813.bin assuming this is some sort of master file before the country code is patched in
Going backwards with -e board-2.bin it throws errors, so I don't know what I'm doing wrong.
I want to submit this upstream but I'm not really sure on the process as there is not really any documentation and this would be my first attempt from scratch.