07:02
<
barni2000[m] >
it just backlight gpio, if you off/on the display it will work
08:55
<
M0xCAFEBABE[m] >
<M0xCAFEBABE[m]> "for unknown reason it doesn't..." <- oh well, it's due to how I'm appending the dtbs
08:55
<
M0xCAFEBABE[m] >
maybe the order is wrong
08:55
<
M0xCAFEBABE[m] >
if I only append santoni dtb, it boots
09:07
<
barni2000[m] >
check the board-id and msm-id maybe it is not correct in the kernel dt
09:13
<
barni2000[m] >
maybe ugg is matching when you boot on santoni because it is simple mtp board
09:13
<
barni2000[m] >
at least in board-id
09:15
<
M0xCAFEBABE[m] >
downstream have qcom,pmic-id too
09:15
<
M0xCAFEBABE[m] >
and some other qcom soc in mainline has that property too
09:15
<
M0xCAFEBABE[m] >
why don't we have it...
09:23
<
barni2000[m] >
<M0xCAFEBABE[m]> "downstream have qcom,pmic-id..." <- we don't need the pmic-id
09:23
<
barni2000[m] >
lk2nd not uses it
09:24
<
barni2000[m] >
maybe QCDT
09:25
<
M0xCAFEBABE[m] >
barni2000[m]: really? there's still parsing code for that in lk2nd
09:25
<
barni2000[m] >
for QCDT
09:25
<
M0xCAFEBABE[m] >
* really? there's still code to parse it in lk2nd
09:25
<
barni2000[m] >
upstream not using it lk2nd ADTB also not
09:26
<
barni2000[m] >
boot.img also worked with out it at the begining
09:58
<
barni2000[m] >
it seems redmi 7a charging without driver :(
09:58
<
M0xCAFEBABE[m] >
???
09:59
<
barni2000[m] >
there is no qcom-qg and the charging driver in the tree but it was charged 30% from 10% to 40%
09:59
<
barni2000[m] >
it is scary
09:59
<
M0xCAFEBABE[m] >
oh
10:00
<
barni2000[m] >
i had similar issues with redmi 7
10:00
<
barni2000[m] >
that is why it was never discharged
10:00
<
barni2000[m] >
but my redmi 7 battery has defects now
10:04
<
M0xCAFEBABE[m] >
<barni2000[m]> "maybe ugg is matching when you..." <- ... yea it's loading ugg dtb
10:04
<
M0xCAFEBABE[m] >
just checked pstore
10:05
<
barni2000[m] >
i wonder how hard boot android with extlinux config
10:05
<
M0xCAFEBABE[m] >
damn, msm8916-mainline lk2nd also fails to boot my downstream recovery.img
10:05
<
M0xCAFEBABE[m] >
which is used to be fine on msm8953-mainline lk2nd
10:05
<
M0xCAFEBABE[m] >
says dtb not found
10:06
<
M0xCAFEBABE[m] >
(dtb not found happens too if I add qcom,pmic-id to mainline dts)
10:08
<
barni2000[m] >
i've said pmic-id is not necessary
10:39
<
M0xCAFEBABE[m] >
lol, msm8916-mainline lk2nd can't even boot itself for twice on santoni, on the second boot it doesn't have the proper dtb loaded it seems
10:40
<
M0xCAFEBABE[m] >
s/for/from/, s/twice/itself/
10:41
<
barni2000[m] >
Yes there will be FIXME message
12:05
<
M0xCAFEBABE[m] >
well, the right one comes from msm8953-mainline lk2nd, and the left one comes from the new msm8916-mainline lk2nd
12:06
<
M0xCAFEBABE[m] >
apparently board_hardware_id() and board_hardware_subtype() returns wrong value now
12:09
<
M0xCAFEBABE[m] >
11 is QRD, 8 is MTP
12:20
<
barni2000[m] >
qcom,msm-id = <QCOM_ID_MSM8940 0>;
12:20
<
barni2000[m] >
qcom,board-id = <0x1000b 1>, <0x2000b 1>;
13:53
<
barni2000[m] >
board-id comes from the downstream dt
13:59
<
M0xCAFEBABE[m] >
yeah
13:59
<
M0xCAFEBABE[m] >
but the problem is
13:59
<
M0xCAFEBABE[m] >
lk2nd reads board-id from smem, to match dtbs
13:59
<
M0xCAFEBABE[m] >
however smem isn't reporting the correct value right now
14:00
<
M0xCAFEBABE[m] >
so, matching fails
14:03
<
barni2000[m] >
so board_id is <11 1>
14:03
<
barni2000[m] >
let me try with my santoni
14:04
<
M0xCAFEBABE[m] >
with the same value
14:04
<
M0xCAFEBABE[m] >
printing with %d shows 11
14:04
<
M0xCAFEBABE[m] >
printing with %x shows 100b
14:04
<
M0xCAFEBABE[m] >
s/100b/1000b/
14:05
<
barni2000[m] >
btw there are multiple variant from santoni
14:06
<
M0xCAFEBABE[m] >
<M0xCAFEBABE[m]> "image.png" <- here msm8916-mainline lk2nd is detecting `<8 0>`
14:07
<
M0xCAFEBABE[m] >
* `<8 0>`, which should be `<11 1>`
14:07
<
M0xCAFEBABE[m] >
* here you can see msm8916-mainline lk2nd, * `<8 0>`, which should be `<11 1>`
14:07
<
barni2000[m] >
8 0 is ugg
14:07
<
M0xCAFEBABE[m] >
i'm sure both of the logs comes from the same device
14:07
<
M0xCAFEBABE[m] >
* i'm sure the log on both sides comes from the same santoni
14:08
<
M0xCAFEBABE[m] >
and yeah, santoni was loading ugg dtb with msm8916-mainline lk2nd
14:11
<
barni2000[m] >
it seems fixing the boot issue, lk2nd from lk2nd
14:16
<
barni2000[m] >
btw 0xb is 11
14:17
<
barni2000[m] >
is there any chance santoni have buggy bl?
14:31
<
barni2000[m] >
or lk2nd
19:39
<
barni2000[m] >
i am thinking maybe that is why i cannot make a proper lk2nd dt for tiare
19:53
<
M0xCAFEBABE[m] >
<barni2000[m]> "i am thinking maybe that is..." <- you may need to add a dedicated target for it...
19:53
<
barni2000[m] >
i was tried to use special match properties
19:54
<
barni2000[m] >
panel-match should be enough but order is matter
19:54
<
M0xCAFEBABE[m] >
or, well
19:54
<
M0xCAFEBABE[m] >
there's really a good cmdline parameter from stock which you could use for matching
19:54
<
barni2000[m] >
nvm i will care about tiare when i will have time for that
19:59
<
barni2000[m] >
match-cmdline also good for this
19:59
<
barni2000[m] >
but match panel also should work
20:00
<
M0xCAFEBABE[m] >
tiare shares panels with riva iirc
20:01
<
barni2000[m] >
but it have different board_id
20:01
<
M0xCAFEBABE[m] >
btw, that logic would work on all xiaomi msm89x7 except ugg,ugglite,prada as well
20:01
<
barni2000[m] >
mtp boards
20:02
<
M0xCAFEBABE[m] >
the main thing is, different ODM vendor
20:02
<
M0xCAFEBABE[m] >
only wingtech ones has the board_id= parameter
20:03
<
M0xCAFEBABE[m] >
all begins with S885
20:03
<
M0xCAFEBABE[m] >
* all the values begins with S885
20:56
<
M0xCAFEBABE[m] >
well, we can make use of the Unexpected DTB selected by bootloader, need to override logic
20:56
<
M0xCAFEBABE[m] >
have to keep only one entry on qcom,board-id
20:56
<
M0xCAFEBABE[m] >
s/entry/item/, s//`/, s//`/
21:04
<
M0xCAFEBABE[m] >
s/entry/component/, s//`/, s//`/
21:08
<
M0xCAFEBABE[m] >
barni2000: could u append all the dtbs and try this?
21:09
<
barni2000[m] >
cat Image.gz dt1... dtn?
21:09
<
M0xCAFEBABE[m] >
yep
21:10
<
M0xCAFEBABE[m] >
the order I used is msm8917-xiaomi-* msm8937-xiaomi-* msm8940-xiaomi-*
21:15
<
barni2000[m] >
modem is up on rolex
21:18
<
M0xCAFEBABE[m] >
what functions are working right now?
21:18
<
M0xCAFEBABE[m] >
* what modem functions are
21:18
<
barni2000[m] >
data, call, sms i will try gps
21:18
<
M0xCAFEBABE[m] >
nice
21:18
<
barni2000[m] >
i have 4G
21:20
<
M0xCAFEBABE[m] >
ah also btw, have you tried booting the recovery.img which I sent you earlier on rolex and riva?
21:20
<
barni2000[m] >
or i dont remember :D
21:21
<
M0xCAFEBABE[m] >
ah, try it please...
21:21
<
M0xCAFEBABE[m] >
<M0xCAFEBABE[m]> "barni2000: could u append all..." <- cuz i've also done for rolex and riva on this commit
21:21
<
M0xCAFEBABE[m] >
if the recovery.img boots, then that's unnecessary change and I'll revert it
21:22
<
M0xCAFEBABE[m] >
and if that commit is proven to be working fine, i'll submit it
21:26
<
barni2000[m] >
btw maybe these ids should be changed in the kernel also
21:27
<
M0xCAFEBABE[m] >
booted the kernel without changes
21:35
<
barni2000[m] >
ig for gps i will need bind memshare drive
21:35
<
barni2000[m] >
s/drive/driver/
21:57
<
barni2000[m] >
GPS is up and running :D
22:10
<
barni2000[m] >
i think you have sent me an lk2nd.img as a recovery.img
22:11
<
barni2000[m] >
now i have booted from lk and it is lk2nd
22:11
<
barni2000[m] >
* have booted it from lk
23:24
<
M0xCAFEBABE[m] >
<barni2000[m]> "i think you have sent me an..." <- the real recovery image is at 512KB offset
23:24
<
M0xCAFEBABE[m] >
if you don't want to flash the entire image
23:25
<
M0xCAFEBABE[m] >
dd if=recovery.img of=out.img bs=524288 skip=1