LinuxQuestions.org
Review your favorite Linux distribution.
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 10-15-2020, 10:40 AM   #1
Desiderius
Member
 
Registered: Jun 2017
Location: France
Distribution: Slackware
Posts: 151

Rep: Reputation: Disabled
RPI not booting with SARPI installer


Hi

On Slackware current I have just downloaded the installer from SARPI :

sarpi4-installer_slackcurrent_08Oct20_sp1.img.xz

put in in a FAT32 partition ( the first partition of my SD card ; the other partitions are formatted under f2fs for /home and a partition forv swap ) by making

xz -dc sarpi4-installer_slackcurrent_08Oct20_sp1.img.xz | dd of=/dev/sda bs=65536

check with fdisk -l ( also check the MD5 sum )

But when starting up, my Raspberry PI4 complains about the FAT partition :

FAT volume not supported
lba: 2048 oem:' ' volume ' '
rsc : 49294 fat-sectors : 47366 c-count 0 c_size 216 rdir 0 r-sec 0

many times and the boot stops !

I have tried to reformat the partition and reput the installer but it is the same result

Where is the problem ?
 
Old 10-15-2020, 12:13 PM   #2
Exaga
SARPi Maintainer
 
Registered: Nov 2012
Distribution: Slackware AArch64
Posts: 1,043

Rep: Reputation: 665Reputation: 665Reputation: 665Reputation: 665Reputation: 665Reputation: 665
Quote:
Originally Posted by Desiderius View Post
Hi

But when starting up, my Raspberry PI4 complains about the FAT partition :

FAT volume not supported
lba: 2048 oem:' ' volume ' '
rsc : 49294 fat-sectors : 47366 c-count 0 c_size 216 rdir 0 r-sec 0

many times and the boot stops !

I have tried to reformat the partition and reput the installer but it is the same result

Where is the problem ?
I performed the exact same procedure as you did as you have described using a 16GB microSD card on a RPi4. here are my results:

Code:
root@torq:/tmp# xz -dc sarpi4-installer_slackcurrent_08Oct20_sp1.img.xz | dd of=/dev/sdb bs=65536
1+20472 records in
1+20472 records out
167772160 bytes (168 MB, 160 MiB) copied, 23.3295 s, 7.2 MB/s
root@torq:/tmp# fdisk -l /dev/sdb
Disk /dev/sdb: 14.91 GiB, 16009658368 bytes, 31268864 sectors
Disk model: STORAGE DEVICE
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x01f4b6fe

Device     Boot Start    End Sectors   Size Id Type
/dev/sdb1  *       32 312447  312416 152.5M  c W95 FAT32 (LBA)

# After booting the new SD card image 

login as: root
root@192.168.1.144's password:

Linux 5.4.70-v7l-sarpi4.

If you're upgrading an existing Slackware system, you might want to
remove old packages before you run 'setup' to install the new ones. If
you don't, your system will still work but there might be some old files
left laying around on your drive.

Just mount your Linux partitions under /mnt and type 'pkgtool'. If you
don't know how to mount your partitions, type 'pkgtool' and it will tell
you how it's done.

To partition your hard drive(s), use 'cfdisk' or 'fdisk'.
To start the main installation (after partitioning), type 'setup'.

root@slackware:~# fdisk -l
Disk /dev/mmcblk0: 14.91 GiB, 16009658368 bytes, 31268864 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x01f4b6fe

Device         Boot Start    End Sectors   Size Id Type
/dev/mmcblk0p1 *       32 312447  312416 152.5M  c W95 FAT32 (LBA)
root@slackware:~# blkid
/dev/mmcblk0p1: LABEL_FATBOOT="rpi4-boot" LABEL="rpi4-boot" UUID="48DD-82A4" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="01f4b6fe-01"
root@slackware:~# lsblk
NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
mmcblk0     179:0    0  14.9G  0 disk
`-mmcblk0p1 179:1    0 152.5M  0 part
root@slackware:~#
For me it's working as intended. No problems whatsoever.
 
Old 10-16-2020, 02:09 AM   #3
Desiderius
Member
 
Registered: Jun 2017
Location: France
Distribution: Slackware
Posts: 151

Original Poster
Rep: Reputation: Disabled
Thanks for your answer @Exaga

I see some differences between our two "experiments" :

1) You have a 16 GB micro SD card ; mine is a 64 GB Sandisk micro SD card

Raspberry says it can accept up to 64 GB but ...

2) You have only one FAT 32 partition

I have this structure on my micro SD card :

p1 : Primary : FAT 32 partition
P2 : Extended
=> P5 : Linux Swap
=> P6 : F2FS partition

Does the RPI need only one FAT partition ?

3) I have plugged a mini USB key into one of the USB3 slots of the RPI

It is a ne key and I have not looked at its filesytem ; I suppose it is exFAT

But the RPI does not try to boot on this mini USB key ?

I think that point 2 is the most interesting to investigate

In any case, I will try to put Raspberry PI OS on the micro SD card in only one FAT 32 partition and try to boot :

- if it boots the problem is really coming from 2
_ id it dose not boot, the problem is the micro SD card
 
Old 10-16-2020, 04:15 AM   #4
Exaga
SARPi Maintainer
 
Registered: Nov 2012
Distribution: Slackware AArch64
Posts: 1,043

Rep: Reputation: 665Reputation: 665Reputation: 665Reputation: 665Reputation: 665Reputation: 665
Quote:
Originally Posted by Desiderius View Post
Does the RPI need only one FAT partition ?
The reason why there is only one [FAT] partition in the SARPi images is because the Raspberry Pi won't boot without it. Otherwise there would be no [zero] partitions. Unlike Raspbian where the partitions are already created and part of the disk image, it's not the same for the Slackware ARM installer images I create with SARPi. I want users to be forced to create their own partitions before running Slackware 'setup' to suit their individual requirements, rather than decide it for them. This mentality is not limited to setting up partitions but is a general theme I maintain in-line with the 'Slackware way' - or as close as humanly possible. By doing so I hope to offer new users some knowledge and experience they might not otherwise attain, and open doors to areas that are not always addressed in other Linux distros. Rather than a pre-installed image, I want Slackware ARM on a Raspberry Pi users to be exposed to the FULL experience of installing and configuring the Slackware ARM system. Warts and all!

So, on to your FAT partition issue. The /boot [FAT] partition has to be a certain filesystem type in order to boot. The first rule is that it _MUST_ be FAT32 because that's what the proprietary bootloader firmware is designed to work with. If it's anything else it probably won't work. You may use 'fdisk' or 'cfdisk' commands to check and change the filesystem type. If your FAT partition is not type 'b W95 FAT32 ' or 'c W95 FAT32 (LBA)' then this is where the cause of the problem may be. NB: you might also be successful booting with a type '7 HPFS/NTFS/exFAT' filesystem.

I'm not sure if it matters that the FAT partition is the first on the list before all other partitions but I always make sure it is because I know it works. I also do not ever create more than one FAT partition, with /boot as the only FAT partition. All other partitions are usually EXT4 filesystem type.
 
1 members found this post helpful.
Old 10-16-2020, 04:48 AM   #5
Desiderius
Member
 
Registered: Jun 2017
Location: France
Distribution: Slackware
Posts: 151

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Exaga View Post

So, on to your FAT partition issue. The /boot [FAT] partition has to be a certain filesystem type in order to boot. The first rule is that it _MUST_ be FAT32 because that's what the proprietary bootloader firmware is designed to work with. If it's anything else it probably won't work. You may use 'fdisk' or 'cfdisk' commands to check and change the filesystem type. If your FAT partition is not type 'b W95 FAT32 ' or 'c W95 FAT32 (LBA)' then this is where the cause of the problem may be. NB: you might also be successful booting with a type '7 HPFS/NTFS/exFAT' filesystem.

I'm not sure if it matters that the FAT partition is the first on the list before all other partitions but I always make sure it is because I know it works. I also do not ever create more than one FAT partition, with /boot as the only FAT partition. All other partitions are usually EXT4 filesystem type.
I have created this partition of type FAT32 by gparted but after "dding" the SARPI installer on partition 1, I have run "fdisk -l" to see the result of the command :

I saw :

/dev/mmc...p1 * b W95 FAT32

So this partition is well formatted in FAT 32 : why the RPI does not see it ?

Is it related with the 'extended partition" ? Perhaps the firmware does not recognize it and does know where the FAT 32 is ending ?

I can try to make only primary partitions
 
Old 10-16-2020, 05:04 AM   #6
Exaga
SARPi Maintainer
 
Registered: Nov 2012
Distribution: Slackware AArch64
Posts: 1,043

Rep: Reputation: 665Reputation: 665Reputation: 665Reputation: 665Reputation: 665Reputation: 665
Quote:
Originally Posted by Desiderius View Post
I have created this partition of type FAT32 by gparted but after "dding" the SARPI installer on partition 1, I have run "fdisk -l" to see the result of the command :

I saw :

/dev/mmc...p1 * b W95 FAT32

So this partition is well formatted in FAT 32 : why the RPI does not see it ?

Is it related with the 'extended partition" ? Perhaps the firmware does not recognize it and does know where the FAT 32 is ending ?

I can try to make only primary partitions
If you would post your full partition list it may reveal something I'm not apprised of at this time. Really not sure why you're having problems with the FAT partition.

Code:
~# fdisk -l
I create primary partitions only for /boot, /swap and root /. I never create extended partitions as I have no use for them. You might like to do some testing to see what works and post your findings here. I'm sure others would benefit from any experience and knowledge you care to share in this area.

Last edited by Exaga; 10-16-2020 at 05:07 AM. Reason: raindrops keep falling on my head
 
Old 11-09-2020, 01:56 PM   #7
Desiderius
Member
 
Registered: Jun 2017
Location: France
Distribution: Slackware
Posts: 151

Original Poster
Rep: Reputation: Disabled
Kernel Panic

Finally formatting my SD card with Rufus, I have succedded to boot on the RPI4.

I have well booted and after creating :

- a swap partition with 512 Mo
- an F2FS partition for the system

I have launched the Slackware installation following the instructions of the SARPI web site.

Everything works fine including the suppression of the kernel and kernel modules, installation of the modified kernel and kernel modules
suppression of the initrd.gz , unmouting of the USB key and ... reboot

At the beginning of the boot, all the CPUs are stopping and there is a kernel panic !!!!!!!! ( see attached image )

What is happening ?


Quote:
Originally Posted by Exaga View Post
If you would post your full partition list it may reveal something I'm not apprised of at this time. Really not sure why you're having problems with the FAT partition.

Code:
~# fdisk -l
I create primary partitions only for /boot, /swap and root /. I never create extended partitions as I have no use for them. You might like to do some testing to see what works and post your findings here. I'm sure others would benefit from any experience and knowledge you care to share in this area.
Attached Thumbnails
Click image for larger version

Name:	IMG_20201109_203646.jpg
Views:	35
Size:	270.8 KB
ID:	34536  
 
Old 11-09-2020, 07:26 PM   #8
Exaga
SARPi Maintainer
 
Registered: Nov 2012
Distribution: Slackware AArch64
Posts: 1,043

Rep: Reputation: 665Reputation: 665Reputation: 665Reputation: 665Reputation: 665Reputation: 665
Quote:
Originally Posted by Desiderius View Post
At the beginning of the boot, all the CPUs are stopping and there is a kernel panic !!!!!!!! ( see attached image )

What is happening ?
No apologies for stating the obvious... and your root partition is AWOL. From your screenshot it looks like the kernel is fine but when it comes to loading the OS it can't find the root partition, where it should be located, and that's where it panics.

This error might be caused by any number of factors. Such as (but not limited to); the root partition does not exist, the root partition entry in /etc/fstab points to a different location or is in error, the 'root=' and 'rootfstype=' parameters in /boot/cmdline.txt file point to a different location or the rootfstype is not specified correctly and/either/or is in error, a setting in /boot/config.txt file is overriding the root partition setting. If the partition existed but there was no OS to load you would be receiving a different error.

So this one lies with the partition itself. Not with the OS. The kernel doesn't even try to load the OS because it can't find the root partition.

[EDIT] if you've followed the distructions on how to install Slackware ARM from the SARPi website correctly you would not be seeing this error. You've either done something extra to requirements or not done something required in order to produce this issue.

Last edited by Exaga; 11-09-2020 at 07:41 PM. Reason: Jaffa cakes required!
 
1 members found this post helpful.
Old 11-10-2020, 05:50 AM   #9
Desiderius
Member
 
Registered: Jun 2017
Location: France
Distribution: Slackware
Posts: 151

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Exaga View Post
No apologies for stating the obvious... and your root partition is AWOL. From your screenshot it looks like the kernel is fine but when it comes to loading the OS it can't find the root partition, where it should be located, and that's where it panics.

This error might be caused by any number of factors. Such as (but not limited to); the root partition does not exist, the root partition entry in /etc/fstab points to a different location or is in error, the 'root=' and 'rootfstype=' parameters in /boot/cmdline.txt file point to a different location or the rootfstype is not specified correctly and/either/or is in error, a setting in /boot/config.txt file is overriding the root partition setting. If the partition existed but there was no OS to load you would be receiving a different error.

So this one lies with the partition itself. Not with the OS. The kernel doesn't even try to load the OS because it can't find the root partition.

[EDIT] if you've followed the distructions on how to install Slackware ARM from the SARPi website correctly you would not be seeing this error. You've either done something extra to requirements or not done something required in order to produce this issue.
@Exaga I think I have found the origin of the problem : here is the cmdline.txt

dwc_otg.lpm_enable=0 console=tty1 nofont root=/dev/mmcblk0p3 rootfstype=ext4 rootwait ro

The filesystem was originally formatted in ext4 but I have reformatted it in f2fs !

Why this has not be rewritten in cmdline.txt I do not know but if I replace ext4 by f2fs it should work !

Last edited by Desiderius; 11-10-2020 at 10:33 AM. Reason: It works
 
Old 11-10-2020, 10:34 AM   #10
Desiderius
Member
 
Registered: Jun 2017
Location: France
Distribution: Slackware
Posts: 151

Original Poster
Rep: Reputation: Disabled
It was ! Now it works !
 
Old 11-10-2020, 04:43 PM   #11
Exaga
SARPi Maintainer
 
Registered: Nov 2012
Distribution: Slackware AArch64
Posts: 1,043

Rep: Reputation: 665Reputation: 665Reputation: 665Reputation: 665Reputation: 665Reputation: 665
Quote:
Originally Posted by Desiderius View Post
@Exaga I think I have found the origin of the problem : here is the cmdline.txt

dwc_otg.lpm_enable=0 console=tty1 nofont root=/dev/mmcblk0p3 rootfstype=ext4 rootwait ro

The filesystem was originally formatted in ext4 but I have reformatted it in f2fs !

Why this has not be rewritten in cmdline.txt I do not know but if I replace ext4 by f2fs it should work !
Yes and the most annoying and sad thing about this is... it's got absolutely nothing to do with "RPI not booting with SARPI installer". Even if it were remotely "SARPi installer" related, the installation guide advises ext4 filesystem type.

If you are going to make fundamental changes to the OS without fully understanding the implications then it will be wise and prudent to investigate the potential ramifications beforehand. Given that we all learn from our mistakes, let this be one of yours.
 
3 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
[SOLVED] Sarpi / Raspberry (RPi 3) - sound issue under 5.4.18-v7-arm eduardr Slackware - ARM 11 02-28-2020 04:12 AM
[SOLVED] Sarpi / Raspberry (RPi 3) - touchscreen input not working since kernel 5.4.x eduardr Slackware - ARM 9 02-13-2020 12:08 AM
SARPi - installer and packages for RPi 4 Exaga Slackware - ARM 2 06-28-2019 05:49 PM
SARPi website new URL - sarpi.co.uk Exaga Slackware - ARM 4 01-28-2018 06:36 PM

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

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