Hi,
attached patch adds:
1, simple strncmp implementation in include/string.h 2, changes lib/lar.c to use strncmp for magic check. Current code depends on that the len field will never hold a value bigger than 0xffffff, which is a working assumption given current flash sizes, but my next patch might affect this.
-- Alex