LSDK flex-builder mkrfs : Failed to fetch

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

LSDK flex-builder mkrfs : Failed to fetch

跳至解决方案
1,330 次查看
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

标签 (1)
标记 (1)
0 项奖励
1 解答
1,103 次查看
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 项奖励
2 回复数
1,103 次查看
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 项奖励
1,104 次查看
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 项奖励