alefnode / opensuse-sdm845-images

4 stars 1 forks source link

some issues collected with oneplus 6t #1

Open gmicroul opened 3 weeks ago

gmicroul commented 3 weeks ago

1 Device Name default to Pocophone F1 and can not hardcode to system after reboot will resume it

2 Sound device is dummy but aplay can show device as 6T

3 root partition is very small and data partition seems not mount into system.

4 power charge is very slow and difficulty.

5 firefox to open video website can not touch anything.

6 good working are wifi fast,bluetooth fast.UI fast.

the issues from below images sdm845/openSUSE-Tumbleweed-ARM-PHOSH-oneplus6.aarch64.root.img 2023-01-30T20:35:48.860000 2.9 GB sdm845/openSUSE-Tumbleweed-ARM-PHOSH-oneplus6fajita.aarch64.boot.img 2023-01-30T20:49:57.409000 34 MB

phablet@openSUSE:~> fastfetch ...... phablet@openSUSE .,cdxxxoc,. .:kKMMMNWMMMNk:. ---------------- cKMMN0OOOKWMMXo. A ;0MWk:' ':OMMk. OS: openSUSE Tumbleweed 20230121 aarch64 ;WMK;' 'lKMMNM, :NMK' 'OMW; Host: OnePlus 6T cMW; WMMMN ,XMK' oMM. Kernel: Linux 5.19.6-2.gd9b2122-sdm845 .MMc ''^~l. xMN: KM0 Uptime: 17 mins 'MM. .NMO oMM Packages: 1211 (rpm) .MM, .kMMl xMN Shell: bash 5.2.15 KM0 .kMM0' .dl>~,. .WMd Display (DSI-1): 1080x2340 @ 60 Hz (as 360x780) in 6" 'XM0. ,OMMK' OMMM7' .XMK WM: phoc (Wayland) WMO:. .;xNMMk' NNNMKl. .xWMx Terminal: /dev/pts/1 ^ONMMNXMMMKx; V 'xNMWKkxllox0NMWk' CPU: sdm845 (8) @ 2.65 GHz ''''' ':dOOXXKOxl' Memory: 995.58 MiB / 7.42 GiB (13%) Swap: Disabled Disk (/): 3.59 GiB / 4.01 GiB (89%) - ext4 Local IP (wlan0): 192.168.2.139/24 Battery: 0% (12 hours, 40 mins remaining) [Discharging]------------charging but show wrong status Locale: en_US.UTF-8

phablet@openSUSE:~> phablet@openSUSE:~> df -h Filesystem Size Used Avail Use% Mounted on devtmpfs 10M 0 10M 0% /dev /dev/sda17 4.1G 3.6G 205M 95% / tmpfs 3.8G 1.8M 3.8G 1% /dev/shm tmpfs 1.5G 2.1M 1.5G 1% /run tmpfs 3.8G 4.0K 3.8G 1% /tmp tmpfs 760M 64K 760M 1% /run/user/1000

phablet@openSUSE:~> systemctl --user status pulseaudio ● pulseaudio.service - Sound Service Loaded: loaded (/usr/lib/systemd/user/pulseaudio.service; disabled; preset: disabled) Active: active (running) since Thu 1970-01-01 22:16:47 CST; 54 years 9 months ago TriggeredBy: ● pulseaudio.socket Main PID: 821 (pulseaudio) Tasks: 2 (limit: 4915) Memory: 15.5M CPU: 445ms CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/pulseaudio.service └─821 /usr/bin/pulseaudio --daemonize=no --log-target=journal

Jan 01 22:16:47 openSUSE pulseaudio[821]: Could not find org.bluez.BatteryProviderManager1.RegisterBatteryProvider(), is bluetoothd started with experimental features enabled (-E flag)? Jan 01 22:16:47 openSUSE pulseaudio[821]: Failed to find a working profile. Jan 01 22:16:47 openSUSE pulseaudio[821]: Failed to load module "module-alsa-card" (argument: "device_id="0" name="platform-soc_0_sound" card_name="alsa_card.platform-soc_0_sound" namereg_fa> Jan 01 22:16:47 openSUSE pulseaudio[821]: Failed to find a working profile. Jan 01 22:16:47 openSUSE pulseaudio[821]: Failed to load module "module-alsa-card" (argument: "device_id="0" name="platform-soc_0_sound" card_name="alsa_card.platform-soc_0_sound" namereg_fa> Jan 01 22:16:47 openSUSE pulseaudio[821]: Failed to find a working profile. Jan 01 22:16:47 openSUSE pulseaudio[821]: Failed to load module "module-alsa-card" (argument: "device_id="0" name="platform-soc_0_sound" card_name="alsa_card.platform-soc_0_sound" namereg_fa> Jan 01 22:16:47 openSUSE pulseaudio[821]: Failed to find a working profile. Jan 01 22:16:47 openSUSE pulseaudio[821]: Failed to load module "module-alsa-card" (argument: "device_id="0" name="platform-soc_0_sound" card_name="alsa_card.platform-soc_0_sound" namereg_fa> Jan 01 22:16:47 openSUSE pulseaudio[821]: Tried to configure /devices/platform/soc@0/soc@0:sound/sound/card0 (alsa_card.platform-soc_0_sound) more often than 5 times in 10s phablet@openSUSE:~>

phablet@openSUSE:~> aplay -L null Discard all samples (playback) or generate zero samples (capture) pulse PulseAudio Sound Server default Default ALSA Output (currently PulseAudio Sound Server) sysdefault:CARD=O6T OnePlus 6T, Default Audio Device

phablet@openSUSE:~> aplay -l List of PLAYBACK Hardware Devices card 0: O6T [OnePlus 6T], device 0: MultiMedia1 () [] Subdevices: 1/1 Subdevice #0: subdevice #0 card 0: O6T [OnePlus 6T], device 1: MultiMedia2 () [] Subdevices: 1/1 Subdevice #0: subdevice #0 card 0: O6T [OnePlus 6T], device 2: MultiMedia3 (*) [] Subdevices: 1/1 Subdevice #0: subdevice #0

gmicroul commented 3 weeks ago

here is the same in Plasma about the sound and bluetooth is disabled and can not enable.

phablet@openSUSE:~> systemctl --user status pulseaudio ● pulseaudio.service - Sound Service Loaded: loaded (/usr/lib/systemd/user/pulseaudio.service; disabled; preset: disabled) Active: active (running) since Fri 2024-11-01 04:39:32 UTC; 51s ago TriggeredBy: ● pulseaudio.socket Main PID: 1811 (pulseaudio) Tasks: 5 (limit: 4915) Memory: 9.2M CPU: 813ms CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/pulseaudio.service ├─1811 /usr/bin/pulseaudio --daemonize=no --log-target=journal └─1835 /usr/libexec/pulse/gsettings-helper

Nov 01 04:39:30 openSUSE systemd[757]: Starting Sound Service... Nov 01 04:39:32 openSUSE systemd[757]: Started Sound Service. Nov 01 04:39:32 openSUSE pulseaudio[1811]: ALSA woke us up to write new data to the device, but there was actually nothing to write. Nov 01 04:39:32 openSUSE pulseaudio[1811]: Most likely this is a bug in the ALSA driver 'snd_soc_sdm845'. Please report this issue to the ALSA developers. Nov 01 04:39:32 openSUSE pulseaudio[1811]: We were woken up with POLLOUT set -- however a subsequent snd_pcm_avail() returned 0 or another value < min_avail.

phablet@openSUSE:~> fastfetch ...... phablet@openSUSE .,cdxxxoc,. .:kKMMMNWMMMNk:. ---------------- cKMMN0OOOKWMMXo. A ;0MWk:' ':OMMk. OS: openSUSE Tumbleweed 20230317 aarch64 ;WMK;' 'lKMMNM, :NMK' 'OMW; Host: OnePlus 6T cMW; WMMMN ,XMK' oMM. Kernel: Linux 6.1.3-7-sdm845 .MMc ''^~l. xMN: KM0 Uptime: 4 mins 'MM. .NMO oMM Packages: 1214 (rpm) .MM, .kMMl xMN Shell: bash 5.2.15 KM0 .kMM0' .dl>~,. .WMd Display (DSI-1): 1080x2340 @ 60 Hz (as 360x780) in 6" 'XM0. ,OMMK' OMMM7' .XMK DE: KDE Plasma WMO:. .;xNMMk' NNNMKl. .xWMx WM: KWin (Wayland) ^ONMMNXMMMKx; V 'xNMWKkxllox0NMWk' WM Theme: Breeze ''''' ':dOOXXKOxl' Theme: Breeze (Light) [Qt] Icons: Breeze [Qt] Font: Noto Sans (10pt) [Qt] Cursor: Breeze (24px) Terminal: /dev/pts/0 CPU: sdm845 (8) @ 2.65 GHz GPU: Qualcomm Turnip Adreno (TM) 630 [Integrated] Memory: 1.63 GiB / 7.42 GiB (22%) Swap: Disabled Disk (/): 3.47 GiB / 108.20 GiB (3%) - ext4 Local IP (wlan0): 192.168.2.249/24 Battery: 33% [Charging, AC Connected] Locale: en_US.UTF-8

phablet@openSUSE:~>

phablet@openSUSE:~> df -h Filesystem Size Used Avail Use% Mounted on devtmpfs 10M 0 10M 0% /dev /dev/sda17 109G 3.5G 101G 4% / tmpfs 3.8G 0 3.8G 0% /dev/shm tmpfs 1.5G 2.0M 1.5G 1% /run tmpfs 3.8G 12K 3.8G 1% /tmp tmpfs 760M 48K 760M 1% /run/user/1000

phablet@openSUSE:~> phablet@openSUSE:~> dmesg|grep sound [ 1.765101] No soundcards found. [ 5.869092] qcom-soundwire wcd934x-soundwire.3.auto: DMA mask not set [ 5.978849] qcom-soundwire wcd934x-soundwire.3.auto: Qualcomm Soundwire controller v1.3.0 Registered [ 6.874154] input: OnePlus 6T Headset Jack as /devices/platform/soc@0/soc@0:sound/sound/card0/input5 phablet@openSUSE:~>

phablet@openSUSE:~> dmesg|grep -i bluetooth [ 5.569754] Bluetooth: Core ver 2.22 [ 5.570656] NET: Registered PF_BLUETOOTH protocol family [ 5.570661] Bluetooth: HCI device and connection manager initialized [ 5.570673] Bluetooth: HCI socket layer initialized [ 5.570677] Bluetooth: L2CAP socket layer initialized [ 5.570687] Bluetooth: SCO socket layer initialized [ 5.626680] Bluetooth: HCI UART driver ver 2.3 [ 5.626690] Bluetooth: HCI UART protocol H4 registered [ 5.628032] Bluetooth: HCI UART protocol LL registered [ 5.638353] Bluetooth: HCI UART protocol Broadcom registered [ 5.640422] Bluetooth: HCI UART protocol QCA registered [ 5.641618] Bluetooth: HCI UART protocol Marvell registered [ 5.721363] Bluetooth: hci0: setting up wcn399x [ 5.861783] Bluetooth: hci0: QCA Product ID :0x0000000a [ 5.861794] Bluetooth: hci0: QCA SOC Version :0x40010214 [ 5.861796] Bluetooth: hci0: QCA ROM Version :0x00000201 [ 5.861798] Bluetooth: hci0: QCA Patch Version:0x00000001 [ 5.894975] Bluetooth: hci0: QCA controller version 0x02140201 [ 5.894987] Bluetooth: hci0: QCA Downloading qca/crbtfw21.tlv [ 6.754194] Bluetooth: hci0: QCA Downloading qca/oneplus6/crnv21.bin [ 6.805535] Bluetooth: hci0: QCA TLV with error stat 0x0 rtype 0x4 (0x5) [ 6.810685] Bluetooth: hci0: QCA setup on UART is completed [ 8.834374] Bluetooth: hci0: Opcode 0x c03 failed: -110

phablet@openSUSE:~>

working well are wifi fast,power charge normally, console keyboard lovely

gmicroul commented 2 weeks ago

New build of 6.11 , the boot.img is large than 64M, can not flash into phone.

alefnode commented 2 weeks ago

How did you try it? i am already testing 6.11

gmicroul commented 2 weeks ago

I found 6.1.3 version first. then found the repo. may i know everything good for 6.11?

gmicroul commented 2 weeks ago

Please help to check if any wrong for the script as can not boot into system. always boot in bootloader.

mkbootimg --kernel ${MOUNTED_IMAGE_DIR}/boot/Image-6.11.0-36.gb87e886-sdm845 --dtb ${MOUNTED_IMAGE_DIR}/boot/dtb/qcom/sdm845-${DTB_VENDOR}-${variant}.dtb --pagesize 4096 \
    --base 0x00000000 --kernel_offset 0x00008000 --second_offset 0x00f00000 --tags_offset 0x00000100 \
    --cmdline "root=/dev/block/sda21" --output bootimg-${variant}.img
alefnode commented 2 weeks ago

is still in development.

In other hand: #3 root partition is very small and data partition seems not mount into system. You can solve it with command resize2fs

alefnode commented 2 weeks ago

i do not have oneplus 6t but with oneplus 6 i tested latest image and all seams to work, i will try to get oneplus6t also working.

gmicroul commented 2 weeks ago

image

Good to hear you can support 6t for the advance.

alefnode commented 2 weeks ago

I have booting release for 6.11 but is still in development, as there is no audio photo_2024-11-08_11-50-49 Give me a few days more

gmicroul commented 2 weeks ago

Sure, but i want to know why i compile with all.sh. the boot.img can not work. as you can see the zimage is too large below: -rw-r--r-- 1 root root 43M Sep 25 05:56 Image

unpack zImage: -rw-r--r-- 1 abc abc 20M Nov 12 19:08 1_kernel_header.bin -rw-r--r-- 1 abc abc 52K Nov 12 19:08 2_kernel_gzip.gz -rw-r--r-- 1 abc abc 24M Nov 12 19:08 3_kernel_footer.bin

From 6.1.3, also can see 2 zImage in system. the default also 43M. is it the script push wrong file to kernel? phablet@openSUSE:~> ls -ltrh /usr/lib/modules/6.1.3-7-sdm845/Image

-rw-r--r-- 1 root root 25M Mar 21 2023 /usr/lib/modules/6.1.3-7-sdm845/Image

phablet@openSUSE:~> ls -ltrh /usr/lib/modules/6.2.6-1-default/Image

-rw-r--r-- 1 root root 43M Mar 17 2023 /usr/lib/modules/6.2.6-1-default/Image

phablet@openSUSE:~>

build.log: @alefnode ls -ltrh imgfs/usr/lib/modules/*-sdm845/ total 63M -rwxr-xr-x 1 root root 12M Sep 25 05:56 vmlinux.xz -rw-r--r-- 1 root root 462 Sep 25 05:56 sysctl.conf -rw-r--r-- 1 root root 115K Sep 25 05:56 symvers.gz -rw-r--r-- 1 root root 33K Sep 25 05:56 modules.order -rw-r--r-- 1 root root 713 Sep 25 05:56 modules.fips -rw-r--r-- 1 root root 162K Sep 25 05:56 modules.builtin.modinfo -rw-r--r-- 1 root root 26K Sep 25 05:56 modules.builtin -rw-r--r-- 1 root root 237K Sep 25 05:56 config -rw-r--r-- 1 root root 6.9M Sep 25 05:56 System.map -rw-r--r-- 1 root root 43M Sep 25 05:56 Image drwxr-xr-x 10 root root 4.0K Nov 11 19:02 kernel -rw-r--r-- 1 root root 107K Nov 11 19:02 modules.dep.bin -rw-r--r-- 1 root root 73K Nov 11 19:02 modules.dep -rw-r--r-- 1 root root 349K Nov 11 19:02 modules.alias -rw-r--r-- 1 root root 346K Nov 11 19:02 modules.alias.bin -rw-r--r-- 1 root root 55 Nov 11 19:02 modules.weakdep -rw-r--r-- 1 root root 144K Nov 11 19:02 modules.symbols -rw-r--r-- 1 root root 231 Nov 11 19:02 modules.softdep -rw-r--r-- 1 root root 176K Nov 11 19:02 modules.symbols.bin -rw-r--r-- 1 root root 150 Nov 11 19:02 modules.devname -rw-r--r-- 1 root root 27K Nov 11 19:02 modules.builtin.bin -rw-r--r-- 1 root root 17K Nov 11 19:02 modules.builtin.alias.bin