Getting ssd booting on Slarm64 & RazPi 4
My sdcard boots fine with slarm64.
So I rsync'ed it to a ssd prepared for booting a Pi with /boot, /, & /home partitions. X wouldn't start. I'll spare you the blow-by-blow, but I set to runlevel 3 and it became clear / was being mounted read-only. There's no sdcard at this stage; /etc/rc.d/rc.4 tries to boot a dm and boot comes unstuck there. Useful to know. /etc/mtab had an entry about sdcards which presumably was rsync'ed over, but that didn't fix anything. So I tried on /boot Code:
bash-5.1$ grep -r mmcblk0 * To put it in Royal parlance, I was "not amused" to find the boot drive in the kernel. Does it use that? Does that have to be there? Do I have to recompile the kernel? |
Quote:
for manual transfer, it is enough to make 1 section of the vfat and transfer all the files with /boot. change in /etc/fstab and /boot/uEnv.txt root drive. |
Quote:
Code:
root@bullseye-raspi:~# cat /etc/fstab Not sure if the /boot/uEnv.txt is for the same purpose as the cmdline.txt on Debian but if it is it works in there too. Code:
root@bullseye-raspi:~# cat /boot/firmware/cmdline.txt Code:
root@bullseye-raspi:~# cat /etc/default/raspi-firmware |
Quote:
Then I added a symlink in /dev from /dev/mmcblk0p2 --> sda2, and moved to runlevel 3 in /etc/inittab. Now I get to the login, and I can login as root. But / was read-only. So, to see the error, I ran Code:
mount -0 remount /dev/sda2 / I suggest you get to the bottom of this, which you would achieve inside a half an hour, because people won't be happy staying on short-lived sd cards, just like the weren't happy booting from floppies when they had hard disks. Ditto the incapacity to create a user. Interestingly, I tried an su to my user, ran 'passwd', and entered the same passwd. It threw the error that my passwd was unchanged. So it's able to store and read my password, but
So I'll not mark this solved, because I don't consider it solved. I'm sure you don't wast to have users stuck in root, or having to hack in when they want to log in. It does partially explain why my earlier install attempts (On an elderly usb disk) died. For the record, Debian doesn't have uEnv.txt. I read the raspberrypi.org booting bilge, and it uses only files in the /boot top directory, i.e. /boot/config.txt (naming the exact kernel) and /boot/cmdline.txt. Overlays are for adjustments, and firmware is in the /boot top dir. |
loading raspberry pi 4 in the image on slarm64 is as follows:
Code:
spi -> | -> sdcard -> u-boot.bin (uEnv.txt) -> Image when using г-boot.bin it is unnecessary to modify boot.cmd since there is uEnv.txt for this. here is my uEnv.txt Code:
verbosity=8 |
I have kind of given up on the current ssd install, hoping to rsync over it later. Running now on sdcard. I'll post as I get to move on things. I can still access the ssd media because the bulk of the space is in sda3, a /home partition.
I dd'ed the Slarm64 image to a new 32GB usb key. I left the Pi booting on u-boot.bin, made the minimal adjustments and tried it. On and off screen, (my oversized problem returned) it booted, mounted / rw (hurray), created 128M of Emergency swap and seemed to go AWOL at that point. So I powered off, and trawled the logs dmesg, and syslog. In fact wlan0 couldn’t get firmware and wlan1 had no wpa_supplicant.conf, so it seemed to go out to lunch and I turned off. But the ext4 install partition had no journal. I made the ext4 journal. I made one Code:
tune2fs -j /dev/sdxX Now, unless there’s some way of shrinking the screen in the u-boot Universe, I’ll have to go back to the numbered kernels, and it’s over to you for what combination to try. I think it’s worth remaking the image over the ext4 journal, btw, because as it identifies as ext4, you presume you have the protections, but you don’t. And as I mentioned in the other thread, the kde image is also an option. |
when transferring manually, you need to remove the parameters from fstab data=writeback
|
Quote:
Bullseye, btw in both 32 & 64bit flavours loses sound after a few days. bcm2835 is config.txt; dtparam-audio=on or somnesuch is also; alsa has volume up and is not muted; that widget in X shows volume; pulse isn't installed; but there's no @$#£&€%! sound. And If I update, there's definitely no sound. |
Quote:
|
Quote:
|
I installed the Enlightenment image with kernel 5.15.10 on a new usb key. My sdcard is new, so time is on my side right now, and the sdcard is running the XFCE image. I have configured MPV in the file manager, so I can double click a video and it awakes. Streaming in FF is not good - I still get blackouts, although if I hit the space bar as soon as the blackout starts, it seems to come back on … weird.
I spent a while in /boot with the files. It seems Image & vmlinuz-version are identical, as are the initrds. So I'm guessing you either
Now I try booting, and it's stopping before mounting /. I get no logs, 1 page of kernel output, no errors. The Raspberries can still be seen top of page Kernel Output Is anything obviously wrong? Presuming not, what would happen if I moved the "kernel=u-boot.bin" line to the very end of config.txt? Specifically, would it use other settings from config.txt, notably the Overscan? I could probably sort this that way. I'm unsure of the way that stuff works, and unable to play away as one normally would. |
I installed the Enlightenment image with kernel 5.15.10 on a new usb key. I'm trying to get an image to work on sda, and transfer it to the ssd.
My sdcard is new, so time is on my side right now, and the RazPi is running via my sdcard and the XFCE image. I have configured MPV in the file manager, so I can double click a video and it plays. Streaming in FF is not good - I still get blackouts, although if I hit the space bar as soon as the blackout starts, it seems to come back on … weird. With the Enlightenment image, I spent a while in /boot with the files. It seems Image & vmlinuz-version are identical, as are the initrds. So I'm guessing you either
Now I try booting, and it's stopping before mounting /. I get no logs, 1 page of kernel output, no errors. The Raspberries can still be seen top of page Kernel Output I have /dev/sda2 instead of /dev/mmcblk0p2 everywhere I can think of. Is anything obviously wrong? Why does it stop? Apparently it's in the Kernel Code:
bash-5.1$ sudo grep CONFIG_CMDLINE /mnt/dvd/boot/config-5.15.10 What would happen if I moved the "kernel=u-boot.bin" line to the very end of config.txt? Specifically, would it use other settings from config.txt, notably the Overscan? I could probably sort this that way. I'm unsure of the way that stuff works, and unable to play away as one normally would. |
if you commented out the line kernel=u-boot.bin and uncommented kernel=Image then cmdline.txt is used there you need to change the root disk too.
|
Quote:
Why didn't my wildcard grep catched that? I thought I had changed EVERYTHING.:banghead: With that change, the thing E V E N T U A L L Y booted Enlightenment with some overscan, but I can fix that. Why it was so slow is an issue that may sort itself. I'm keeping this on usb key to mess with it and transfer when I'm ready for final adjustments if needed on the Pi. Logs look OK, but the boot speed is bad. Could be the USB key. I don't know. Enlightenment, BTW, looks as grey and shapeless as XFCE. Have you no wallpapers on the install? I marked this solved because the Enlightenment image goes mounts / RW, despite XFCE (With cmdline.txt edited) does not. BTW, re the Debian RasPi OS sound errors Quote:
Code:
Dec 14 21:31:38 raspberrypi kernel: [ 5.486878] vc4_hdmi fef00700.hdmi: Could not register sound card: -517 |
Quote:
XFCE image is identical to enlightement, the only difference is in packages. |
All times are GMT -5. The time now is 12:42 AM. |