Hi,
thanks for your notes, at least the Zstandard magic should be in sync now.
Please continue posting your findings and tips and tricks!
René
On Dec 27, 2016, at 16:57, Jan Rovins <[email protected]> wrote:
>
> Hi Rene,
>
> I got a PI-3 for Christmas, and have been experimenting with a T2 cross build.
>
>
> Back in 2012, I was able to use the Ubuntu LTS release (with some tweaks) to
> build T2 on both MIPS and x86, but now with the latest Ubuntu, and the
> latest T2, it has gotten much more complicated.
>
> I first tried an X86-64 build (generic minimum) but that got stuck at stage
> 1 on glibc32. I went ahead and tried the raspberry pi target, and that got to
> stage 1 gcc.
>
> To get both builds, I had to apply some rather ugly hacks (like Barry
> mentioned).
>
> For now, I would like to document what I had to do on the Ubuntu build
> machine, to get it to run T2. I will follow up in a separate email, with the
> svn diffs of the T2 changes to get it as far as I did, and after that I will
> send out info on the build failures for where I am stuck now.
>
> --------------------------------------------------------------------
>
> Ubuntu 16.04 setup notes:
>
> on the host, you will need to install: (apt-get install)
>
> flex
>
> gawk
>
> texinfo (for makeinfo)
>
> zstd for the new compression.
>
> The Download script with the new compression will still fail because the
> "file" command does not know how to identify zstd files. to fix this, you
> must add the zst magic number to /etc/magic like this:
>
> ----------------------------------------------------------------------
>
> root@Ubu-Dev-1:/opt/T2/t2-trunk# cat /etc/magic
> # Magic local data for file(1) command.
> # Insert here your local magic data. Format is described in magic(5).
>
>
> # JLR add zstd
> # zstd
> #0 long 0xfd2fb528 zstd compressed data
> 0 long 0xfd2fb528 Zstandard compressed data
> -----------------------------------------------------------------------------
>
> At this point the Download & Build-Target scripts will work, but there will
> be build failures, without doing some tweaks, which I will document in the
> next email.
>
> But some packages will still fail unless the following are installed:
>
> squashfs-tools failed at stage 0 unless zlib1g-dev package was installed on
> the host. I would think that it should pick up zlib.h from the T2 $root, but
> I am not sure of this.
>
> I also had to install package libffi-dev so that glib stage 1 would build. It
> was not picking it up from T2 fs, but was going to the host's fs.
>
>
> Regards,
>
> Jan Rovins.
>
>
>
> ----------------------------------------------------------- If you wish to
> unsubscribe from this mailing, send mail to
> [email protected] with a subject of: unsubscribe t2
--
ExactCODE GmbH, Lietzenburger Str. 42, DE-10789 Berlin
DE Legal: Amtsgericht Berlin (Charlottenburg) HRB 105123B, Tax-ID#: DE251602478
Managing Director: René Rebe
http://exactcode.com | http://exactscan.com | http://ocrkit.com |
http://t2-project.org | http://rene.rebe.de
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[email protected] with a subject of: unsubscribe t2