05-09-2017 05:29 AM
hi, i want to config kenrel using the petaconfig -c kernel,and I got a error ,here is the message.
petaconfig -c kernel
[INFO] generating Kconfig for project
[INFO] sourcing bitbake
[INFO] generating plnxtool conf
[INFO] generating meta-plnx-generated layer
~/project/petalinux/avnet-digilent-zedboard-2016.4/build/misc/plnx-generated ~/project/petalinux/avnet-digilent-zedboard-2016.4
~/project/petalinux/avnet-digilent-zedboard-2016.4
[INFO] generating machine configuration
[INFO] configuring: kernel
[INFO] generating kernel configuration files
[INFO] bitbake virtual/kernel -c menuconfig
Loading cache: 100% |#################################################################################################################| ETA: 00:00:00
Loaded 2940 entries from dependency cache.
Parsing recipes: 100% |###############################################################################################################| Time: 00:00:05
Parsing of 2327 .bb files complete (2293 cached, 34 parsed). 2942 targets, 196 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
NOTE: Preparing RunQueue
NOTE: Executing RunQueue Tasks
NOTE: Tasks Summary: Attempted 2 tasks of which 0 didn't need to be rerun and all succeeded.
Loading cache: 100% |#################################################################################################################| ETA: 00:00:00
Loaded 2940 entries from dependency cache.
Parsing recipes: 100% |###############################################################################################################| Time: 00:00:13
Parsing of 2327 .bb files complete (2293 cached, 34 parsed). 2942 targets, 196 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
NOTE: Preparing RunQueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
WARNING: linux-xlnx-4.6-xilinx+gitAUTOINC+2762bc9163-r0 do_menuconfig: Unsupported terminal "screen", defaulting to "auto"
ERROR: linux-xlnx-4.6-xilinx+gitAUTOINC+2762bc9163-r0 do_menuconfig: No valid terminal found, unable to open devshell
ERROR: linux-xlnx-4.6-xilinx+gitAUTOINC+2762bc9163-r0 do_menuconfig: Function failed: do_menuconfig
ERROR: Logfile of failure stored in: /home/zynq/project/petalinux/avnet-digilent-zedboard-2016.4/build/tmp/work/plnx_arm-xilinx-linux-gnueabi/linux-xlnx/4.6-xilinx+gitAUTOINC+2762bc9163-r0/temp/log.do_menuconfig.13779
ERROR: Task 7 (/home/zynq/petalinux/components/yocto/source/arm/layers/meta-xilinx/recipes-kernel/linux/linux-xlnx_4.6.bb, do_menuconfig) failed with exit code '1'
NOTE: Tasks Summary: Attempted 170 tasks of which 161 didn't need to be rerun and 1 failed.
Summary: 1 task failed:
/home/zynq/petalinux/components/yocto/source/arm/layers/meta-xilinx/recipes-kernel/linux/linux-xlnx_4.6.bb, do_menuconfig
Summary: There was 1 WARNING message shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
ERROR: bitbake failed to configure kernel
ERROR: Failed to config kernel.
how to fix this problem?
thanks,
05-09-2017 05:36 AM
05-09-2017 05:36 AM
05-09-2017 05:37 AM
Hi
Try installing this package:
sudo apt-get install screen
05-09-2017 05:45 AM
hi shabbirk,
Thanks for your advice.
You are right, install screen can fix this issue.
Thanks.
03-06-2020 03:14 AM
I get the same error for 'petalinux -c kernel' but i can run 'petalinux-config -c rootfs' sucessfuly.
Is it just the kernel config that requires screen?
04-03-2020 09:03 AM
I have have screen installed (Red Hat Enterprise Linux 7.6)
This does not error but the output is corrupt as below;
Any suggestions?
04-05-2020 05:48 AM
Hi @tmonaghan84,
You need to follow the below steps to avoid this bug.
1- open petalinuxbsp.conf file which is stored at below location
vim project-spec/meta-user/conf/petalinuxbsp.conf
2- The file will contain below-commented line which you have to uncomment and change the temux OE_teminal to "screen"
File should look this
#User Configuration
OE_TERMINAL = "screen"
# Add EXTRA_IMAGEDEPENDS default components
EXTRA_IMAGEDEPENDS_append = " virtual/fsbl virtual/pmu-firmware arm-trusted-firmware qemu-devicetrees"
# prevent U-Boot from deploying the boot.bin
SPL_BINARY = ""
#Remove all qemu contents
IMAGE_CLASSES_remove = "image-types-xilinx-qemu qemuboot-xilinx"
IMAGE_FSTYPES_remove = "wic.qemu-sd"
EXTRA_IMAGEDEPENDS_remove = "qemu-helper-native virtual/boot-bin"
~
04-07-2020 03:55 AM
@smahalle. thanks for the suggestion although i still seem to get the same result after the edit to petalinuxbsp.conf.
I can run screen command without error and the Teraterm window resizes.
the environment variable is set and i see the screen process appears when the corrupt kernel configuration screen appears.
TERM=screen TERMCAP=$'SC|screen|VT 100/ANSI X3.64 virtual terminal:\\\n\t:DO=\\E[%dB:LE=\\E[%dD:RI=\\E[%dC:UP=\\E[%dA:bs:bt=\\E[Z:\\\n\t:cd=\\E[J:ce=\\E[K:cl=\\E[H\\E[J:cm=\\E[%i%d;%dH:ct=\\E[3g:\\\n\t:do=^J:nd=\\E[C:pt:rc=\\E8:rs=\\Ec:sc=\\E7:st=\\EH:up=\\EM:\\\n\t:le=^H:bl=^G:cr=^M:it#8:ho=\\E[H:nw=\\EE:ta=^I:is=\\E)0:\\\n\t:li#71:co#80:am:xn:xv:LP:sr=\\EM:al=\\E[L:AL=\\E[%dL:\\\n\t:cs=\\E[%i%d;%dr:dl=\\E[M:DL=\\E[%dM:dc=\\E[P:DC=\\E[%dP:\\\n\t:im=\\E[4h:ei=\\E[4l:mi:IC=\\E[%d@:ks=\\E[?1h\\E=:\\\n\t:ke=\\E[?1l\\E>:vi=\\E[?25l:ve=\\E[34h\\E[?25h:vs=\\E[34l:\\\n\t:ti=\\E[?1049h:te=\\E[?1049l:us=\\E[4m:ue=\\E[24m:so=\\E[3m:\\\n\t:se=\\E[23m:mb=\\E[5m:md=\\E[1m:mr=\\E[7m:me=\\E[m:ms:\\\n\t:Co#8:pa#64:AF=\\E[3%dm:AB=\\E[4%dm:op=\\E[39;49m:AX:\\\n\t:vb=\\Eg:G0:as=\\E(0:ae=\\E(B:\\\n\t:ac=\\140\\140aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~..--++,,hhII00:\\\n\t:po=\\E[5i:pf=\\E[4i:Km=\\E[M:k0=\\E[10~:k1=\\EOP:k2=\\EOQ:\\\n\t:k3=\\EOR:k4=\\EOS:k5=\\E[15~:k6=\\E[17~:k7=\\E[18~:\\\n\t:k8=\\E[19~:k9=\\E[20~:k;=\\E[21~:F1=\\E[23~:F2=\\E[24~:\\\n\t:F3=\\E[1;2P:F4=\\E[1;2Q:F5=\\E[1;2R:F6=\\E[1;2S:\\\n\t:F7=\\E[15;2~:F8=\\E[17;2~:F9=\\E[18;2~:FA=\\E[19;2~:kb=\177:\\\n\t:K2=\\EOE:kB=\\E[Z:kF=\\E[1;2B:kR=\\E[1;2A:*4=\\E[3;2~:\\\n\t:*7=\\E[1;2F:#2=\\E[1;2H:#3=\\E[2;2~:#4=\\E[1;2D:%c=\\E[6;2~:\\\n\t:%e=\\E[5;2~:%i=\\E[1;2C:kh=\\E[1~:@1=\\E[1~:kH=\\E[4~:\\\n\t:@7=\\E[4~:kN=\\E[6~:kP=\\E[5~:kI=\\E[2~:kD=\\E[3~:ku=\\EOA:\\\n\t:kd=\\EOB:kr=\\EOC:kl=\\EOD:km:'
04-08-2020 02:24 AM
Hi @tmonaghan84
Are you using 2019.2.
Can you please share a screenshot of your petalinuxbsp.conf file
04-08-2020 02:40 AM - edited 04-08-2020 02:41 AM
Hi @smahalle the contents of petalinuxbsp.conf, I am using 2019.1 , thanks
#User Configuration #OE_TERMINAL = "tmux" OE_TERMINAL = "screen" # Add EXTRA_IMAGEDEPENDS default components EXTRA_IMAGEDEPENDS_append_versal = " virtual/psm-firmware virtual/plm arm-trusted-firmware u-boot-zynq-scr" EXTRA_IMAGEDEPENDS_append_zynqmp = " virtual/fsbl virtual/pmu-firmware arm-trusted-firmware" EXTRA_IMAGEDEPENDS_append_zynq = " virtual/fsbl" EXTRA_IMAGEDEPENDS_append_microblaze = " virtual/fsboot virtual/elfrealloc" # prevent U-Boot from deploying the boot.bin SPL_BINARY = "" #Remove all qemu contents IMAGE_CLASSES_remove = "image-types-xilinx-qemu qemuboot-xilinx" IMAGE_FSTYPES_remove = "wic.qemu-sd" EXTRA_IMAGEDEPENDS_remove = "qemu-helper-native virtual/boot-bin" SIGGEN_UNLOCKED_RECIPES_append_versal = " initscripts"
04-08-2020 04:38 AM
Hi @tmonaghan84,
I asked as this is a known issue 2019.2
Can you please add the below line of code in ./bashrc
1- vim /home/<userdirectory>/.bashrc
2- source ~/.user.sh
export OE_TERMINAL = "screen"
Please try out this once.
Thanks & Regards,
Shubhangi
04-09-2020 03:44 AM
@smahalle I still getting the same corrupt output.
# .bashrc # Source global definitions if [ -f /etc/bashrc ]; then . /etc/bashrc fi # Uncomment the following line if you don't like systemctl's auto-paging featur$ # export SYSTEMD_PAGER= # User specific aliases and function source ~/.user.sh export OE_TERMINAL
However I do not have a file ~/.user.sh