Here is the uboot for B1300, you can modify the source. GitHub - gl-inet/uboot-ipq40xx