LinuxQuestions.org
Help answer threads with 0 replies.
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 12-26-2022, 07:33 PM   #1
glorsplitz
Senior Member
 
Registered: Dec 2002
Distribution: slackware!
Posts: 1,308

Rep: Reputation: 368Reputation: 368Reputation: 368Reputation: 368
Pinebook Pro conundrum workaround!?!


hello all

I got my pinebookpro to boot from nvme without sd card.

I had time over Christmas to play around and I just got it done and need to go to bed.

I took notes and will try to post later what I did.

One question I've had is without "/dev/mmcblk1p1 on /boot" might there be any system upgrade issues as I have gone off the beaten path?

Quote:
Filesystem 1K-blocks Used Available Use% Mounted on
tmpfs 32768 864 31904 3% /run
devtmpfs 8192 0 8192 0% /dev
/dev/nvme0n1p3 239864508 16295156 211312212 8% /
tmpfs 1980248 0 1980248 0% /dev/shm
cgroup_root 8192 0 8192 0% /sys/fs/cgroup
/dev/nvme0n1p1 996780 328100 599868 36% /boot
tmpfs 396048 0 396048 0% /run/user/0
/dev/nvme0n1p2 is swap

Last edited by glorsplitz; 12-26-2022 at 07:34 PM.
 
Old 12-27-2022, 01:27 AM   #2
jloco
Member
 
Registered: Apr 2016
Location: Detroit, MI
Distribution: Slackware
Posts: 180

Rep: Reputation: 148Reputation: 148
Offhand I'd suggest manually dealing with the kernel-armv8 package when there are updates. upgradepkg breaks my system on emmc, and I'd assume it'd do the same for you. My /boot is FAT format and it want's to create symlinks, which it cannot do, and it will wreck your delicate boot situation, so I suggest to manually deal with said package.

I also don't run the os-initrd-mgr utility as it as well breaks the system. I haven't looked into why, but it likely doesn't like something I've done. Of course, this is all dependent on how you did things, your mileage may vary, of course.
 
1 members found this post helpful.
Old 12-27-2022, 10:19 AM   #3
mralk3
Slackware Contributor
 
Registered: May 2015
Distribution: Slackware
Posts: 1,900

Rep: Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050
How are your partitions labeled? The installer is designed to label partitions (SLKroot SLKboot) but may be incorrect on your machine. The kernel package and the os-initrd-mgr expect there to be labels and neither cares about what type of boot medium. Just make sure that the disk labels are accurate so both tools can find the mount points.

The os-initrd-mgr expects the find the ramdisk on /boot (SLKboot). You can use the "fatlabel" command to label your /boot as "SLKboot" and the "e2label" command to label your root partition "SLKroot".

The last thing to adjust is the boot loader. Make sure your append line in "extlinux.conf" in /boot/extlinux/ has "root=LABEL=SLKroot" and "rootfstype=ext4". Although both can be adjusted accordingly as well. For example I have a f2fs root file system that works, just as long as its labeled SLKroot.
 
2 members found this post helpful.
Old 12-27-2022, 02:05 PM   #4
jloco
Member
 
Registered: Apr 2016
Location: Detroit, MI
Distribution: Slackware
Posts: 180

Rep: Reputation: 148Reputation: 148
Quote:
Originally Posted by mralk3 View Post
How are your partitions labeled? The installer is designed to label partitions (SLKroot SLKboot) but may be incorrect on your machine. The kernel package and the os-initrd-mgr expect there to be labels and neither cares about what type of boot medium. Just make sure that the disk labels are accurate so both tools can find the mount points.

The os-initrd-mgr expects the find the ramdisk on /boot (SLKboot). You can use the "fatlabel" command to label your /boot as "SLKboot" and the "e2label" command to label your root partition "SLKroot".

The last thing to adjust is the boot loader. Make sure your append line in "extlinux.conf" in /boot/extlinux/ has "root=LABEL=SLKroot" and "rootfstype=ext4". Although both can be adjusted accordingly as well. For example I have a f2fs root file system that works, just as long as its labeled SLKroot.
I most definitely do not have labels on my partitions, as I do remember removing them from my fstab and extlinux.conf. I recall the use-case for labels to be for when the hardware has a possibility of changing the names of nodes often and confusingly, and using a label was a way to prevent boot issues. Though I've never had hardware that did such things, it seems it'd be in my best interest to add them back. Thank you!
 
