software: share SDRAM linker script
software: move time.c to libbase
software: add memtest