LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   cross compiling of slackwareARM on a slackware system? (https://www.linuxquestions.org/questions/slackware-14/cross-compiling-of-slackwarearm-on-a-slackware-system-4175635864/)

nass 08-07-2018 08:41 AM

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

abga 08-07-2018 09:02 AM

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


All times are GMT -5. The time now is 02:05 PM.