AI can speed up a lot of the manual labour needed to bring even an almost dead, 10-year-old device back to life. My Xiaomi Mi Max 2 (oxygen, MSM8953) was dead. With AI help and my own knowledge, I ported/rewrote the missing drivers, and it now runs Nura (postmarketOS) with working camera, torch, SIM, phone calls and SMS. Only the loudspeaker is still broken.

Everything is up for anyone who wants to install it, or to understand the changes and manually write the patches for mainline: https://github.com/sv1sjp/mi-max2-oxygen-msm8953-nura-drivers Testing, feedback and PRs welcome.

all 34 comments

sorted by: hot top controversial new old
[–] 15 points 1 month ago

You said the forbidden word. How dare you!

  • source
  • [–] 11 points 1 month ago

    That's so cool, I wish I could go full linux on my redmi note 11

  • source
  • [–] 9 points 1 month ago

    Huh, Nura? I like the name PostmarketOS better, but that's just me.

    Cool that you got it working with ai, but I hope that doesn't become a standard in device porting. Sure with proper vetting the code can be ensured to be maintainable, but that code had to come from somewhere. These systems don't just magically know how to make software work, so it sounds like they're probably just referencing code somewhere else that could be under any kind of copyright. Sounds like a legal nightmare waiting to happen.

    The thing I'm really hoping for is these general purpose mobile Linux systems being ported to the plethora of bootleg retro handhelds out there. The majority of these devices already have unlocked bootloaders and are super friendly to third party firmware. The problem is people are only porting these hyper minimalist emulation-focused Linux builds when there's so much untapped potential.

  • source
  • [–] 82 points 1 month ago (4 children)

    "AI" can also speed up the process of making a code base buggy and hard to debug, when the people that generated it do not understand the code.

    Nura will not accept generated patches, by the way. It might run your own version of Nura, but will not run upstream Nura with your patches.

  • source
  • hideshow 4 child comments
  • [–] 14 points 1 month ago

    Nura will not accept generated patches, by the way.

    If you click OP's github link and scroll down you'll find this section which acknowledges that: https://github.com/sv1sjp/mi-max2-oxygen-msm8953-nura-drivers#about-ai-assistance-and-contributing-upstream

    The drivers, patches, scripts and write-ups here were produced in collaboration with an AI assistant and tested on a real Mi Max 2 (oxygen).

    The Nura project does not accept LLM-generated contributions. One of its maintainers explains the reasons in this post: the social and environmental cost of these models, and the risk that people use them to produce private knowledge instead of joining and strengthening the community whose work the models learned from. We respect that decision. So:

    • This repository is not a contribution to Nura or pmaports, and its code should not be submitted there as it is.
    • It is public documentation, not private notes. The reusable part is the knowledge: how the hardware is wired, register addresses and meanings, root causes, what was tried and ruled out, and how to test safely. These are facts anyone can check on their own device. It can save time for anyone who wants to understand what works and what does not, and then write their own code to submit upstream.
    • If you want to get this into Nura or upstream, learn from it, verify it on your hardware and write your own implementation, following the rules of the project you contribute to (Nura, the Linux kernel and libcamera each have their own contribution policies).
    • Please engage with the community. The Nura wiki, the msm8953-mainline project and the people credited below did the groundwork this builds on.

    @OP (@sv1sjp@lemmy.world) what isn't clear to me is why you don't try to upstream the kernel parts, since Linux is accepting LLM-assisted contributions (as is Nura actually, just only indirectly after their upstreams like Linux accept them).

  • source
  • parent
  • [–] 2 points 1 month ago (2 children)

    upstream linux does accept AI "assisted" patches. if this gets properly mainlined, why wouldn't it run Nura?

  • source
  • parent
  • hideshow 2 child comments
  • [–] 4 points 1 month ago

    Well well well, you have something to xiaomi.

  • source
  • [–] 11 points 1 month ago

    any information on how you did it? Like what the setup was, what you asked the ai to do, etc. With the video game fusions people have been doing using claude lately I've become interested in AI for cutting out the most tedious, life wasting parts of reverse engineering but I haven't seen examples involving hardware

  • source
  • [–] 8 points 1 month ago
    [–] 2 points 1 month ago

    I have a pinephone pro, seems like manjaro bricked it and I can't flash the rom again ...Any theories on what to do?

  • source
  • [–] 4 points 1 month ago

    Good work !

  • source
  • [–] 0 points 1 month ago (4 children)

    Can't the ai trash just f*ck back off to windows, apple, and google where they belong?

    Nura is an anti ai distro

  • source
  • hideshow 4 child comments
  • [–] 14 points 1 month ago (3 children)

    You don't have to use it? 🤷‍♀️

  • source
  • parent
  • hideshow 3 child comments
  • [–] 2 points 1 month ago

    Can ai get past the AT&T fuckery on my galaxy s5 active?

  • source
  • [+] -13 points 1 month ago (11 children)

    The Chinese are going to save us once again? I never thought I would root for fucking China vs US in my life.

  • source
  • hideshow 11 child comments
  • [–] 21 points 1 month ago (9 children)

    Depending on what you mean by saving us, I don't think China will, but they're not invading random countries, staging coups, droning civilians, etc, so these two countries are not even remotely comparable.

  • source
  • parent
  • hideshow 9 child comments
  • [+] -3 points 1 month ago (9 children)
  • [–] 8 points 1 month ago (8 children)
  • [+] -1 points 1 month ago (8 children)
  • [–] 1 point 4 weeks ago* (7 children)

    China is an imperialist force in East Asia

    According to western media, thinktanks and commentators comfortably sitting and circlejerking in the imperial core, yes.

    It is destroying every non-Han culture and religious expression within the CCP controlled areas.

    Easily disproved by random travel bloggers that travel China e.g. Xinjiang and Tibet

  • source
  • parent
  • hideshow 7 child comments
  • [–] 1 point 4 weeks ago (6 children)

    According to western media, thinktanks and commentators comfortably sitting and circlejerking in the imperial core, yes.

    No. They may be dishonest, but that doesn't mean they will have to lie about every single thing. And it is not just westerners, but also South Koreans, Japanese and SEAsians too.

    Easily disproved by random travel bloggers that travel China e.g. Xinjiang and Tibet

    Carefully chosen and curated. Why is Chinese Muslim content only food and never religious sermons? Where are the Christians preaching their beliefs? Where are the children studying the Quran and the Bible?

  • source
  • parent
  • hideshow 6 child comments
  • [–] -1 points 4 weeks ago (5 children)

    No it is not just westerners

    Names western aligned vassal states

    Ok

    Asks questions because they are uninformed

    You're aware Xinjiang has one of the highest amount of Mosques per capita right? Here's further reading on the sub

  • source
  • parent
  • hideshow 5 child comments
  • [–] -1 points 3 weeks ago (4 children)

    Link dump doesn't answer my questions. Most of these are irrelevant anyway.

    Show me videos of Chinese Muslims preaching their religion openly in the mosques. Show me videos of Uyghur Muslims openly praying Eid. Show me videos of Christians in China preaching their religion.

    Why is Chinese Muslim content only about food and old mosques? Where are the newer mosques? Where are the preachers outside of Hong Kong?

    You did the exact same thing that Zionists do when they get cornered. "Arabs in IDF", "Look Arabic singposts in Tel Aviv", "Hamaas is terrorists" etc.

    No real difference.

  • source
  • parent
  • hideshow 4 child comments
  • [–] 1 point 3 weeks ago* (3 children)

    Took me literally a single query:

    https://www.youtube.com/watch?v=NRUZcrSUDVc

    https://www.youtube.com/watch?v=moADAgQFCuA

    https://www.youtube.com/watch?v=FYMADibMY4Q

    https://www.youtube.com/watch?v=w4vBJtioHrQ

    If netanyahu would do the same what the CPC did in Xinjiang as a response to terror, he'd get a Nobel peace price (vocational school, teach mandarin, give full citizenship)

  • source
  • parent
  • hideshow 3 child comments
  • [+] 0 points 3 weeks ago (3 children)
  • [–] 1 point 3 weeks ago (2 children)

    It is destroying every non-Han culture and religious expression within the CCP controlled areas.

    The first one is from China mainland, not Uyghuristan.

    Quite the goal post move

    Yes, China does keep a few tokens here and there to whitewash its image.

    Sounds like cope when presented with something that contradics your ideology.

    The very fact that you would call response to occupation and cultural erasure as “terror” should make one question your intelligence.

    I question your intelligence when you side with the ETIM terroritst organisation as designated by the UN, EU and even at one point by the US (until they realized they can fund them in order to destabilize their geopolitical enemy)

  • source
  • parent
  • hideshow 2 child comments
  • [–] 0 points 1 week ago (1 child)

    Again, all you have is my lack of articulation and not the problem itself. Typical Western(ised) moron.

    Terrorist? Yeah, brown people should have no agency. Exactly the speech used by Zios to demonise Arabs.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 1 point 1 week ago*

    Again, all you have is my lack of articulation and not the problem itself.

    It's your lack of critical thinking. Your ideologically confused

    Terrorist? Yeah, brown people should have no agency.

    Typical liberal that only focuses on identity politics and completely disregards class politics and imperialism.

    Agency is of course when the US gives you diplomatic support and utilizes you to destabilize their geopolitical enemy /s

    Exactly the speech used by Zios to demonise Arabs.

    When you compare what the China does in Xinjiang with what the Zios are doing in Gaza/middle east your doing a form genocide denial dipshit

  • source
  • parent
  • load more comments (-1 replies)
  • load more comments (-1 replies)
  • load more comments (-1 replies)
  • 1 comment in c/linux@programming.dev view that post
    [–] 2 points 1 month ago

    That's pretty cool. Llms are great for this kind of thing, I'm hoping they can bring hacking to the point you can cobble together random hardware and make it work

    I think that's where the magic is. It's like mighty putty - it's not great as a building material itself, but it fills in gaps and let's you stick all kinds of things together

  • source