On 2016-Feb-6 17:02 , Alyssa Milburn wrote:
chosen = find_dev("/chosen");
push_str(buf);
fword("open-dev");
set_int_property(chosen, "interrupt-controller", POP());
/chosen won't have an "open" method, so the open-dev will fail. You probably don't need the open-dev anyway, you should be able to call set_int_property with the chosen phandle without doing an open on it. That is, delete the 3rd line of the above, it probably works.