LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 09-17-2016, 11:40 AM   #1
bricker_rick
LQ Newbie
 
Registered: Sep 2016
Posts: 7

Rep: Reputation: Disabled
installing slackware on arm chromebook?


Having acquired Asus C201 with Rockchip ARM, I hope to dual boot some brand of Linux. My preference would be Slackware, but I'm new to ARM and can find no compatibility postings.

From what I can find on the web, ubuntu and arch ARM distros should be able to run on the Rockchip, either under crouton or dual booted. Additionally, it looks like BIOS of C201 might be modified to run libreboot.

In short, I need some clues/advice to plan a slackware install on this machine. In return, I can promise a detailed howto of what worked for me. I am suspecting I may need to first install some other distro, and compile installable slackware from there.

Or is this a fool's errand?
 
Old 09-26-2016, 09:48 PM   #3
slackartist
Member
 
Registered: Oct 2015
Location: Where the buffalo's roam
Distribution: Slackware Current Multilib
Posts: 161
Blog Entries: 20

Rep: Reputation: 26
I would try it but I have the xe303c12 chromebook series
I cannnot figure out a few things mplayer, sound confliction in firefox particularly youtubes, video ads, etc.

Other than that it works pretty good.

I find there are nooks and crannies to learn. But if you have any questions I could try to fill you in on my experience a bit better. though.
 
Old 09-29-2016, 01:31 PM   #4
bricker_rick
LQ Newbie
 
Registered: Sep 2016
Posts: 7

Original Poster
Rep: Reputation: Disabled
Still working on the plan to install on Asus C201.

I'm thinking I will re-use Chrome OS kernel and modules with a stock Slackware miniroot file-system. AFAICT Chrome uses a 3.x version kernel (modded for the C201 hardware).

If I am noticing correctly, the 14.2 release of Slackware features a 4.x version kernel, while the 14.1 release uses 3.x. Will it make sense, then, to try the 14.1 Slackware to avoid API issues? Or is this mostly a non-issue?

Also, does this overall approach make sense, or should I be trying to figure out how to roll my own kernel?
 
Old 09-29-2016, 02:18 PM   #5
slackartist
Member
 
Registered: Oct 2015
Location: Where the buffalo's roam
Distribution: Slackware Current Multilib
Posts: 161
Blog Entries: 20

Rep: Reputation: 26
if the mainline kernel gets the sound and the camera to function I would learn that.

But the chrome kernel has those functions. I also don't know about the nfs since it doesnt seem to have anything loaded although they do have a way to activate it.

I do use the slackware current files with the chromeos kernel. And also have the fit image made for the slackware kernel.

And actually I just took the kernel from arch linux arm peach to use that. I don't think the ones I tried compiling myself worked at all. Though the slackware kernel did boot and I got to test that where nfs was functioning. It kinda took a lot of time and frustration and I'm glad I did it and over.
 
Old 10-18-2016, 03:41 AM   #6
bricker_rick
LQ Newbie
 
Registered: Sep 2016
Posts: 7

Original Poster
Rep: Reputation: Disabled
Success!

Posting this from Firefox inside blackbox on X11 from Slackware 14.1 running off SD card installation on Asus C201 (ARM veyron). I haven't yet worked out the sound, touchpad, hibernation, ...etc, but have solid video, (usb) mouse, keyboard, wifi, and browser.

Thank you sndwvs for the references. I must have read through them fifty times each.

Thank you slackartist for the tip to snag a kernel (and modules & firmware) from Arch arm distro. My attempt to flash the chrome os kernel left me booting into a classic blank screen, though logs indicated the machine was booting just fine into Slackware. The quick fix was to use the Arch kernel (build 3.14.0-21-ARCH).

I need to compile my notes into a detailed howto, but here is a TL;DR version...

1) Configure chromebook to run in developer mode, configure wifi, and use guest account (no google+ registration required).

2) Partition the SD card as root on chromebook console.

3) Download Slackware arm miniroot (I chose 14.1) into /tmp and unpack onto the SD root partition.

4) Download the Arch install filesystem for veyron and unpack it into an /opt/archroot/ path on the Slackware partition. Flash the kernel found at /opt/archroot/boot/ on the the SD kernel partition.

5) Chroot into the Slackware filesystem and symlink /opt/archroot/lib/modules to /lib/modules. Repeat for firmware. I also symlinked /boot, but that was only for reference.

6) Continuing in the chroot, add a user, a root password, a useful fstab & resolv.conf, and configure wifi.

7) Reboot the chromebook into Slackware (ctrl-U), get wifi and slackpkg working, and install a bunch of packages to get X11 functional, including driver "xf86-video-armsoc". Somewhere in Arch video packages I found the file "20-armsoc.conf" suitable to drop in /etc/X11/xorg.conf.d/.

