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

Przemysław Brojewski pbrojewski at onet.pl
Sun Mar 24 05:34:48 PDT 2019


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...

Maybe it is possible to splite devkit.img into smaller pieces and
write a bit diffrenet flashing script.

But for now I'm setting it aside, buying some bribe beer and
calling a friend. Chances are I might use his computer for flashing.

-- 
Przemysław Brojewski
pbrojewski at onet.pl


More information about the Librem-5-dev mailing list