Compiling Heimdall Latest Release Github <Solved>

Questions about applications and software
Forum rules
Before you post please read how to get help
Post Reply
linuxtothebone
Level 1
Level 1
Posts: 32
Joined: Mon Sep 24, 2012 8:42 pm

Compiling Heimdall Latest Release Github <Solved>

Post by linuxtothebone » Thu Mar 22, 2018 6:13 pm

Hi there,

Any help would be much apprecieated.

I am trying to flash my galaxy s5 with TWRP custom recovery.

I do not use windows so need to use a package called Heimdall to do this.

My issue is that the latest version of Heimdall 1.4.2 with the correct fixes for this model phone is not available in the Repositories.

I attempted to compile but have no idea how and when I followed the guideline one of the pre-requisite packages as per the ReadMe on the github site, for compiling was unavailable. Specifically qt5-default

1.4.2 appears to be the latest releases available for other distros like fedora and debian, but just an outdated one in the Ubuntu.

I found this package for Debian but can it work in mint? i am running mint 18.3

https://tracker.debian.org/pkg/heimdall-flash

I have been having difficultly with the whole flashing of the phone but I expect it to be that way. I need this package to solve the issue.

Can anyone help me compile or package or find a ppa suitable for me to run this.


Thank you in advance

Can anyone help me
Last edited by linuxtothebone on Thu May 31, 2018 5:59 am, edited 1 time in total.

User avatar
phd21
Level 19
Level 19
Posts: 9518
Joined: Thu Jan 09, 2014 9:42 pm
Location: Florida

Re: Compiling Heimdall Latest Release Github

Post by phd21 » Thu Mar 22, 2018 8:10 pm

Hi linuxtothebone

It would help to know more about your system setup. If you run "inxi -Fxzd" and "lsusb" from the console terminal prompt, highlight the results, copy and paste them back here, that should provide enough information.

Benjamin-Dobell/Heimdall: Heimdall is a cross-platform open-source tool suite used to flash firmware (aka ROMs) onto Samsung Galaxy S devices.
https://gitlab.com/BenjaminDobell/Heimdall

I did find some Linux deb files for this, but I have not tried them. Compiling this from source code instructions are below which I just tried on my Linux Mint KDE system and it worked fine.

Linux instructions
https://gitlab.com/BenjaminDobell/Heimd ... nux/README

"libusb" must be installed and it probably already is, but check the "Synaptic Package Manager (SPM)" for that first.

64-bit
http://ftp.us.debian.org/debian/pool/ma ... _amd64.deb

32-bit
http://ftp.us.debian.org/debian/pool/ma ... 1_i386.deb
Heimdall wrote: https://gitlab.com/BenjaminDobell/Heimd ... nux/README

Installing Heimdall Suite from Source:

1. First make sure you have installed build-essential, cmake, zlib1g-dev,
qt5-default, libusb-1.0-0-dev and OpenGL (e.g libgl1-mesa-glx and
libgl1-mesa-dev).
NOTE: Package names may not be absolutely identical to those above.

2. Open a terminal and navigate to the directory you downloaded,
or extracted, Heimdall to.

3. Enter the following commands to compile Heimdall Suite:

mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make
Compiling this from source code

To install this open a console terminal, type in, or copy & paste, each line below one by one: Click "Select All" above command, right-click the highlighted command, select Copy (or Ctrl+Insert), click in the console terminal window, and right click paste (or Shift+Insert), repeat for each command.

Code: Select all

sudo apt-get install build-essential cmake git curl wget checkinstall zlib1g-dev qt5-default libusb-1.0-0-dev libusb-dev libgl1-mesa-glx libgl1-mesa-dev libqt5x11extras5 libqt5x11extras5-dev

Code: Select all

git clone https://gitlab.com/BenjaminDobell/Heimdall

Code: Select all

cd Heimdall

Code: Select all

mkdir build

Code: Select all

cd build

Code: Select all

cmake -DCMAKE_BUILD_TYPE=Release ..

Code: Select all

make

Code: Select all

sudo make install

