Jump to content

Duo build failed


Go to solution Solved by sgjava,

Recommended Posts

Posted

Selected current kernel and Jammy (maybe Jammy not supported):

 

[ error ] ERROR in function install_deb_chroot [ functions/cli/cli-entrypoint.sh:109 -> functions/main/build-tasks.sh:285 -> functions/main/build-tasks.sh:208 -> functions/main/rootfs-image.sh:77 -> functions/rootfs/distro-agnostic.sh:282 -> functions/rootfs/apt-install.sh:22 -> functions/logging/traps.sh:0 ]
[ error ] Installation of linux-u-boot-nanopiduo-current failed [ nanopiduo jammy no sunxi ]
[ o.k. ] Process terminated 


 

Posted
  On 12/3/2022 at 6:24 PM, sgjava said:

Selected current kernel and Jammy (maybe Jammy not supported):

Expand  


As this is not supported target anymore, you need to build from sources. Build from pre-build packages might not work, from sources works:
 

  Reveal hidden contents


 

 

Posted

Seems to always fail no matter how I build it:

 

ake[3]: *** [scripts/Makefile.build:444: drivers/phy/broadcom/built-in.a] Error 127
make[2]: *** [scripts/Makefile.build:552: drivers/phy/broadcom] Error 2
make[1]: *** [scripts/Makefile.build:552: drivers/phy] Error 2
make: *** [Makefile:1902: drivers] Error 2
make[1]: *** [kernel/Makefile:160: kernel/kheaders_data.tar.xz] Error 125
make: *** [Makefile:1902: kernel] Error 2
[ error ] ERROR in function compile_kernel [ functions/cli/cli-entrypoint.sh:109 -> functions/main/build-tasks.sh:263 -> functions/main/build-tasks.sh:138 -> functions/compilation/kernel.sh:143 -> functions/logging/traps.sh:0 ]
[ error ] Kernel was not built [ @host ]


 

Posted

I used a new Jammy desktop VM. I've tried deleting the build dir, everything. If you can get a duo build to work tell me the steps you used.

Posted
  On 12/4/2022 at 4:51 PM, sgjava said:

Seems to always fail no matter how I build it:

Expand  


Now this is odd. :(:huh: I just built current and edge images from sources in no time. Hmm. Try with Docker as a last resort. Can you provide debug/output/compilation.log

 

Posted

Docker spits out:

 

[ error ] Docker container build exited with code:  [ 0 ]

 

Using:

 

sudo ./compile.sh docker-shell BOARD=duo BRANCH=current RELEASE=jammy

 

Can you verify if you can build duo local? I'm using a Jammy x86_64 VirtualBox desktop.

Posted

Then I try:

 

./compile.sh docker KERNEL_ONLY=yes BOARD=duo BRANCH=current KERNEL_CONFIGURE=yes

 

[ warn ] The KERNEL_ONLY key is no longer used. [ KERNEL_ONLY=yes ]
[ warn ] Instead, use BUILD_ONLY to select the build target. [ u-boot,kernel,armbian-config,armbian-zsh,plymouth-theme-armbian,armbian-firmware,armbian-bsp ]
[ o.k. ] BUILD_ONLY enforced to: [ u-boot,kernel,armbian-config,armbian-zsh,plymouth-theme-armbian,armbian-firmware,armbian-bsp ]
/root/armbian/lib/functions/main/config-prepare.sh: line 109: /root/armbian/config/boards/duo.: No such file or directory
[ error ] ERROR in function prepare_and_config_main_build_single [ functions/cli/cli-entrypoint.sh:106 -> functions/main/config-prepare.sh:112 -> functions/logging/traps.sh:0 ]
[ error ] Board configuration does not define valid kernel config 
[ o.k. ] Process terminated 

 

Posted

OK, no matter what the build fails in various places. I'd like to see someone else try nanopiduo build.

Posted

This worked for me using current master branch:

sudo ./compile.sh  BOARD=nanopiduo BRANCH=current RELEASE=jammy BUILD_MINIMAL=no BUILD_DESKTOP=no KERNEL_CONFIGURE=no COMPRESS_OUTPUTIMAGE=sha,gpg,img

  • Solution
Posted

@SteeMan that did the trick:

[ o.k. ] Kernel file name [ linux-image-current-sunxi_23.02.0-trunk_armhf.deb ]
[ o.k. ] Runtime [ 53:30 min ]
[ o.k. ] Repeat Build Options [ ./compile.sh  BOARD=nanopiduo BRANCH=current RELEASE=jammy BUILD_MINIMAL=no BUILD_DESKTOP=no KERNEL_CONFIGURE=no COMPRESS_OUTPUTIMAGE=sha,gpg,img  ]


 

Posted (edited)
uname -a
Linux nanopiduo 5.15.81-sunxi #trunk SMP Tue Dec 6 17:19:18 EST 2022 armv7l armv7l armv7l GNU/Linux

lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 22.04.1 LTS
Release:	22.04
Codename:	jammy


 

Edited by sgjava
Posted

Worked for me:

[ o.k. ] U-Boot file name [ linux-u-boot-edge-nanopiduo_23.02.0-trunk_armhf.deb ]           [ o.k. ] Kernel file name [ linux-image-edge-sunxi_23.02.0-trunk_armhf.deb ]                [ o.k. ] Runtime [ 31:31 min ]                [ o.k. ] Repeat Build Options [ ./compile.sh  BOARD=nanopiduo BRANCH=edge RELEASE=jammy BUILD_MINIMAL=no BUILD_DESKTOP=no KERNEL_CONFIGURE=no COMPRESS_OUTPUTIMAGE=sha,gpg,img  ]

×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines