Many thanks Peacefulpete,
Although the evidence for the name Yhwh in Ugarit is scanty (very odd syntax in KTU 1.1 IV.14 if this is the real meaning!), the Ugaritic texts do provide a very enlightening background. The figure of Asherah as "Mrs. Maingod" (be it Yhwh or Baal), though still challenged (by Lipinski for example), deserves to be known. I'd just insist that "borrowed from Ugarit" is too bold a shortcut, since the texts we were lucky enough to find there are just a chance sample of the general culture shared, with local variations, in all the "Canaanite" realm.
I also fully agree with your reservations about the "Biblical" side of the picture. To most present scholars the great "Yhwh-Israel vs Baal-Canaan" scheme is a fictitious product of the "Deuteronomistic historiography" (extending to the so-called Exodus and Conquest).