flex-builder build failure

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

flex-builder build failure

1,589 Views
penman
Contributor II

I am building flexbuilder_lsdk on Ubuntu 18.04 with:

flex-builder -i clean

flex-builder -i clean-rfs

flex-builder -i repo-update

flex-builder -m ls1046ardb -a arm64

and the build fails with the message:

installing for second-stage ...
I: Keyring file not available at /usr/share/keyrings/ubuntu-archive-keyring.gpg; switching to https mirror https://deb.debian.org/debian
I: Installing core packages...
W: Failure trying to run:  dpkg --force-depends --install /var/cache/apt/archives/base-passwd_3.5.44_arm64.deb
W: See //debootstrap/debootstrap.log for details (possibly the package /var/cache/apt/archives/base-passwd_3.5.44_arm64.deb is at fault)

Here is the output of the debootstrap.log

$ cat build/rfs/rootfs_lsdk1906_LS_arm64_main/debootstrap/debootstrap.log
gpgv: Signature made Thu Apr 26 18:38:40 2018 CDT
gpgv:                using RSA key 3B4FE6ACC0B21F32
gpgv: Good signature from "Ubuntu Archive Automatic Signing Key (2012) <ftpmaster@ubuntu.com>"
dpkg: warning: parsing file '/var/lib/dpkg/status' near line 5 package 'dpkg':
 missing description
dpkg: warning: parsing file '/var/lib/dpkg/status' near line 5 package 'dpkg':
 missing architecture
Selecting previously unselected package base-passwd.
(Reading database ... 0 files and directories currently installed.)
Preparing to unpack .../base-passwd_3.5.44_arm64.deb ...
/var/lib/dpkg/tmp.ci/preinst: 6: /var/lib/dpkg/tmp.ci/preinst: cannot create /etc/passwd: Permission denied
dpkg: error processing archive /var/cache/apt/archives/base-passwd_3.5.44_arm64.deb (--install):
 new base-passwd package pre-installation script subprocess returned error exit status 2
Errors were encountered while processing:
 /var/cache/apt/archives/base-passwd_3.5.44_arm64.deb

How can this error be resolved?

Labels (2)
0 Kudos
1 Reply

1,231 Views
Pavel
NXP Employee
NXP Employee

Your command sequence is correct.

Perhaps LSDK 1906 was not fully installed.

Use the following command sequence for LSDK 1906 installing under Ubuntu 8.04:

LSDK-1906 User Guide recommends the following command sequence for LSDK and Flex-build using:

1 .sudo apt-get install git

  1. tar xvzf flexbuild_lsdk1906.tgz
  2. source setup.env
  3. flex-builder -i mkrfs -a arm64
  4. flex-builder -c linux -a arm64

6 .flex-builder -i mklinux -a arm64 // .itb file

  1. flex-builder -i mkfw -m ls1046ardb -b sd // .img file is result of this command

 

Have a great day,
Pavel Chubakov

 

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos