AOSP 9.0 on G8441 - bootloop - Sony Xperia XZ1 Compact Questions & Answers

Platform: Yoshino
Device: G8441
Android version: android-9.0.0_r46
Kernel: 4.4
I followed guide by sony on how to build your own android 9.0 and flashed everything needed but phone is most often stuck on bootloop. Sony logo has also weird behavior. On each boot it appears in different position and green lines appear around. Only once it managed to boot after like 20 reboots but when I touched the power button to wake it up, screen was glitching and I had to turn it off. Everything had wrong colors. Sometimes Android logo appears too but then it freezes. I used Ubuntu 16.04 LTS hyper-v VM. I tried to flash it like 10 times, formatted cache, dalvik etc.
Does anyone have any idea what did I do wrong?

This is how log looks like when it boots and screen is going black every second.
Code:
08-29 14:58:34.378 652 3528 I SDM : DisplayPrimary::ResetPanel: Enabling HWVsync
08-29 14:58:34.405 1182 1333 D WindowManager: powerPress: eventTime=1064967 interactive=false count=1 beganFromNonInteractive=false mShortPressOnPowerBehavior=1
08-29 14:58:34.552 652 760 I SDM : HWEventsDRM::HandlePanelDead: Received panel dead event
08-29 14:58:34.625 652 652 W SDM : DisplayPrimary::Prepare: panel is in bad state, resetting the panel
08-29 14:58:34.625 652 652 I SDM : DisplayPrimary::ResetPanel: Powering off built-in/primary 26
08-29 14:58:34.626 652 652 I SDM : DisplayBase::SetDisplayState: Set state = 0, display 26-0
08-29 14:58:34.689 652 652 I SDM : DisplayPrimary::ResetPanel: Restoring power mode on built-in/primary 26
08-29 14:58:34.690 652 652 I SDM : DisplayBase::SetDisplayState: Set state = 1, display 26-0
08-29 14:58:35.250 652 652 I SDM : DisplayPrimary::ResetPanel: Enabling HWVsync
08-29 14:58:35.416 652 760 I SDM : HWEventsDRM::HandlePanelDead: Received panel dead event
08-29 14:58:35.473 652 652 W SDM : DisplayPrimary::Prepare: panel is in bad state, resetting the panel
08-29 14:58:35.473 652 652 I SDM : DisplayPrimary::ResetPanel: Powering off built-in/primary 26
08-29 14:58:35.474 652 652 I SDM : DisplayBase::SetDisplayState: Set state = 0, display 26-0
08-29 14:58:35.544 652 652 I SDM : DisplayPrimary::ResetPanel: Restoring power mode on built-in/primary 26
08-29 14:58:35.546 652 652 I SDM : DisplayBase::SetDisplayState: Set state = 1, display 26-0

LadaB said:
Platform: Yoshino
Device: G8441
Android version: android-9.0.0_r46
Kernel: 4.4
I followed guide by sony on how to build your own android 9.0 and flashed everything needed but phone is most often stuck on bootloop. Sony logo has also weird behavior. On each boot it appears in different position and green lines appear around. Only once it managed to boot after like 20 reboots but when I touched the power button to wake it up, screen was glitching and I had to turn it off. Everything had wrong colors. Sometimes Android logo appears too but then it freezes. I used Ubuntu 16.04 LTS hyper-v VM. I tried to flash it like 10 times, formatted cache, dalvik etc.
Does anyone have any idea what did I do wrong?
Click to expand...
Click to collapse
Have the exact same problem. Same platform, device and android version, but kernel 4.9 and building images on Ubuntu 19.04.
I erased and flashed all partitions listed in their guide.
I have never gotten it to boot successfully. It has gotten past the glitchy Sony logo once. Then "Android" was displayed for a minute, but then it went back into the boot loop again.

lorentzlasson said:
Have the exact same problem. Same platform, device and android version, but kernel 4.9 and building images on Ubuntu 19.04.
I erased and flashed all partitions listed in their guide.
I have never gotten it to boot successfully. It has gotten past the glitchy Sony logo once. Then "Android" was displayed for a minute, but then it went back into the boot loop again.
Click to expand...
Click to collapse
Never got 9 to work. Went with 8.1 and it works like a charm

Related

[Q] HD7 Jtag Done . Help me out in Flashing .

I have done only resurrection from Riff .. ( not full dump )
Phone power on but vibrates several times
here is boot info ..
Security Unlocked
PD29xxx SS-BC (4K)
SPL-5.11.2250.0(0134400) MNG
MicroP(LED) 0x07
TOUCH S1(1.8,#1624)
i have tried this file
RUU_Schubert_S_HTC_Europe_4.05.401.02_Radio_5.69.09.29a_22.50.50.21_Signed_SCHUBERT_RELEASE
1% & then error 226
then i try this
RUU_Schubert_HTC_Europe_5.10.401.04_SLSPL_Signed_by_ansar.zip
error on 11% then same error 226 ..
how can i flash this phone ???
RUU_Schubert_S_HTC_Europe_5.12.401.01_Radio_5.71.09.02a_22.51.50.21_Signed_SCHUBERT_RELEASE.exe
flashing stucks at 7% but spl is changed to 5.12 ..
what should i do ?
no one reply so i write full dump via jtag
phone ok spl is 1.57
Open serial port...OK
Connecting to the RIFF Box...OK
Firmware Version: 1.30, JTAG Manager Version: 1.38
Selected Resurrector: [HTC HD7]
Connecting to the dead body...OK
Detected dead body ID: 0x202400E1 - CORRECT!
Set I/O Voltage reads as 3.00V, TCK Frequency is RTCK
Adaptive Clocking RTCK Sampling is: [Sample at MAX]
Settings Code: 0x0000010020000000000000000025
Resurrection sequence started.
Establish communication with the phone...OK
Initializing internal hardware configuration...OK
Uploading resurrector data into memory...OK
Starting communication with resurrector...OK
Detected an Initialized FLASH1 Chip, ID: 0x00EC/0x66BC (512MB)
Writting FLASH1 memory from 0x0000000000 to 0x001FFFFFFF
Completed in 00:35:01.235 (Average Transfer Rate: 257.31 kB/s)
aamszia said:
no one reply so i write full dump via jtag
phone ok spl is 1.57
Open serial port...OK
Connecting to the RIFF Box...OK
Firmware Version: 1.30, JTAG Manager Version: 1.38
Selected Resurrector: [HTC HD7]
Connecting to the dead body...OK
Detected dead body ID: 0x202400E1 - CORRECT!
Set I/O Voltage reads as 3.00V, TCK Frequency is RTCK
Adaptive Clocking RTCK Sampling is: [Sample at MAX]
Settings Code: 0x0000010020000000000000000025
Resurrection sequence started.
Establish communication with the phone...OK
Initializing internal hardware configuration...OK
Uploading resurrector data into memory...OK
Starting communication with resurrector...OK
Detected an Initialized FLASH1 Chip, ID: 0x00EC/0x66BC (512MB)
Writting FLASH1 memory from 0x0000000000 to 0x001FFFFFFF
Completed in 00:35:01.235 (Average Transfer Rate: 257.31 kB/s)
Click to expand...
Click to collapse
hi
i have a problem exactly like your phone and i downloaded a full dump file from riff box support but it didn't write on phone and there were so error when writing full dump.
now i want to please you give me a link for your full dump that you used for your phone or upload it for me
thank you so much
i need it a.s.a.p if you can do it.
thanks

[DEV-ONLY] CM12 for XT1085 (Chinese Ver)

I have been successfully port cm12 to XT1085, there is almost no difference between 1095 and 1085, and most work has been done by crpalmer.
Here is the changes I made to XT1085: https://github.com/kghost/android_device_motorola_victara
Newest build:
http://conoha.kghost.info/~kghost/cm-12-20150318-UNOFFICIAL-victara.zip (md5sum e2cdfdf5f0571a38a6887b8cd05a1e99)
Working:
* Adb
* Ambient display
* Audio
* Brightness / Auto-brightness
* Bluetooth
* Camera and camcorder
* GPS
* MTP
* NFC (Android beam)
* Offmode charging
* Radio (GSM Voice/SMS)
* Radio (CDMA Voice/SMS)
* Radio (EV-DO Data)
* Radio (EDGE)
* Radio (LTE)
* Rotator
* Sensors
* USB-OTG (keyboard, mouse)
* Vibrator
* Video playback (youtube)
* WiFi
* SELinux enforcing
Not working:
* USB-OTG (storage)
Not tested:
* DRM / Widevine
Quirks / Improvements needed (by crpalmer):
* Ambient display should use sensors
* DRM is only partially working (V8 not V12)
* Graphic glitches occasionally?
* Hotword detection should use offloaded DSP
* USB-OTG doesn't show storage stats in Settings app
* WiFi: update to a newer version of the wlan driver than what moto ships.
Unknown:
* Everything else
Offmode charhing not working, LTE working
xarcom said:
Offmode charhing not working, LTE working
Click to expand...
Click to collapse
Thank you,I‘m looking on it
off-mode charging is broken because framebuffer driver is not working. I haven't locate the problem yet
zealot0630 said:
off-mode charging is broken because framebuffer driver is not working. I haven't locate the problem yet
Click to expand...
Click to collapse
Actually, I fixed it in the kernel yesterday.
crpalmer said:
Actually, I fixed it in the kernel yesterday.
Click to expand...
Click to collapse
awesome, I'll sync/build asap
sorry, don't notice DEV-ONLY,
DELETE.
crpalmer said:
Actually, I fixed it in the kernel yesterday.
Click to expand...
Click to collapse
Unfortunately, framebuffer still doesn't work in new kernel
I found some fb error in my dmesg
Code:
--
<6>[ 0.512739,1] gpiochip_add: registered GPIOs 444 to 447 on device: pm8841-mpp
<6>[ 0.513691,1] gpiochip_add: registered GPIOs 408 to 443 on device: pm8941-gpio
<6>[ 0.516441,1] gpiochip_add: registered GPIOs 401 to 407 on device: pm8941-mpp
<6>[ 0.517337,1] mdss_mdp_probe: MDP HW Base phy_Address=0xfd900000 virt=0xc5500000
<6>[ 0.517437,1] mdss_mdp_probe: MDSS VBIF HW Base phy_Address=0xfd924000 virt=0xc547c000
<3>[ 0.517581,1] mdss_mdp_parse_dt_prop_len: Error from prop qcom,mdss-clk-levels : spec error in device tree
<6>[ 0.519077,1] mdss_dsi_ctrl_probe: DSI Ctrl name = MDSS DSI CTRL->0
<6>[ 0.519171,1] BL: panel=mipi_mot_cmd_smd_fhd_520, manufacture_id(0xDA)= 0x2 controller_ver(0xDB)= 0x6 controller_drv_ver(0XDC)= 0x1, full=0x0000000000010602, detect status = 0x0
<6>[ 0.519281,1] mdss_dsi_panel_init: Panel Name = mipi_mot_cmd_smd_1080_v1
--
<6>[ 0.541628,1] mdss_register_panel: adding framebuffer device fd922800.qcom,mdss_dsi
<6>[ 0.541840,1] mdss_hw_init: MDP Rev=10020001
<6>[ 0.543735,1] mdss_register_panel: adding framebuffer device qcom,mdss_wb_panel.6
<6>[ 0.544416,1] mdss_fb_parse_dt: split framebuffer left=0 right=0
<6>[ 0.544516,1] mdss_fb_register: FrameBuffer[0] 1080x1920 registered successfully!
<4>[ 0.544660,1] mdss_mdp_pp_resume: Failed to get AD info, err = -112
<7>[ 0.544792,1] Registered led device: lcd-backlight
<6>[ 0.544830,1] mdss_fb_parse_dt: split framebuffer left=0 right=0
<6>[ 0.544962,1] mdss_fb_register: FrameBuffer[1] 1920x1080 registered successfully!
<6>[ 0.545087,1] mdss_dsi_status_init: DSI status check interval:8000
<3>[ 0.559139,1] sps: BAM device 0xf9944000 is not registered yet.
<6>[ 0.559237,1] sps:BAM 0xf9944000 is registered.
--
full dmesg http://pastebin.com/9ifL5aMc
would you please paste dmesg on XT1095 ?
zealot0630 said:
Unfortunately, framebuffer still doesn't work in new kernel
I found some fb error in my dmesg
Code:
--
<6>[ 0.512739,1] gpiochip_add: registered GPIOs 444 to 447 on device: pm8841-mpp
<6>[ 0.513691,1] gpiochip_add: registered GPIOs 408 to 443 on device: pm8941-gpio
<6>[ 0.516441,1] gpiochip_add: registered GPIOs 401 to 407 on device: pm8941-mpp
<6>[ 0.517337,1] mdss_mdp_probe: MDP HW Base phy_Address=0xfd900000 virt=0xc5500000
<6>[ 0.517437,1] mdss_mdp_probe: MDSS VBIF HW Base phy_Address=0xfd924000 virt=0xc547c000
<3>[ 0.517581,1] mdss_mdp_parse_dt_prop_len: Error from prop qcom,mdss-clk-levels : spec error in device tree
<6>[ 0.519077,1] mdss_dsi_ctrl_probe: DSI Ctrl name = MDSS DSI CTRL->0
<6>[ 0.519171,1] BL: panel=mipi_mot_cmd_smd_fhd_520, manufacture_id(0xDA)= 0x2 controller_ver(0xDB)= 0x6 controller_drv_ver(0XDC)= 0x1, full=0x0000000000010602, detect status = 0x0
<6>[ 0.519281,1] mdss_dsi_panel_init: Panel Name = mipi_mot_cmd_smd_1080_v1
--
<6>[ 0.541628,1] mdss_register_panel: adding framebuffer device fd922800.qcom,mdss_dsi
<6>[ 0.541840,1] mdss_hw_init: MDP Rev=10020001
<6>[ 0.543735,1] mdss_register_panel: adding framebuffer device qcom,mdss_wb_panel.6
<6>[ 0.544416,1] mdss_fb_parse_dt: split framebuffer left=0 right=0
<6>[ 0.544516,1] mdss_fb_register: FrameBuffer[0] 1080x1920 registered successfully!
<4>[ 0.544660,1] mdss_mdp_pp_resume: Failed to get AD info, err = -112
<7>[ 0.544792,1] Registered led device: lcd-backlight
<6>[ 0.544830,1] mdss_fb_parse_dt: split framebuffer left=0 right=0
<6>[ 0.544962,1] mdss_fb_register: FrameBuffer[1] 1920x1080 registered successfully!
<6>[ 0.545087,1] mdss_dsi_status_init: DSI status check interval:8000
<3>[ 0.559139,1] sps: BAM device 0xf9944000 is not registered yet.
<6>[ 0.559237,1] sps:BAM 0xf9944000 is registered.
--
full dmesg http://pastebin.com/9ifL5aMc
would you please paste dmesg on XT1095 ?
Click to expand...
Click to collapse
What is that a dmesg of? Just a normal boot? I don't see anything that looks like a real error in your dmesg. The dt errors and the AD error are normal.
Are you having problems with the mdss driver in general or just for the charge_only_mode?
crpalmer said:
What is that a dmesg of? Just a normal boot? I don't see anything that looks like a real error in your dmesg. The dt errors and the AD error are normal.
Are you having problems with the mdss driver in general or just for the charge_only_mode?
Click to expand...
Click to collapse
offmode charging works fine, but framebuffer still don't work in normal boot, I don't know if it is ordinary.
zealot0630 said:
offmode charging works fine, but framebuffer still don't work in normal boot, I don't know if it is ordinary.
Click to expand...
Click to collapse
What exactly doesn't work? I'm not entirely sure what you mean by "framebuffer doesn't work in normal boot". Do you get the boot animation?
crpalmer said:
What exactly doesn't work? I'm not entirely sure what you mean by "framebuffer doesn't work in normal boot". Do you get the boot animation?
Click to expand...
Click to collapse
boot animation works, I can't read/write "/dev/graphics/fb0"
zealot0630 said:
boot animation works, I can't read/write "/dev/graphics/fb0"
Click to expand...
Click to collapse
What isn't working? I am still not understanding what you are trying to fix...

Continuous spamming of logcat while device is sleeping

So I just noticed via Android Studio monitor while testing an app under development during device sleep, that it is continuously and at a good rate*, spamming the logcat log with:
10-21 15:59:43.543 239-239/? E/ccci_fsd(1): Failed to read from FS device (-1) !! errno = 4
I've felt that the battery use during sleep since buying it hasn't been all that great. Perhaps that's why with it continually spending the cpu on this.
This is with the latest official OS version for the Blu R1 with Amazon ads.
*Counted 16 lines in 5 seconds
Search turned up nothing. Device appears to work fine.
Factory reset does nothing as suspected. However, currently it looks to only show up when on battery power (I use wifi ADB and found this problem with device in discharge state during sleep) - it should show with a logcat reader app I suspect.
Eg (discharge)
10-21 14:20:38.236 854-919/? E/native: do suspend true
10-21 14:20:39.448 238-238/? E/ccci_fsd(1): Failed to read from FS device (-1) !! errno = 4
10-21 14:20:39.691 238-238/? E/ccci_fsd(1): Failed to read from FS device (-1) !! errno = 4
10-21 14:20:39.932 238-238/? E/ccci_fsd(1): Failed to read from FS device (-1) !! errno = 4
...
Eg (charge)
10-21 14:21:41.685 854-919/? E/native: do suspend true
10-21 14:23:29.666 1781-1871/? E/MPlugin: Unsupported class:
Anyone have any thoughts?
Nevermind, mystery solved. Found out airplane mode with wifi enabled fixes it.
Looks like it could be from not having a sim card.
Thread closed at the request of the OP.

Dead Moto-x, wont even fastboot. Help?

SO, i have a 1st gen Moto X, the 2013 model. Verizon if that matters.
I havent used it in a while, and it was working when i replaced it. I decided to tinker with it a bit a few months ago, and was trying an unlock method i found online, and appear to have bricked it in the process. I figured, no big deal, and tossed it in a cabinet and figured i'd come back to it later. Well now is later. I'd like to get the thing working so my daughter might be able to play with it.
It wont power on, if you connect it to power, either USB or a wall plug, it does nothing, no charging indicator, nothing. I cant power it on, cant fastboot, cant get to recovery, nothing.
In my attempts to restore it, i've got the moto drivers and whatnot installed, and my Windows laptop will recognise it and add it to device manager, as "Qualcomm HS-USB QDLoader 9008 (COMx)". Which makes be believe there is hope.
I tried the procedure here: https://forum.xda-developers.com/moto-x/general/how-to-resurrecting-bricked-moto-x-t2629057, with no success, i get an error while it's trying to get an handshake from the device.
Code:
C:\Users\war\Desktop\MotoX Recovery\blankflash\blankflash>qflash -com7 -ramload MPRG8960.hex -mbn 33 MSM8960_bootloader_singleimage.bin -v -o
Motorola qflash Utility version 1.3
COMPORT :COM7
RAMLOADER :MPRG8960.hex
type is 0x21
7 mbn file name MSM8960_bootloader_singleimage.bin type 33
verbose mode on
Motorola qflash dll version 1.6
RAMLOADER VERSION: PBL_DloadVER2.0
------------------------------------------------------
DEVICE INFORMATION:
------------------------------------------------------
Version : 0x8
Min Version : 0x1
Max Write Size: 0x600
Model : 0x90
Device Size : 0
Description : Intel 28F400BX-TL or Intel 28F400BV-TL
------------------------------------------------------
Using passed in packet size, changing from 0x600 -> 0x600
EXTENDED_LINEAR_ADDRESS_REC @ 0x2a000000
Write 65536 bytes @ 0x2a000000
100EXTENDED_LINEAR_ADDRESS_REC @ 0x2a010000
Write 11840 bytes @ 0x2a010000
100START_LINEAR_ADDRESS_REC @ 0x2a000000
EOF_REC
Sleeping for 3s
No data read from USB. This may not be an error. Trying again...
No data read from USB. This may not be an error. Trying again...
No data read from USB. This may not be an error. Trying again...
No data read from USB. This may not be an error. Trying again...
No data read from USB. This may not be an error. Trying again...
Still no data, giving up!
sdl_hello() - Failed to receive ACK
sdl_hello() - Invalid response: 7e030003331b7e
sdl_hello() - This is a NAK response from ROM code, which means the device has been reset back to blank flash mode. Usually this is caused by power supply issues. Please try again with battery eliminator if it persists
I've had no luck finding a way around that.
If i hold the power button for 10 seconds, while plugged into my PC's usb port, the green indicator light behind the speaker lights up for a second, and then goes out. Same deal if I try to do power+vol-up or vol-down.
Any suggestion that might help me move this along? If i can get it to fastboot, or a recovery image, I think I can get it from there.
Thanks!
That's obsolete, and won't work for your lastest bootloader. See next thread. And don't flash Moto at random next time)
Thanks for the response. I'll give that thread a look!

[INFO] Nexus 5 booting kernel 4.11

Hi,
i just wanted to give some information on my latest attempts to boot kernel 4.11 on the Nexus 5.
This is just for fun or at least a proof of concept to boot mainline kernel.
Have a look at bootup text file attached to this post.
You may first see my other post here:
https://forum.xda-developers.com/showpost.php?p=72681973&postcount=13
As i already stated this "project" is of no real practical use, other then learning about latest kernel and getting used to DTS files.
Many parts are missing and booting into Android would be a very dusty and rocky road... it is more that this will never happen!
Anyway i decided to switch to kernel 4.11, as there'd been some improvements on some SoC internals (e.g. USB).
So i took this kernel:
https://git.linaro.org/landing-team...shot/kernel-release/db820c/qcomlt-4.11.tar.gz
After some first tests i decided to check out more options in the kernel config file to get little nearer to the 3.4 kernel config we all know.
You'll find the config file below.
In order to do some testing easily i decided to use TWRP recovery as an initrd here.
To make it more handy i simply added a service to get a console shell.
In other words, there's busybox and some other tools to examine the system.
The image uses the serial debug console as the user interface.
To interact with the system you'll need an earjack debug adapter.
See the image (debug_3.5mm.jpg) for some information... or search the web.
To boot the image, unzip hammerhead-4.11.zip go into bootloader mode and use fastboot:
fastboot boot hammerhead-4.11.img
EDIT: Updated the attachments, as there'd been some progress (see post #7).
EDIT2: YAU (Yet Another Update)
Have fun!
scholbert
Nice job!
Some time ago I tried to build from scratch 3.10 kernel, you can find the code here.
From the log look like that the internal memory is missing, maybe due incomplete device tree entry. The related documentation should be this.
Hi 95A31!
95A31 said:
Nice job!
Some time ago I tried to build from scratch 3.10 kernel, you can find the code here.
From the log look like that the internal memory is missing, maybe due incomplete device tree entry. The related documentation should be this.
Click to expand...
Click to collapse
Thanks for your reply. Any hints and ideas are higly appreciated
Basically the sdhc entries look o.k. to me.
I already compared many parts of the DT entries in kernel 4.11 with the ones in kernel 3.4 as well (and yes they slightly changed their style).
There might be some issues with DT in general here, but i suspect some basic stuff is missing to initiate the power supply (PM8841 & PM8941) correctly.
Maybe i'll dig a little deeper... maybe not :angel:
Anyway, leave some comments here if you like!
Cheers,
scholbert
scholbert said:
...
There might be some issues with DT in general here, but i suspect some basic stuff is missing to initiate the power supply (PM8841 & PM8941) correctly.
....
Click to expand...
Click to collapse
What make you think this?
Gonna test it on my phone.
95A31 said:
What make you think this?
Click to expand...
Click to collapse
See those snippets from bootlog of kernel 3.4:
Code:
...
[ 0.143223] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.144749] socinfo_print: v8, id=126, ver=2.2, raw_id=1968, raw_ver=7, hw_plat=150, hw_plat_ver=65536
[ 0.144755] accessory_chip=0, hw_plat_subtype=0, pmic_model=65537, pmic_die_revision=196609
[ 0.158993] gpiochip_add: registered GPIOs 0 to 145 on device: msmgpio
[ 0.175335] msm_watchdog f9017000.qcom,wdt: MSM Watchdog Initialized
[ 0.194446] 8841_s1: 675 <--> 1050 mV at 0 mV normal idle
[ 0.194895] 8841_s1_ao: 675 <--> 1050 mV at 0 mV normal idle
[ 0.195357] 8841_s1_so: 675 <--> 1050 mV at 675 mV normal idle
[ 0.195859] 8841_s2: 500 <--> 1050 mV at 0 mV normal idle
[ 0.196322] 8841_s2_corner: 0 <--> 0 mV at 0 mV normal idle
[ 0.196785] 8841_s2_corner_ao: 0 <--> 0 mV at 0 mV normal idle
[ 0.197235] 8841_s2_floor_corner: 0 <--> 0 mV at 0 mV normal idle
[ 0.197723] 8841_s3: 1050 mV normal idle
[ 0.198201] 8841_s4: 815 <--> 900 mV at 0 mV normal idle
[ 0.198675] 8841_s4_corner: 0 <--> 0 mV at 0 mV normal idle
[ 0.199145] 8841_s4_floor_corner: 0 <--> 0 mV at 0 mV normal idle
[ 0.199630] 8941_s1: 1300 mV normal idle
[ 0.200131] 8941_s2: 2150 mV normal idle
[ 0.200614] 8941_s3: 1800 mV normal idle
[ 0.201146] 8941_l1: 1225 mV normal idle
[ 0.201627] 8941_l2: 1200 mV normal idle
[ 0.202120] 8941_l3: 1225 mV normal idle
[ 0.202608] 8941_l4: 1225 mV normal idle
[ 0.203117] 8941_l5: 1800 mV normal idle
[ 0.203599] 8941_l6: 1800 mV normal idle
[ 0.204088] 8941_l7: 1800 mV normal idle
[ 0.204588] 8941_l8: 1800 mV normal idle
[ 0.205066] 8941_l9: 1800 <--> 2950 mV at 2950 mV normal idle
[ 0.205554] 8941_l10: 1800 <--> 2950 mV at 2950 mV normal idle
[ 0.206025] 8941_l11: 1300 mV normal idle
[ 0.206520] 8941_l12: 1800 mV normal idle
[ 0.206982] 8941_l12_ao: 1800 mV normal idle
[ 0.207462] 8941_l13: 1800 <--> 2950 mV at 2950 mV normal idle
[ 0.207961] 8941_l14: 1800 mV normal idle
[ 0.208434] 8941_l15: 2050 mV normal idle
[ 0.208930] 8941_l16: 2700 mV normal idle
[ 0.209418] 8941_l17: 3000 mV normal idle
[ 0.209909] 8941_l18: 2850 mV normal idle
[ 0.210405] 8941_l19: 3000 <--> 3300 mV at 3300 mV normal idle
[ 0.210917] 8941_l20: 2950 mV normal idle
[ 0.211414] 8941_l21: 2950 mV normal idle
[ 0.211907] 8941_l22: 3000 <--> 3300 mV at 3100 mV normal idle
[ 0.212411] 8941_l23: 3000 mV normal idle
[ 0.212898] 8941_l24: 3075 mV normal idle
[ 0.213387] 8941_lvs1:
[ 0.213821] 8941_lvs2:
[ 0.214265] 8941_lvs3:
...
...and these messages from kernel 4.11:
Code:
...
[ 0.213352] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.215005] cpuidle: using governor menu
[ 0.215647] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[ 0.215657] hw-breakpoint: maximum watchpoint size is 8 bytes.
[ 0.216665] irq: no irq domain found for /smp2p-adsp/slave-kernel !
[ 0.232062] irq: no irq domain found for /soc/[email protected] !
[ 0.251356] AXI: msm_bus_fabric_init_driver(): msm_bus_fabric_init_driver
[ 0.251635] reg-fixed-voltage vreg-boost: could not find pctldev for node /soc/[email protected]/[email protected]/[email protected]/boost-bypass, deferring probe
...
Regards,
scholbert
Hey,
short update... found something to get the messages from PMIC :victory:
There was a missing option in my configuration. We need CONFIG_RPMSG_QCOM_SMD to be set.
Unfortunately still no sign from the eMMC ...
EDIT: grrrrr... still some issues here.
If RPM shared memory driver gets activated, this seems to change some setup in clock unit of the chip, which as a result disables RTC or destroys something else.
So in the end i'm not sure if shared memory driver should be used here
Anyway will play around with all this in the next weeks... but remember it's summer... so it may all take it's time!
EDIT2: yeeeessssss.. some issues solved!
I forgot that i made a change in dtsi which seemed to block the interrupt to smbi... in the end reverted it, applied new configuration, and there it is.
We got eMMC now :highfive:
See new attached files and have anice weekend!
EDIT3: Moved the attachments to the first post!
BTW, there's a guy at the fairphone forum who does similar experiments with the FP2 (MSM8974 based as well):
https://forum.fairphone.com/t/kernel-hackers-upstream-kernel-for-fp2-openos/28628
Here's his github repo:
https://github.com/z3ntu/linux
Regards,
scholbert
scholbert said:
Hey,
short update... found something to get the messages from PMIC :victory:
There was a missing option in my configuration. We need CONFIG_RPMSG_QCOM_SMD to be set.
Unfortunately still no sign from the eMMC ...
[...]
Click to expand...
Click to collapse
Good job!
Look like system can not access to memory:
Code:
[ 1.800624] init: /init.rc: 66: invalid command 'load_system_props'
Code:
[ 1.995481] init: /init.recovery.hammerhead.rc: 17: invalid command '/sbin/ln'
Maybe the change msm_sdcc.1 -> f9824900.sdhci had broke something. Before the kernel messages I have this part in my logs:
Code:
[7040] use_signed_kernel=0, is_unlocked=1, is_tampered=1.
[7040] Loading boot image (9416704): start
[7380] Loading boot image (9416704): done
[7380] Found Appeneded Flattened Device tree
[7380] DTB: platform id 126, board id 150, soc rev 20002, board rev 11
[7390] get_display_kcal = 0, 0, 0, x
[7390]
Booting Linux
[7440] vibe
[7540] splash: boot
[7580] splash: unlocked
[7620] cmdline: console=ttyHSL0,115200,n8 androidboot.hardware=hammerhead user_debug=31 msm_watchdog_v2.enable=1 mdss_mdp.panel=dsi androidboot.bootdevice=msm_sdcc.1 uart_console=enable gpt=enable lge.kcal=0|0|0|x lge.rev=rev_11 androidboot.laf androidboot.emmc=[7640] Updating device tree: start
[7650] Updating device tree: done
[7660] booting linux @ 0x8000, ramdisk @ 0x2900000 (1115413), tags/device tree @ 0x2700000
[7660] Turn off MIPI_CMD_PANEL.
[7660] Continuous splash enabled, keeping panel alive.
Uncompressing Linux... done, booting the kernel.
Can be the value of androidboot.bootdevice related with this problem?
Here a Linaro guy is working on Nexus 7 (APQ8064 based unfortunately).
EDIT:
Moreover fstab.hammerhead use msm_sdcc.1 and this is wrong for sure.
Hi 95A31,
thanks for your comments and information about the Nexus 7 project.
The errors you find in the logs are related to the TWRP initrd and setup stuff.
Please refer to these messages i grabbed some time ago from the standard TWRP image:
Code:
...
[ 5.341167] init: /init.rc: 66: invalid command 'load_system_props'
[ 5.346559] init: could not import file '/init.recovery.logd.rc' from '/init.rc'
[ 5.353919] init: /init.recovery.hammerhead.rc: 17: invalid command 'ln'
[ 5.362647] healthd: wakealarm_init: timerfd_create failed
[ 5.863315] android_usb: already disabled
[ 6.134887] init: Unable to open persistent property directory /data/property errno: 2
[ 6.141831] init: Unable to open persistent property directory /data/property errno: 2
...
As you see it's barely the same stuff printed out (independent of the kernel you use).
You may modify the initrd as you like to
The partitions can be mounted and accessed from serial console with this kernel now:
Code:
~ # mount -t ext4 /dev/block/mmcblk0p28 /data
[ 237.878280] EXT4-fs (mmcblk0p28): mounted filesystem with ordered data mode. Opts: (null)
~ # df
Filesystem 1K-blocks Used Available Use% Mounted on
tmpfs 968568 28 968540 0% /dev
tmpfs 968568 288 968280 0% /tmp
/dev/block/mmcblk0p28
27971732 10849488 17105860 39% /data
~ # cd data
/data # ls
adb backup data media security
anr bootchart drm mediadrm ss
app bugreports fdAlbum misc su
app-asec cam_socket1 local nfc system
app-lib cam_socket2 lost+found property tombstones
app-private dalvik-cache maru resource-cache user
/data #
Please check out the expermimental image and try yourself.
Be careful what you do at anytime though, because your dealing with your phones file system from within an experimental ramdisk.
So please do not brick your phone, while playing around :angel:
BTW... speaking of memory is more common for RAM, while storage may be used for eMMC and mass storage devices.
Of course a lot of tweaks and fixes are needed as this is all very experimental, so anyway thanks for your hint.
EDIT: ... and yes as for the numbering and naming this has to be corrected somewhere in time.
The eMMC is detected as device mmc0 (controller sdhci1) for now, because WLAN SDIO (using controller sdhci2) is not implemented yet.
Same for the fstab file.
Someone may try to rename some entries and see what happens, but as far as many parts are missing, there's no need for this right now.
Regards,
scholbert
scholbert said:
[...]
The errors you find in the logs are related to the TWRP initrd and setup stuff.
[...]
Click to expand...
Click to collapse
You are more skilled than me about this topic
scholbert said:
[...]
Someone may try to rename some entries and see what happens, but as far as many parts are missing, there's no need for this right now.
[...]
Click to expand...
Click to collapse
Which should be the next thing to fix?
I attached the list of commits commited by LG in aosp kernel
95A31 said:
You are more skilled than me about this topic
Click to expand...
Click to collapse
Thanks for the flowers
95A31 said:
Which should be the next thing to fix?
Click to expand...
Click to collapse
I would like to get a working usb connection and use adb to communicate with the phone.
This would possibly increase the amount of interested people to check out a console based system on their phone and do some experiments.
I guess there are only a few people who got this earjack adapter or something.
At least the Nexus 5 is an interesting piece of embedded hardware to play with, even if the display got crashed.
95A31 said:
I attached the list of commits commited by LG in aosp kernel
Click to expand...
Click to collapse
Nice! Thanks for the list.
As this refers to AOSP kernel 3.4 it gives a good overview of the patches fixes and changes of course.
For mainline kernel 4.11 this is list would look very different though.
I still concentrate on fine tuning of the kernel configuration, as there are still many things to discover.
To get some Nexus 5 specific device drivers integrated would be nice as well (e.g. check BQ24190/2 code and implement it to DT).
Anyway... always remember this is a just for fun thing.
Could be some educational project if your like, but without all the binary blobs adopted to kernel 4.11 there will never be a working Android.
EDIT:
As for the educational purpose (my very own )
We can sample some interrupts from the PM8941 subsystem very well:
Code:
~ # cat /proc/interrupts
CPU0
18: 8925 GIC-0 20 Level arch_timer
20: 0 GIC-0 39 Level arch_mem_timer
22: 0 GIC-0 194 Edge adsp
23: 0 GIC-0 190 Edge smp2p
24: 0 GIC-0 59 Edge smp2p
25: 0 GIC-0 175 Edge smp2p
26: 1181 GIC-0 139 Level msm_serial0
27: 80 GIC-0 155 Edge mmc0
28: 0 GIC-0 170 Edge f9824900.sdhci
176: 0 GIC-0 127 Level i2c_qup
178: 0 GIC-0 271 Level bam_dma
179: 0 GIC-0 166 Edge msm_otg
186: 0 pmic_arb 6357309 Edge pm8xxx_rtc_alarm
187: 2 pmic_arb 524325 Edge pm8941_pwrkey
188: 0 pmic_arb 1050408 Edge chg-done
189: 0 pmic_arb 1049896 Edge chg-fast
190: 0 pmic_arb 1049640 Edge chg-trkl
191: 0 pmic_arb 1179946 Edge bat-temp-ok
192: 0 pmic_arb 1179690 Edge bat-present
193: 0 pmic_arb 1245739 Edge chg-gone
194: 4 pmic_arb 1245483 Edge usb-valid
195: 0 pmic_arb 1311020 Edge dc-valid
197: 2 pmic_arb 12648535 Edge volume_up
198: 2 pmic_arb 12714072 Edge volume_down
243: 0 GIC-0 188 Edge adsp
244: 0 GIC-0 57 Edge modem
245: 47 GIC-0 200 Edge rpm
246: 0 GIC-0 58 Edge smsm
247: 0 GIC-0 189 Edge smsm
248: 0 GIC-0 176 Edge smsm
249: 0 smp2p 0 Edge adsp
250: 0 smp2p 1 Edge adsp
251: 0 smp2p 2 Edge adsp
252: 0 smp2p 3 Edge adsp
IPI0: 0 CPU wakeup interrupts
IPI1: 0 Timer broadcast interrupts
IPI2: 652 Rescheduling interrupts
IPI3: 5 Function call interrupts
IPI4: 0 CPU stop interrupts
IPI5: 0 IRQ work interrupts
IPI6: 0 completion interrupts
Err: 0
To be more precisely:
volume_up, volume_down, pwrkey and usb-valid are detected and working.
Unfortunately no reaction from the host and no kernel message, when micro usb cable is attached or detached...
Whatever...
Regards,
scholbert
scholbert said:
[..]
I would like to get a working usb connection and use adb to communicate with the phone.
This would possibly increase the amount of interested people to check out a console based system on their phone and do some experiments.
I guess there are only a few people who got this earjack adapter or something.
At least the Nexus 5 is an interesting piece of embedded hardware to play with, even if the display got crashed.
[...]
Click to expand...
Click to collapse
Nice, I hope to have time to seriously play with it and maybe make something work.
scholbert said:
[...]
Anyway... always remember this is a just for fun thing.
Could be some educational project if your like, but without all the binary blobs adopted to kernel 4.11 there will never be a working Android.
[...]
Click to expand...
Click to collapse
I know, I know, sometime I follow my enthusiasm . Yes, blobs are a big problem for a working Android and when I think about how address it, and how much time it will require I die inside
Wow!!!
Hey there,
i just wondered how time goes by
I'm still using my hammerhead for daily use and from time to time i'm searching the web how things are evolving.
This is the coolest project i've seen for a while:
https://github.com/flto/linux/wiki/hammerhead-upstream
Need to do some research who's behind it
Have a nice day!
scholbert

Categories

Resources