j1xlte-gtelwifiue / android_device_samsung_j1xlte

0 stars 0 forks source link

Cellular doesn't work #3

Closed j1xlte-gtelwifiue closed 2 years ago

j1xlte-gtelwifiue commented 2 years ago

nv_data.bin errors

[ 2938.170790] [c0] mif: cbd: start_shannon310_boot: NV validation TIMEOUT
[ 2938.170907] [c0] mif: cbd: boot_wake_lock: /sys/power/wake_lock/ss310
[ 2938.170976] [c0] mif: misc_open: umts_boot0 (opened 1) by cbd
[ 2938.171008] [c0] mif: cbd: std_boot_prepare_args: DEV(/dev/umts_boot0) opened (fd 4)
[ 2938.171085] [c0] mif: cbd: prepare_boot_args: BIN(/dev/block/platform/13540000.dwmmc0/by-name/RADIO) opened (fd 5)
[ 2938.179020] [c0] mif: cbd: prepare_boot_args: toc[0].name = TOC, b_off=0, m_off=0, size=512
[ 2938.179069] [c0] mif: cbd: prepare_boot_args: toc[1].name = BOOT, b_off=512, m_off=1073741824, size=5608
[ 2938.179108] [c0] mif: cbd: prepare_boot_args: toc[2].name = MAIN, b_off=6144, m_off=1073807360, size=32744124
[ 2938.179144] [c0] mif: cbd: prepare_boot_args: toc[3].name = NV, b_off=0, m_off=1150287872, size=1048576
[ 2938.179196] [c0] mif: cbd: prepare_boot_args: ERR! no NV(/efs/nv_data.bin) file
[ 2938.179225] [c0] mif: cbd: create_empty_nv: create NV(/efs/nv_data.bin)
[ 2938.179275] [c0] mif: cbd: create_empty_nv: ERR! NV(/efs/nv_data.bin) open fail (Read-only file system)
[ 2938.179307] [c0] mif: cbd: prepare_boot_args: ERR! create_empty_nv(/efs/nv_data.bin, 1048576) fail
[ 2938.179337] [c0] mif: misc_release: umts_boot0 (opened 0) by cbd
[ 2938.179446] [c0] mif: cbd: start_shannon310_boot: ERR! prepare_boot_args fail
[ 2938.179527] [c0] mif: cbd: boot_wake_lock: /sys/power/wake_unlock/ss310
[ 2939.188547] [c0] mif: cbd: main: Modem type = 13
[ 2939.188585] [c0] mif: cbd: main: Boot link = 9
[ 2939.188609] [c0] mif: cbd: main: Main link = 9
[ 2939.188828] [c0] mif: cbd: start_shannon310_boot: CP boot device = /dev/umts_boot0
[ 2939.193965] [c0] mif: cbd: start_shannon310_boot: CP binary file = /dev/block/platform/13540000.dwmmc0/by-name/RADIO
[ 2939.194002] [c0] mif: cbd: start_shannon310_boot: CP NV file = /efs/nv_data.bin
[ 2939.194030] [c0] mif: cbd: start_shannon310_boot: BOOT link SHMEM
[ 2939.194057] [c0] mif: cbd: start_shannon310_boot: MAIN link SHMEM
j1xlte-gtelwifiue commented 2 years ago

The above is caused by /efs not being mounted in the android container. Mounting it at boot causes a kernel panic. Mounting it in init.baseband.rc just before enable cpboot-daemon makes cbd and rild boot properly, however the network still doesn't show up on the phone ui.

j1xlte-gtelwifiue commented 2 years ago

The network shows on the phone ui when ofono is configured with this config in /etc/ofono/ril_subscription.conf (without the [ril_1] lines)