Halium / projectmanagement

142 stars 32 forks source link

[device-port] [halium-9.0] [dreamlte] Samsung Galaxy S8 #262

Closed pklampros closed 2 years ago

pklampros commented 3 years ago

Tree:

Doesn't boot yet.

Using this unofficial LineageOS build/source/device tree

Remove multiple definitions of YYLTYPE yylloc (kernel/samsung/universal8895/scripts/dtc/dtc-lexer.l and kernel/samsung/universal8895/scripts/dtc/dtc-lexer.lex.c_shipped)

Remove $(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk) and add $(call inherit-product, $(SRC_TARGET_DIR)/product/halium.mk) in device/samsung/dreamlte/lineage_dreamlte.mk

tmvkrpxl0 commented 3 years ago

Hello, I'm working on Galaxy S8+ with halium-9.0 I think we can work together as they are very similar

allaeddineomc commented 3 years ago

Hello, I'm working on Galaxy S8+ with halium-9.0 I think we can work together as they are very similar

where did you got ? i'm interested in working with you

tmvkrpxl0 commented 3 years ago

Hello, I'm working on Galaxy S8+ with halium-9.0 I think we can work together as they are very similar

where did you got ? i'm interested in working with you

I have too few linux knowledge and I decided to give up. Nothing I compile actually ran on the device. Sorry to tell you this

vanyasem commented 2 years ago

Consider updating https://docs.halium.org/en/latest/supplementary/devices/dream2lte.html while you're on it.

(psst https://github.com/Halium/docs/blob/master/supplementary/devices/dream2lte.rst)

or maybe you should create a new file called dreamlte (regular S8) and go from there.

IIRC dream2lte and dreamlte shared a common kernel/device tree, so those devices should be (theoretically) interchangeable. I myself worked on an S8+

Jo-Blade commented 2 years ago

Hello @pklampros , I've managed to build halium-boot and system.img for this device with halium 10 (I'll raise an issue later) for the dreamlte (S8). I've deployed these on my device but like you, nothing appears in the dmesg nor telnet, nor ssh. I want to know if you have had some ideas to work about this problem. (And maybe if you want us to work together ?)

Jo-Blade commented 2 years ago

Last thing : When I was booting the phone, the screen stuck on the "samsung galaxy s8" splashcreen for a while without doing anything (no ssh, no telnet as I said). After a couple of minutes, the phone automatically restart. However, if I go into the twrp recovery, there is no file in /sys/fs/pstore, maybe the kernel started successfully and just the usb networking failed ?

pklampros commented 2 years ago

@Jo-Blade sorry, haven't really progressed with this and no time to work on it atm unfortunately. Will happily test builds and changes though... I did see on the telegram UBports porting channel that @abkro had some success booting into the UI with S8, maybe they can give us some tips here?

vanyasem commented 2 years ago

@Jo-Blade the reboot is most likely due to the fact that the kernel booted indeed, and the process of starting an LXC container started. The LXC container failed to boot and forced a reboot of the phone. You can check that by chrooting into rootfs.img and disabling the LXC image service. if it stops rebooting after these steps, then the kernel does boot successfully, and LXC is at fault

ssh/telnet is indeed broken in the kernel itself - it's a known fact since my first initial attempt at porting the device to halium-7. to check whether it booted or not, check if there are any new files/folders generated in /data

Jo-Blade commented 2 years ago

@vanyasem Sorry to not gave any news, but thanks to @abkro on the Telegram porting room, I've successfully built a halium-9 port for the device and booted in the UI. Furthermore, the usb is working, thanks to another guy who explains me I need to add the "usb-tethering" binary in /usr/bin of the rootfs. I am currently trying to get sound working in the device.

I would probably open a new issue with my manifest.xml and explanation of the fixes soon.

vanyasem commented 2 years ago

@Jo-Blade wow, that's great news! would you mind sharing some photos?

I am really interested in looking at your trees, please commit them anywhere you like

I will close this issue once you open a new one. I appreciate the work you've done

Jo-Blade commented 2 years ago

@vanyasem It is done ! #292 please contact me if you have some issues