[Galaxy Note 4 Original Android Development] gekkehenkie11:
Hey Rayman, do you start the cbd service (ramdisk/sbin) correctly ? This string 'cbd' doesnt even appear once in your cm12 log. Yet in the stock log this process (in your log with process pid 2865) seems to be in charge of booting the modem, for example:

1270: 04-20 14:33:39.415 D/boot ( 2865): cbd: xmit_toc_binary: ID: IBP, offset(0x0), size(0x8598), bsize(34200)
1271: 04-20 14:33:39.415 D/boot ( 2865): cbd: xmit_toc_binary: bsize(34200), to read(3584)
1272: 04-20 14:33:39.415 D/boot ( 2865): cbd: xmit_toc_binary: read(3584)
1273: 04-20 14:33:39.415 D/boot ( 2865): cbd: xmit_toc_binary: write(3584) bsize(30616)

(as cbd is doing something with the modem partition, /dev/block/mmcblk0p13, this must be where it reads and processes the modem partition).

also notice how this process later on says, in your stock log:

2623: 04-20 14:33:50.345 D/boot ( 2865): cbd: main: Boot up process done!!!
2624: 04-20 14:33:50.345 D/boot ( 2865): cbd: status_loop: CP status_loop start(modem = 11)

To me it seems you're not starting that daemon (correctly), hence modem doesn't boot :) It already seemed your modem wasn't even booting (staying at status 3 and then followed by a time-out), I'm starting to understand why ;)

*EDIT* actually, i see in your dmesg that you ARE starting the cbd daemon ... hmm... going to look into this ...

*EDIT2* Ah, it seems your cbd is starting and trying to write to the radio log buffer but some permission issue is keeping it from that, it seems you have SElinux enabled ? Just disable it for the time being. All this stuff seems to be why it's not outputting anything to the radio buffer:

<36>[ 5.893230] [c3] type=1400 audit(1429441748.920:18): avc: denied { open } for pid=2875 comm="cbd" path="/dev/kmsg" dev="tmpfs" ino=5055 scontext=u:r:cpboot-daemon:s0 tcontext=u:object_r:kmsg_device:s0 tclass=chr_file
<36>[ 5.893365] [c3] type=1400 audit(1429441748.920:18): avc: denied { syslog_read } for pid=2875 comm="cbd" scontext=u:r:cpboot-daemon:s0 tcontext=u:r:kernel:s0 tclass=system
<3>[ 5.893417] [c2] mif: cbd: check_debug_level: debug level=0, cp_debug=0

also see this, seems to be a permissioning error related to cbd:

<36>[ 5.891118] [c0] type=1400 audit(1429441748.915:17): avc: denied { transition } for pid=2875 comm="init" path="/sbin/cbd" dev="rootfs" ino=6637 scontext=u:r:init:s0 tcontext=u:r:cpboot-daemon:s0 tclass=process
<36>[ 5.891479] [c0] type=1400 audit(1429441748.915:17): avc: denied { entrypoint } for pid=2875 comm="init" path="/sbin/cbd" dev="rootfs" ino=6637 scontext=u:r:cpboot-daemon:s0 tcontext=u:object_r:rootfs:s0 tclass=file
<36>[ 5.891686] [c0] type=1400 audit(1429441748.915:17): avc: denied { rlimitinh } for pid=2875 comm="cbd" scontext=u:r:init:s0 tcontext=u:r:cpboot-daemon:s0 tclass=process
<36>[ 5.891832] [c0] type=1400 audit(1429441748.915:17): avc: denied { siginh } for pid=2875 comm="cbd" scontext=u:r:init:s0 tcontext=u:r:cpboot-daemon:s0 tclass=process

Now starting to think that it's because of some permissioning issue that cbd can't communicate about the modem status to RILD ? Going to look into it some more though ... But try disabling Selinux !!

Actually I think this is your problem, [MENTION=3463426]RaymanFX[/MENTION] !! See this in your dmesg log:

The cbd daemon actually DOES boot the modem correctly and when it's succesfully done booting it, it wants to communicate it to your RILD: "Hey man I'm done booting the modem !", but your SELinux permissioning keeps it from communicating that !! So your RILD keeps waiting, doesn't get any feed back about the modem and then, sadly disappointed by all this, it decides to put it in a time-out status.

Disable Selinux (or correctly permission cbd), check all other permissions related to cbd, fix them up and I think you'll have a winner :)