LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM
User Name
Password
Slackware - ARM This forum is for the discussion of Slackware ARM.

Notices


Reply
  Search this Thread
Old 12-26-2021, 03:23 AM   #1
M0M0
Member
 
Registered: Sep 2020
Location: Germany
Distribution: Slackware
Posts: 230

Rep: Reputation: 20
Raspberry Pi 4 - Installer does not pass input correctly


I followed this guide. My 8GB RAM Raspberry Pi 4 booted the installer just fine. Selecting the keyboard map also works. Then I wanted to partition the SD card. First it seems that the input is read correctly, by this I mean that if I type fdisk the word fdisk actually gets displayed after the prompt. However, when I hit enter I get something like
Code:
bash: command not found: sdf
The string displayed after "command not found" is different every time, even if the actual input is the same. It seems random, and it does not matter what I type. The length of the string also does not correspond to the length of the string I typed but is either shorter or has the same length. So if I type "a very long command" I sometimes get
Code:
bash: command not found: gu
and sometimes I get
Code:
bash: command not found: albkrbbkhjme
Note that those are examples, I can't remember the actual strings.
 
Old 12-26-2021, 04:21 AM   #2
Exaga
SARPi Maintainer
 
Registered: Nov 2012
Distribution: Slackware AArch64
Posts: 1,043

Rep: Reputation: 665Reputation: 665Reputation: 665Reputation: 665Reputation: 665Reputation: 665
Quote:
Originally Posted by M0M0 View Post
I followed this guide. My 8GB RAM Raspberry Pi 4 booted the installer just fine. Selecting the keyboard map also works. Then I wanted to partition the SD card. First it seems that the input is read correctly, by this I mean that if I type fdisk the word fdisk actually gets displayed after the prompt.
That's very odd. The 'bash command not found' error could be because the PATH is missing or incorrect, or the command doesn't exist. Strange that 'setup' works and allows you to run the TUI to set a keyboard map. However, if you followed the SARPi tutorial then setting up partitions comes before running Slackware ARM 'setup'. It's best to follow the guide in the order that it appears on this page, or else you might run into problems. Really don't know how to advise you other than doing that.
 
Old 12-26-2021, 04:46 AM   #3
M0M0
Member
 
Registered: Sep 2020
Location: Germany
Distribution: Slackware
Posts: 230

Original Poster
Rep: Reputation: 20
No, "setup" does not work. Choosing the keyboard layout is the first thing I am prompted for when I run the sarpi installer, after that I get told that I should partition the disk now with e.g. fdisk which does not work. Any other command, including "setup" does not work as well. At no point, any input is passed correclty. I don't think that the PATH is the issue.
 
Old 12-26-2021, 04:47 AM   #4
M0M0
Member
 
Registered: Sep 2020
Location: Germany
Distribution: Slackware
Posts: 230

Original Poster
Rep: Reputation: 20
Could it be that there is an issue with the encoding? If the installer expects to get ASCII but gets UTF-8 instead, it would explain the issue
 
Old 12-26-2021, 04:48 AM   #5
Exaga
SARPi Maintainer
 
Registered: Nov 2012
Distribution: Slackware AArch64
Posts: 1,043

Rep: Reputation: 665Reputation: 665Reputation: 665Reputation: 665Reputation: 665Reputation: 665
Quote:
Originally Posted by M0M0 View Post
No, "setup" does not work. Choosing the keyboard layout is the first thing I am prompted for when I run the sarpi installer, after that I get told that I should partition the disk now with e.g. fdisk which does not work. Any other command, including "setup" does not work as well. At no point, any input is passed correclty. I don't think that the PATH is the issue.
OK. Understood. Then I'd better double-check the latest RPi4 installer.

[EDIT] tested 'sarpi4-installer_slackcurrent_23Dec21_sp1.img' on the Raspberry Pi 4 [4GB] and it's working as expected. First I set the date. Then I used 'cfdisk' to create /swap and / partitions. Then I ran 'setup' and set a keyboard map, formatted the partitions, and now I am currently sat looking at the 'SOURCE MEDIA SELECTION' dialog box. So, this installer seems to be doing exactly what it's supposed to do.

Maybe try re-flashing the installer image to your SD card? It could be just a corrupt filesystem.

Last edited by Exaga; 12-26-2021 at 05:02 AM. Reason: edit
 
