LSDK flex-builder mkrfs : Failed to fetch

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

LSDK flex-builder mkrfs : Failed to fetch

Jump to solution
1,308 Views
norishinozaki
Contributor V

Hello,

I'm trying to build rootfs for LS1046A with a command "flex-builder -i mkrfs -a arm64"

However it fails in "File has unexpected size".

I tried both lsdk 1812 and 1903.

Reading package lists...
E: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/bionic-security/main/source/Sources.xz

File has unexpected size (91192 != 91200). Mirror sync in progress? [IP: 91.189.88.150 80]
Hashes of expected file:
- Filesize:91200 [weak]
- SHA256:bc8fe9bd394623e400f4ed6d2b32dbb8b2b09cb87eb261a80924b7d4df58600f
- SHA1:8780a8827c2e2b47ba0124948f1d4038f55f91b7 [weak]
- MD5Sum:abcf6ead2d6dae8a8f563fc6ee07ffb3 [weak]
Release file created at: Thu, 23 May 2019 14:48:53 +0000
E: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/bionic-security/main/binary-arm64/Packages.xz
E: Some index files failed to download. They have been ignored, or old ones used instead.

Best regards,

Shinozaki

Labels (1)
Tags (1)
0 Kudos
1 Solution
1,081 Views
Pavel
NXP Employee
NXP Employee

It looks like that your LSDK is not completely installed.

 

Use Ubuntu 18.04.

Use the following commands for LSDK 1903 installing and building:

 

  1. sudo apt-get install git
  2. tar xvzf flexbuild_lsdk1903.tgz
  3. cd flexbuild_1903
  4. source setup.env

 

  1. wget http://www.nxp.com/lgfiles/sdk/lsdk1903/app_components_LS_arm64.tgz

 

  1. wget http://www.nxp.com/lgfiles/sdk/lsdk1903/bootpartition_LS_arm64_lts_4.19.tgz

 

  1. wget http://www.nxp.com/lgfiles/sdk/lsdk1903/lib_modules_LS_arm64_4.19.26.tgz

 

  1. wget http://www.nxp.com/lgfiles/sdk/lsdk1903/lib_modules_LS_arm64_4.14.104.tgz

 

  1. flex-builder -i mkrfs -a arm64
  2. tar xvzf app_components_LS_arm64.tgz -C build/apps
  3. sudo tar xvzf lib_modules_LS_arm64_4.14.104.tgz -C build/rfs/rootfs_lsdk_19.03_LS_arm64/lib/modules
  4. sudo tar xvzf lib_modules_LS_arm64_4.19.26.tgz -C build/rfs/rootfs_lsdk_19.03_LS_arm64/lib/modules

 

  1. flex-builder -c linux -a arm64

 

  1. flex-builder -i merge-component -a arm64


Have a great day,
Pavel Chubakov

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

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

View solution in original post

0 Kudos
2 Replies
1,081 Views
norishinozaki
Contributor V

Hello Pavel,

Thanks, per your advice I installed  the latest Ubuntu 18.04.2 desktop.

However I got "unmet dependencies" error.

Then I switched to the original 18.04 desktop precisely as your advice.

Now all of builds have completed and worked!

Thanks again.

Shinozaki

0 Kudos
1,082 Views
Pavel
NXP Employee
NXP Employee

It looks like that your LSDK is not completely installed.

 

Use Ubuntu 18.04.

Use the following commands for LSDK 1903 installing and building:

 

  1. sudo apt-get install git
  2. tar xvzf flexbuild_lsdk1903.tgz
  3. cd flexbuild_1903
  4. source setup.env

 

  1. wget http://www.nxp.com/lgfiles/sdk/lsdk1903/app_components_LS_arm64.tgz

 

  1. wget http://www.nxp.com/lgfiles/sdk/lsdk1903/bootpartition_LS_arm64_lts_4.19.tgz

 

  1. wget http://www.nxp.com/lgfiles/sdk/lsdk1903/lib_modules_LS_arm64_4.19.26.tgz

 

  1. wget http://www.nxp.com/lgfiles/sdk/lsdk1903/lib_modules_LS_arm64_4.14.104.tgz

 

  1. flex-builder -i mkrfs -a arm64
  2. tar xvzf app_components_LS_arm64.tgz -C build/apps
  3. sudo tar xvzf lib_modules_LS_arm64_4.14.104.tgz -C build/rfs/rootfs_lsdk_19.03_LS_arm64/lib/modules
  4. sudo tar xvzf lib_modules_LS_arm64_4.19.26.tgz -C build/rfs/rootfs_lsdk_19.03_LS_arm64/lib/modules

 

  1. flex-builder -c linux -a arm64

 

  1. flex-builder -i merge-component -a arm64


Have a great day,
Pavel Chubakov

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

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos