[Librem-5-dev] Flash devkit from 32-bit host - impossible with default uuu.

Guido Günther agx at sigxcpu.org
Sun Mar 24 05:50:27 PDT 2019


Hi,
On Sun, Mar 24, 2019 at 01:34:48PM +0100, Przemysław Brojewski via Librem-5-dev wrote:
> On 2019-03-23 17:51, Angus Ainslie via Librem-5-dev wrote:
> > On 2019-03-23 9:26 a.m., Przemysław Brojewski via Librem-5-dev wrote:
> > > On 2019-03-23 17:00, Angus Ainslie via Librem-5-dev wrote:
> > > > Was uuu installed from a package or did you build it yourself ?
> > > 
> > > I'm running Debian Stretch, and could not find uuu package in debian
> > > archives.
> > > 
> > > I've built it myself with default configuration, just cmake followd by
> > > make.
> > > 
> > > 
> > Maybe try changing the FILE_OFFSET_BITS
> > 
> 
> That was a good tip. I Actually set CFLAGS and CXXFLAGS in the
> environment before starting a new build:
> 
> $ getconf LFS_CFLAGS
> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
> $ export CFLAGS=`getconf LFS_CFLAGS`
> $ export CXXFLAGS=$CLFAGS
> 
> That did the trick of getting largfile suppoort in uuu.
> 
> Alas, I've now run into harder obstacle:
> mmap2(NULL, 3600000000, PROT_READ, MAP_SHARED, 3, 0) = -1 ENOMEM (Cannot
> allocate memory)
> 
> I'm pondering the possibility to rewrite uuulib to be able to flash
> from file descriptor instead of memory buffer, but this does not seem
> like a thing i'd like to spend my time on...

Could you file an upstream bug at
https://github.com/NXPmicro/mfgtools/issues so NXP becomes aware of the
issues of 32bi systems?
Cheers,
 -- Guido


More information about the Librem-5-dev mailing list