by sinatosk » Sat Oct 21, 2017 3:04 pm
$this->bbcode_second_pass_quote('lucsansag', 'H')ow can I solve this if I don't have another board running Arch?
*** DO THE FOLLOWING USING SUDO OR ROOT ***
I have a laptop with arch linux on it with an sdcard reader on it so I put my sdcard in that
my sdcard dev file is "/dev/mmcblk0", so I'm assuming you'll have that
- make a directory "rpi" at "/mnt"
- make a directory "tmprpi" at "/tmp"
- mount the second partition ( in my case ) "/dev/mmcblk0p2" to "/mnt/rpi"
- mount the first partition ( in my case ) "/dev/mmcblk0p1" to "/mnt/rpi/boot"
- change directory to "/mnt/rpi/var/cache/pacman/pkg"
- ( assuming you can extract xz files ) extract the contents of the files "linux-raspberrypi-4.9.56-1-armv7h.pkg.tar.xz", "raspberrypi-bootloader-20171015-1-any.pkg.tar.xz" and "raspberrypi-bootloader-x-20171015-1-any.pkg.tar.xz" to "/tmp/tmprpi" using the command "tar xvfJ <file.tar.xz> -C /tmp/tmprpi" ( ignore warnings about unknown headers )
- change directory to "/tmp/tmprpi"
- remove the files ".BUILDINFO", ".INSTALL", ".MTREE" and ".PKGINFO"
- ( assuming you have the "rsync" command installed ) run the command "rsync -ahP /tmp/tmprpi/ /mnt/rpi/" AND NOT "rsync -ahP /tmp/tmprpi /mnt/rpi/"... IT MUST BE "rsync -ahP /tmp/tmprpi/ /mnt/rpi/"
- run command "sync"
- unmount "/mnt/rpi/boot" and "/mnt/rpi" using "umount /mnt/rpi/boot" and "umount /mnt/rpi"
- remove the directory "rpi" from "/mnt" if you like
- take your sdcard out and plop it back into rpi and power it up
*** on to the rpi from now on ***
- login as root
- change directory to "/var/cache/pacman/pkg"
- run command "pacman -U --force linux-raspberrypi-4.9.56-1-armv7h.pkg.tar.xz raspberrypi-bootloader-20171015-1-any.pkg.tar.xz raspberrypi-bootloader-x-20171015-1-any.pkg.tar.xz"
- run command "sync" and that's it your done
- reboot just incase
don't feel like doing any of this?, you can try previous post suggestion
edit 1: the additional thing I did in my mine so I can update other packages but not linux itself is edit "/etc/pacman.conf" and uncomment the line "#IgnorePkg =" and replace it with "IgnorePkg = linux-raspberrypi raspberrypi-bootloader raspberrypi-bootloader-x raspberrypi-firmware"
and what this does in the future I have to explicitly type out "sudo pacman -S linux-raspberrypi raspberrypi-bootloader raspberrypi-bootloader-x raspberrypi-firmware" at most if any of those are new ( which it tells you ) and I'm comfortable with it