Slang meaning "house" attested by 1910. In early radio enthusiast slang, it was the word for a room or office set aside for wireless use, 1919, perhaps from earlier U.S. Navy use (1917). As a verb, 1891 in the U.S. West in reference to men who "hole up" for the winter; from 1927 as "to put up for the night;" phrase shack up "cohabit" first recorded 1935 (in Zora Neale Hurston).
Old English up, uppe, from Proto-Germanic *upp- "up" (source also of Old Frisian, Old Saxon up "up, upward," Old Norse upp; Danish, Dutch op; Old High German uf, German auf "up"; Gothic iup "up, upward," uf "on, upon, under;" Old High German oba, German ob "over, above, on, upon"), from PIE root *upo "under," also "up from under," hence also "over."
As a preposition, "to a higher place" from c. 1500; also "along, through" (1510s), "toward" (1590s). Often used elliptically for go up, come up, rise up, etc. Up the river "in jail" first recorded 1891, originally in reference to Sing Sing, which is up the Hudson from New York City. To drive someone up the wall (1951) is from the notion of the behavior of lunatics or caged animals. Insulting retort up yours (scil. ass) is attested by late 19c.
1550s, "to drive and catch (swans)," from up (adv.). Intransitive meaning "get up, rise to one's feet" (as in up and leave) is recorded from 1640s. Sense of "to move upward" is recorded from 1737. Meaning "increase" (as in up the price of oil) is attested from 1915. Compare Old English verb uppian "to rise up, swell." Related: Upped; upping. Upping block, used for mounting or dismounting horses, carriages, etc., is attested from 1796 (earlier was horsing-block, 1660s).