8) Once X11 runs, install your preferred window system (I wanted to use fluxbox, but it didn't play nice with rxvt, so fell back to blackbox).

9) The Firefox in the .../unsupported/... branch of slackwarearm worked fine for me (once I installed all the dependent libs).

So now I have a two pound slackbook. Thanks again to all.
 
Old 10-29-2016, 03:36 PM   #7
NuclearKev
LQ Newbie
 
Registered: Oct 2016
Posts: 5

Rep: Reputation: Disabled
bricker_rick, do you think you could elaborate a little more on how you got it working? I'm confused about why you created the /opt/archroot directory and why you unpacked the arch arm rootfs in there.
 
Old 10-30-2016, 12:01 AM   #8
bricker_rick
LQ Newbie
 
Registered: Sep 2016
Posts: 7

Original Poster
Rep: Reputation: Disabled
<Answer for NuclearKev:>

When finally booting into Slackware with the Arch kernel, the kernel will be
looking for its associated (Arch) "firmware" and "modules". These must be
visible in the Slackware filesystem. My quick and dirty fix was to unpack the
whole Arch enchilada into a directory (/opt/archroot), and then (in step (5))
symlink the Arch directories accordingly. I have not got my notes on hand, but
from memory, step (5) would look something like this inside the Slackware
chroot:

cd /lib
mv modules modules.slackminiroot
mv firmware firmware.slackminiroot
ln -s /opt/archroot/lib/modules modules
ln -s /opt/archroot/lib/firmware firmware

cd /
mv boot boot.slackminiroot
ln -s /opt/archroot/boot boot

One could, with equal effect, simply copy the Arch directories we want into
place, and discard the other Arch files. I kept the whole filesystem intact
thinking I might raid it later if other files were of use. It turned out that I
did chroot into the Arch image from Slackware to refer to some manpages that
were unavailable in the Slackware miniroot.

[Side Note:/boot is not actually used by the chromebook booting system - rather
the kernel is flashed into its own private partition - maybe something like
/dev/mmcblk1p1.]

</Answer>


Since last I posted, I have continued to build out the miniroot into a
full-fledged Slackware install. Sound, touchpad, headphones, backlight-adjust
and suspend are working fine. I haven't yet attempted to use HDMI, microphone,
video-camera, or LAN-via-usb. I did go ahead and revise the SSD
partitioning (see web for installing linux on chromebook SSD) and move the
Slackware root onto an 8G partition there. The kernel is still presently
on the first partition of the SD card. The rest of the SD card is mounted on
/opt1 for workspace.

KDE is installed, though I am using the Xfce window manager. A glitch in Xfce
is that xfwm4 fails to draw the window titlebar/borders (although the window
controls are operational if you remember where they should be). Just today, I
managed to switch to using KWin in place of xfwm4 on the Xfce desktop, and the
windows render properly. All of the KDE apps seem to work. YouTube videos play
okay in firefox, but have jumpy video when taken fullscreen (this is no gaming
machine).

I found the following downloadable packages in various places on the web which
seem to work on this franken-install:

mozilla-firefox-34.0.5-armv6j-1_slack14.1.txz
mozilla-thunderbird-17.0.5-armv6j-1_slack14.1.txz
openjdk-7u13_b20-armhfp-1.txz

To get Audacity to play my mp3 files, I did need to recompile mpg123 with patch
to the (arm) mpg123.SlackBuild file:
56,57c56
+ #TARGET="arm_nofpu"
+ TARGET="generic_fpu"
---
- TARGET="arm_nofpu"

Still TO-DO: get LibreOffice working (build fails so far), get MPlayer working,
sort out Hibernation, install or build a chromium-browser, Wine, Qemu,
audio-recording stuff,...etc.

All-in-all, though, I love the form-factor and feature-set of the C201, and as
always, once properly configured, Slackware is remarkably capable and stable.
 
Old 10-30-2016, 10:00 AM   #9
NuclearKev
LQ Newbie
 
Registered: Oct 2016
Posts: 5

Rep: Reputation: Disabled
@bricker_rick, I see. I decided to just copy the modules and firmware directories on to my Slackware partition. It seems to work find! Thanks for the explanation!
 
Old 10-30-2016, 02:25 PM   #10
bricker_rick
LQ Newbie
 
Registered: Sep 2016
Posts: 7

Original Poster
Rep: Reputation: Disabled
For reference, these are the package I installed in the Slackware miniroot to
get X11 running with firefox. (output of: #ls /var/adm/packages)
Attached Files
File Type: txt base_packages000.txt (5.6 KB, 47 views)
 
Old 03-31-2017, 10:38 AM   #11
NuclearKev
LQ Newbie
 
Registered: Oct 2016
Posts: 5

Rep: Reputation: Disabled
@bricker_rick, I finally have some time to actually attempt this again and I'm stuck at X11. It doesn't seem to recognize the screen. Did you have to manually configure X to get it to work properly? If not, is there a package that I may have missed? Thanks!

Last edited by NuclearKev; 03-31-2017 at 10:39 AM. Reason: Grammar
 
Old 03-31-2017, 08:05 PM   #12
slackartist
Member
 
Registered: Oct 2015
Location: Where the buffalo's roam
Distribution: Slackware Current Multilib
Posts: 161
Blog Entries: 20

Rep: Reputation: 26
on my arm system it has all the packages, and around 1 g free give or take, though its not the best way but sort of functional so far just rebuilding a package (im pretty new to rebuilding at times)

but what I did if I could find my list, I took a mirror of the slacwkare then i installed most packages locally as full install just like the installer would have.

though i see how arch linux is and there its super bare and such but this kind of got my laptop banging pretty quick

all right i was taking off the version numbers and was thinking aboutall the packages haha

https://pastebin.com/GhwZmFiR

im not sure what to take off but I took these notes

, tho the list I used to install my full install system i dont got / cant find currently..

https://pastebin.com/vB91bs05

so use that as a reference if it helps / makes sense so best i can do for now

- if you need that full install list I can get it , but you will have to have it set for the current packages anyways so
 
Old 03-31-2017, 08:58 PM   #13
NuclearKev
LQ Newbie
 
Registered: Oct 2016
Posts: 5

Rep: Reputation: Disabled
After fighting with X for a while I got it working by removing Xorg.conf and xorg.conf.d/ from /etc/X11. Go figure! Thanks for the reply though!
 
Old 03-31-2017, 11:03 PM   #14
bricker_rick
LQ Newbie
 
Registered: Sep 2016
Posts: 7

Original Poster
Rep: Reputation: Disabled
@NuclearKev, glad you managed to get X working. Checking my system's
/etc/X11/xorg.conf.d, I made a link

xorg.conf -> 20-armsoc.conf

which is the file I mentioned in my previous post (I forget where I got it).

I continue to use the Asus machine, although I have also acquired a 2013
Google Chromebook Pixel machine which takes most of my attention now.

Additional things of note about the C201

1) I was able to find and employ the kernel source 3.14 that matched the Arch
kernel and have been able to compile stuff that needed those headers and
also some modules I needed. My bookmark history shows...

https://chromium.googlesource.com/ch.../chromeos-3.14

2) Referring to the studioware.org site, I managed to get a bunch of audio
programs compiled and working including Jack, Ardour, Rosegarden, Hydrogen,
Alsaplayer, and Qsynth. I had to hack the build scripts to build for ARM.
Not sure I recommend this though, since the C201 is rather underpowered for
an audio workstation, and I have not found the magic combination to get
clean recordings consistently (without xruns in Jack).

3) The built-in microphone works well, however I am unable to get the
headset microphone to work. I saw some kernel posts indicating that this
was a bug in the audio driver that was not fixed in the 3.14 kernel. The
fix would require building a new kernel, which I have no heart for. Refer to:

https://patchwork.kernel.org/patch/9021651

4) After heroic efforts, I almost got libreoffice to compile. It finished well
enough to hack together a workable installation, but I do not recommend any but
an expert to attempt such.

5) Managed to get suspend working, but was unable to sort out the glitches with
sound and video which would ultimately force a reboot. Have resorted to leaving
it always on - current uptime is 33 days.

OBTW my previous post should read "To get Audacious to play..." - not Audacity.
 
Old 04-01-2017, 12:03 PM   #15
NuclearKev
LQ Newbie
 
Registered: Oct 2016
Posts: 5

Rep: Reputation: Disabled
@bricker_rick, thanks for all your work you've put into the project! I am having an issue with slackbuilds, however. I get an error about /lib/cpp failing sanity check. I can't seem to figure out what is missing!


UPDATE: I fixed it! Turns out it was looking for a directory that didn't exist. I had to symlink /usr/include/limits.h into /usr/include/linux/limits.h!!

Last edited by NuclearKev; 04-01-2017 at 12:45 PM.
 
  


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
Installing Slackware on Acer C720-3605 Chromebook (Core i3) siralucardt Slackware 9 09-09-2015 05:44 PM
[SOLVED] What distros can be installed on a Chromebook ARM lmassey43 Linux - Newbie 1 04-15-2014 08:10 PM
LXer: Call for help: Slackware on an ARM Chromebook? LXer Syndicated Linux News 0 03-20-2013 02:13 PM
[SOLVED] Having trouble installing Flash player onto ChrUbuntu on the ARM based Chromebook MrBlargable Linux - Newbie 7 02-23-2013 07:36 AM

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

All times are GMT -5. The time now is 12:19 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