Please have a look here: https://dt.iki.fi/nokia-n900-resurrect#c4 tl;dr: just use the "lazy approach" script.