LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 05-10-2013, 11:40 AM   #211
AlvaroG
Member
 
Registered: Jul 2009
Location: Canelones, Uruguay
Distribution: Slackware
Posts: 128

Rep: Reputation: 31

I would say the config file is this one: https://github.com/Ponce/raspi-slack...i/config-raspi
and it seems it is activated. But I will check on the real machine
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 05-10-2013, 11:45 AM   #212
Ahau
Member
 
Registered: Jun 2011
Location: USA
Distribution: Porteus, Slackware
Posts: 58

Rep: Reputation: 19
Hi all,

Following Alien Bob's ARMv7 port, I've ported Slackware for ARMv6 with hard float support. You can download packages and sources from my site, here: http://ahau.porteus.org/slackwarearmv6.html

Note: you can't mix these packages with the armv5te packages from slackwarearm, you have to do a full install. I've not rebuilt the kernel so you'll have to use one from somewhere else (the kernel doesn't need to be rebuilt for hard float support). KDE is not included as of yet, and I don't have an installer prepared so you'll have to do everything manually.

Please consider this a testing release for now; I've compiled it all on my tegra 2 tablet and it's up and running here but I've not done thorough testing on every application.

Enjoy!
 
Old 05-10-2013, 01:49 PM   #213
drmozes
Slackware Contributor
 
Registered: Apr 2008
Location: Surrey, England
Distribution: Slackware
Posts: 150

Rep: Reputation: 114Reputation: 114
Quote:
Originally Posted by Ahau View Post
Hi all,

Following Alien Bob's ARMv7 port, I've ported Slackware for ARMv6 with hard float support. You can download packages and sources from my site, here: http://ahau.porteus.org/slackwarearmv6.html

Note: you can't mix these packages with the armv5te packages from slackwarearm, you have to do a full install. I've not rebuilt the kernel so you'll have to use one from somewhere else (the kernel doesn't need to be rebuilt for hard float support). KDE is not included as of yet, and I don't have an installer prepared so you'll have to do everything manually.

Please consider this a testing release for now; I've compiled it all on my tegra 2 tablet and it's up and running here but I've not done thorough testing on every application.

Enjoy!

Cool stuff -- are you planning on making an installable system, releasing it and maintaining it? Whilst there has been some good work done by the community to get Slackware ARM on to the Raspberry Pi, I'm also aware that the support is somewhat fragmented and users have experienced problems.
If you're planning on supporting your work and have a long term interest in it, I'd like to recommend that users choose it over Slackware ARM on the Rpi- as it makes sense to have an optimised distribution + a dedicated focus on it.
 
Old 05-10-2013, 02:02 PM   #214
Ahau
Member
 
Registered: Jun 2011
Location: USA
Distribution: Porteus, Slackware
Posts: 58

Rep: Reputation: 19
Quote:
Originally Posted by drmozes View Post
Cool stuff -- are you planning on making an installable system, releasing it and maintaining it? Whilst there has been some good work done by the community to get Slackware ARM on to the Raspberry Pi, I'm also aware that the support is somewhat fragmented and users have experienced problems.
If you're planning on supporting your work and have a long term interest in it, I'd like to recommend that users choose it over Slackware ARM on the Rpi- as it makes sense to have an optimised distribution + a dedicated focus on it.
Thanks, Stuart! I am planning on making an installer, kernel, etc., and maintaining it in line with Eric's port. I do plan to keep it current and support it as best I can. I'm hindered now by the fact that I don't have a Pi myself yet, so while I can ensure the userland is working on my armv7 device, I can't very well troubleshoot the kernel and installer for the Pi specifically. I will be picking one up soon. I also have obligations as the documentation team lead and the xfce/lxde maintainer for Porteus Linux so I may be spreading my free time a little thin, but I have a real interest in ARM devices and intend to stick with it.

