Hint needed: EMMC iommu and /bootefi etc

Alright! Thanks to you I worked it out - have a small 4gb USB Stick now and Mint is booting up :wink: All well - but…

Audio is not working. ;( Even headphone´s do not react or give some sound.

The output is labeld as

acp3xalc5682m98357 Stereo

I already tried WeirdTreeThings Audio postinstall script - doesnt make a difference. Also installed his keyboard fix which is working great. Volume and Brightness Buttons work now. But neither way I can´t get audio to work. Could I ask you for help again ? :thinking:

Thanks for all your hints so far. Compared to my former installation of the “HP Pro c645 Chromebook Enterprise (BERKNIP)” this is by far a real tough nut for a linux chromebook newbie :wink: Learned a lot so far! So thank you again for all the fish (and help)…

It´s not… But it´s a cheap thinkpad with a lousy CPU (Athlon Gold 3150C) and few ram (4gig) and I guess not really worth the time soldering a m2 slot. Would really love to take a look further in the Thinkpad Convertible world (with more horsepower) as I start to like the concept of this thing.

Sure thing, although we do have a warning that Ubuntu and ubuntu-based distros aren’t really supported. There’s a reason why Domi said “f**k Canonical” on stage :stuck_out_tongue:

Please run the debug script and upload the file:

As for soldering M.2 - I would be happy to help. I even carried a pinecil with me during the congress :wink:

All you’d need is to ship the machine and compatible slot my way (or I can order one on AliExpress, but it will take 2 weeks to arrive).
I would pick it up in Kehl, solder it, and ship it back your way the next day after verifying that it’s working.
One of our community members shipped his MORPHIUS my way for unbricking before Christmas, so that’s the best way to do it (it’s cheaper and faster, even though it’s just across the border).
Then you can install any NVME drive you’d like, and shipping would be like ~10EUR so in my opinion worth the bump in convenience, speed and storage size.

If you don’t want to bother, I totally understand. I can also build you a ROM with LinuxBoot instead of EDK2, which will make it work with just eMMC - but you won’t have UEFI (not that it matters for Linux though)

Elly, you’re just too kind and I’m tempted :wink: But is this processor really worth it ? (see above!)

I just found out that audio via BT is working. But I guess it would without any onboard AMD Soundchip, right?

Link to the Debuglogs:

What exatly do I have to order?

Tried to find some:

No real luck :wink: Wrong searchterm ?

I’ll take a look where to get M.2 slots, but it is worth it in my opinion.

Difference in system’s performance between eMMC and NVME is very noticeable, not to mention it will increase machine’s value if you’d decide to re-sell it :stuck_out_tongue:

As for debug logs, I haven’t seen this before. Could you try booting with iommu=pt, since it’s clearly an IOMMU issue?

[  397.941185] snd_pci_acp3x 0000:03:00.5: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x000c address=0x18c9aabdb937f2a0 flags=0x0010]
[  397.941463] snd_pci_acp3x 0000:03:00.5: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x000c address=0x18c9aabdb937f2e0 flags=0x0010]
[  397.941484] snd_pci_acp3x 0000:03:00.5: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x000c address=0x18c9aabdb937f300 flags=0x0010]
[  397.941792] snd_pci_acp3x 0000:03:00.5: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x000c address=0x18c9aabdb937f320 flags=0x0010]
[  397.942118] snd_pci_acp3x 0000:03:00.5: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x000c address=0x18c9aabdb937f360 flags=0x0010]
[  397.942447] snd_pci_acp3x 0000:03:00.5: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x000c address=0x18c9aabdb937f3a0 flags=0x0010]
[  397.942784] snd_pci_acp3x 0000:03:00.5: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x000c address=0x18c9aabdb937f3e0 flags=0x0010]
[  397.942795] snd_pci_acp3x 0000:03:00.5: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x000c address=0x18c9aabdb937f400 flags=0x0010]
[  397.943118] snd_pci_acp3x 0000:03:00.5: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x000c address=0x18c9aabdb937f420 flags=0x0010]
[  397.943451] snd_pci_acp3x 0000:03:00.5: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x000c address=0x18c9aabdb937f460 flags=0x0010]
[  403.338993] amd_iommu_report_page_fault: 21930 callbacks suppressed

As for performance of AG 3150C, it’s roughly on-par with JasperLake. Of course you won’t be running newest AAA titles on it, but it’s quite decent. If you setup VAAPI, you can easily play 4K videos and connect it to 4K display in the living room for instance.
And of course, you could also swap the motherboard with higer-end tier if you decide that’s not enough, they go up to Ryzen 7 and 16GB if I remember correctly :wink:

Sorry, elly, I am such a linux noob - but learning fast :wink: don´t know where to set this.

I guess you mean to pass it as a kernel parameter as written here:
https://forums.linuxmint.com/viewtopic.php?t=349669

So my guess is to

sudo nano /etc/default/grub

and alter

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

to

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash iommu=pt"

Is there a command to see if the config got through after boot ?

and then

sudo update-grub

?

Did I perform it right? :wink:

Woot ? Isn´t the VAAPI Mesa driver automatically installed in Mint / Fedora etc. ???

Now you got my attention. :wink: Nevertheless that “Athlon Gold” is performing close to a Jasper was beyond my attention. I now want to bash AMDs Marketing for using a anachronistic name that points to long forgotten (golden?) times :wink:

I uploaded a second debug log after altering and trying (failing) audio.

Ignore if my procedure altering
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash iommu=pt"
was wrong :wink:

Sorry, been away for a moment :stuck_out_tongue:

[    9.619227] acp3x-alc5682-max98357 AMDI5682:00: ASoC: driver name too long 'acp3xalc5682m98357' -> 'acp3xalc5682m98'
[    9.709698] input: acp3xalc5682m98357 Headset Jack as /devices/pci0000:00/0000:00:08.1/0000:03:00.5/AMDI5682:00/sound/card1/input20
Jack 'Headphone Jack' is now unplugged
activate profile: pro-audio (4)
Device: Pro mapping 'Pro' (pro-output-0).
Device: Pro 1 mapping 'Pro 1' (pro-output-1).
Device: Pro mapping 'Pro' (pro-input-0).
Device: Pro 2 mapping 'Pro 2' (pro-input-2).
card 1: profiles:5 devices:6 ports:2
    properties: (8)
        use-ucm = "true"
        verbose = "true"
        alsa.card = "1"
        alsa.card_name = "acp3xalc5682m98357"
        alsa.long_card_name = "Google-Morphius-rev6"
        alsa.driver_name = "snd_soc_acp_rt5682_mach"
        device.string = "1"
        device.description = "acp3xalc5682m98357"

Should be working now then, but “pro audio” means that UCM isn’t being loaded I guess?

Please check pavucontrol or whatever mint uses and switch from “Pro Audio” to “Default”.
cc: @WeirdTreeThing, can you take a look at those logs?

could not open configuration file /usr/share/alsa/ucm2/AMD/acp3xalc5682m98/HiFi.conf
error: failed to open file /usr/share/alsa/ucm2/AMD/acp3xalc5682m98/HiFi.conf: -2
error: failed to import hw:1 use case configuration -2
could not open configuration file /usr/share/alsa/ucm2/AMD/acp3xalc5682m98/HiFi.conf
error: failed to open file /usr/share/alsa/ucm2/AMD/acp3xalc5682m98/HiFi.conf: -2
error: failed to import acp3xalc5682m98357 use case configuration -2

UCM is missing?

These two badboys are here - both deactivated - the chinese one is not the problem I guess:

If you want me to switch linux distribution: No Problem. I don´t want you to support unsupported canoncial badboys :wink:

Solvable or should I switch distro ? Any recommendations which runs best if I switch ? :wink:

hmmm… Just checked…
alsa-ucm-conf is installed (1.2.6.3-1ubuntu1.9)

Can you send the output of strace alsaucm -c1 reload &> alsaucm.log. Of course install strace if needed.

Surething WeirdTreeThing :wink:

My mistake, it’s meant to be -c hw:1 instead of -c1.

1 Like

No problem!

Next log:

It’s saying /usr/share/alsa/ucm2/AMD/acp3xalc5682m98/HiFi.conf doesn’t exist, but it should be included in alsa-ucm-conf so check if that exists.

getting interesting… Not even a AMD subfolder…

Should this have been installed via your audio script or should it be there by default in the mint distribution?

Yes this should be provided by the distro. My guess is linux mint is too old to include the ucm. The best option would be to switch to a more up to date distro.

1 Like

Thank you very much for you time and help.

I failed to follow the recomendations of skipping canonical based distros. So I´m about to switch to fedora 39. Anyone could please lead me to a tut how to format the emmc with ext4 and putting the bootloader on an SD Card ? Is there something like that? @elly mentioned something way up in the thread but the fedora installer doesn´t seem to have options for this. ;(

p.s. Seems fedora has an extended partitioning mode. Trying it right now…

p.p.s. success :wink: Fedora installed

1 Like

Sorry, had a busy week. Glad to hear you got it working :slight_smile: