LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 06-19-2019, 04:06 PM   #1
Tonus
Member
 
Registered: Jan 2007
Location: Paris, France
Distribution: Slackware-current
Posts: 493
Blog Entries: 3

Rep: Reputation: 132Reputation: 132
Rpi3 installed kernel headers :(


Hi all,

Since I do not often have to deal with my Pi 3 (only personal and basic use), I totally forgot how to perform upgrades.

I upgraded 14.2 to the latest using slackpkg via ssh, but kernel-headers.
Rebooted and could not find my USB thumb drive (not showing with lsblk).
Ok, I compiled and installed new kernel using this https://www.raspberrypi.org/documentation/linux/kernel/building.md
as said here http://docs.slackware.com/howtos:hardware:arm:raspberrypi3

Ultimately, had a doubt : installed kernel headers. Busted. Can't boot anymore.

Do I have a simple way to modify the SD card on my laptop or am I good to go with fresh install?

(I'd prefer to fix it since I am sure I would miss something if I try to use the config backups for ssh, apache, owncloud, fail2ban and so on...)

Any help would be greatly appreciated!
 
Old 06-20-2019, 04:20 AM   #2
Penthux
Member
 
Registered: Dec 2008
Location: Middlesbrough, UK
Distribution: Slackware
Posts: 258

Rep: Reputation: 74
Quote:
Originally Posted by Tonus View Post
Ultimately, had a doubt : installed kernel headers. Busted. Can't boot anymore.

Do I have a simple way to modify the SD card on my laptop or am I good to go with fresh install?

(I'd prefer to fix it since I am sure I would miss something if I try to use the config backups for ssh, apache, owncloud, fail2ban and so on...)

Any help would be greatly appreciated!
Hi Tonus,

Backup all the files in your /boot directory first.

Easy attempt at a quick fix... download boot-firmware package and copy the files over to your microSD card: http://sarpi.fatdog.eu/index.php?p=downloads

You might want to grab the kernel package too. Whenever I have issues booting the rpis this usually works to get me to a point where I can work on the system.

Let me know if you have any further problem(s).

Last edited by Penthux; 06-20-2019 at 04:23 AM. Reason: typo
 
Old 06-20-2019, 10:15 AM   #3
drmozes
Slackware Contributor
 
Registered: Apr 2008
Location: Surrey, England
Distribution: Slackware
Posts: 823

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Btw - upgrading, installing or removing the kernel-headers package alone, shouldn't have any effect on the ability to boot - only to compile some software.
 
Old 06-20-2019, 10:39 AM   #4
Penthux
Member
 
Registered: Dec 2008
Location: Middlesbrough, UK
Distribution: Slackware
Posts: 258

Rep: Reputation: 74
Quote:
Originally Posted by Tonus View Post
Ok, I compiled and installed new kernel using this https://www.raspberrypi.org/document...el/building.md
Just to satisfy curiosity, did you cross-compile the kernel you built?

Quote:
Originally Posted by drmozes View Post
Btw - upgrading, installing or removing the kernel-headers package alone, shouldn't have any effect on the ability to boot - only to compile some software.
I'm assuming it's a bum kernel, that or the firmware is FUBAR.

Last edited by Penthux; 06-20-2019 at 10:47 AM. Reason: typo x2
 
Old 06-20-2019, 05:42 PM   #5
Tonus
Member
 
Registered: Jan 2007
Location: Paris, France
Distribution: Slackware-current
Posts: 493

Original Poster
Blog Entries: 3

Rep: Reputation: 132Reputation: 132
Rpi3 installed kernel headers :(

I can't try to fix that right now. Will have to wait a bit 😑

Thank you both.

@drmozes That's almost why I did the upgrade (if it's shown while there's no kernel package, it couldn't be that bad)

@Penthux I compiled it on the rpi3 (everything done as root but I can't see why it could harm)
 
Old 06-20-2019, 07:00 PM   #6
Penthux
Member
 
Registered: Dec 2008
Location: Middlesbrough, UK
Distribution: Slackware
Posts: 258

Rep: Reputation: 74
Quote:
Originally Posted by Tonus View Post
@Penthux I compiled it on the rpi3 (everything done as root but I can't see why it could harm)
I have to be completely honest and admit I've only ever used those official RPi Documentation pages for specific information and reference, as and when I needed it. I've never actually gone through the whole process of following the instructions within. If I find some time to waste I might just try their guides to see how much of a headache it gives me.
 
Old 06-24-2019, 05:26 PM   #7
Tonus
Member
 
Registered: Jan 2007
Location: Paris, France
Distribution: Slackware-current
Posts: 493

Original Poster
Blog Entries: 3

Rep: Reputation: 132Reputation: 132
Thanks for your replies.

Quote:
Originally Posted by Penthux View Post

Hi Tonus,

Backup all the files in your /boot directory first.

Easy attempt at a quick fix... download boot-firmware package and copy the files over to your microSD card: http://sarpi.fatdog.eu/index.php?p=downloads

You might want to grab the kernel package too. Whenever I have issues booting the rpis this usually works to get me to a point where I can work on the system.

Let me know if you have any further problem(s).
So did that with quite no luck. Kernel might be borked.

The green light seems to flash ok but I can't ssh to the pi...

Might have to investigate how to manually put there the kernel I've downloaded...

Last edited by Tonus; 06-24-2019 at 05:28 PM.
 
Old 06-27-2019, 01:39 AM   #8
Penthux
Member
 
Registered: Dec 2008
Location: Middlesbrough, UK
Distribution: Slackware
Posts: 258

Rep: Reputation: 74
Quote:
Originally Posted by Tonus View Post
Thanks for your replies.

So did that with quite no luck. Kernel might be borked.

The green light seems to flash ok but I can't ssh to the pi...

Might have to investigate how to manually put there the kernel I've downloaded...
The kernel, and boot-firmware, needs to be in your /boot directory.
 
Old 07-03-2019, 03:41 PM   #9
Tonus
Member
 
Registered: Jan 2007
Location: Paris, France
Distribution: Slackware-current
Posts: 493

Original Poster
Blog Entries: 3

Rep: Reputation: 132Reputation: 132
Rpi3 installed kernel headers :(

I tested with old kernels with no luck for ssh but it actually boots : I have plugged it to a TV screen and it shows errors usb related (where my /home used to be.
Unfortunately I don't have any TV or usb keyboard to deal with that atm. Still have to check if the usb drive fs is altered.

I'll soon be able to fix. Or / and go with the new rpi4 (on its way :-) )

Thanks again, I'll write back here how it goes.
 
Old 07-10-2019, 02:17 AM   #10
Tonus
Member
 
Registered: Jan 2007
Location: Paris, France
Distribution: Slackware-current
Posts: 493

Original Poster
Blog Entries: 3

Rep: Reputation: 132Reputation: 132
Rpi3 installed kernel headers :(

It seems that my usb thumb drive where I had my home directory is dead
Not even recognized by my laptop (lsblk shows nothing). I wonder why and how I could try to recover some of the files on it.
Shall I do something special in fstab to have the next one last longer?
 
Old 07-10-2019, 05:21 AM   #11
Penthux
Member
 
Registered: Dec 2008
Location: Middlesbrough, UK
Distribution: Slackware
Posts: 258

Rep: Reputation: 74
Quote:
Originally Posted by Tonus View Post
It seems that my usb thumb drive where I had my home directory is dead
Not even recognized by my laptop (lsblk shows nothing). I wonder why and how I could try to recover some of the files on it.
Shall I do something special in fstab to have the next one last longer?
Some USB storage devices are better designed than others. I can't advise you on which USB thumb drives are more durable or have a greater longevity. I use PNY and Kingston branded USB memory sticks, but not for storing file systems or important data on.

Some say don't use a /swap file as that really decreases the life of the digital storage medium. Some say allowing the USB thumb drives ro run hot will also decrease their lifespan.

I'd say a better solution would be to use an external HDD or SSD where they're not as prone to dying on you when you least expect it.

Hope this helps.
 
  


Reply


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
AArch64 kernel and modules to install Slackware ARM current on the RPi3 Exaga Slackware - ARM 27 02-07-2017 10:45 AM
Can''t connect to rpi3, slackware installation image by Fatdog Reedych Slackware - ARM 4 08-20-2016 12:26 PM
Glibc for rpi3 Tonus Slackware - ARM 2 04-20-2016 05:06 PM
[kernel-headers-3.2.45-x86-3] OR [kernel-headers-3.2.45_smp-x86-3]? Sefid par Slackware 3 07-24-2013 09:59 AM

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

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