k8 raminit: fix bug, improve clock selection, add clock limit for sock754