2 members found this post helpful.
Old 12-27-2022, 07:34 PM   #5
glorsplitz
Senior Member
 
Registered: Dec 2002
Distribution: slackware!
Posts: 1,308

Original Poster
Rep: Reputation: 368Reputation: 368Reputation: 368Reputation: 368
I was hoping you guys would reply, thanks!

Quote:
Originally Posted by mralk3 View Post
How are your partitions labeled?
Quote:
/dev/nvme0n1p1: LABEL="SLKboot" UUID="b48a88a5-dae4-4133-a7a3-90f4d4a25293" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="87d59c5e-01"
/dev/nvme0n1p2: LABEL="SLKswap0" UUID="d4d42ff6-ee6f-449c-a8ee-f85d9286037c" TYPE="swap" PARTUUID="87d59c5e-02"
/dev/nvme0n1p3: LABEL="SLKroot" UUID="4d311a77-c26c-46d9-92ac-9d620babe8a1" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="87d59c5e-03"
After slackwarearm was installed I moved /boot to root of /dev/nvme0n1p1 then
Code:
/usr/bin/e2label /dev/nvme0n1p1 "SLKboot"
.
Created extlinux/extlinux.conf
as for extlinux.conf the links didn't work but this did
LINUX /Image-armv8-5.19.16
INITRD /initrd-armv8-5.19.16

and maybe root=UUID... from the alarm install link below
Quote:
APPEND earlyprintk rootfstype=ext4 root=UUID=4d311a77-c26c-46d9-92ac-9d620babe8a1 console=tty1
to get it to boot, I'd like to use what you said and what I had "root=LABEL=SLKroot" but it booted and I'm still shaking things out, I'm not sure if it booted by not using the links and UUID or just the links, I'm going to remove the UUID part and put root=LABEL=SLKroot back.

I followed this to get alarm installed, I did, and thought maybe this might be a way to get slackwarearm installed. Part of the document indicates flashing tow-boot which I did, this I think is what made a lot of my fooling around possible, that is, installing manjaro to emmc, doing the alarm dance, then the slackwarearm install.

I use manjaro to fool around with the nvme.

Last edited by glorsplitz; 12-27-2022 at 07:36 PM.
 
Old 12-27-2022, 08:25 PM   #6
mralk3
Slackware Contributor
 
Registered: May 2015
Distribution: Slackware
Posts: 1,900

Rep: Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050
FAT file systems do not support symbolic links. That is why u-boot could not find the kernel or ramdisk at "Image-armv8" or "initrd-armv8". What you have will work for now. Later a kernel upgrade will break it again. Creating one more thing to remember during a new installation.

On the flip side, this is why the Raspberry Pi installer uses the two separate partitions. The Raspberry Pi firmware expects to be loaded off of a FAT partition. The RockPro64 and PineBook Pro do not need that done. A single ext4 partition is all that is necessary.

This may or may not be in line with how Tow-boot functions. I recommend sticking with U-boot for your next installation. The one that comes with the Slackware Aarch64 installer.

EDIT:I forgot to mention. You can boot the Slackware ARM installer and use it to recover your system just like a live DVD. The SA64 version of U-boot is stored in the /boot/platform directory. So you can copy that to your SPI flash quite easily. I leave the installer on my SD card to boot for when I run into trouble.

Last edited by mralk3; 12-27-2022 at 08:30 PM.
 
1 members found this post helpful.
Old 12-27-2022, 09:53 PM   #7
jloco
Member
 
Registered: Apr 2016
Location: Detroit, MI
Distribution: Slackware
Posts: 180

Rep: Reputation: 148Reputation: 148
Quote:
Originally Posted by mralk3 View Post
FAT file systems do not support symbolic links. That is why u-boot could not find the kernel or ramdisk at "Image-armv8" or "initrd-armv8". What you have will work for now. Later a kernel upgrade will break it again. Creating one more thing to remember during a new installation.
What I did for my "install" was taking the pre-installed manjaro disk as it was and gently melting a chroot slackware install on top of it after a format of the ext4 partition. For whatever reason manjaro ships the /boot partition on a FAT partition, so I just put mine there because I wasn't sure if the emmc needed it or not (and my previous experience with rpi's told me to just leave it). It's no issue to me to fix the symlinks manually, its just remembering what I have to do on aarch64 vs x86. My brain starts to mix and match processes since the systems are almost 100% identical to operate (as they should be).

Quote:
Originally Posted by mralk3 View Post
This may or may not be in line with how Tow-boot functions. I recommend sticking with U-boot for your next installation. The one that comes with the Slackware Aarch64 installer.
AFAIK tow-boot is u-boot. The site claims thus so, and the devs almost had a heart attack when I referred to them as different things. The only difference is tow-boot is a prettier option to use, and offers the menu to choose the boot medium. But internally, it offers the same hardware compatibility and functionality as u-boot. That said, if I do a re-install, I'll have to try the shipped u-boot to see how it operates for myself.

Quote:
Originally Posted by mralk3 View Post
EDIT:I forgot to mention. You can boot the Slackware ARM installer and use it to recover your system just like a live DVD. The SA64 version of U-boot is stored in the /boot/platform directory. So you can copy that to your SPI flash quite easily. I leave the installer on my SD card to boot for when I run into trouble.
I purposely kept the installer image on my bootdisk, for this "just-in-case" scenario, I know it'll be a lifesaver someday!

Last edited by jloco; 12-28-2022 at 03:26 PM. Reason: typo
 
1 members found this post helpful.
Old 12-28-2022, 03:24 PM   #8
mralk3
Slackware Contributor
 
Registered: May 2015
Distribution: Slackware
Posts: 1,900

Rep: Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050
In regards to tow-boot: I have no experience with it. BUT, if the stock u-boot does not work on your Pinebook Pro, maybe we should version bump to a more recent u-boot. We are running u-boot 2022.04.
 
Old 12-28-2022, 03:30 PM   #9
jloco
Member
 
Registered: Apr 2016
Location: Detroit, MI
Distribution: Slackware
Posts: 180

Rep: Reputation: 148Reputation: 148
The latest tow-boot release is tagged 2021.10-005, so I'll assume that what Slackware is shipping is actually better hardware support wise. I'm not sure why they lag so far behind with keeping sync with u-boot though.
 
Old 12-28-2022, 06:50 PM   #10
glorsplitz
Senior Member
 
Registered: Dec 2002
Distribution: slackware!
Posts: 1,308

Original Poster
Rep: Reputation: 368Reputation: 368Reputation: 368Reputation: 368
I took out UUID from the extlinux.conf append and used "root=LABEL=SLKroot"
and left these lines as is
LINUX /Image-armv8-5.19.16
INITRD /initrd-armv8-5.19.16
it did not boot

I put back UUID and made these lines as they were
LINUX /Image-armv8
INITRD /initrd-armv8
it did boot.

only thing different now is UUID instead of "root=LABEL=SLKroot"

btw, boot drive is ext4 not fat

as far as doing things down the road having to remember, I do the following on my desktop
mkinitrd_command_generator.sh --lilo
mkinitrd_command_generator.sh --run
edit lilo
/sbin/lilo -v

and I do couple things when there's new kernel on one elilo install

I'll post back after having some time to tweak and break things.
 
  


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
[SOLVED] Pinebook Pro conundrum justwantin Slackware - ARM 46 12-10-2022 10:04 AM
LXer: Linux 5.2, Debian 10, Pinebook Pro, Mageia, Whonix, GRUB, Valve, Zorin, Mint | This Week in Linux 73 LXer Syndicated Linux News 0 07-10-2019 06:43 AM
Video : New PINE64 Products. PineBook Pro, PinePhone, PineCam, PineH64 NicoD SBC Linux - Embedded & Single-board computer 2 02-06-2019 04:37 PM

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

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