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-01-2022, 07:22 PM   #1
glorsplitz
Senior Member
 
Registered: Dec 2002
Distribution: slackware!
Posts: 1,308

Rep: Reputation: 368Reputation: 368Reputation: 368Reputation: 368
fdt_check_header() failed with -FDT_ERR_BADMAGIC - did something change?


I keep finding code related posts searching for subject message.

Was doing some ordinary things on banana pi pro when it kernel panic'd and won't boot.

see attached, this something to do with failing/failed sdcard, never had one fail.

Thanks
Attached Thumbnails
Click image for larger version

Name:	202205012007.jpg
Views:	277
Size:	198.6 KB
ID:	38836  
 
Old 05-02-2022, 08:29 AM   #2
mralk3
Slackware Contributor
 
Registered: May 2015
Distribution: Slackware
Posts: 1,900

Rep: Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050
A quick way to check is to insert the sd card into another computer. If it can be mounted and dmesg does not report errors.. it's something else.
 
Old 05-02-2022, 06:19 PM   #3
glorsplitz
Senior Member
 
Registered: Dec 2002
Distribution: slackware!
Posts: 1,308

Original Poster
Rep: Reputation: 368Reputation: 368Reputation: 368Reputation: 368
mralk3, thank you.

Yes that was one of my first thoughts, I'd say sdcard has a problem.

Quote:
mount /dev/sdc /mnt/tmp
mount: /mnt/tmp: wrong fs type, bad option, bad superblock on /dev/sdc, missing codepage or helper program, or other error.
Quote:
fdisk -l /dev/sdc
Disk /dev/sdc: 7.4 GiB, 7948206080 bytes, 15523840 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
Quote:
parted /dev/sdc
GNU Parted 3.4
Using /dev/sdc
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print
Error: /dev/sdc: unrecognised disk label
Model: Generic STORAGE DEVICE (scsi)
Disk /dev/sdc: 7948MB
Sector size (logical/physical): 512B/512B
Partition Table: unknown
Disk Flags:

Going to look through my install notes to see if possible to recreate sdcard contents on a different one.

mralk3 or anyone else, ever lose your pi sdcard and is possible to recover?
 
Old 05-02-2022, 06:57 PM   #4
glorsplitz
Senior Member
 
Registered: Dec 2002
Distribution: slackware!
Posts: 1,308

Original Poster
Rep: Reputation: 368Reputation: 368Reputation: 368Reputation: 368
looking for info, I see INSTALL_AllWinner_A20.TXT has been updated, this was document I used to install.

"2.5 Writing the U-Boot boot loader to the SD card", sounds promising and I did find what was probably last cmdline that was in use.

Now just gotta figure out how to get this altogether.

Something like, follow the above document "write the U-Boot image to the SD card", if cmdline lives there, use my last cmdline?

Last edited by glorsplitz; 05-02-2022 at 07:02 PM.
 
Old 05-02-2022, 07:35 PM   #5
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 glorsplitz View Post
looking for info, I see INSTALL_AllWinner_A20.TXT has been updated, this was document I used to install.

"2.5 Writing the U-Boot boot loader to the SD card", sounds promising and I did find what was probably last cmdline that was in use.

Now just gotta figure out how to get this altogether.

Something like, follow the above document "write the U-Boot image to the SD card", if cmdline lives there, use my last cmdline?
I do not have any 32bit ARM devices left because they were worn out from use over the years. But, last week I installed to a Orange Pi R1 (32 bit), and this week it is dead. The board became too hot and now it will not boot again. I did the installation by copying all the right files into the right locations on the boot disk, then installed via HTTP on my home LAN. This was because the installer requires more than the 256MB of RAM provided on the R1 board.

I followed the AllWinner H3 document. The A20 should be accurate and is not much different.
 
Old 05-10-2022, 12:13 AM   #6
drmozes
Slackware Contributor
 
Registered: Apr 2008
Distribution: Slackware
Posts: 1,543

Rep: Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313
Quote:
Originally Posted by glorsplitz View Post
looking for info, I see INSTALL_AllWinner_A20.TXT has been updated, this was document I used to install.

