Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 353180 - Heimdall is a cross-platform open-source tool suite used to flash firmware (aka ROMs) onto Samsung Galaxy S devices
Summary: Heimdall is a cross-platform open-source tool suite used to flash firmware (a...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal with 1 vote (vote)
Assignee: Mike Gilbert
URL: http://www.glassechidna.com.au/produc...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-30 00:09 UTC by john
Modified: 2013-10-15 20:02 UTC (History)
8 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
ebuild for http://www.glassechidna.com.au/products/heimdall (heimdall-9999.ebuild,1.41 KB, text/plain)
2011-01-30 00:11 UTC, john
Details
heimdall-9999.ebuild with proposed modifications (heimdall-9999.ebuild,1.46 KB, text/plain)
2011-01-30 13:11 UTC, john
Details
heimdall-9999.ebuild (heimdall-9999.ebuild,1.42 KB, text/plain)
2011-02-22 14:33 UTC, Florian Schmaus
Details
heimdall-9999.ebuild (heimdall-9999.ebuild,1.57 KB, text/plain)
2011-04-25 11:06 UTC, Lars Wendler (Polynomial-C) (RETIRED)
Details
heimdall-9999.ebuild (heimdall-9999.ebuild,1.57 KB, application/octet-stream)
2011-06-12 14:14 UTC, Florian Schmaus
Details
updated ebuild with proposed fixes from here plus build of libpit (heimdall-9999.ebuild,1.84 KB, text/plain)
2011-10-03 13:10 UTC, john
Details
Ebuild updated to use git-2 eclass, some modifications from zugaina overlay (heimdall-9999.ebuild,2.16 KB, text/plain)
2011-10-11 12:54 UTC, john
Details
heimdall-9999.ebuild (heimdall-9999.ebuild,2.68 KB, text/plain)
2012-08-31 20:33 UTC, Jacek Szafarkiewicz
Details
Heimdall 1.3.1 ebuild (heimdall-1.3.1.ebuild,2.36 KB, text/plain)
2013-01-30 17:45 UTC, Scott Alfter
Details
heimdall-1.4.0.ebuild (heimdall-1.4.0.ebuild,2.43 KB, text/plain)
2013-08-09 17:03 UTC, Lars Wendler (Polynomial-C) (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description john 2011-01-30 00:09:13 UTC
heimdall can flash samsung galaxy S phones in "download" mode, it can be used as a substitute to the official leaked odin tool.
I have tested it on a Galaxy-S GT-I9000 and it works like a charm.

Reproducible: Always

Steps to Reproduce:
1. emerge heimdall

Actual Results:  
emerge exits with: emerge: there are no ebuilds to satisfy "heimdall"

Expected Results:  
emerge heimdall installs the heimdall library and frontends

The ebuild is not complete because I can't get the qt app to build. I'll leave that for someone more versed in QT to do (the build works fine, i have a feeling the receipe of heimdall-frontend is ignoring the PREFIX).
Comment 1 john 2011-01-30 00:11:27 UTC
Created attachment 261061 [details]
ebuild for http://www.glassechidna.com.au/products/heimdall

frontend installation doesn't work because it ignores PREFIX and thus gets a sandbox violation
Comment 2 Rafał Mużyło 2011-01-30 01:01:42 UTC
Minor nitpick - that pkg_postint should probably be more along the lines of net-wireless/bluez.
Comment 3 john 2011-01-30 13:11:31 UTC
Created attachment 261093 [details]
heimdall-9999.ebuild with proposed modifications
Comment 4 john 2011-01-30 13:12:34 UTC
done.
Comment 5 Florian Schmaus gentoo-dev 2011-02-22 14:33:14 UTC
Created attachment 263497 [details]
heimdall-9999.ebuild

Install frontend now works and is enabled by default. Some minor syntax cleanup. Fresh ebuild is always in my repo @ http://gitorious.org/flow-s-ebuilds/flow-s-ebuilds/blobs/master/app-mobilephone/heimdall/heimdall-9999.ebuild
Comment 6 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2011-04-25 11:06:12 UTC
Created attachment 271127 [details]
heimdall-9999.ebuild

Slightly reworked ebuild:

- added an ebuild header
- replaced "frontend" USE flag with "qt4"
- fixed quoting in several places
- fixed tab spaces
- added "|| die" in several places
- added sed-line to fix deprecated udev-rules syntax
Comment 7 Zentoo 2011-05-03 12:50:05 UTC
Quick question: which portage category this ebuild may have ?
Comment 8 Zentoo 2011-05-03 12:51:52 UTC
Quick question: which portage category this ebuild may have ?
Comment 9 Zentoo 2011-05-03 12:58:10 UTC
(In reply to comment #8)
> Quick question: which portage category this ebuild may have ?

I reply to myself since i browse portage to choose one for my overlay and i have notive the existence of the "app-mobilephone" category that i never saw before.

PS: sorry for the double comment but bugzilla tell me that a collision have occurs when i posted.
Comment 10 Florian Schmaus gentoo-dev 2011-06-12 14:14:47 UTC
Created attachment 276812 [details]
heimdall-9999.ebuild

Small change for the ebuild from Lars Wendler (Polynomial-C). The Makefile has slightly changed: reload -> restart

See also: https://gitorious.org/flow-s-ebuilds/flow-s-ebuilds/commit/c5385be1afaedc3aa13d67428b2da4834d05c5c7
Comment 11 Simon Siemonsma 2011-06-17 19:55:37 UTC
When trying to install heimdall from the poly-c overlay at some moment I get:

make  install-data-hook
make[2]: Entering directory `/var/tmp/portage/app-mobilephone/heimdall-9999/work/heimdall-9999/heimdall'
sudo service udev restart
libtool: install: /usr/bin/install -c heimdall /var/tmp/portage/app-mobilephone/heimdall-9999/image//usr/bin/heimdall
sudo: service: command not found

I could install it fine before.
Any ideas what is going on?

Simon
Comment 12 Florian Schmaus gentoo-dev 2011-06-17 22:00:13 UTC
Simon: Thats what my previous comment is about.
Comment 13 Simon Siemonsma 2011-06-18 06:33:12 UTC
Thanks Florian,

it works now.
I downloaded your ebuild instead of using poly-c.

Simon
Comment 14 rainer 2011-09-04 10:34:39 UTC
The ebuild does not work for me. Any suggestions what I need to change?

>>> Compiling source in /var/tmp/portage/app-mobilephone/heimdall-9999/work/heimdall-9999 ...
make -j9 DESTDIR=/var/tmp/portage/app-mobilephone/heimdall-9999/image/ 
make  all-am
make[1]: Entering directory `/var/tmp/portage/app-mobilephone/heimdall-9999/work/heimdall-9999/heimdall'
make[1]: *** No rule to make target `../libpit/libpit-1.3.a', needed by `heimdall'.  Stop.
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/var/tmp/portage/app-mobilephone/heimdall-9999/work/heimdall-9999/heimdall'
make: *** [all] Error 2
Comment 15 john 2011-10-03 13:10:36 UTC
Created attachment 288675 [details]
updated ebuild with proposed fixes from here plus build of libpit
Comment 16 john 2011-10-03 13:11:09 UTC
the ebuild should be updated to use the new git-2 eclass.
Comment 17 john 2011-10-11 12:54:32 UTC
Created attachment 289557 [details]
Ebuild updated to use git-2 eclass, some modifications from zugaina overlay

The ebuild now uses the git-2 and qt4-r2 eclasses instead of their older counterparts, there are also some other minor modifications to the ebuild.
Comment 18 Jacek Szafarkiewicz 2012-08-31 20:33:17 UTC
Created attachment 322663 [details]
heimdall-9999.ebuild

Update:
- using virtual/libusb:1 insted of >dev-libs/libusb-1
- added sys-libs/zlib to DEPEND
- deleted --prefix and others from econf (econf has --prefix defined)
- more userfriendly output
- added desktop entry for heimdall-fronend (without icon)
Comment 19 Leho Kraav (:macmaN @lkraav) 2013-01-20 10:13:47 UTC
heimdall-frontend doesn't seem to be getting installed correctly with the current HEAD, it's getting built, but doesn't end up in the resulting package.
Comment 20 Leho Kraav (:macmaN @lkraav) 2013-01-20 10:21:35 UTC
 * 
 * Configuring heimdall-frontend...
 * 
 * Running qmake ...
RCC: Warning: No resources in 'mainwindow.qrc'.
WARNING: target.path is not defined: install target not created

...

 * 
 * Installing heimdall-frontend...
 * 
make -j4 OUTPUTDIR=/mnt/datapool/tmp/portage/app-mobilephone/heimdall-9999/image/ install 
make: Nothing to be done for `install'.
Comment 21 Leho Kraav (:macmaN @lkraav) 2013-01-20 10:32:05 UTC
Fix is here:

https://github.com/korneliuszo/Heimdall/commit/f47f47ca45523a0c92e59d81da29ed6cad3c53ee
Comment 22 Scott Alfter 2013-01-30 17:45:59 UTC
Created attachment 337328 [details]
Heimdall 1.3.1 ebuild

Since v1.3.2 has problems with certain devices, this ebuild pulls a v1.3.1 tarball from GitHub and builds that.
Comment 23 Leho Kraav (:macmaN @lkraav) 2013-01-30 17:47:41 UTC
AFAIK current 1.4.0-rc1 has those problems fixed. I would target that version first and foremost.

I have first hand success on complete reflashing both P1000 and P7300 with 1.4.0-rc1.
Comment 24 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2013-08-09 17:03:52 UTC
Created attachment 355508 [details]
heimdall-1.4.0.ebuild

Tried to clean up the ebuild a bit. 

Dunno if the pushd/popd combination is really useful in this case but that can be changed easily.
Comment 25 Mike Gilbert gentoo-dev 2013-08-18 20:56:52 UTC
I've been maintaining an ebuild in my overlay for a while, so I figured I would add it to the tree.

+# ChangeLog for app-mobilephone/heimdall
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+*heimdall-1.4.0 (18 Aug 2013)
+*heimdall-9999 (18 Aug 2013)
+
+  18 Aug 2013; Mike Gilbert <floppym@gentoo.org> +heimdall-1.4.0.ebuild,
+  +heimdall-9999.ebuild, +metadata.xml:
+  New ebuild, resolves bug 353180.
Comment 26 Jaime Martin 2013-10-15 19:37:13 UTC
Scott's ebuild works fine with minor fixes for me in amd64. Current ebuild (heimdall-1.4.0) in Portage needs big ~amd64, like udev and openrc.
Comment 27 Mike Gilbert gentoo-dev 2013-10-15 20:02:55 UTC
(In reply to Jaime Martin from comment #26)
> Scott's ebuild works fine with minor fixes for me in amd64. Current ebuild
> (heimdall-1.4.0) in Portage needs big ~amd64, like udev and openrc.

I have no idea what that means. If there is a problem with the current ebuild, file a new bug.