Jump to content

Cursor/arrow keys not working in Kernel Configuration window


Recommended Posts

Posted

In the following window the cursor keys (arrow up, down, left, right) aren't working: the raw terminal control chars appear instead.

And the window is kind of "distorted" (for example the G char of General setup appears at the right side of the window, same with the following lines):

Tried in a X console as well on tty8, same behavior. One can press only CTRL-C to get out of this window, this of course also aborts the build:

How to fix this?

My system: x86_64 Debian 8 (jessie) with LXDE desktop, using a Debian 8 in a LXC container for building Armbian for an A20 device.

 

 

 .config - Linux/arm 4.19.25 Kernel Configuration
 ──────────────────────────────────────────────────────────────────────────────
  ┌──────────────── Linux/arm 4.19.25 Kernel Configuration ─────────────────┐
  │  Arrow keys navigate the menu.  <Enter> selects submenus ---> (or empty │
  │  submenus ----).  Highlighted letters are hotkeys.  Pressing <Y>        │
  │  includes, <N> excludes, <M> modularizes features.  Press <Esc><Esc> to │
  │  exit, <?> for Help, </> for Search.  Legend: [*] built-in  [ ]         │
  │ ┌─────────────────────────────────────────────────────────────────────┐ │
  │ │                                                                     │ │
  │ │neral setup  --->                                                    │ │
  │ │aximum PAGE_SIZE order of alignment for DMA IOMMU buffers            │ │                                                                                                         Sy  │ │Type  --->                                                           │ │                                                                                                          B  │ │pport  --->                                                          │ │                                                                                                          K  │ │ Features  --->                                                      │ │                                                                                                          B  │ │ptions  --->                                                         │ │                                                                                                          C  │ │wer Management  --->                                                 │ │                                                                                                          F  │ │ng point emulation  --->                                             │ │                                                                                                          P  │ │management options  --->                                             │ │
  │ └────┴(+)─────────────────────────────────────────────────────────────┘ │
  ├─────────────────────────────────────────────────────────────────────────┤
  │        <Select>    < Exit >    < Help >    < Save >    < Load >         │
  └─────────────────────────────────────────────────────────────────────────┘
 

Posted (edited)

That application also resizes (shrinks) the terminal, ie. afterwards one has to call "reset" to bring the terminal window back to its normal size again.

 

Did a 3rd attempt by logging in from another host via ssh to this host, and then from there another ssh to this container,

but unfortunately the result is the same: at the above said window the arrow keys aren't working :-(

 

 

Edited by Guest
Posted

how are you executing build with sudo or running as root?

can you show results of echo $TERM

and for grins try export TERM=xterm  and see if that just fixes it

Posted (edited)
14 minutes ago, lanefu said:

how are you executing build with sudo or running as root?

can you show results of echo $TERM

and for grins try export TERM=xterm  and see if that just fixes it

I did it as root.

 

# echo $TERM
vt102
 

Ok, now I set TERM to xterm. But the result is same: negativ.

Attached a scrrenshot.

 

scrshot.png

Edited by Guest
Posted

This looks like a problem with your terminal emulator.. lxterm.... see if you have options for the terminal type and make it not vt102......  or maybe find a better terminal emulator.

Posted
2 minutes ago, lanefu said:

This looks like a problem with your terminal emulator.. lxterm.... see if you have options for the terminal type and make it not vt102......  or maybe find a better terminal emulator.

Hmm. I'm using that desktop (lxde) with that terminal (lxterminal) for more than 5 years now, really never had such an issue with it.

Ok, I'll try also some other alternatives like xterm & Co...

 

 

Posted

Still not solved.

I didn't mention it, but in the 1st of such windows the cursor keys are working ok, the problem happens in the 2nd window.

 

scrshot_1.png

Posted

The cursor keys still not working, but if one chooses the 1st option in the 1st window above then the problematic 2nd window won't show up.

So, I just try to finish this build process, but now the following error shows up:

 

...

[ o.k. ] Installing base system [ Stage 1/2 ]
I: Retrieving Release 
E: Failed getting release file http://httpredir.debian.org/debian/dists/jessie/Release
[ error ] ERROR in function create_rootfs_cache [ debootstrap-ng.sh:127 ]
[ error ] Debootstrap base system first stage failed 
[ o.k. ] Process terminated 
[ error ] ERROR in function unmount_on_exit [ image-helpers.sh:60 ]
[ error ] debootstrap-ng was interrupted 
[ o.k. ] Process terminated 
 

Was this maybe only a temporary DNS issue? Or has it maybe to do with http vs. https?

(B/c going to the said web address in the browser works fine)

 

Posted
3 minutes ago, mutluit said:

...

[ o.k. ] Installing base system [ Stage 1/2 ]
I: Retrieving Release 
E: Failed getting release file http://httpredir.debian.org/debian/dists/jessie/Release
[ error ] ERROR in function create_rootfs_cache [ debootstrap-ng.sh:127 ]
[ error ] Debootstrap base system first stage failed 
[ o.k. ] Process terminated 
[ error ] ERROR in function unmount_on_exit [ image-helpers.sh:60 ]
[ error ] debootstrap-ng was interrupted 
[ o.k. ] Process terminated 
 

Was this maybe only a temporary DNS issue? Or has it maybe to do with http vs. https?

(B/c going to the said web address in the browser works fine)


Try Stretch.  Jessie isn't supported anymore.    If you're seek an explanation as to why, it can be found by searching forum.

Posted (edited)
8 minutes ago, lanefu said:


Try Stretch.  Jessie isn't supported anymore.    If you're seek an explanation as to why, it can be found by searching forum.

But in this posting tkaiser says that only arm64 is affected, I've armhf (32 bit) :

 

Edited by Guest
Posted

Now getting this error. Seems again to be an Internet issue (timeout?):

 

...

I: Validating zlib1g 1:1.2.8.dfsg-2+b1
E: Couldn't download packages: libcap2 libpsl0 manpages mawk sensible-utils login libustr-1.0-1
[ error ] ERROR in function create_rootfs_cache [ debootstrap-ng.sh:127 ]
[ error ] Debootstrap base system first stage failed 
[ o.k. ] Process terminated 
[ error ] ERROR in function unmount_on_exit [ image-helpers.sh:60 ]
[ error ] debootstrap-ng was interrupted 
[ o.k. ] Process terminated 
 

 

Posted
6 minutes ago, mutluit said:

Now getting this error. Seems again to be an Internet issue (timeout?):

 

are you building this on an x86 with ubuntu bionic?

 

try this

 

echo NO_APT_CACHER=yes >> userpatches/lib.config

 

Posted
11 hours ago, lanefu said:

try this

 


echo NO_APT_CACHER=yes >> userpatches/lib.config

 

There is a README file there that says:

"

Please read documentation about customizing build configuration
http://www.armbian.com/using-armbian-tools/

"

But going to that webpage gives "404 Error", ie. page not found.

And the search function at https://docs.armbian.com/ does not find the search string "armbian-tools"

 

Posted

I think now an automatic source code update has introduced a compile error:

 

  ...

  CC      fs/xfs/xfs_error.o
net/wireguard/ratelimiter.c:60:2: error: implicit declaration of function ‘call_rcu’; did you mean ‘call_srcu’? [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors
make[2]: *** [net/wireguard/ratelimiter.o] Error 1
make[1]: *** [net/wireguard] Error 2
make: *** [net] Error 2
  CC      drivers/scsi/scsi_error.o
[ error ] ERROR in function compile_kernel [ compilation.sh:389 ]
[ error ] Kernel was not built [ @host ]
 

 

Posted
5 hours ago, mutluit said:

net/wireguard/ratelimiter.o

 

Try building with a parameter WIREGUARD="no"

 

This cursor problem looks like upstream ncurses or related bug? Here is the same:

 

Posted (edited)
17 hours ago, Igor said:

 

Try building with a parameter WIREGUARD="no"

 

This cursor problem looks like upstream ncurses or related bug? Here is the same:

 

 

Now getting this mysterious error:

 

...
I: Extracting liblzma5...
I: Extracting zlib1g...
[ o.k. ] Installing base system [ Stage 2/2 ]
chroot: failed to run command ‘/bin/bash’: No such file or directory
[ error ] ERROR in function create_rootfs_cache [ debootstrap-ng.sh:140 ]
[ error ] Debootstrap base system second stage failed 
[ o.k. ] Process terminated 
[ error ] ERROR in function unmount_on_exit [ image-helpers.sh:60 ]
[ error ] debootstrap-ng was interrupted 
[ o.k. ] Process terminated 

 

 

Though bash is present (actually bash is even the calling process for the build, s. env below), as well chroot:

 

root@vm:/tmp# which bash
/bin/bash

 

root@vm:/tmp# ls -l /bin/bash
-rwxr-xr-x 1 root root 1029624 Nov  5  2016 /bin/bash
 

root@vm:/tmp# which chroot
/usr/sbin/chroot
 

root@vm:/tmp# ls -l `which chroot`
-rwxr-xr-x 1 root root 35432 Mar 14  2015 /usr/sbin/chroot
 

root@vm:/tmp# env
SHELL=/bin/bash
TERM=screen
HUSHLOGIN=FALSE
USER=root
TERMCAP=SC|screen|VT 100/ANSI X3.64 virtual terminal:\
        :DO=\E[%dB:LE=\E[%dD:RI=\E[%dC:UP=\E[%dA:bs:bt=\E[Z:\
        :cd=\E[J:ce=\E[K:cl=\E[H\E[J:cm=\E[%i%d;%dH:ct=\E[3g:\
        :do=^J:nd=\E[C:pt:rc=\E8:rs=\Ec:sc=\E7:st=\EH:up=\EM:\
        :le=^H:bl=^G:cr=^M:it#8:ho=\E[H:nw=\EE:ta=^I:is=\E)0:\
        :li#54:co#184:am:xn:xv:LP:sr=\EM:al=\E[L:AL=\E[%dL:\
        :cs=\E[%i%d;%dr:dl=\E[M:DL=\E[%dM:dc=\E[P:DC=\E[%dP:\
        :im=\E[4h:ei=\E[4l:mi:IC=\E[%d@:ks=\E[?1h\E=:\
        :ke=\E[?1l\E>:vi=\E[?25l:ve=\E[34h\E[?25h:vs=\E[34l:\
        :ti=\E[?1049h:te=\E[?1049l:us=\E[4m:ue=\E[24m:so=\E[3m:\
        :se=\E[23m:mb=\E[5m:md=\E[1m:mr=\E[7m:me=\E[m:ms:\
        :Co#8:pa#64:AF=\E[3%dm:AB=\E[4%dm:op=\E[39;49m:AX:G0:\
        :as=\E(0:ae=\E(B:\
        :ac=\140\140aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~..--++,,hhII00:\
        :po=\E[5i:pf=\E[4i:Km=\E[M:k0=\E[10~:k1=\EOP:k2=\EOQ:\
        :k3=\EOR:k4=\EOS:k5=\E[15~:k6=\E[17~:k7=\E[18~:\
        :k8=\E[19~:k9=\E[20~:k;=\E[21~:F1=\E[23~:F2=\E[24~:\
        :kb=^H:K1=\EOq:K2=\EOr:K3=\EOs:K4=\EOp:K5=\EOn:kh=\E[1~:\
        :@1=\E[1~:kH=\E[4~:@7=\E[4~:kN=\E[6~:kP=\E[5~:kI=\E[2~:\
        :kD=\E[3~:ku=\EOA:kd=\EOB:kr=\EOC:kl=\EOD:l1=pf1:l2=pf2:\
        :l3=pf3:l4=pf4:
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
MAIL=/var/mail/root
STY=2961.console.vm
PWD=/tmp
LANG=en_US.UTF-8
HOME=/root
SHLVL=2
LOGNAME=root
WINDOW=0
_=/usr/bin/env
 

Edited by Guest
  • Igor locked this topic
Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines