New Tang book? The genealogy of the Prime Minister shows: "The five sons of Qingyang family, the Yellow Emperor wielded a bow and arrow, and later generations gave him the surname Zhang." The son of the Yellow Emperor is called Tianlu, and his son, Hua, is the grandson of the Yellow Emperor together with Zhuan Xu. His clan and tribe have produced bows and arrows for generations, and he invented the ancient important weapon bow and arrow with his own wisdom. Due to the great contribution of the birth of bows and arrows to the society at that time, Emperor Zhuan Xu named the swing as a bow and made bows and arrows, also known as the bow length (the official position in charge of bows and arrows). Later, he took the meaning of bow length and gave his surname Zhang. Bow length, together, is the word "Zhang", which is the earliest origin of Zhang's surname. Swing is the ancestor of Zhang, passed down from generation to generation, and Zhang tianxia.
If you need detailed information, you can refer to the book Zhang Family on Earth.