LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 05-04-2022, 10:27 PM   #16
mralk3
Slackware Contributor
 
Registered: May 2015
Distribution: Slackware
Posts: 1,900

Rep: Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050

Quote:
Originally Posted by enorbet View Post
Are you saying I will need to reinstall Slackware that currently works on SATA? or just /boot on MicroSD?

Don't get me wrong. I'm not adverse to re-installing. I just will want to know before.
There is no need to reinstall. We are only talking about the boot loader. Use an extra SD Card and dd the spi flash archive onto it. Then boot the extra sd card and let it replace your current u-boot image that resides in SPI Flash memory. Then you should have the ability to use USB keyboards in uboot without a serial console.
 
Old 05-05-2022, 04:26 PM   #17
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,784

Original Poster
Rep: Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434
Heya mralk3, Great News!
It took me awhile due to my n00bishness w/ ARM and I screwed it up once not understanding the exact nature of the boot process so I had to re-install.

Much to my great and extremely pleasant surprise, electing to not format almost ALL my tweaks were still there including Users, Desktops, and app settings... Awesome!

During re-install I naturally did not have eMMC drive connected so I added a dummy menuentry for eMMC until I could reboot and get everything right. For one thing I have no idea if UBoot will behave anything like LILO and recognize a chainload like "other = /dev/foo, label = foo2" BUT USB keyboard working is CONFIRMED and it is delightful. Major imrovement for me and possibly anyone else that wants some flexibility to "mess around" to learn stuff.

Thank you very much. Excellent option!

