If the device says "Code incorrect, wait 5 minutes," do not keep guessing. Wait the full duration. The timer resets if you keep trying. Let the countdown finish, then try your best guess.
Get the latest Maemo system image (FIASCO) and the eMMC image for your region from the official archives . Flashing Steps How To - Hard Reset the Nokia N900 (www.TheUnlockr.com) Remove Lock Code in NOKIA N900