@oktisme sovled the problem through userland, and I want to try a different approch. I recently wrote a linux kernel module to dynamically patch the dsm kernel. With this hack, we only need to repack rd.gz to load this special module at early stage, zImage & pat is used as is, so changes are kept minimal.   Now it works on latest version DSM 6.0.2-8451, sort of. I mean every feature looks healthy, but drivers for bare metals are not included, there are simply to many, and I am too lazy