[ARMedslack] Raspberry Pi support for Slackware ARM 14.1

stanley at stanleygarvey.com stanley at stanleygarvey.com
Sat Jun 15 19:21:16 UTC 2013


Versatile / versatile. Yes that was a typo as I was working in the installer I could not cut and paste from either the QEmu or Raspberry Pi.
Left machines upgrading to current. Going to leave it for tonight
Sent from my BlackBerry smartphone from Virgin Media

-----Original Message-----
From: Stuart Winter <m-lists at biscuit.org.uk>
Sender: "ARMedslack" <armedslack-bounces at lists.armedslack.org>Date: Sat, 15 Jun 2013 18:38:45 
To: Slackware ARM port<armedslack at lists.armedslack.org>
Reply-To: Slackware ARM port  <armedslack at lists.armedslack.org>
Subject: Re: [ARMedslack] Raspberry Pi support for Slackware ARM 14.1


> > > if [ "$( grep "versatile\|BCM2708" /proc/cpuinfo )" !="" -a -s
> > > $FSTAB ]; then

This is incorrect usage.  The '|' means 'OR', and by escaping it with '\'
you're preventing grep from mapping '|' to that 'OR' meaning.
Also, the ARM versatile platform has a capital V in /proc/cpuinfo, so if
you tested it there, then it's matching something other than 'versatile'
since you did not call grep with -i.

> > > Also tested on Raspberry Pi and QEMU ARM-Versatile, I don't know why
> > > the alternation is being missed in egrep. My grep is version 2.14,
> > > am I out of date?

If you were to test it outside of the installer, the script works as it should.

Calling 'grep' from a symlink called 'egrep' simply saves you passing
the -E option to grep.   I suspect that the issue is because in the
installer, the grep binary is called 'grep.bin' (probably legacy - I can't find
any reason for it to be named this - I can only guess that we had the
'grep' functionality of busybox available in the past, and wanted to be
able to use both versions) and when named as such, it doesn't respect
the name it was originally called as, thus not switching on the '-E'
functionality.

I've changed the script to use grep -E rather than 'egrep', and it works
inside the installer now.  I'll upload those once I've tried Linux 3.9.6
with gcc 3.8.1 (although apparently it won't work, but I might as well
give it a go).

Cheers
s.

-- 
Stuart Winter
Slackware ARM: http://arm.slackware.com
_______________________________________________
ARMedslack mailing list
ARMedslack at lists.armedslack.org
http://lists.armedslack.org/mailman/listinfo/armedslack


More information about the ARMedslack mailing list