LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Mobile
User Name
Password
Linux - Mobile This forum is for the discussion of all topics relating to Mobile Linux. This includes Android, Tizen, Sailfish OS, Replicant, Ubuntu Touch, webOS, and other similar projects and products.

Notices


Reply
  Search this Thread
Old 06-21-2021, 09:46 PM   #1
Kristoffer G
Member
 
Registered: Jan 2007
Location: In central Umeå.
Distribution: Mageia
Posts: 79

Rep: Reputation: 25
Got stuck at verifying modules being built into the kernel for Hybris HAL


I'm working on porting Sailfish OS to my Samsung Galaxy S10 Plus (SM-G975F) using the HADK which stands for Hardware Adaptation Development Kit (I added the PDF for it as an attachment to this thread) and I use Lineage 17.1 as a base.

After coming to page 15 and running make hybris-hal droidmedia I use the mer-kernel-checker verify script to verify that the kernel that was built doesn't have any warnings or errors anymore and here's where I got stuck.

Here's the defconfig that builds the kernel for Lineage 17.1 that I'm trying to change to build the Sailfish OS kernel: https://github.com/whatawurst/androi...2lte_defconfig

I know for a fact that I have changed the defconfig to solve the warnings and errors that's displayed so hybris-hal should show no warnings or errors.

I compared with the .config in /obj/KERNEL_OBJ/ and they don't look the same and I have no clue as to why.

I have looked in the FAQ-HADK and the hot-hadk if the issue is reported (at the time of this writing), but I can't see that anyone else experiences this.

I'll also add the summary of the HADK to show you how far I've come and what steps I've finished.

Copy paste the content of fixup-mountpoints.txt to /hadk/hybris/hybris-boot/fixup-mountpoints before building anything.
Attached Files
File Type: pdf HADK.pdf (273.1 KB, 90 views)
File Type: log Rebuilding hybris-hal and getting the same WARNINGS.log (174.1 KB, 15 views)
File Type: txt fixup-mountpoints.txt (2.3 KB, 10 views)
File Type: log This is how far the HADK has taken me.log (3.2 KB, 4 views)
 
Old 06-25-2021, 11:14 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,144

Rep: Reputation: 2308Reputation: 2308Reputation: 2308Reputation: 2308Reputation: 2308Reputation: 2308Reputation: 2308Reputation: 2308Reputation: 2308Reputation: 2308Reputation: 2308
Your thread has had 255 views so far, but no replies. Let me try. I also note in passing your 4 attachments have had one view between them. Folks are willing to help if they can, but we are volunteers, not unpaid workers.

My first advice is that if you don't know what you're doing, stop. Porting is not for the faint of heart. If you are a software engineer, you will laugh scornfully at that, and that's ok. But be ready to sort things out and burn midnight oil as needed. Secondly, you need not necessarily cut out warnings and errors - they are your guidance at the moment. Why not leave them, and pipe them to file or /dev/null?

The configs don't look the same because they are not the same. There's many starting questions which bring in their own menu. If you don't want bluetooth, for example, all bluetooth questions and bluetooth drivers are skipped, etc. Why not try the .config in /obj/KERNEL_OBJ/, if your own doesn't work? Why not debug your config, or make your own??

Last edited by business_kid; 06-25-2021 at 11:16 AM.
 
1 members found this post helpful.
Old 06-29-2021, 01:41 AM   #3
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Kristoffer G, all this is way over my head, and I didn't want to spoil your zero reply status by giving such a near-useless reply, but now I can:
Have you checked more Sailfish-OS specific channels like https://forum.sailfishos.org/ and https://talk.maemo.org/ (TMO) ?
I think you will get at least some on-topic input there.

I know on TMO there's a few threads for so-called community ports to other Android devices. Check it out.
 
Old 07-03-2021, 09:54 PM   #4
Kristoffer G
Member
 
Registered: Jan 2007
Location: In central Umeå.
Distribution: Mageia
Posts: 79

Original Poster
Rep: Reputation: 25
Quote:
Originally Posted by business_kid View Post
My first advice is that if you don't know what you're doing, stop.
Thank you for your reply!

Well, I live my life by trial and error to learn and to improve the next time I get this problem.
The thing is, Samsung seems to be harder to port Sailfish OS to (at least devices past the Galaxy S7)
With some help I did manage to port Sailfish OS to the Sony Xperia 10 Dual as Sony is more friendly to sharing source code and guides and whatever is needed.

No, I'm not a developer. I'm mostly a translator and packager for my distribution called Mageia, but that's not the same platform.

Quote:
Originally Posted by business_kid View Post
Secondly, you need not necessarily cut out warnings and errors - they are your guidance at the moment. Why not leave them, and pipe them to file or /dev/null?
I definitely don't mean to offend you in any way by writing this, but if you look in the HADK pdf you'll see that on page 15 it clearly states and I quote:

"If you are in a rush, get rid only of ERROR cases first, but don’t forget to come back to the WARNING ones too."

Your idea is good, but the HADK does not have that instruction........... YET, so here's where I feel like I've come to a dead end.
If I can build the kernel and get at least no ERRORS and maybe no WARNINGS I can continue myself.

Sidenote: My wish is that in the future Sailfish OS would have an installer like an interactive setup guide asking you what kind of hardware you want to use (if it detects it properly) during the setup process just like you would with a desktop Linux system, but that's just me thinking to much.

Like this:

"I found the following modem, would you like me to enable use of it for you?"

Of course the user might not be so sure if that's correct, but I hope you get my point.
 
Old 07-04-2021, 04:56 AM   #5
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,144

Rep: Reputation: 2308Reputation: 2308Reputation: 2308Reputation: 2308Reputation: 2308Reputation: 2308Reputation: 2308Reputation: 2308Reputation: 2308Reputation: 2308Reputation: 2308
I read that as: "Thanks very much for your advice but I'm not going to take it"

Fine, your phone, your project, knock yourself out. Phones are cheap
 
Old 07-04-2021, 05:38 AM   #6
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by Kristoffer G View Post
With some help I did manage to port Sailfish OS to the Sony Xperia 10 Dual as Sony is more friendly to sharing source code and guides and whatever is needed.
Um.
Isn't that device already supported?

I call shenanigans.
 
Old 07-04-2021, 01:01 PM   #7
Kristoffer G
Member
 
Registered: Jan 2007
Location: In central Umeå.
Distribution: Mageia
Posts: 79

Original Poster
Rep: Reputation: 25
Quote:
Originally Posted by business_kid View Post
I read that as: "Thanks very much for your advice but I'm not going to take it"

Fine, your phone, your project, knock yourself out. Phones are cheap
I never said I wasn't going to take your advice.

I have only built Lineage before so I'm not used to adapting the kernel for hybris.

As I said, I could use some help in setting the correct values so the kernel will build fine.

I did correct all the warnings and errors so it should build, but when rebuilding with make hybris-hal it fails.
 
Old 07-04-2021, 01:02 PM   #8
Kristoffer G
Member
 
Registered: Jan 2007
Location: In central Umeå.
Distribution: Mageia
Posts: 79

Original Poster
Rep: Reputation: 25
Quote:
Originally Posted by ondoho View Post
Um.
Isn't that device already supported?

I call shenanigans.
Samsung Galaxy S10 Plus isn't supported, but Sony Xperia 10 is.
I helped build a EA for it.
 
Old 07-04-2021, 01:12 PM   #9
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by Kristoffer G View Post
I helped build a EA for it.
You actually helped with an official SFOS release and are asking us newbish questions?=??
Again, I'm calling shenanigans.

(And I'd be calling shenanigans even if I didn't know someone from Ireland is subscribed to this thread, because it sounds so much better than "BS")

Last edited by ondoho; 07-04-2021 at 01:14 PM.
 
Old 07-04-2021, 05:38 PM   #10
Kristoffer G
Member
 
Registered: Jan 2007
Location: In central Umeå.
Distribution: Mageia
Posts: 79

Original Poster
Rep: Reputation: 25
Quote:
Originally Posted by ondoho View Post
You actually helped with an official SFOS release and are asking us newbish questions?=??
Again, I'm calling shenanigans.

(And I'd be calling shenanigans even if I didn't know someone from Ireland is subscribed to this thread, because it sounds so much better than "BS")
If you look here you'll see clearly that I made the port: http://web.archive.org/web/202101291...h_OS_for_i4113
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Is the Hybris laptop from Entroware worth buying? linustalman Linux - Laptop and Netbook 15 06-05-2018 08:37 AM
Startup of installation getting stuck on Verifying DMI Pool Data TheLinuxCake Linux - Hardware 2 11-03-2016 05:24 PM
just built my first linux box, got stuck at partition of WD 750G HD will use mythtv. dreamlaugher Linux - Desktop 4 07-02-2014 06:23 PM
Detect what built-in kernel components (not modules) are actually being used? MaxIBoy Linux - Kernel 2 05-24-2009 07:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Mobile

All times are GMT -5. The time now is 06:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration