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 03-14-2024, 08:36 AM   #16
drmozes
Slackware Contributor
 
Registered: Apr 2008
Distribution: Slackware
Posts: 1,603

Rep: Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341

Quote:
Originally Posted by pchristy View Post
Hi Stuart, and thanks for the response!

I appreciate that you don't have a 400, but I would have expected anything that works on a 4 to work on a 400.
They're different hardware models. They use the same SoC but have different IP cores (built-in peripherals), and different DTBs (hardware maps).

Code:
root@honey:/boot/dtb/broadcom# ls -la *rpi*4*
-rwxr-xr-x 1 root root 38069 Mar  7 16:13 bcm2711-rpi-4-b.dtb*
-rwxr-xr-x 1 root root 37989 Mar  7 16:13 bcm2711-rpi-400.dtb*
-rwxr-xr-x 1 root root 38076 Mar  7 16:13 bcm2711-rpi-cm4-io.dtb*
root@honey:/boot/dtb/broadcom#

Quote:
I'm pretty convinced its a u-boot problem.
Me too. There is a mention of the RPi400 in the U-Boot source's docs, but nothing in the DTS (the DTB source) file. You could look at the firmware that OpenBSD page links to. It's possibly similar to the HoneyComb LX2 setup, and you could use GRUB instead. Maybe offer Brent to buy a RPi4 for him and he'll make it work (actually, he'll probably not enjoy seeing another RPi, but you never know ;-) ).
 
1 members found this post helpful.
Old 03-14-2024, 09:47 AM   #17
pchristy
Senior Member
 
Registered: Oct 2012
Location: South Devon, UK
Distribution: Slackware
Posts: 1,151

Rep: Reputation: Disabled
Hi Stuart, and thanks for your comments!

I can actually make the Pi fork boot up to a point, as described in that earlier post, but it hangs after reporting that it failed to find a ds1307 RTC. I'm guessing that its the next stage that is crashing, rather than the RTC failure, but I need to stop - or try to spot on the fly - what that next stage is on the stock kernel.

The funny thing is that the earlier 6.1 series kernels you supplied worked just fine. It only started giving problems with 6.6 series. There do seem to be other files associated with u-boot (bootcode.bin? start.elf?) that may be relevant. I just wish I understood it better!

Anyway, I'll try not to distract you any further while I blunder around this. If I come up with anything useful, I'll let you know....!

Cheers,

--
Pete
 
Old 03-14-2024, 09:59 AM   #18
drmozes
Slackware Contributor
 
Registered: Apr 2008
Distribution: Slackware
Posts: 1,603

Rep: Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341
Quote:
Originally Posted by pchristy View Post

The funny thing is that the earlier 6.1 series kernels you supplied worked just fine. It only started giving problems with 6.6 series. There do seem to be other files associated with u-boot (bootcode.bin? start.elf?) that may be relevant. I just wish I understood it better!
The only U-Boot object within /boot/platform/hwm_bw is slk_u-boot.bin
The rest of it is for the RPi native bootloader.

I don't see why it'd hang on detecting the i2c thing, but it may be that message was the last thing before it hung on the next step.
You could add slkrpinbl to the kernel cmdline parameters by editing the extlinux.conf file, as this will bypass the loading of the RTC module.
 
1 members found this post helpful.
Old 03-14-2024, 10:35 AM   #19
pchristy
Senior Member
 
Registered: Oct 2012
Location: South Devon, UK
Distribution: Slackware
Posts: 1,151

Rep: Reputation: Disabled
Quote:
Originally Posted by drmozes View Post
The only U-Boot object within /boot/platform/hwm_bw is slk_u-boot.bin
The rest of it is for the RPi native bootloader.
Thanks for the clarification!

Quote:
Originally Posted by drmozes View Post
I don't see why it'd hang on detecting the i2c thing, but it may be that message was the last thing before it hung on the next step.
You could add slkrpinbl to the kernel cmdline parameters by editing the extlinux.conf file, as this will bypass the loading of the RTC module.
Yes, that is my thought, too. Thanks for the tip to bypass that step!

One last question: Is slk_u-boot.bin unique to the specific kernel? I recall reading somewhere that something was, and that may be it.
 
Old 03-14-2024, 11:08 AM   #20
drmozes
Slackware Contributor
 
Registered: Apr 2008
Distribution: Slackware
Posts: 1,603

Rep: Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341
Quote:
Originally Posted by pchristy View Post
One last question: Is slk_u-boot.bin unique to the specific kernel? I recall reading somewhere that something was, and that may be it.
No, U-Boot is Hardware Model agnostic for the RPi- there's a single binary; but you cannot for example use the RockPro64's U-Boot binary on the RPi because they're compiled with specific hardware info.
 
1 members found this post helpful.
Old 03-14-2024, 11:25 AM   #21
pchristy
Senior Member
 
Registered: Oct 2012
Location: South Devon, UK
Distribution: Slackware
Posts: 1,151

Rep: Reputation: Disabled
Thanks for the clarification!

 
Old 03-15-2024, 02:55 AM   #22
drmozes
Slackware Contributor
 
Registered: Apr 2008
Distribution: Slackware
Posts: 1,603

Rep: Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341
I neglected to mention that despite my efforts, I was unable to successfully boot the Slackware kernel directly from the Raspberry Pi's native bootloader (the last effort was using Linux 5). I didn't explore the Raspberry Pi Kernel fork version. While I haven't verified, I presume that using the UEFI firmware OpenBSD refer to, this would replace the Raspberry Pi's native bootloader. This wouldn't necessarily be an issue, but it might make using DTBs more difficult if you need to do something custom (there's documentation aplenty for the RPi native BL).
This is why we opted to have the RPi native BL handle DTBs in Slackware (in addition to it not working properly when handled by U-Boot).
 
Old 03-15-2024, 04:29 AM   #23
pchristy
Senior Member
 
Registered: Oct 2012
Location: South Devon, UK
Distribution: Slackware
Posts: 1,151

Rep: Reputation: Disabled
Quote:
Originally Posted by drmozes View Post
.
This is why we opted to have the RPi native BL handle DTBs in Slackware (in addition to it not working properly when handled by U-Boot).
Er, OK! Now I'm more confused! I thought the Pi fork *was* using u-boot? Or is it just the DTBs that are handled by the Pi BL and not the kernel itself?

--
Pete
 
Old 03-15-2024, 05:11 AM   #24
drmozes
Slackware Contributor
 
Registered: Apr 2008
Distribution: Slackware
Posts: 1,603

Rep: Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341
Quote:
Originally Posted by pchristy View Post
Er, OK! Now I'm more confused! I thought the Pi fork *was* using u-boot? Or is it just the DTBs that are handled by the Pi BL and not the kernel itself?
The RPi kernel fork is just the standard Slackware Kernel package, but packaging a Kernel built from the RPi fork source. There are no boot loader components packaged within the Kernel packages. The a/hwm-bw-raspberrypi package contains and installs U-Boot on the RPi (although initially U-Boot is provided on the Installation SD card image that's re-purposed for the OS's /boot), and the a/grub package contains Grub.

On the RPi, the Rpi native BL loads the DTBs that are packaged in the Kernel package. On the other HWMs, U-boot or Grub handle loading the DTBs.

Last edited by drmozes; 03-15-2024 at 05:46 AM.
 
Old 03-15-2024, 10:38 AM   #25
pchristy
Senior Member
 
Registered: Oct 2012
Location: South Devon, UK
Distribution: Slackware
Posts: 1,151

Rep: Reputation: Disabled
OK, thanks for the clarification. I've never heard of grub being used on Pis, though I use it on all my x86_64 machines. Maybe I'll have a look at that. I originally switched to grub to get around an x86_64 laptop that refused to boot using elilo, and ended up liking it to the extent I switched my other machines to it. Sounds like an area of investigation....

--
Pete
 
Old 03-17-2024, 01:32 PM   #26
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,311
Blog Entries: 61

Rep: Reputation: Disabled
I decided to resurrect my RPi 400 last week, ordered a small monitor from Amazon, and while I waited for that, dded the Raspberry Pi OS and the Slackware ARM installer to microsds.
Installed Slackware ARM today, two minor problems: one with the ncurses setup being too big for the screen so I had to switch to using the TV. The other being the time. I ran ntpdate for that.
Otherwise OK. Fingers crossed. It's downloading updates at the moment. Have to see how it goes after all the upgrades.
 
Old 03-17-2024, 03:19 PM   #27
pchristy
Senior Member
 
Registered: Oct 2012
Location: South Devon, UK
Distribution: Slackware
Posts: 1,151

Rep: Reputation: Disabled
Hi, Brian, I'll be interested to hear how you get on with it...

So far, I've been working with a sample of one!

--
Pete
 
Old 03-17-2024, 03:54 PM   #28
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,311
Blog Entries: 61

Rep: Reputation: Disabled
It's OK. It survived all the upgrades (using slackpkg). I've still got the time to sort out, get ntp running.
Here's a screenshot of neofetch. It would have been but for this:

Quote:
Your submission could not be processed because a security token was missing.
):
Have to make do with a copy and paste from the terminal:
Code:
brian@rasslack:~$ neofetch
                  :::::::                      brian@rasslack.brisown.org 
            :::::::::::::::::::                -------------------------- 
         :::::::::::::::::::::::::             OS: Slackware 15.0 aarch64 (post 15.0 -current) aar 
       ::::::::cllcccccllllllll::::::          Host: Raspberry Pi 400 Rev 1.0 
    :::::::::lc               dc:::::::        Kernel: 6.6.22-armv8 
   ::::::::cl   clllccllll    oc:::::::::      Uptime: 2 hours, 14 mins 
  :::::::::o   lc::::::::co   oc::::::::::     Packages: 1656 (pkgtool) 
 ::::::::::o    cccclc:::::clcc::::::::::::    Shell: bash 5.2.26 
 :::::::::::lc        cclccclc:::::::::::::    Resolution: 1024x600 
