vasishath / multirom

MultiROM core sources
GNU General Public License v3.0
32 stars 12 forks source link

No sound after installing multirom #15

Closed ARTI5T closed 5 years ago

ARTI5T commented 5 years ago

After patching boot.img, the speaker does not work (usb-c earphones are working). Using Xiaomi MIX2S.

vasishath commented 5 years ago

You may need audio firmware in vendor. Other devices also use it.

On Sat, Aug 10, 2019, 3:23 PM ARTI5T notifications@github.com wrote:

After patching boot.img, the speaker does not work (usb-c earphones are working). Using Xiaomi MIX2S.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/vasishath/multirom/issues/15?email_source=notifications&email_token=ABOOCZ2ZEHTXID64UIYDECTQD2F3LA5CNFSM4IKZCXU2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HEQZCLQ, or mute the thread https://github.com/notifications/unsubscribe-auth/ABOOCZ7C3CSWYKV2SJYKNKDQD2F3LANCNFSM4IKZCXUQ .

ARTI5T commented 5 years ago

Does multirom modify the vendor partition? So what happens to the kernel and vendor when injecting boot.img? I flashed the original boot.img and the speaker works again. And injected boot.img affects both internal rom and secondary roms.

ARTI5T commented 5 years ago

By the way, is it possible to let every rom have a separate external storage /data/media?

ARTI5T commented 5 years ago

In kernel log: [ 1.652650] trampoline: firmware: looking at /etc/firmware/tas2559_uCDSP.bin [ 1.652685] trampoline: firmware: looking at /vendor/firmware/tas2559_uCDSP.bin [ 1.652703] trampoline: firmware: looking at /mrom_enc/vendor/firmware/tas2559_uCDSP.bin [ 1.652723] trampoline: firmware: looking at /firmware/image/tas2559_uCDSP.bin [ 1.652733] trampoline: firmware: could not open 'tas2559_uCDSP.bin': No such file or directory [ 1.652837] tas2559 2-004c: tas2559_fw_ready: [ 1.652843] tas2559 2-004c: tas2559_uCDSP.bin firmware is not loaded. But the .bin file is in /vendor/firmware. Originally it is loaded by ueventd but in multirom it says [ 10.772823] ueventd: [libfs_mgr]dt_fstab: Skip disabled entry for partition system

vasishath commented 5 years ago

It creates a mini-vendor partition for itself when encryption runs. That mini-vendor has to contain the firmware. Only then it can load it. No u can't have separate storage for every rom. Atleast not till now. It maybe possible however.

On Mon, Aug 12, 2019, 8:21 PM ARTI5T notifications@github.com wrote:

In kernel log: [ 1.652650] trampoline: firmware: looking at /etc/firmware/tas2559_uCDSP.bin [ 1.652685] trampoline: firmware: looking at /vendor/firmware/tas2559_uCDSP.bin [ 1.652703] trampoline: firmware: looking at /mrom_enc/vendor/firmware/tas2559_uCDSP.bin [ 1.652723] trampoline: firmware: looking at /firmware/image/tas2559_uCDSP.bin [ 1.652733] trampoline: firmware: could not open 'tas2559_uCDSP.bin': No such file or directory [ 1.652837] tas2559 2-004c: tas2559_fw_ready: [ 1.652843] tas2559 2-004c: tas2559_uCDSP.bin firmware is not loaded. But the .bin file is in /vendor/firmware. Originally it is loaded by ueventd but in multirom it says [ 10.772823] ueventd: [libfs_mgr]dt_fstab: Skip disabled entry for partition system

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/vasishath/multirom/issues/15?email_source=notifications&email_token=ABOOCZ7HUZXEFMMXVVBXOVTQEF2HVA5CNFSM4IKZCXU2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4CY5YY#issuecomment-520457955, or mute the thread https://github.com/notifications/unsubscribe-auth/ABOOCZZ7KHD4OECPLPXSOGTQEF2HVANCNFSM4IKZCXUQ .

ARTI5T commented 5 years ago

I didn't include decryption in my build and it always fail when I tried to add the .bin file to the installer. So how can I put something in ramdisk?

vasishath commented 5 years ago

No it won't work if u include the file in zip. This means your device needs speaker firmware early in the boot so u need to add a firmware directory to your device tree which include the bin file. And the flag MR_EXTRA_FIRMWARE_DIR to that.

On Wed, Aug 14, 2019, 12:45 AM ARTI5T notifications@github.com wrote:

I didn't include decryption in my build. But I tried to add the .bin file to the multirom.zip and it doesn't work. Always missing that .bin file. And it seemed that we can't reinitialize the speaker after a first attempt.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/vasishath/multirom/issues/15?email_source=notifications&email_token=ABOOCZ4DPDPYZ6NBSR7RTELQEMB57A5CNFSM4IKZCXU2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4GV7QI#issuecomment-520970177, or mute the thread https://github.com/notifications/unsubscribe-auth/ABOOCZ25KRYNT2FDDVB736DQEMB57ANCNFSM4IKZCXUQ .

ARTI5T commented 5 years ago

OK. Thank you, problem solved.