For the time being, I'd definetly recommend that users looking for a tested and stable system should stick with slackwarearm until we get some more testing done; at the same time, I'm hopeful there are some folks out there with an adventurous streak, who'd like to help me with some early testing.
 
Old 05-10-2013, 03:28 PM   #215
AlvaroG
Member
 
Registered: Jul 2009
Location: Canelones, Uruguay
Distribution: Slackware
Posts: 128

Rep: Reputation: 31
Quote:
Originally Posted by AlvaroG View Post
I would say the config file is this one: https://github.com/Ponce/raspi-slack...i/config-raspi
and it seems it is activated. But I will check on the real machine
Checked. The settings are as shown in the link above, and the device /dev/nfs does not exist.
I also checked my other Slackware system, and /dev/nfs does not exists. By searching on the web, I found that one just needs to create it, but that is not a solution in this case. maybe I'll have to tinker with the initrd image

Regards

Edit: No, the initrd image won't be enough. What is missing is the CONFIG_ROOT_NFS setting in the kernel. The kernel needs to be rebuilt. "Make it so", as Capt. Picard used to say

Last edited by AlvaroG; 05-10-2013 at 03:55 PM.
 
Old 05-11-2013, 01:06 AM   #216
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 2,447

Rep: Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875
there's no such option available in the kernel config, you can check in you local config with
Code:
zgrep CONFIG_ROOT_NFS /proc/config.gz
 
Old 05-11-2013, 04:00 AM   #217
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,259

Rep: Reputation: Disabled
Quote:
Originally Posted by ponce View Post
there's no such option available in the kernel config, you can check in you local config with
Code:
zgrep CONFIG_ROOT_NFS /proc/config.gz
That does not mean it is not an available option. Some kernel configuration parameters are not mentioned in the .config and are invisible in the kernel configuration menu, until you enable a dependent option first.

Try "Networking Support > Networking Options" and enable "IP: kernel level autoconfiguration". That makes a few other options visible right below it where you can check "IP: DHCP Support" and "IP: BOOTP Support". Then go back to the kernel main menu and select "File Systems > Network File Systems" where you will find the (invisible until now) new option "Root file system on NFS" which you must enable.

Eric
 
1 members found this post helpful.
Old 05-11-2013, 04:28 AM   #218
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 2,447

Rep: Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875
thanks Eric, I forgot about that: I'll have a look and enable it in the next kernel.
 
Old 05-11-2013, 05:03 AM   #219
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 2,447

Rep: Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875
Quote:
Originally Posted by Ahau View Post
Thanks, Stuart! I am planning on making an installer, kernel, etc.
I'm trying an install using my installer and using nfs, and ATM seems to work: I just noticed that during the rsync I got a permission issue on CHANGELOG.txt and that the bzip2 package is somehow corrupted.
The installation is still going on...

EDIT: installation finished and running! I used this as installer
http://ponce.cc/testing/raspi-extras/

EDIT2: I had to manually install the kernel-headers package later, really minor glitch.

EDIT3: I got an underlinking error when trying a "make menuconfig" in the kernel sources
Code:
/usr/lib/gcc/armv6hl-slackware-linux-gnueabi/4.7.1/../../../../armv6hl-slackware-linux-gnueabi/bin/ld: scripts/kconfig/lxdialog/checklist.o: undefined reference to symbol 'acs_map'
/usr/lib/gcc/armv6hl-slackware-linux-gnueabi/4.7.1/../../../../armv6hl-slackware-linux-gnueabi/bin/ld: note: 'acs_map' is defined in DSO /usr/lib/libtinfo.so.5 so try adding it to the linker command line
/usr/lib/libtinfo.so.5: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
and when I try to build tmux
Code:
| /* Override any GCC internal prototype to avoid an error.
|    Use char because int might match the return type of a GCC
|    builtin and then its argument prototype would still apply.  */
| #ifdef __cplusplus
| extern "C"
| #endif
| char setupterm ();
| int
| main ()
| {
| return setupterm ();
|   ;
|   return 0;
| }
configure:4950: gcc -o conftest      conftest.c -lncurses  -levent   -lrt  >&5
/usr/lib/gcc/armv6hl-slackware-linux-gnueabi/4.7.1/../../../../armv6hl-slackware-linux-gnueabi/bin/ld: /tmp/ccwR2kKb.o: undefined reference to symbol 'setupterm'
/usr/lib/gcc/armv6hl-slackware-linux-gnueabi/4.7.1/../../../../armv6hl-slackware-linux-gnueabi/bin/ld: note: 'setupterm' is defined in DSO /usr/lib/libtinfo.so.5 so try adding it to the linker command line
/usr/lib/libtinfo.so.5: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
configure:4950: $? = 1
I'm thinking about a problem with ncurses and I'm trying a rebuild of it without --with-termlib=tinfo

Last edited by ponce; 05-11-2013 at 11:57 AM.
 
Old 05-11-2013, 12:19 PM   #220
Ahau
Member
 
Registered: Jun 2011
Location: USA
Distribution: Porteus, Slackware
Posts: 58

Rep: Reputation: 19
That's great, thanks Ponce!

You'll need to add a line to scripts/kconfig/Makefile, around line 212:
HOSTLOADLIBES_mconf += -ltinfo

Per this post:
permalink.gmane.org/gmane.linux.kbuild.devel/8955

So that LD will pick up libtinfo, which has been split from libncurses.

EDIT: rebuilding ncurses would also work, but if you do upgradepkg on the install it will delete libtinfo which will break *a lot* of stuff -- either install over the top or. Replace libtinfo with a symlink to libncurses.

Last edited by Ahau; 05-11-2013 at 12:26 PM.
 
Old 05-11-2013, 02:44 PM   #221
AlvaroG
Member
 
Registered: Jul 2009
Location: Canelones, Uruguay
Distribution: Slackware
Posts: 128

Rep: Reputation: 31
Quote:
Originally Posted by ponce View Post
thanks Eric, I forgot about that: I'll have a look and enable it in the next kernel.
Hi guys,
I have it working now. I had to rebuild the kernel with the CONFIG_ROOT_NFS option enabled, and in order to do that I had to enable CONFIG_IP_PNP as well (IP kernel level autoconfiguration). The Pi took around 12 hours to compile everything. Now I have a 3.6.11 kernel running from an NFS root

Extra tips to have everything working:
* Remove the / line in /etc/fstab, as there is no need for it.
* change "ro" to "rw" at the end of cmdline.txt (the boot process fails when trying to remount the FS). Doing this will enable a warning in rc.S, I just commented out the corresponding block in the script (I know it is not the best solution, but it works and nothing gets broken)

So far I have noticed that the disk access is slower than my previous setup (an external HD via USB), but mounting via NFS gives me some other advantages related to my home equipment.
 
Old 05-11-2013, 03:20 PM   #222
the3dfxdude
Member
 
Registered: May 2007
Posts: 316

Rep: Reputation: 88
Quote:
Originally Posted by AlvaroG View Post
So far I have noticed that the disk access is slower than my previous setup (an external HD via USB), but mounting via NFS gives me some other advantages related to my home equipment.
How fast is NFS versus your SD card? The reason why I ask, is because I tried sshfs-fuse on my raspi, and well, my class 4 SD card was faster. I might try having NFS myself for the first time. I'm sure the external HD via USB was plenty fast.
 
Old 05-11-2013, 03:38 PM   #223
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 2,447

Rep: Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875
Quote:
Originally Posted by Ahau View Post
That's great, thanks Ponce!

You'll need to add a line to scripts/kconfig/Makefile, around line 212:
HOSTLOADLIBES_mconf += -ltinfo

Per this post:
permalink.gmane.org/gmane.linux.kbuild.devel/8955

So that LD will pick up libtinfo, which has been split from libncurses.

EDIT: rebuilding ncurses would also work, but if you do upgradepkg on the install it will delete libtinfo which will break *a lot* of stuff -- either install over the top or. Replace libtinfo with a symlink to libncurses.
I've followed a different way: as it's an underlinking problem of libncurses, I tried to link libtinfo in it
Code:
--- ./ncurses.SlackBuild.orig   2013-05-01 14:53:56.000000000 +0200
+++ ./ncurses.SlackBuild  2013-05-11 22:36:51.984281132 +0200
@@ -25,7 +25,7 @@
 
 PKGNAM=ncurses
 VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
 
 # Automatically determine the architecture we're building on:
 MARCH=$( uname -m )
@@ -110,6 +110,9 @@
 
 zcat $CWD/ncurses.mkhashsize.diff.gz | patch -p1 --verbose || exit 1
 
+# Fix underlinking to terminfo
+sed -i "s|\ @LIBS@$| -ltinfo @LIBS@|" ncurses/Makefile.in
+
 # End of preparations
 if echo "$*" | grep -qw -- --prep ; then
   exit 0
and that allowed me to use make menuconfig and build tmux too.

but I'm still having some problems with the second build in the ncurses.SlackBuild, so I'm giving it another look.

Last edited by ponce; 05-11-2013 at 05:35 PM.
 
Old 05-11-2013, 04:37 PM   #224
AlvaroG
Member
 
Registered: Jul 2009
Location: Canelones, Uruguay
Distribution: Slackware
Posts: 128

Rep: Reputation: 31
Quote:
Originally Posted by the3dfxdude View Post
How fast is NFS versus your SD card? The reason why I ask, is because I tried sshfs-fuse on my raspi, and well, my class 4 SD card was faster. I might try having NFS myself for the first time. I'm sure the external HD via USB was plenty fast.
I can't compare both situations, I ran from SD only a few weeks (until I got my first FS corruption due to my brothers disconnecting the USB power cable ...) Immediately after that I went for a USB HD, and that happened almost a year ago. I remember the SD card being faster than what NFS is now, since it was a good Class 10 card. When I moved to the external drive, I started using a cheap 2GB card that I believe is class 2, but as it is only used for /boot, that is not an issue.

I haven't started tweaking the NFS parameters to see if I get better performance, but I can *hear* the drive working more (my NFS server is the same media player I was using as USB disk, and also as power source), and the boot/shutdown process is now 2-3 times slower than before.

One quirk I found is that using ip=dhcp doesn't work, so I had to convert to a static IP setup. The Pi is able to get an IP, but the rootserver and bootserver parameters get set to my router, instead of the NFS server. This means that it never finds the NFS export, because it is looking for it in the wrong IP.

Still, I prefer this setup because I can use samba and other processes in the media player itself (while working as an external disk, the OS part on it doesn't work), and also the player has some issues with USB that caused the disk to disconnect when loaded (e.g. copying a folder from my windows laptop to the samba share in the Pi, or downloading a torrent while trying to watch a movie), so it was getting annoying. I could use another USB HD, but that would mean using another wall plug on an already crowded space
 
Old 05-12-2013, 11:26 AM   #225
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 2,447

Rep: Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875
in the end I solved linking against libncurses with a trick from debian.
I'll post the patch for ncurses.SlackBuild as I get home.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Raspberry Pi project Dutch Master Linux - General 12 08-05-2012 06:48 AM
[SOLVED] VLC on ARMEDSlack compile fails ryerke Slackware 6 10-14-2011 11:24 AM
armedslack-13.37 - can't run any KDE apps? ahmadj Slackware 4 08-26-2011 08:09 AM
is it possible to install armedslack on a icy box IB-NAS6210 gtludwig Slackware 5 05-19-2011 09:15 PM
armedslack 13.37 tmfizzle Slackware 3 05-17-2011 09:56 AM


All times are GMT -5. The time now is 11:10 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration