Your thoughts on the hex is correct as to i have found out myself now putting in the correct value, compiling without errors, figuring out the proper uploading process which have worked is the miniserver or atftp testing but having the correct value does really help. My image that i done so far has that problem with it and maybe after today should be worked out my last image had that problem still and an mtd issue on the loader part. Here is an an example output of the mtd. You notice the erasesize that maybe the magic value? Have rebuild and reconfigure some parameters and test.
root@OpenWrt:/* cat /proc/mtd
dev: size erasersize name
mtd0: 00030000 00010000 "boot"
mtd1: 007c0000 00010000 "firmware"
mtd2: 000008f0 000008f0 "loader"
mtd3: 001132f4 00010000 "linux"
mtd4: 006ac400 00010000 "rootfs"
mtd5: 00430000 00010000 "rootfs_data"
mtd6: 00010000 00010000 "nvram"
I'm not a developer and just started doing this as a hobby and for knowledgeable purposes but have been using linux for a few years. I don't spend a huge amount of time as if i were an actual developer would be, but i do give all those people credit for what they have done to create such wonderful way for people of all walks of life to be here to share knowledge and assist one another due to open source and their education, documentations for learning on their own.
The links should get you started especially the add new device.
https://wiki.openwrt.org/doc/howto/buildroot.exigence
https://wiki.openwrt.org/doc/devel/feeds
https://wiki.openwrt.org/doc/techref/buildroot
https://wiki.openwrt.org/doc/devel/add.new.device
Good Day, Freeman01