There's "rec", from sox, and I'm sure arecord would work too, not sure if there's binaries available though. Keep in mind you're limited to garbage quality for unknown reasons, I filed a bug a while ago, which unfortunately no one has responded to: https://bugs.maemo.org/show_bug.cgi?id=2450