LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 08-07-2018, 08:41 AM   #1
nass
Member
 
Registered: Apr 2006
Location: Athens, Greece
Distribution: slackware, debian, ubuntu
Posts: 648

Rep: Reputation: 38
cross compiling of slackwareARM on a slackware system?


Hi all,
I am on vacations and have a rasberry pi3 with me, a laptop (running slackware 14.0) and a usb stick (8GB) and an SDCard (16GB). I do not have an hdmi monitor nor usb kb/mouse to connect to the rasberry pi 3. And I would like to install slackwareARM to the SDCard and make rpi3 boot, with SSH enabled so I can connect directly to it afterwards.

Is there a tutorial and perhaps the necessary scripts available to cross compile a whole image on the laptop and just copy it over to the sdcard ?

I am looking for something similar to yocto build system and/or the liveslack scripts that alienBob has assembled in the past.

thank you in advance for your help
 
Old 08-07-2018, 09:02 AM   #2
abga
Member
 
Registered: Jul 2017
Location: EU
Distribution: Slackware
Posts: 518

Rep: Reputation: 275Reputation: 275Reputation: 275
As you don't have the possibility to hook your Pi board to a TV/Monitor, go for the Manual installation method:
https://docs.slackware.com/howtos:ha...rm:raspberrypi
"Incidentally if you download a recent version of raspbian this procedure will create bootable images for the RPi, RPi 2, RPi 3, and RPi Zero."
And while you're preparing and still have your SDCard mounted, make sure /etc/rc.d/rc.sshd is executable and temporary put in /etc/rc.d/rc.inet2, just after "#!/bin/sh" your manual LAN IP configuration:
Code:
#example
/sbin/ifconfig eth0 192.168.1.10 netmask 255.255.255.0 up
You'll then be able to ssh to your Pi and do the rest of the configuration.
This might be also helpful:
https://www.linuxquestions.org/quest...9/#post5846280
EDIT1:
When issuing the installpkg, point it to the root folder where your SDCard is mounted:
Code:
#example
installpkg --root /mnt/sdcard/
EDIT2:
- the Slackware ARM minirootfs is available here:
ftp://ftp.arm.slackware.com/slackwar...ls/minirootfs/
- you'll need to fix the /mnt/sdcard/boot/cmdline.txt file, this is mine (/ is on /dev/mmcblk0p2, that's the second partition):
Code:
cat /boot/cmdline.txt
dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait
- and finally you need to enable root login in your /mnt/sdcard/etc/ssh/sshd_config
Code:
PermitRootLogin yes

Last edited by abga; 08-07-2018 at 12:16 PM. Reason: completion
 
  


Reply

Tags
cross-compile, rasberry pi 3, script, slackwarearm, tutorial


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
Cross compiling under Slackware using mingw-w64 andrew.46 Slackware 12 06-04-2016 01:56 AM
[SOLVED] cross compiling library paths into system knobby67 Programming 1 06-04-2014 05:30 AM
[SOLVED] Compiling lirc on system with remotely cross-compiled kernel Quakeboy02 Linux - Software 1 04-05-2013 05:17 PM
[cross compiling]x86_64 system, compile target i686 ////// Programming 1 03-31-2011 03:56 AM
Cross-compiling Slackware from scratch intens Slackware 7 01-15-2007 02:26 AM

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

All times are GMT -5. The time now is 08:13 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration