Finally the correct sequence
$this->bbcode_second_pass_code('', 'pacman -R pcmciautils kernel26-oxnas-pci kernel26-oxnas-nopci linux
mv /lib/gmac_copro_firmware /usr/lib/gmac_copro_firmware
pacman -Syu --ignore glibc # no to update pacman and yes to all which says it will override
')
Once you do this you will receive systemd errors just ignore it
Now you will see some files got generated in /lib/modules which was empty from tarball to verify check which files are owned by other than glibc most people got confused here since it produced a long list but the culprit here are 2 below
$this->bbcode_second_pass_code('', '[root@alarm lib]# find /lib | xargs pacman -Qo | grep -v glibc
error: cannot determine ownership of directory '/lib'
error: cannot determine ownership of directory '/lib/firmware'')
Once you have move the files from firmware dir i.e /lib/firmware to /usr/lib/firmware delete the folder the folder should be empty now so do
$this->bbcode_second_pass_code('', 'rmdir firmware ')
Now update fully
$this->bbcode_second_pass_code('', '
[root@alarm lib][root@alarm lib]# pacman -Su
:: Starting full system upgrade...
resolving dependencies...
looking for inter-conflicts...
Targets (1): glibc-2.16.0-5
Total Installed Size: 33.22 MiB
Net Upgrade Size: -0.43 MiB
Proceed with installation? [Y/n] y
(1/1) checking package integrity [######################] 100%
(1/1) loading package files [######################] 100%
(1/1) checking for file conflicts [######################] 100%
(1/1) checking available disk space [######################] 100%
(1/1) upgrading glibc [######################] 100%
Generating locales...
en_US.ISO-8859-1... done
de_DE.ISO-8859-1... done
de_DE.ISO-8859-15@euro... done
en_US.UTF-8... done
Generation complete.
')
Compile the modules
$this->bbcode_second_pass_code('', '[root@alarm lib]# depmod -a
depmod: WARNING: could not open /lib/modules/2.6.31.6_SMP_820/modules.builtin: No such file or directory')
Just ignore if you get something like this
Finally reboot
Final thoughts i'm getting below warning for reboot
$this->bbcode_second_pass_code('', '
WARNING: could not determine runlevel - doing soft reboot
(it's better to use shutdown instead of reboot from the command line)
shutdown: warning: cannot open /var/run/shutdown.pid
[root@alarm lib]# Connection to 192.168.1.4 closed by remote host.
Connection to 192.168.1.4 closed.
')
Nothing is getting logged in /var/log
$this->bbcode_second_pass_code('', '
[ 2989.250000] <27>systemd-coredump[1833]: Failed to send coredump: No such file or directory
[ 3143.430000] <27>systemd-coredump[2108]: Failed to send coredump: No such file or directory
[ 3209.110000] <27>systemd-coredump[2218]: Failed to send coredump: No such file or directory
')