[C2] udev tries making symlinks, in vain

REPRODUCIBILITY: 100% (always)
OSVERSION: 5.0.0.21
HARDWARE: Reeder S19 Max Pro S - s19mps - s19mps - 1.0.0.15 - aarch64
UI LANGUAGE: English (UK) (user: en_GB, os: en_GB.utf8)
REGRESSION: no

DESCRIPTION:

See below, journal reports this every couple of seconds or so.

PRECONDITIONS:

STEPS TO REPRODUCE:

  1. open a console session
  2. run journalctl -af

EXPECTED RESULTS:

ACTUAL RESULTS:

Oct 31 00:30:16 JollaC2 systemd-udevd[14111]: Process '/bin/ln -s /dev/block/sda2 /dev/block/platform/soc/soc:ap-apb/by-nam
e/miscdata' failed with exit code 1.
Oct 31 00:30:16 JollaC2 systemd-udevd[14111]: Process '/bin/ln -s /dev/block/sda2 /dev/block/platform/soc/soc:ap-apb/by-num
/p2' failed with exit code 1.
Oct 31 00:30:16 JollaC2 systemd-udevd[14111]: Process '/bin/ln -s /dev/block/sda2 /dev/block/platform/soc/soc:ap-apb/sda2'
failed with exit code 1.

MODIFICATIONS:

  • Patchmanager: no
  • OpenRepos: yes
  • Chum: yes
  • Other: none specified

ADDITIONAL INFORMATION:

Device Owner User: defaultuser
Home Encryption: enabled

the initial version of this bug report was created using Bugger 0.9.10+git7
2 Likes

Seems to be because of /lib/udev/rules.d/998-droid-system.rules:

ENV{ID_PART_ENTRY_SCHEME}=="gpt", ENV{ID_PART_ENTRY_NAME}=="?*", RUN+="/bin/ln -s /dev/block/$name /dev/block/platform/$env
{PLATFORM_FOLDER}/$env{PLATFORM_DEVICE}/by-name/$env{ID_PART_ENTRY_NAME}"
ENV{ID_PART_ENTRY_SCHEME}=="gpt", ENV{ID_PART_ENTRY_NAME}=="?*", RUN+="/bin/ln -s /dev/block/$name /dev/block/platform/$env
{PLATFORM_FOLDER}/$env{PLATFORM_DEVICE}/by-num/p$env{ID_PART_ENTRY_NUMBER}"
ENV{ID_PART_ENTRY_SCHEME}=="gpt", ENV{ID_PART_ENTRY_NAME}=="?*", RUN+="/bin/ln -s /dev/block/$name /dev/block/platform/$env
{PLATFORM_FOLDER}/$env{PLATFORM_DEVICE}/$name"
2 Likes

Also, this line appears regularly:

Oct 31 11:44:52 JollaC2 systemd-udevd[11240]: Process '/usr/bin/droid/droid-load-firmware.sh' failed with exit code 1.

Running root@JollaC2:/home/nemo # sh -x /usr/bin/droid/droid-load-firmware.sh gives:

+ FIRMWARE_FOLDERS='/system/etc/firmware/ /odm/firmware/ /vendor/firmware/ /firmware/image/ /vendor/firmware_mnt/image/'
+ log 'Attempting to load firmware  for '
+ logger -p daemon.info -t firmware 'Attempting to load firmware  for '
+ '[' -e /sys/loading ']'
+ log 'Failed to find /sys/loading, could not load .'
+ logger -p daemon.info -t firmware 'Failed to find /sys/loading, could not load .'
+ exit 1

root@JollaC2:/home/nemo # FIRMWARE_FOLDERS="/system/etc/firmware/ /odm/firmware/ /vendor/firmware/ /firmware/image/ /vendor/firmware_mnt/image/"
root@JollaC2:/home/nemo # for f in $FIRMWARE_FOLDERS; do [ -d $f ] && echo $f exists || echo $f does not exist; done           /system/etc/firmware/ does not exist
/odm/firmware/ exists
/vendor/firmware/ exists
/firmware/image/ does not exist
/vendor/firmware_mnt/image/ does not exist

Also, this related thing shows up in the logs:

Oct 31 23:09:03 kernel: <E>CTS-Firmware Could not load firmware from chipone_firmware.bin: -2
Oct 31 23:09:03 kernel: <E>CTS-Firmware Request from file 'chipone_firmware.bin' failed -2
Oct 31 23:09:03 kernel: <E>CTS-Core Request default firmware failed 0, please update manually!!
Oct 31 23:09:03 kernel: <I>CTS-Core Start device...
Oct 31 23:09:03 kernel: <I>CTS-Core Start device successfully
Oct 31 23:09:04 kernel: binder: 1502:1502 transaction failed 29189/-22, size 32-0 line 3131
Oct 31 23:09:05 kernel: binder: 1502:1502 transaction failed 29189/-22, size 32-0 line 3131
Oct 31 23:09:05 kernel: <E>CTS-Plat !!! I2C addr 0x48 is offline !!!
Oct 31 23:09:06 kernel: binder: 1502:1502 transaction failed 29189/-22, size 32-0 line 3131
Oct 31 23:09:06 kernel: [SPRD_RTCDBG] setting time: 2024-10-31 22:9:7
Oct 31 23:09:07 kernel: binder: 1502:1502 transaction failed 29189/-22, size 32-0 line 3131
Oct 31 23:09:07 kernel: <E>CTS-Plat !!! I2C addr 0x48 is offline !!!
Oct 31 23:09:07 kernel: <E>CTS-Core ESD protection read normal mode failed, reset chip!
Oct 31 23:09:07 kernel: <I>CTS-Core Reset device
Oct 31 23:09:07 kernel: <I>CTS-Plat Reset device
Oct 31 23:09:08 kernel: binder: 1502:1502 transaction failed 29189/-22, size 32-0 line 3131
Oct 31 23:09:08 kernel: sc2355 sprd-wlan:mm_single_buffer_alloc: Node list is NULL.
Oct 31 23:09:08 kernel: sc2355 sprd-wlan:mm_buffer_alloc: alloc num: 51, need num: 53, ret: -1
Oct 31 23:09:09 kernel: binder: 1502:1502 transaction failed 29189/-22, size 32-0 line 3131
Oct 31 23:09:09 kernel: <E>CTS-Plat !!! I2C addr 0x48 is offline !!!
Oct 31 23:09:09 kernel: <W>CTS-Core ESD protection check failed, update firmware!!!
Oct 31 23:09:09 kernel: <I>CTS-Core Stop device...
Oct 31 23:09:09 kernel: <I>CTS-Plat Release all touch
Oct 31 23:09:09 kernel: <I>CTS-Firmware Request newer if match hwid: 99c160 fwid: 9959 && ver > 0000
Oct 31 23:09:09 kernel: <I>CTS-Firmware Request driver builtin if match hwid: 99c160 fwid: 9959 && ver > 0000
Oct 31 23:09:09 kernel: <E>CTS-Firmware Found driver builtin 'OEM-Project' hwid: 99c160 fwid: 9959 data: 0000000088968a17 size: 0 INVALID
Oct 31 23:09:09 kernel: <I>CTS-Firmware No newer driver builtin found
Oct 31 23:09:09 kernel: <I>CTS-Firmware Request from file 'chipone_firmware.bin' if version > 0000
Oct 31 23:09:09 kernel: <I>CTS-Firmware Filepath is only filename, use request_firmware()
Oct 31 23:09:09 kernel: input input48: Direct firmware load for chipone_firmware.bin failed with error -2
Oct 31 23:09:09 kernel: input input48: Falling back to sysfs fallback for: chipone_firmware.bin
Oct 31 23:09:09 firmware[37562]: Attempting to load firmware chipone_firmware.bin for /devices/platform/soc/soc:ap-apb/20100000.i2c/i2c-3/3-0048/input/input48/chipone_firmware.bin
Oct 31 23:09:09 firmware[37563]: Failed to find firmware chipone_firmware.bin for /devices/platform/soc/soc:ap-apb/20100000.i2c/i2c-3/3-0048/input/input48/chipone_firmware.bin
Oct 31 23:09:09 kernel: firmware chipone_firmware.bin: firmware_loading_store: unexpected value (0)
Oct 31 23:09:09 kernel: <E>CTS-Firmware Could not load firmware from chipone_firmware.bin: -2
Oct 31 23:09:09 kernel: <E>CTS-Firmware Request from file 'chipone_firmware.bin' failed -2
Oct 31 23:09:09 kernel: <E>CTS-Core Request default firmware failed 0, please update manually!!
Oct 31 23:09:09 kernel: <I>CTS-Core Start device...
Oct 31 23:09:09 kernel: <I>CTS-Core Start device successfully
Oct 31 23:09:09 systemd-udevd[37560]: Process '/usr/bin/droid/droid-load-firmware.sh' failed with exit code 1.
1 Like

Did you rename default user back to nemo? How?

Maybe he had restored backup from old phone where SFOS was still setup with nemo as user and just symlinked it to the defaultUser on the new phone after restore, so now both directories exists under the /home?

Yes, I nemo-ed my installation, and guides how to do that are hidden behind a search on this very forum.

Now, this is a bug report. Please keep it on topic.

1 Like