EDIT (UPDATE) - Well ideally I need to figure out how to install Grub2 into AarchSlackware (I don't see it in /sbin or /usr/sbin) or to effect a "handoff" boot to eMMC. I'd like to be able to have that option wide open to boot whatever it finds bootable on an eMMC regardless of which eMMC I connect. I know grub can work on the RockPro64 as I've seen and used it in other distros. That would be a case where the OSProber might be welcome.

Last edited by enorbet; 05-05-2022 at 05:15 PM.
 
1 members found this post helpful.
Old 05-05-2022, 04:34 PM   #18
mralk3
Slackware Contributor
 
Registered: May 2015
Distribution: Slackware
Posts: 1,900

Rep: Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050
The u-boot binary will read from ext2/3/4 and type vfat partitions. I booted OpenBSD a while back using a Slackware U-Boot. OpenBSD uses a fat partition to house u-boot stuff. So as long as you keep those file system types in mind, you can probably boot mostly everything *NIX, as long as the RockPro64 is listed as supported for the operating system in mind. The only catch is that u-boot must support the hardware and have been compiled for it.

Last edited by mralk3; 05-05-2022 at 04:36 PM.
 
Old 05-05-2022, 06:28 PM   #19
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,784

Original Poster
Rep: Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434
My obstacle so far is not file systems but handing off boot to another drive ie: eMMC. I've tried adding a directory in Slackware's /boot (like /boot/eMMC/*) so I can keep all the kernels, configs, dtb stuff, etc separated but still in Slackware's /boot. So far no luck.

For example i copied lines like this
Code:
   
#extlinux/extlinux.conf

LABEL OS
   MENU LABEL Boot OS: eMMC
   root=/dev/mmcblk2p3/
   LINUX /boot/eMMC/Image
   INITRD /boot/eMMC/initrd
   FDTDIR /boot/eMMC/dtb
and I get many errors ----
Ignoring unknown command root=
Ignoring unknown command LINUX
Ignoring unknown command INITRD
Ognoring unknown command FDTDIR

and if I select Option #2 (eMMC)
it says no kernel found

I'm stuck for awhile but leaning on trying to find out how grub can be loaded to avoid all these (new to me) arcane errors. I don't get it yet as those commands are not unknown for Slackware's boot entry. What am I missing?

Incidentally I tried copying and customizing the APPEND line to define root for the #2 EMMC entry but to no avail

Last edited by enorbet; 05-05-2022 at 06:33 PM.
 
Old 05-05-2022, 07:22 PM   #20
mralk3
Slackware Contributor
 
Registered: May 2015
Distribution: Slackware
Posts: 1,900

Rep: Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050
Some examples.

Code:
LABEL OS
   MENU LABEL Boot OS: eMMC
   LINUX /eMMC/Image
   INITRD /eMMC/initrd
   FDTDIR /eMMC/dtb/
   APPEND root=/dev/mmcblk2p3 rootfstype=ext4

Assuming the kernel and bits are in the eMMC/ directory on the SD Card, no need to add /boot since u-boot sees the SD Card as /. Here is what mine looks like for the default boot option. Uses LUKS and LVM encryption and a UUID to point to the encryption key file. "LABEL" needs to be unique from other entries.
Code:
##SLKOS
LABEL OS
   MENU LABEL Boot OS: Slackware Linux
   LINUX /Image-armv8
   INITRD /initrd-armv8
   FDTDIR /dtb/

   APPEND rootfstype=f2fs root=/dev/cryptvg/root luksdev=/dev/nvme0n1p1 lukskey=UUID=946a8e1d-89f1-4968-b182-cdf7b34bdcdc:/slackpv.keyfile
##SLKOS
##SLKOS2
LABEL OS2
   MENU LABEL Boot OS 2: Slackware Linux
   LINUX /Image-armv8
   INITRD /initrd-armv8
   FDTDIR /dtb/

   # examples
   #APPEND rootfstype=f2fs root=LABEL=SLKroot awaitrootdev 
   #APPEND earlyprintk rootfstype=f2fs root=LABEL=SLKroot 
   #APPEND earlyprintk rootfstype=f2fs root=/dev/cryptvg/root
   #APPEND earlyprintk rootfstype=f2fs root=UUID=8849c0de-8afe-4a28-af8e-c2870f622a7e

   APPEND rootfstype=f2fs root=/dev/cryptvg/root luksdev=/dev/nvme0n1p1
##SLKOS2
You can also program u-boot to load the right files from the right disk and partition directly. A good alternative if you cannot figure out extlinux.conf.

Last edited by mralk3; 05-05-2022 at 07:59 PM.
 
Old 05-05-2022, 08:10 PM   #21
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,784

Original Poster
Rep: Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434
TYVM again mralk3. I'll play with that even though for some reason the RockPro64 has reverted and I can't see why but I'm glad for whatever changed. It now starts and displays the Slackware Uboot and when eMMC is not attached but MicroSD is attached, it always boots right to Slackware. If I attach the eMMC and detach the MicroSD it sometimes tries to load Slackware and fails (I think when warm rebooted) but when hard started, boots whatever is on eMMC after Slacware Logo page.

I'm trying to craft a hybrid system with Slackware that has a true Desktop variant but will also operate as a Web Based NAS most of the time. OpenMediaVault has a TrueNAS-like interface that's really nice but it runs a 4.4.167 kernel and though I'm not certain that is the problem it doesn't like my BTRFS RAID1 and claims 2 records don't match which is odd since Slackware sees no errors and transfers files back and forth with zero errors while OMV won't even let me mount it. So even if I wasn't a 2 decade devotee of Slackware, I'd still prefer it over the faulty Stretch Debian.,, but I surely would like to have that web interface on Slack. I'll get there. Thanks again.
 
1 members found this post helpful.
Old 05-05-2022, 08:25 PM   #22
mralk3
Slackware Contributor
 
Registered: May 2015
Distribution: Slackware
Posts: 1,900

Rep: Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050
I have my RockPro with NFS using autofs to mount/unmount the network shares on demand. I have Apache (httpd) running as a Slackware mirror sharing just my Slackware repositories. Good for browsing files too and I manage everything by secure shell. I have plans to make a web interface as time permits.

Post back here if you find a good low resource web interface.

Last edited by mralk3; 05-05-2022 at 08:27 PM.
 
Old 05-05-2022, 08:45 PM   #23
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,784

Original Poster
Rep: Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434
Just to be clear I don't mind CLI type NFS for rsync but I have so many drives/partitions on so many PCs that some stuff is just easier when I can use a FileManager and just drag 'n drop individual files, clusters of files or directories. I can manage something like that now but I'm pretty certain a web interface would make that much more comfortable and flexible. I tried to install Webmin on AarchSlackware but it stated it doesn't yet support the architecture and it failed to build. Cockpit is kinda OK but I haven't tried it on ARM yet. In the past I've used VNC variants like NoMachine and AnyDesk in X86 so I might try those.

Anyway if I see a decent one that works on AarchSlackware I'll post info here.

Last edited by enorbet; 05-05-2022 at 08:46 PM.
 
Old 05-06-2022, 06:00 PM   #24
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,784

Original Poster
Rep: Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434
UPDATE - Well I don't think this is quite great news but it is some progress toward trying to adapt OpenMediaVault to Slackware and it does prove to be fairly low on resource usage. It began by discovering that even though I have updates enabled in OMV, it did not inform me of any kernel updates. I had to do that manually. So, now I've upgraded from the 4.4 kernel to the 5.9 kernel and RAID mounts just fine so it WAS the older kernel BTRFS module that was out of date, which makes sense since btrfs is evolving very quickly. I will actually be glad (I think) when ZFS becomes more common in Linux but that's another project.

OK so first off, mralk3, since I don't know diddly about apt-get I didn't know how to discover what updates actually are available, whether it would be possible to build a newer kernel perhaps based on the AarchSlackware kernel config, so in order to not spend weeks learning more Debian stuff I won't use much, I attempted to install a GUI on OpenMediaVault. It wouldn't let me install KDE or even Xfce so I was forced to install Gnome which I really don't care for, but it did help a wee bit. Now I've disabled it but of course some requirements are still running. Despite that, running htop shows an average of ~3% CPU usage and about 167MB of 4G of RAM usage while in Multi-User (basically like runlevel 3 in Slack) but also connected via the web interface on my Main PC. So, I think, not too shabby. Let me know if you think that's not reasonable resource usage for RockPro64. It feels good, especially after the kernel upgrade
.
It is running pretty damned snappy so I'm going to continue trying to adapt the Web Login and function to Slackware. Wish me good fortune.

Last edited by enorbet; 05-06-2022 at 06:45 PM.
 
Old 05-06-2022, 08:54 PM   #25
mralk3
Slackware Contributor
 
Registered: May 2015
Distribution: Slackware
Posts: 1,900

Rep: Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050
That is a decent resource allocation. I have never used open media vault so I can't say for sure. My RockPro idles at around 180MB of RAM. I have other things running on it besides NFS like OSSEC, caching DNS for my LAN, distccd, and a quake 3 server with bots. I plan to migrate all those other services to another machine and run them in containers.
 
Old 05-07-2022, 10:02 PM   #26
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,784

Original Poster
Rep: Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434
Just a quick update, mralk3

The new Uboot you created works a treat! Today I received a new eMMC and 2 x top notch MicroSDs. Basically Slackware still shows but everything boots. I can swap eMMCs or MicroSDs and all of them work even when they have Grub2 menues, and Slackware now has real, selective multiboot.

One of the new systems I tried was OpeSuse Tumbleweed server and added Cockpit. It was easy to setup and web login and administration works very well. It is odd compared to OpenMediaVault in terms of resource usage, a tradeoff. In similar conditions to the above mention ~3% CPU and ~167MB, Suse shows 0% CPU at idle and 300MB RAM... easy on CPU a bit rough on RAM.

I'll be trying others. I'd like to find a TrueNAS ported for ARM at least to compare BTRFS to ZFS.
Attached Thumbnails
Click image for larger version

Name:	Tumbleweed-Aartch64.jpg
Views:	20
Size:	242.1 KB
ID:	38867  

Last edited by enorbet; 05-07-2022 at 10:12 PM.
 
1 members found this post helpful.
Old 05-08-2022, 11:20 PM   #27
mralk3
Slackware Contributor
 
Registered: May 2015
Distribution: Slackware
Posts: 1,900

Rep: Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050
Quote:
Originally Posted by enorbet View Post
Just a quick update, mralk3

The new Uboot you created works a treat! Today I received a new eMMC and 2 x top notch MicroSDs. Basically Slackware still shows but everything boots. I can swap eMMCs or MicroSDs and all of them work even when they have Grub2 menues, and Slackware now has real, selective multiboot.
I am glad it works! The Slackware logo is baked into the u-boot binary when compiled. We weren't going to address multi booting other OS's, but editing extlinux.conf is fairly quick and easy. It's functions are well documented within the file.
 
Old 05-09-2022, 11:40 AM   #28
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,784

Original Poster
Rep: Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434
Did you see the attached screenie of cockpit? Despite being very comprehensive it's resource usage as you noted is quite conservative. However I suspect I will be working a very long time to get a package built for Slackware as it has several dependencies not included in any debs or rpms I've seen. It;s gonna take awhile.
 
Old 05-10-2022, 10:56 AM   #29
mralk3
Slackware Contributor
 
Registered: May 2015
Distribution: Slackware
Posts: 1,900

Rep: Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050
Quote:
Originally Posted by enorbet View Post
Did you see the attached screenie of cockpit? Despite being very comprehensive it's resource usage as you noted is quite conservative. However I suspect I will be working a very long time to get a package built for Slackware as it has several dependencies not included in any debs or rpms I've seen. It;s gonna take awhile.
Yes. I have not used cockpit before. I am fairly proficient at programming Ruby web applications. I may make a sort of stripped down version of cockpit for personal use. Login form, a dash with sensor statistics, a way to check important logs, a page to control services, some sort of interface with smartd, and that is all I think I would need. I already wrote most of what I need and can borrow from other old projects I've made. The rest of what is needed can be done from the command line or serial console.

Although, it would be nice to handle software updates and have terminal window built in to the browser. Say you accidentally lock yourself out of SSH with iptables, or some similar scenario.
 
Old 05-10-2022, 12:59 PM   #30
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,784

Original Poster
Rep: Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434
Lately I've learned a fair bit about the web interface from messing with Suse Tubleweed w/ Cockpit but it is a struggle mostly because I have to lookup everything for systemd protocols and commands. Some stuff translates though. However, after getting repeated "access denied" errors trying to mount server shares on my client box and having no luck discovering why, I figured my best bet was to go back into Slackware and just mount the share of the RAID locally via ssh, and create an entry for the share in Dolphin on my client Main box.

For some #**!!** reason mounting no longer works and I'm getting "access denied" on Slackware as well! Grrrrr. I've checked hosts, host.allow, exports, etc and even tried adding a temporary "insecure" to exports and still get denied. I must be overtired and should prolly quit for awhile and come back later. I just wanna be able to drag and drop selected files/directories as well as rsync. It did work and now it doesn't. Nothin' I hate worse than inconsistencies and intermittent gremlins.

Hope your day is going better than mine.
 
1 members found this post helpful.
  


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
RockPro64 RK3399 (aarch64) sndwvs slarm64 11 03-25-2024 01:11 PM
Slackware AArch64 - RockPro64 drmozes Slackware - ARM 20 12-30-2021 09:37 AM
Installing Slackware AArch64 on the RockPro64 Exaga Slackware - ARM 3 12-09-2021 03:18 AM
[SOLVED] ROCKPro64 RK3399 (aarch64) sndwvs Slackware - ARM 36 12-07-2021 09:24 AM

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

All times are GMT -5. The time now is 11:32 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
Open Source Consulting | Domain Registration