"2.5 Writing the U-Boot boot loader to the SD card", sounds promising and I did find what was probably last cmdline that was in use.

Now just gotta figure out how to get this altogether.

Something like, follow the above document "write the U-Boot image to the SD card", if cmdline lives there, use my last cmdline?
The SD card on the Banana Pi (if you follow the install docs) is only used to house U-Boot and its config, so you need to do dd the U-Boot SD image to a new SD card and boot the Banana Pi, as described in the installation doc.
Then step through the u-boot configuration lines. Do all of section 3.1's steps apart from last saveenv;reset one.
Move to step 5.0 and follow the u-boot configuration steps. If you followed the install docs exactly last time, you can paste in the lines directly from the doc; if not you can remember what you did or put the storage onto another machine to figure out the partition layout.
Once you're done, saveenv; reset and it should boot again.

You can back up the u-boot configuration file from the sdcard's fat partition once done.
 
Old 05-10-2022, 06:54 PM   #7
glorsplitz
Senior Member
 
Registered: Dec 2002
Distribution: slackware!
Posts: 1,308

Original Poster
Rep: Reputation: 368Reputation: 368Reputation: 368Reputation: 368
banana pi pro retired?

drmozes, thank you for replying.

I was doing some backups via ssh and just when I got done ssh locked up. Turned on banana monitor and it was kernel panic'd.
Tried to reboot, kept finding nothing to boot???

As you indicated, I tried to step through the instructions. Still would not boot with what looked like, from my notes, last cmdline u-boot I was using.

I tried to reinstall os, got to where to install os and there was no /dev/sd anything, this was ssd connected to banana pi pro sata power and sata data. Tried another ssd same way, no /dev/sd. Tried combination usb sata data power, got os installation rolling.

Came back half hour or so later, banana pi pro was off, now it seems faulty power supply might be real issue? Can't find where I got it.
 
Old 05-11-2022, 03:14 AM   #8
drmozes
Slackware Contributor
 
Registered: Apr 2008
Distribution: Slackware
Posts: 1,543

Rep: Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313
Quote:
Originally Posted by glorsplitz View Post
drmozes, thank you for replying.

I was doing some backups via ssh and just when I got done ssh locked up. Turned on banana monitor and it was kernel panic'd.
Tried to reboot, kept finding nothing to boot???

As you indicated, I tried to step through the instructions. Still would not boot with what looked like, from my notes, last cmdline u-boot I was using.

I tried to reinstall os, got to where to install os and there was no /dev/sd anything, this was ssd connected to banana pi pro sata power and sata data. Tried another ssd same way, no /dev/sd. Tried combination usb sata data power, got os installation rolling.

Came back half hour or so later, banana pi pro was off, now it seems faulty power supply might be real issue? Can't find where I got it.
My BPi's PSU also broke causing boot issues. I powered it from a USB power plug in the end.
 
1 members found this post helpful.
Old 05-11-2022, 06:58 PM   #9
glorsplitz
Senior Member
 
Registered: Dec 2002
Distribution: slackware!
Posts: 1,308

Original Poster
Rep: Reputation: 368Reputation: 368Reputation: 368Reputation: 368
T T T T, yes I saw those too.

Thanks for that, I was going to retire my banana pi, I'm NOT "going to do this at home", I'm going to look into other workarounds.

Will post back.
 
Old 05-12-2022, 08:06 AM   #10
drmozes
Slackware Contributor
 
Registered: Apr 2008
Distribution: Slackware
Posts: 1,543

Rep: Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313
Quote:
Originally Posted by glorsplitz View Post
T T T T, yes I saw those too.

Thanks for that, I was going to retire my banana pi, I'm NOT "going to do this at home", I'm going to look into other workarounds.

Will post back.
You can just plug a USB cable into a USB power adapter. I just wanted to chop it up as I like doing that sort of thing :-)
 
Old 05-14-2022, 10:08 AM   #11
glorsplitz
Senior Member
 
Registered: Dec 2002
Distribution: slackware!
Posts: 1,308

Original Poster
Rep: Reputation: 368Reputation: 368Reputation: 368Reputation: 368
Slackware ARM 32bit version 15.0: Installation Documentation needs update

