[Replicant] the minimal effort needed for a minimal change in initramfs?

Denis 'GNUtoo' Carikli GNUtoo at no-log.org
Thu Oct 29 20:54:11 UTC 2015


On Tue, 27 Oct 2015 18:58:42 +0100
user468362 at 0w.se wrote:
> > If you don't need to compile userspace binaries, the threshold is
> > much lower. Also, I'm unsure how easy it is to use the SDK to
> > compile  
> 
> Ok! Then tell me how to set up the environment from scratch for
> building just the boot.img of Replicant 4.2 for Galaxy S2 :) I do not
> think such a document exists nor that it is feasible to maintain,
> because of the multitude of SDK and devices's versions, generations
> and formats.
$ wget
http://ftp-osl.osuosl.org/pub/replicant/images/replicant-4.2/0004/images/i9100/replicant-4.2-i9100.zip.asc
$ wget
http://ftp-osl.osuosl.org/pub/replicant/images/replicant-4.2/0004/images/i9100/replicant-4.2-i9100.zip
$ gpg --verify replicant-4.2-i9100.zip.asc
$ mkdir replicant-4.2-i9100
$ cd replicant-4.2-i9100
$ unzip ../replicant-4.2-i9100.zip
$ file boot.img
boot.img: Linux kernel ARM boot executable zImage (little-endian)

So here we learned that boot.img is not in the Android format.

Then I'm unsure of what the best approach is,
with a search engine I found some tools that can do that but seem not
generic enough. They look for the gzip signature and extract the gzip
part. They are made for specific phones like the galaxy S.

Maybe binwalk is generic enough, or maybe with binutils you could find
the place where the initramfs is somehow.

> > unsure how easy it is to use the SDK to compile
> > userspace binaries, but it might be possible.  
> 
> I am pretty sure the threshold to learn the details necessary to
> be able to cherry-pick the necessary parts is much more than the hours
> I needed to arrange the "build the whole" thing. Luckily I had
> suitable hardware at hand.
I fear that too.

Denis.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.osuosl.org/pipermail/replicant/attachments/20151029/41e27c1a/attachment.asc>


More information about the Replicant mailing list