Hope this helps ...
Heimdall
Heimdall
Last edited by xenopeek on Thu Aug 23, 2018 3:51 pm, edited 3 times in total.
Reason: update links in post as project moved to GitLab (project previously was on GitHub at https://github.com/Benjamin-Dobell/Heimdall)
Phd21: Mint 19.2 Cinnamon & xKDE (Xfce) & KDE Neon 64-bit Awesome OS's, Ancient Dell OptiPlex 780 Core2Duo E8400 3GHz,4gb Ram, 256gb SDD, only Intel 4 Graphics. Why I use KDE?:https://opensource.com/life/15/4/9-reasons-to-use-kde

linuxtothebone
Level 1
Level 1
Posts: 32
Joined: Mon Sep 24, 2012 8:42 pm

Re: Compiling Heimdall Latest Release Github

Post by linuxtothebone » Thu Mar 22, 2018 10:38 pm

Thanks heaps for your time. I havent compiled yet but will try asap. here is the output of the commands you suggested
celt@celt-HP-EliteBook-8560p ~ $ inxi -Fxzd
System: Host: celt-HP-EliteBook-8560p Kernel: 4.13.0-36-generic x86_64 (64 bit gcc: 5.4.0)
Desktop: Cinnamon 3.6.7 (Gtk 3.18.9-1ubuntu3.3)
Distro: Linux Mint 18.3 Sylvia
Machine: System: Hewlett-Packard (portable) product: HP EliteBook 8560p v: A0001D02
Mobo: Hewlett-Packard model: 1618 v: KBC Version 97.45
Bios: Hewlett-Packard v: 68SCF Ver. F.08 date: 08/26/2011
CPU: Dual core Intel Core i5-2540M (-HT-MCP-) cache: 3072 KB
flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 10376
clock speeds: max: 3300 MHz 1: 2594 MHz 2: 2594 MHz 3: 2594 MHz
4: 2594 MHz
Graphics: Card: Advanced Micro Devices [AMD/ATI] Seymour [Radeon HD 6400M/7400M Series]
bus-ID: 01:00.0
Display Server: X.Org 1.18.4 drivers: ati,radeon (unloaded: fbdev,vesa)
Resolution: 1600x900@59.98hz
GLX Renderer: AMD CAICOS (DRM 2.50.0 / 4.13.0-36-generic, LLVM 5.0.0)
GLX Version: 3.0 Mesa 17.2.8 Direct Rendering: Yes
Audio: Card-1 Advanced Micro Devices [AMD/ATI] Caicos HDMI Audio [Radeon HD 6400 Series]
driver: snd_hda_intel bus-ID: 01:00.1
Card-2 Intel 6 Series/C200 Series Family High Definition Audio Controller
driver: snd_hda_intel bus-ID: 00:1b.0
Sound: Advanced Linux Sound Architecture v: k4.13.0-36-generic
Network: Card-1: Intel 82579LM Gigabit Network Connection
driver: e1000e v: 3.2.6-k port: 5020 bus-ID: 00:19.0
IF: enp0s25 state: down mac: <filter>
Card-2: Intel Centrino Ultimate-N 6300
driver: iwlwifi bus-ID: 25:00.0
IF: wlo1 state: up mac: <filter>
Drives: HDD Total Size: 320.1GB (22.0% used)
ID-1: /dev/sda model: WDC_WD3200BEKT size: 320.1GB
Optical: No optical drives detected.
Partition: ID-1: / size: 290G used: 62G (23%) fs: ext4 dev: /dev/sda1
ID-2: swap-1 size: 4.24GB used: 0.00GB (0%) fs: swap dev: /dev/sda5
RAID: No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors: System Temperatures: cpu: 50.0C mobo: 41.0C gpu: 44.0
Fan Speeds (in rpm): cpu: N/A
Info: Processes: 204 Uptime: 2 min Memory: 800.2/3895.4MB
Init: systemd runlevel: 5 Gcc sys: 5.4.0
Client: Shell (bash 4.3.481) inxi: 2.2.35


celt@celt-HP-EliteBook-8560p ~ $ lsusb
Bus 002 Device 004: ID 03f0:231d Hewlett-Packard Broadcom 2070 Bluetooth Combo
Bus 002 Device 003: ID 1bcf:2805 Sunplus Innovation Technology Inc.
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

User avatar
phd21
Level 19
Level 19
Posts: 9518
Joined: Thu Jan 09, 2014 9:42 pm
Location: Florida

Re: Compiling Heimdall Latest Release Github

Post by phd21 » Thu Mar 22, 2018 11:01 pm

Hi linuxtothebone,

You are welcome ...

I do not see anything wrong with the results of the "inxi -Fxzd" console terminal command, so that is a good thing.

I do not have a Samsung Smartphone (although I would love a new one), so I have never used this application before. It looks like a really nice application though.

As I am sure you already know that any time you update a Bios (flash a bios) for any device, that you must make sure it is the correct bios for your specific device's make and model. There is always a chance this could "brick" your phone if you are not really careful, which the developer even expresses, so read and follow their instructions well.

Good luck and let us know how it works for you.
Phd21: Mint 19.2 Cinnamon & xKDE (Xfce) & KDE Neon 64-bit Awesome OS's, Ancient Dell OptiPlex 780 Core2Duo E8400 3GHz,4gb Ram, 256gb SDD, only Intel 4 Graphics. Why I use KDE?:https://opensource.com/life/15/4/9-reasons-to-use-kde

User avatar
jimallyn
Level 18
Level 18
Posts: 8952
Joined: Thu Jun 05, 2014 7:34 pm
Location: Wenatchee, WA USA

Re: Compiling Heimdall Latest Release Github

Post by jimallyn » Thu Mar 22, 2018 11:30 pm

Please do keep us informed on how this goes. I also have a Galaxy S5 and have been thinking about putting LineageOS on it.
Image

“If the government were coming for your TVs and cars, then you'd be upset. But, as it is, they're only coming for your sons.” - Daniel Berrigan

linuxtothebone
Level 1
Level 1
Posts: 32
Joined: Mon Sep 24, 2012 8:42 pm

Re: Compiling Heimdall Latest Release Github

Post by linuxtothebone » Fri Mar 23, 2018 2:02 am

thanks a s!#t load

I followed you insructions about compiling from source and was able to flash TWRP to my samsung s5 its a g900i.

I then installed resurrection remix 5.8.5 following the procedure I have used before for my s3

It worked, awesome, thankyou very much

I dont install gapps by default and at the moment I am grappling with the lack of swype/glide feature of the AOSP keyboard on it. If anyone knows how to get that functioning without gapps let me know.

Other than that rr works as it should so far. So a very big thank you. I will now begin testing the phone and see its performance without all the bloat ware/tracking/bullsh#t and prove its performance in the real world.

I am a fan on using the net and ensuing tech as it was meant to be used before all the analytics and facebook private information theft was on the scene. I know the best option is to throw all the tech out and trash it but I like the idea of it being useful in the spirit it was originally meant by the ingenous souls that developed it. So I use linux and promote it and also android custom roms and promote them also.

Thanks again... p.s. should I edit the subject to say <SOLVED>?

Peace

User avatar
catweazel
Level 19
Level 19
Posts: 9838
Joined: Fri Oct 12, 2012 9:44 pm
Location: Australian Antarctic Territory

Re: Compiling Heimdall Latest Release Github

Post by catweazel » Fri Mar 23, 2018 2:10 am

linuxtothebone wrote:
Fri Mar 23, 2018 2:02 am
It worked, awesome, thankyou very much
Next time you may want to simply add the PPA and install from Software Manager.

https://launchpad.net/ubuntu/+source/heimdall-flash
"There is, ultimately, only one truth -- cogito, ergo sum -- everything else is an assumption." - Me, my swansong.

User avatar
phd21
Level 19
Level 19
Posts: 9518
Joined: Thu Jan 09, 2014 9:42 pm
Location: Florida

Re: Compiling Heimdall Latest Release Github

Post by phd21 » Fri Mar 23, 2018 3:14 am

Hi linuxtothebone,

You are welcome...

Glad it worked.

Just add <Solved> to your original post's subject line.
Phd21: Mint 19.2 Cinnamon & xKDE (Xfce) & KDE Neon 64-bit Awesome OS's, Ancient Dell OptiPlex 780 Core2Duo E8400 3GHz,4gb Ram, 256gb SDD, only Intel 4 Graphics. Why I use KDE?:https://opensource.com/life/15/4/9-reasons-to-use-kde

User avatar
jimallyn
Level 18
Level 18
Posts: 8952
Joined: Thu Jun 05, 2014 7:34 pm
Location: Wenatchee, WA USA

Re: Compiling Heimdall Latest Release Github

Post by jimallyn » Fri Mar 23, 2018 12:37 pm

linuxtothebone wrote:
Fri Mar 23, 2018 2:02 am
I then installed resurrection remix 5.8.5 following the procedure I have used before for my s3
Is that procedure detailed somewhere on the web perhaps?
Image

“If the government were coming for your TVs and cars, then you'd be upset. But, as it is, they're only coming for your sons.” - Daniel Berrigan

udoline
Level 1
Level 1
Posts: 1
Joined: Thu Aug 23, 2018 3:08 pm

Re: Compiling Heimdall Latest Release Github <Solved>

Post by udoline » Thu Aug 23, 2018 3:21 pm

Please change the URL where the sources are located ... :D

https://gitlab.com/BenjaminDobell/Heimdall

and try

Code: Select all

 git clone https://gitlab.com/BenjaminDobell/Heimdall

User avatar
xenopeek
Level 24
Level 24
Posts: 24203
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: Compiling Heimdall Latest Release Github <Solved>

Post by xenopeek » Thu Aug 23, 2018 3:52 pm

Thanks udoline, I've updated it in above post.
Image

Post Reply

Return to “Software & Applications”