Native LEDE firmware, make your Xperia Z1 Compact as a true wifi router

mirhl

Senior Member
Oct 15, 2012
3,064
1,146
253
23:51:34 - opendata: Basically extract the dts from your downstream 3.4 kernel
23:51:54 - opendata: Use DTC to convert it to a dts
23:52:34 - ata2001[m]: are we talking about osprey?
23:53:07 - opendata: Then delete everything after main header apart from display stuff and anything in the spmi nodr
23:53:08 - opendata: No
23:53:11 - opendata: Amami
23:53:58 - opendata: Then in spmi node delete everything apart from wled and [email protected] gpios
23:54:25 - opendata: That should be enough for bl to init display
00:00:17 - ata2001[m]: so the bootloader parses the dt?
00:02:04 - opendata: Yep
00:02:12 - opendata: (blame Sony)
00:02:58 - opendata: Make sure to base of downstream 3.4 kernel aswell
:victory:
EDIT: mainline wifi?
 
Last edited:
  • Like
Reactions: munjeni and DcR-Nl

munjeni

Senior Member
Jun 2, 2011
9,019
21,774
263
Was not on our thread for a while, wow! Seems touch screen and display with freedreno is working? Don't have time right now to play with this but hope in month-two I get time for this :)
 

PureTryOut

Member
Jul 4, 2012
16
3
0
Hey, postmarketOS dev here, although more on the user-land. All praise ata2001 for his work on mainlining our beloved Amami!

The latest projects linked by mirhl, for anyone not that much in the running, should allow us to use the modem on mainline Linux. Basically, call functionality on mainline Linux is close!
That said, it isn't much use if the display doesn't work, so we'll first have to get that working.

I've just asked ata2001 to write down the current mainlining status on our wiki page, but afaik it's basically booting (that's handy isn't it?), wifi and serial. I don't think even usb-net works, but I might be wrong there.
 
  • Like
Reactions: munjeni and mirhl

munjeni

Senior Member
Jun 2, 2011
9,019
21,774
263
Yes but too late. I'm still waiting April... for https://shop.puri.sm/shop/librem-5/

Whats a status of mainline kernel, if I'm not wrong not all patches from Ata is implemented to the mainline kernel? On PostmarketOS wiki I see its just partialy implemented https://wiki.postmarketos.org/wiki/Devices
What defconfig is used for this https://github.com/ata2001/linux/tree/amami ?
 
Last edited:

mirhl

Senior Member
Oct 15, 2012
3,064
1,146
253
(April still feels late in its turn to be fair)
The only thing in mainline should be the dts I mentioned above.
That and the panel being basically the only changes of ata branch, I think you could even seamlessly transition to linux-postmarketos if you reapplied those patches.

Assuming relatively trivial differences from Z2, just about anything aside of audio and modem, should work.
@opendata maybe could add something.

Defconfig should be this, originally tested on amami itself.
 
  • Like
Reactions: munjeni

mirhl

Senior Member
Oct 15, 2012
3,064
1,146
253
Pfft.. prebuilts!
It seems almost like they are dying to stay as much noobs-repelling as possible, in a race with Halium for the most untelling documentation /s

A whole year ago, I know Z1c could already watch youtube.
Then, *I think* building should be on the side of straightforward... Especially with device-amami being already pegged to mainline.
But aside of re-routing you to official channels my "experience" stops here.
 
  • Like
Reactions: munjeni

munjeni

Senior Member
Jun 2, 2011
9,019
21,774
263
Ok thanks! Thats wasting a time I know. I have RPi Zero W for my needs, almost done playing on our phone, totaly not interested for phone development, so lazy, and to be honest have no free time for phone development. I'm in hope someday we get linux on Amami, I will keep Amami for some years more, need to change backside plastic and front side foil and its like a new :)
 
Last edited:

munjeni

Senior Member
Jun 2, 2011
9,019
21,774
263
STE is so slow, I have deleted almost all aplications except messages, phone and browser, I don't think I going to play with any sony anymore :)
 

mirhl

Senior Member
Oct 15, 2012
3,064
1,146
253
Oddly enough, I also happened to have to dig up my XU last week (with XNovathor 4.1.2 because it's one of the slimmest rom with most of stuff working)
And the only particular slowness I could report of is that due to lack of memory tbh.

Which, I mean.. It would be leaps and bounds better if instead of ~390MB of available RAM (more than half being taken by system services) we could access the last fifth reserved for "useless" hardware. Something that, you know, the shiny CMA could bring to light (even without the magic of Lima driver or zstd)
 
Last edited:

munjeni

Senior Member
Jun 2, 2011
9,019
21,774
263
I'm on cm11 with all google services disabled since cause device lack of memory, without google services it realy stable and litle fast :)