Old 12-26-2021, 05:18 AM   #6
Exaga
SARPi Maintainer
 
Registered: Nov 2012
Distribution: Slackware AArch64
Posts: 1,043

Rep: Reputation: 665Reputation: 665Reputation: 665Reputation: 665Reputation: 665Reputation: 665
Quote:
Originally Posted by M0M0 View Post
Could it be that there is an issue with the encoding? If the installer expects to get ASCII but gets UTF-8 instead, it would explain the issue
Note the contents of: /etc/profile.d/lang.sh

[Line 6-24]

Code:
# en_US.UTF-8 is the Slackware default locale.  If you're looking for
# a different UTF-8 locale, be aware that some of them do not include
# UTF-8 or utf8 in the name.  To test if a locale is UTF-8, use this
# command:
#
# LANG=<locale> locale -k charmap
#
# UTF-8 locales will include "UTF-8" in the output.
export LANG=en_US.UTF-8

# 'C' is the old Slackware (and UNIX) default, which is 127-bit ASCII
# with a charmap setting of ANSI_X3.4-1968.  These days, it's better to
# use en_US.UTF-8 or another modern $LANG setting (or at least en_US)
# to support extended character sets.
#export LANG=C

# Non-UTF-8 options for en_US:
#export LANG=en_US
#export LANG=en_US.ISO8859-1
"en_US.UTF-8 is the Slackware default locale" and "the old Slackware (and UNIX) default, which is 127-bit ASCII". Modern Slackware uses UTF-8.
 
Old 12-26-2021, 05:36 AM   #7
M0M0
Member
 
Registered: Sep 2020
Location: Germany
Distribution: Slackware
Posts: 230

Original Poster
Rep: Reputation: 20
I'm not sure if I get what you are trying to say... First, how can you be sure that this is true for the sarpi installer as well? Second, this seems to be a bug (or me using the wrong installer for the system) so something works differently from how it is supposed to work. So I'm not sure how you can rule out that there is an issue with encoding from citing how something is supposed to work...

I don't say that this is the issue, it was just a guess. Something must cause the issue.
 
Old 12-26-2021, 05:49 AM   #8
M0M0
Member
 
Registered: Sep 2020
Location: Germany
Distribution: Slackware
Posts: 230

Original Poster
Rep: Reputation: 20
I just saw your edit to your first reply right now. I will ref lash the SD card and try again later today.
 
Old 12-26-2021, 05:56 AM   #9
Exaga
SARPi Maintainer
 
Registered: Nov 2012
Distribution: Slackware AArch64
Posts: 1,043

Rep: Reputation: 665Reputation: 665Reputation: 665Reputation: 665Reputation: 665Reputation: 665
Quote:
Originally Posted by M0M0 View Post
I'm not sure if I get what you are trying to say... First, how can you be sure that this is true for the sarpi installer as well? Second, this seems to be a bug (or me using the wrong installer for the system) so something works differently from how it is supposed to work. So I'm not sure how you can rule out that there is an issue with encoding from citing how something is supposed to work...

I don't say that this is the issue, it was just a guess. Something must cause the issue.
I assumed (wrongly, it seems) that because you'd mentioned UTF-8/ASCII that you'd changed the locale, or were perhaps using putty to login remotely that had the wrong locale set. But then you wouldn't be prompted to set a keyboard map before running 'setup' if you were logging in remotely. So, whatever is causing the problem is unclear. If you believe the locale is incorrect then enter 'export LANG=en_US.UTF-8' as the first thing you do after logging in and see if it works for you. Or try logging in remotely, as I do, and see if it makes any difference.

I built and tested this installer on 22-23 December 2021 and it worked perfectly, and still does for me when I tested it again today.
 
Old 12-26-2021, 09:28 AM   #10
mralk3
Slackware Contributor
 
Registered: May 2015
Distribution: Slackware
Posts: 1,904

Rep: Reputation: 1053Reputation: 1053Reputation: 1053Reputation: 1053Reputation: 1053Reputation: 1053Reputation: 1053Reputation: 1053
Did you try a different keyboard? a different SD Card? Are you "under voltage"?

UTF-8 is the default for Slackware, but not 14.2. It has the stuff you need to enable it on 14.2 but 15.0 will have it enabled by default. Lots of people have been testing current and the installer. There should be no issues with having UTF-8 enabled.

Maybe your locale or keyboard is set incorrect?

Did you verify the installer image with a checksum before writing it to the sd card?
 
Old 12-26-2021, 04:06 PM   #11
M0M0
Member
 
Registered: Sep 2020
Location: Germany
Distribution: Slackware
Posts: 230

Original Poster
Rep: Reputation: 20
Just downloading the installer and flashing the SD card again did not help. If I understand Exaga correctly, I should also not be prompted to set the keyboard layout before I run setup... So something seems to be very wrong.

I attached two photos of my screen, one shows the keyboard layout prompt and the other one shows the actual problem. Maybe this helps to help me
Attached Thumbnails
Click image for larger version

Name:	first_prompt.jpg
Views:	20
Size:	120.8 KB
ID:	37926   Click image for larger version

Name:	wrong_passing.jpg
Views:	24
Size:	130.8 KB
ID:	37927  
 
Old 12-26-2021, 04:15 PM   #12
M0M0
Member
 
Registered: Sep 2020
Location: Germany
Distribution: Slackware
Posts: 230

Original Poster
Rep: Reputation: 20
Quote:
Originally Posted by mralk3 View Post
Did you try a different keyboard? a different SD Card? Are you "under voltage"?
I will try a different keyboard tomorrow, but it works fine on several other machines... I have to check if I can find a second SD card.


Quote:
Originally Posted by mralk3 View Post
Maybe your locale or keyboard is set incorrect?
card?
If you mean the layout: it does not matter what I choose there. It is a german keyboard but even with an us layout (and me figuring out where the letters are) I have the same issue. As you can see in the attached screenshot, the correct text gets displayed after the prompt, but something different gets passed to the shell.

Quote:
Originally Posted by mralk3 View Post
Did you verify the installer image with a checksum before writing it to the sd card?
Yes, it is correct.
 
Old 12-26-2021, 04:56 PM   #13
mralk3
Slackware Contributor
 
Registered: May 2015
Distribution: Slackware
Posts: 1,904

Rep: Reputation: 1053Reputation: 1053Reputation: 1053Reputation: 1053Reputation: 1053Reputation: 1053Reputation: 1053Reputation: 1053
Try booting up and connecting to it over ssh from another computer. To see if it is just your keyboard, if its the installer, or something else.

Other than that, I am unsure.

I do know that the key map prompt right after you boot up is normal in Slackware arm. I haven't used x86_64 for a while so it may have changed there too or not.
 
Old 12-26-2021, 05:00 PM   #14
M0M0
Member
 
Registered: Sep 2020
Location: Germany
Distribution: Slackware
Posts: 230

Original Poster
Rep: Reputation: 20
How can I connect to the machine via ssh?
 
Old 12-26-2021, 05:45 PM   #15
mralk3
Slackware Contributor
 
Registered: May 2015
Distribution: Slackware
Posts: 1,904

Rep: Reputation: 1053Reputation: 1053Reputation: 1053Reputation: 1053Reputation: 1053Reputation: 1053Reputation: 1053Reputation: 1053
Quote:
Originally Posted by M0M0 View Post
How can I connect to the machine via ssh?
There are a lot of tutorials online that will help you out with OpenSSH.

Basically, connect the ethernet port of the Raspberry Pi 4 to a router and connect to your Raspberry Pi remotely using something like putty, or the ssh command. Once you are connected, there is no password required. You will be logged into your system and can run "setup".
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Raspberry Pi: Combine a Raspberry Pi with up to 4 Raspberry Pi Zeros for less than US$50 with the Cluster HAT LXer Syndicated Linux News 0 07-05-2019 12:03 PM
[SOLVED] Wicd won't install correctly/run correctly (64-bit Slackware 13) bgraybr Slackware 3 04-01-2010 06:57 PM
MDCrack cracks key with pass but not pass with key?... lynx5 Linux - Security 1 02-02-2008 05:49 PM
Repeated "input: AT Translated Set 2 keyboard as /class/input/input" messages AcerKev Mandriva 2 09-16-2007 08:35 AM
What Does The UT2004 Installer Do Behind The Fancy GUI Installer? Tsuroerusu Linux - Games 2 09-09-2004 02:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM

All times are GMT -5. The time now is 12:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration