Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
2 of 16 tasks
pklampros opened this issue Jun 21, 2021 · 11 comments
Closed
2 of 16 tasks

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

pklampros opened this issue Jun 21, 2021 · 11 comments

Comments

@pklampros
Copy link

Tree:

  • Create manifest samsung_dreamlte.xml
  • Boot image and system image build successfully
  • Device boots into rootfs, usb: Manufacturer: GNU/Linux Device appears in dmesg on host.
  • LXC container starts and does not crash
  • libhybris tests
    • test_gps
    • test_hwcomposer
    • test_lights
    • test_vibrator
    • test_wifi
    • test_sensors
    • test_audio
    • test_camera
    • test_input
    • test_nfc
    • test_recorder

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
Copy link

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

@allaeddineomc
Copy link

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
Copy link

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
Copy link
Member

vanyasem commented Oct 11, 2021

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
Copy link

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
Copy link

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
Copy link
Author

pklampros commented Mar 21, 2022

@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
Copy link
Member

@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
Copy link

@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
Copy link
Member

vanyasem commented Apr 8, 2022

@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
Copy link

Jo-Blade commented Apr 8, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants