fuxi-dev / device_xiaomi_sm8550-common

*DISCLAIMER* i don't have device for this, i just got request to do the bringup. experimental. (force push warning)
5 stars 2 forks source link

Vendor Trees for fuxi and xiaomi_sm8550-common #1

Closed zingrx closed 1 year ago

zingrx commented 1 year ago

Hi,

I was trying to build risingOS using this amazing tree, but couldn't find the vendor trees anywhere in this org. Can you please share links for both vendor/xiaomi/fuxi and vendor/xiaomi/sm8550-common?

lolipuru commented 1 year ago

edit. this repo instead https://github.com/lolipuru/device_xiaomi_fuxi due to my current repo on this org is broken, and cannot be booted

this is decommonized tree, so you won't need to have sm8550-common

i haven't upload vendor yet (due to my git keep failing to upload) so you need to dump it by yourself (from stock 14.0.7.0.TMCMIXM)

cleanup branch have more correct files and debloat some blobs, but untested right now because i don't have device and my testers are on trip

zingrx commented 1 year ago

I have a device to test, do you mind sharing the cleanup branch?

lolipuru commented 1 year ago

https://github.com/lolipuru/device_xiaomi_fuxi/tree/cleanup

here, i haven't put into my org yet because i just recently public this repo

you need to manually import euicc for esim from FP4 firmware

zingrx commented 1 year ago

May I ask if you can zip and upload your vendor tree to somewhere (gdrive, 123pan, etc.) temporarily. In my current tree I'm using the prebuilt vendor.img extracted from the firmware directly.

edit: the link to my tree https://github.com/zingrx/device_xiaomi_fuxi

lolipuru commented 1 year ago

a bit late ig, https://gitlab.com/Skeptcher/vendor_xiaomi_fuxi

zingrx commented 1 year ago

Thanks al lot Saran! I faced an error at the very end of the build, if you can help with it. https://hastebin.com/share/uteretobex.bash

lolipuru commented 1 year ago

Thanks al lot Saran! I faced an error at the very end of the build, if you can help with it. https://hastebin.com/share/uteretobex.bash

traceback (most recent call last):
  File "/home/zinger/roms/superior-ext/out/host/linux-x86/bin/avbtool/internal/stdlib/runpy.py", line 196, in _run_module_as_main
  File "/home/zinger/roms/superior-ext/out/host/linux-x86/bin/avbtool/internal/stdlib/runpy.py", line 86, in _run_code
  File "/home/zinger/roms/superior-ext/out/host/linux-x86/bin/avbtool/__main__.py", line 12, in <module>
  File "/home/zinger/roms/superior-ext/out/host/linux-x86/bin/avbtool/internal/stdlib/runpy.py", line 196, in _run_module_as_main
  File "/home/zinger/roms/superior-ext/out/host/linux-x86/bin/avbtool/internal/stdlib/runpy.py", line 86, in _run_code
  File "/home/zinger/roms/superior-ext/out/host/linux-x86/bin/avbtool/avbtool.py", line 4925, in <module>
  File "/home/zinger/roms/superior-ext/out/host/linux-x86/bin/avbtool/avbtool.py", line 4729, in run
  File "/home/zinger/roms/superior-ext/out/host/linux-x86/bin/avbtool/avbtool.py", line 4755, in make_vbmeta_image
  File "/home/zinger/roms/superior-ext/out/host/linux-x86/bin/avbtool/avbtool.py", line 2953, in make_vbmeta_image
  File "/home/zinger/roms/superior-ext/out/host/linux-x86/bin/avbtool/avbtool.py", line 760, in __init__
  File "/home/zinger/roms/superior-ext/out/host/linux-x86/bin/avbtool/avbtool.py", line 785, in _read_header
struct.error: unpack requires a buffer of 28 bytes

seem like you have some prebuilt images in dt

if you use this dt it should built (lineage-20 should be fine)

zingrx commented 1 year ago

The reason I opted for a prebuilt vendor, is that using your dt and vt, I get a different error. https://hastebin.com/share/kenewopumu.bash