Quote:
Originally Posted by drmozes View Post
You can just plug a USB cable into a USB power adapter.
I did, worked fine. Went about reinstalling as the Instructions are slightly different as in:
Quote:
# 22-Dec-2021, v1.08
# * Reference root filesystem using labels - root=LABEL=SLKroot
# This is the new Slackware ARM default.
I didn't know what to do about the following, educated guess.

This isn't in the instructions, as I think there's not many bananapi users to point it out
4.3.1 Partitioning your hard disk
I don't have screen shot, trying to remember what it said, asked about what to do with vfat/dos partition found, what to do with it and permissions, I said mount to /boot and have root only permissions.

Stuart, with rockpro you're doing
Quote:
The swap partitions are labeled 'SLKswap<x>', the root file system 'SLKroot', and the /boot partition 'SLKboot'.
.
With bananapi there's just root=LABEL=SLKroot so I ASSUMED vfat/dos partition found might be ok to be mounted /boot.

Quote:
/dev/mmcblk0p1 on /boot type vfat (rw,relatime,fmask=0177,dmask=0077,codepage=437,iocharset=utf8,shortname=mixed,utf8,errors=remount-ro)

ls -la /boot
total 150
drwx------ 2 root root 16384 Dec 31 19:00 ./
drwxr-xr-x 21 root root 4096 Feb 7 2022 ../
-rw------- 1 root root 16 Dec 18 2021 is_fat.txt
-rw------- 1 root root 131072 Jan 1 1980 uboot.env
5.15.21-armv7 #1 SMP Sun Feb 6 21:08:43 GMT 2022 armv7l Allwinner sun7i (A20) Family GNU/Linux

bananapipro booted, os is running, is this going to be ok? Thank you

Last edited by glorsplitz; 05-14-2022 at 10:41 AM.
 
Old 05-14-2022, 01:40 PM   #12
glorsplitz
Senior Member
 
Registered: Dec 2002
Distribution: slackware!
Posts: 1,308

Original Poster
Rep: Reputation: 368Reputation: 368Reputation: 368Reputation: 368
Quote:
Originally Posted by glorsplitz View Post
is this going to be ok?
no, it won't be ok

got online, upgraded system, now /boot looks like this
Quote:
drwxr-xr-x 4 root root 4096 Dec 31 19:33 ./
drwxr-xr-x 21 root root 4096 May 14 2022 ../
-rw-r--r-- 1 root root 531 Dec 31 19:33 .boot_details
-rw-r--r-- 1 root root 1747 May 25 2021 README-kernels.txt
lrwxrwxrwx 1 root root 40 Feb 7 2022 README.initrd -> ../usr/doc/mkinitrd-1.4.11/README.initrd
lrwxrwxrwx 1 root root 24 Feb 7 2022 System.map-armv7 -> System.map-armv7-5.15.21
-rw-r--r-- 1 root root 4207148 Feb 6 2022 System.map-armv7-5.15.21
-rw-r--r-- 1 root root 262387 Feb 6 2022 config-armv7-5.15.21
lrwxrwxrwx 1 root root 11 Feb 7 2022 dtb -> dtb-5.15.21/
drwxr-xr-x 2 root root 36864 Feb 6 2022 dtb-5.15.21/
lrwxrwxrwx 1 root root 20 Feb 7 2022 initrd-armv7 -> initrd-armv7-5.15.21
-rw-r--r-- 1 root root 41347607 Dec 31 19:34 initrd-armv7-5.15.21
drwxr-xr-x 2 root root 4096 Feb 6 2022 local/
lrwxrwxrwx 1 root root 20 Feb 7 2022 zImage-armv7 -> zImage-armv7-5.15.21
-rw-r--r-- 1 root root 5901224 Feb 6 2022 zImage-armv7-5.15.21
and
Quote:
-rw-r--r-- 1 root root 106565 Feb 7 2022 /var/log/packages/kernel-firmware-20220124_eb8ea1b-noarch-1
-rw-r--r-- 1 root root 30692 May 14 2022 /var/log/packages/kernel-headers-5.15.39-arm-1_slack15.0
-rw-r--r-- 1 root root 290954 May 14 2022 /var/log/packages/kernel-modules-armv7-5.15.39_armv7-arm-1_slack15.0
-rw-r--r-- 1 root root 4930072 May 14 2022 /var/log/packages/kernel-source-5.15.39-arm-1_slack15.0
-rw-r--r-- 1 root root 30994 May 14 2022 /var/log/packages/kernel_armv7-5.15.39-arm-1_slack15.0
and there's
Quote:
/lib/modules/5.15.39-armv7/
I obviously didn't read something, rockpro64 seems to be ok with newer slackwarearm stuffs.
 
Old 05-14-2022, 08:55 PM   #13
mralk3
Slackware Contributor
 
Registered: May 2015
Distribution: Slackware
Posts: 1,900

Rep: Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050
The /boot partition is too tiny probably, so the kernel package couldn't be copied. What does lsblk and df -h report? It's worth checking.

Also I downloaded the package:
Code:
46180 -rw-r--r-- 1 root root 47238600 May 13 08:52 kernel_armv7-5.15.39-arm-1_slack15.0.txz
Your file listing says the kernel package is only 30KB in size. While the package I downloaded is a lot bigger.

Ignore the crossed out part!

Try using explodepkg and copy the files manually to the /boot media. Then when you can boot the board you can run the following when you are booted up.

Code:
slackpkg reinstall kernel_armv7
EDIT: The crossed out part is misleading and incorrect. That's what I get for watching a movie and answering questions on LQ.

Last edited by mralk3; 05-14-2022 at 10:01 PM. Reason: typos
 
Old 05-14-2022, 09:57 PM   #14
glorsplitz
Senior Member
 
Registered: Dec 2002
Distribution: slackware!
Posts: 1,308

Original Poster
Rep: Reputation: 368Reputation: 368Reputation: 368Reputation: 368
reinstalled, see attached, ALSO see attached what was not in install documentation

When I did slackpkg upgrade-all, kernel packages and all that got upgraded
Quote:
-rw-r--r-- 1 root root 106565 Feb 7 2022 /var/log/packages/kernel-firmware-20220124_eb8ea1b-noarch-1
-rw-r--r-- 1 root root 30692 May 14 2022 /var/log/packages/kernel-headers-5.15.39-arm-1_slack15.0
-rw-r--r-- 1 root root 290954 May 14 2022 /var/log/packages/kernel-modules-armv7-5.15.39_armv7-arm-1_slack15.0
-rw-r--r-- 1 root root 4930072 May 14 2022 /var/log/packages/kernel-source-5.15.39-arm-1_slack15.0
-rw-r--r-- 1 root root 30994 May 14 2022 /var/log/packages/kernel_armv7-5.15.39-arm-1_slack15.0
Quote:
/lib/modules/5.15.39-armv7/
nothing new was moved into /boot, I've slackpkg upgrade-all kernels thousands of times, new kernel packages get installed, /boot gets updated, I've never had to do anything additional.

My rockpro64 has been humming aarch64 kernel upgrades for decades.

Maybe there's a step I've missed with Slackware ARM 32bit version 15.0?
Attached Thumbnails
Click image for larger version

Name:	20220514.jpg
Views:	35
Size:	161.1 KB
ID:	38907   Click image for larger version

Name:	Screenshot_20220514_202616.jpg
Views:	28
Size:	42.6 KB
ID:	38909  

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

Rep: Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050
Yes, I saw my mistake and the post was edited, doh!
 
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
something about the 550 failed to change directory dreamer_ Linux - Networking 2 05-29-2016 04:35 AM
Something depends on something else but something else is to be installed javascriptninja Linux - Newbie 3 02-05-2012 04:22 PM
Did something change in font installation jlinkels Linux - Software 1 12-20-2006 12:53 PM
did something change after kernel 2.6.8-1.521? re:Nvidia drivers and FC2 clausawits Fedora 3 01-24-2005 03:13 PM
Did I miss something when I did my HCL's? rberry88 LQ Suggestions & Feedback 5 02-11-2004 10:57 AM

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

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