/dev/self0 and /dev/env0 are in the last MB of nor flash. The offset depends on the size of the flash, so detect this at runtime. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>