::::::::::::::lcclcc          lc::::::::::::   DE: Plasma 5.27.11 
::::::::::cclcc:::::lccclc     oc:::::::::::   WM: KWin 
::::::::::o    l::::::::::l    lc:::::::::::   Theme: [Plasma], Breeze [GTK2/3] 
 :::::cll:o     clcllcccll     o:::::::::::    Icons: [Plasma], breeze [GTK2/3] 
 :::::occ:o                  clc:::::::::::    Terminal: konsole 
  ::::ocl:ccslclccclclccclclc:::::::::::::     CPU: (4) @ 1.800GHz 
   :::oclcccccccccccccllllllllllllll:::::      Memory: 2300MiB / 3790MiB 
    ::lcc1lcccccccccccccccccccccccco::::
      ::::::::::::::::::::::::::::::::                                 
        ::::::::::::::::::::::::::::                                   
           ::::::::::::::::::::::
                ::::::::::::

Last edited by brianL; 03-17-2024 at 04:23 PM.
 
Old 03-17-2024, 06:21 PM   #29
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,311
Blog Entries: 61

Rep: Reputation: Disabled
Where has everything gone out of /etc/rc.d? I went there looking for rc.ntpd, and it was empty.
 
Old 03-18-2024, 10:17 AM   #30
drmozes
Slackware Contributor
 
Registered: Apr 2008
Distribution: Slackware
Posts: 1,603

Rep: Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341
Quote:
Originally Posted by brianL View Post
Where has everything gone out of /etc/rc.d? I went there looking for rc.ntpd, and it was empty.
I see mine!

Code:
root@honey:~# ls /etc/rc.d
init.d/  rc.acpid*        rc.avahidnsconfd*  rc.cups          rc.fuse3*           rc.inet1*           rc.keymap*  rc.messagebus*     rc.ntpd           rc.platform.d/  rc.setterm*   rc.udev*          rc2.d/
rc.0@    rc.alsa          rc.bind            rc.cups-browsed  rc.gpm*             rc.inet1.conf       rc.kpropd   rc.modules*        rc.openldap       rc.postfix      rc.smartd     rc.ulogd*         rc3.d/
rc.4*    rc.alsa-oss      rc.bluetooth*      rc.dnsmasq       rc.haveged*         rc.inet1.conf.orig  rc.krb5kdc  rc.modules.local*  rc.openvpn        rc.pulseaudio   rc.snmpd      rc.wireless*      rc4.d/
rc.6*    rc.atalk         rc.cgconfig        rc.dovecot       rc.httpd            rc.inet2*           rc.local*   rc.mysqld          rc.openvpn.new    rc.rpc*         rc.sshd*      rc.wireless.conf  rc5.d/
rc.K*    rc.atd*          rc.cgred           rc.elogind*      rc.icecc-scheduler  rc.inetd*           rc.loop*    rc.networkmanager  rc.php-fpm        rc.samba        rc.syslog*    rc.yp             rc6.d/
rc.M*    rc.autofs        rc.cpufreq*        rc.font          rc.iceccd           rc.ip_forward       rc.luks*    rc.nfsd            rc.platform*      rc.saslauthd    rc.sysstat    rc0.d/
rc.S*    rc.avahidaemon*  rc.crond*          rc.fuse*         rc.icecream.conf    rc.kadmind          rc.lxc      rc.nss-pam-ldapd   rc.platform.conf  rc.serial       rc.sysvinit*  rc1.d/
root@honey:~#
 
  


Reply

Tags
aarch64, hardware, raspberry pi, slackware, support


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
Raspberry Pi 4 bcm2711 / Raspberry Pi 3 bcm2837 (aarch64) sndwvs slarm64 156 11-20-2024 04:12 AM
LXer: Raspberry Pi OS Is Now Powered by Linux Kernel 5.10 LTS, Improves Support for Raspberry Pi 400 LXer Syndicated Linux News 0 03-27-2021 12:04 PM
LXer: openSUSE Tumbleweed ARM Adds Support for Raspberry Pi 400 and Raspberry Pi 4 CM LXer Syndicated Linux News 0 01-13-2021 08:12 PM
[VPS] 4 load page = 100 MB RAM loaded? do i need 100x 400 mb ram for next 400 page? vaporizel Linux - Server 1 03-14-2011 09:40 PM

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

All times are GMT -5. The time now is 03:06 PM.

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