asteroid icon indicating copy to clipboard operation
asteroid copied to clipboard

[Samsung Gear 2 Neo] Can we install Asteroid OS on it?

Open OoLunar opened this issue 5 years ago • 7 comments

Heyo! I'm currently attempting to get AstroidOS onto a Samsung Gear 2 Neo (BOAD). Seeing as how it's not directly supported, will there be any major differences from following the Dory install guide? Reading through the Dory install guide, the only major concern that I see is unlocking the bootloader. I'm not sure if I even can unlock it, with Samsung being Samsung and making it a PITA on getting external OS' to be installed. Thoughts?

OoLunar avatar Jul 24 '20 05:07 OoLunar

Hi, the SoC (Processor, GPU, Peripheral interfaces,...) is a completely different one compared to dory. It is very unlikely that an image for a watch we already support will boot on the Gear 2 Neo.

If you want to use AsteroidOS on your Gear 2 Neo you would have to port AsteroidOS first. There might be some roadblocks ahead:

  • Finding the Kernel source code + correct defconfig (This was an issue with the Gear S2)
  • The Gear 2 Neo comes with Tizen instead of Android so it is not possible to base a port on another watch since the Gear 2 Neo does not need libhybris (Android driver compatibility layer for linux)

I found an Android wear port and a very hacky TWRP "port". Bootloader unlocking doesn't seem to be an issue and you can use Odin/Heimdall in download mode to install a new firmware. Since there is an Android Wear port, it would be easier (but less clean) to base the port on the the Android Wear port instead of Tizen.

jrtberlin avatar Jul 24 '20 06:07 jrtberlin

After some trial and error, I managed to install the Android Lollipop Wear port, and I now have ADB successfully working. Now I'm looking at setting up OpenEmbedded for Asteroid OS. As for finding the kernel source, I haven't started searching yet, due to lack of faith that it's present on the Internet. When I reach the step of needing it, I'll test my luck and try finding it then

EDIT: I'll be damned. https://www.sammobile.com/2014/05/07/samsung-releases-gear-2-and-gear-2-neo-open-source-files/

OoLunar avatar Jul 28 '20 08:07 OoLunar

You should be able to use this kernel: https://github.com/Biktorgj/Android_b2_Kernel if you want to use the Android Wear port. I think that this is the correct defconfig: https://github.com/Biktorgj/Android_b2_Kernel/blob/master/arch/arm/configs/android_b2_defconfig

MagneFire avatar Jul 28 '20 09:07 MagneFire

Hi, I've been working on getting to AsteroidOS & been updating ppl on it in the matrix channel but thought it might be good to post something here.

Rinato/Gear 2/Gear 2 Neo is actually supported by mainline Linux, but you need this patch to get it to boot.

~~Currently kind of stuck on the display, need to get the bootloaders cmdline somehow to take pieces from as it works with the bootloader's kernel cmdline but not with a custom cmdline. This is wrong, it's actually the other way round. we have to force not using bootloader cmdline and instead use our own~~ This is all wrong, currently stuck as linux crashes seemingly

Hello, headless penguins. 20210620_150103

jackmthws avatar Jun 20 '21 22:06 jackmthws

Ok we have actual useful(?) output now. It seems to be getting stuck on DRM: image w/ debug and loglevel 7: image Need to figure out what is wrong and hopefully fix it, if anyone has any ideas on what to do next lmk

jackmthws avatar Jun 28 '21 00:06 jackmthws

What do you think? Is it possible to get it working on it? I can't wait! :) I have a Gear 2 but i can't use it... Tizen is totally unusable if you have non-Samsung phone and Wear is very buggy, slow and outdated. A working AsteroidOS would be a lifesaver! :)

tomi7711 avatar Sep 18 '22 11:09 tomi7711

It's been a bit but I still have my Gear 2 Neo watch... I've never compiled Linux before but there's not much stopping me now. Since mainline Linux is supported via patch, I wonder if I could get other distro's working... But that's out of scope of this issue.

Regarding Asteroid, I've never done OS dev like this before, so I'd definitely need a guide if I were to attempt to port it. Are there any links that anyone knows about?

OoLunar avatar Sep 26 '22 00:09 OoLunar