E02 no ssh after pacman -Syu

This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.

E02 no ssh after pacman -Syu

Postby karog » Tue Jul 17, 2012 5:30 pm

I have been running up to date on an E02 with a USB hard drive, /boot on /dev/sda1 ext2 and / on /dev/sda2 ext4.

Today (2012/07/17) I did a pacman -Syu and several things updated including new initscripts (often a danger it seems). After reboot the E02 appears to come up with solid LED but no ssh access and does not appear in my router device list as it normally does.

I formatted a USB flash drive to ext2 and installed a new rootfs and can boot from that with ssh access and can then mount the USB hard drive.

After having failed to boot with the hard drive and then mounting it after booting from flash, I looked in /media/rootfs/var/log and there appears to be nothing new since the pacman update and reboot.

I am seeking suggestions on what to do next. Any ideas?

Here is the pacman.log
$this->bbcode_second_pass_code('', '
[2012-07-17 09:39] Running 'pacman -Syu'
[2012-07-17 09:39] synchronizing package lists
[2012-07-17 09:39] starting full system upgrade
[2012-07-17 09:40] upgraded libsystemd (185-4.1 -> 186-2)
[2012-07-17 09:40] ==> Kernel modules are now only read from /usr/lib/modules, all custom
[2012-07-17 09:40] built kernels and modules must be moved there before rebooting.
[2012-07-17 09:40] upgraded kmod (9-1 -> 9-2)
[2012-07-17 09:40] upgraded util-linux (2.21.2-3 -> 2.21.2-5)
[2012-07-17 09:40] upgraded systemd-tools (185-4.1 -> 186-2)
[2012-07-17 09:40] upgraded initscripts (2012.06.1-1 -> 2012.06.3-2.1)
[2012-07-17 09:40] >>> Updating module dependencies. Please wait ...
[2012-07-17 09:40] upgraded linux (3.1.10-11 -> 3.1.10-12)
[2012-07-17 09:41] upgraded linux-headers (3.1.10-11 -> 3.1.10-12)
[2012-07-17 09:41] upgraded lirc-utils (1:0.9.0-18 -> 1:0.9.0-20)
[2012-07-17 09:41] upgraded perl-dbi (1.618-2 -> 1.622-1)
[2012-07-17 09:41] upgraded perl-error (0.17017-1 -> 0.17018-1)
[2012-07-17 09:41] upgraded procps-ng (3.3.3-1 -> 3.3.3-3)
[2012-07-17 09:41] upgraded smartmontools (5.42-4 -> 5.43-1)
[2012-07-17 09:41] upgraded syslog-ng (3.3.5-1.1 -> 3.3.5-2)
')
karog
 
Posts: 305
Joined: Thu Jan 05, 2012 7:55 pm

Re: E02 no ssh after pacman -Syu

Postby WarheadsSE » Tue Jul 17, 2012 5:32 pm

Pretty straight forward
$this->bbcode_second_pass_code('', '
[2012-07-17 09:40] ==> Kernel modules are now only read from /usr/lib/modules, all custom
[2012-07-17 09:40] built kernels and modules must be moved there before rebooting.
')

Check /media/rootfs/lib for modules. If it is is there, move it. We've moved them in the new kernel packages. Upstream bit us on that one.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: E02 no ssh after pacman -Syu

Postby karog » Tue Jul 17, 2012 6:04 pm

$this->bbcode_second_pass_quote('WarheadsSE', 'P')retty straight forward
$this->bbcode_second_pass_code('', '
[2012-07-17 09:40] ==> Kernel modules are now only read from /usr/lib/modules, all custom
[2012-07-17 09:40] built kernels and modules must be moved there before rebooting.
')

Check /media/rootfs/lib for modules. If it is is there, move it. We've moved them in the new kernel packages. Upstream bit us on that one.

There is no /media/rootfs/lib/modules. It appears to have already been appropriately moved to /media/rootfs/usr/lib/modules. I had updated just 2 days before on 7/15 and all was still good.

On the NOT UP TO DATE flash I can boot from they are still in /lib/modules with the older 3.1.10-11-ARCH whereas /media/rootfs/usr/lib/modules has the newer 3.1.10-12-ARCH.

Any other ideas? And thanks as always for your stellar help.
karog
 
Posts: 305
Joined: Thu Jan 05, 2012 7:55 pm

Re: E02 no ssh after pacman -Syu

Postby WarheadsSE » Tue Jul 17, 2012 7:51 pm

Have a look at the rest of the logs, specifically dmesg/everything.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: E02 no ssh after pacman -Syu

Postby karog » Tue Jul 17, 2012 8:09 pm

$this->bbcode_second_pass_quote('WarheadsSE', 'H')ave a look at the rest of the logs, specifically dmesg/everything.

I tried looking at the logs. Curiously, nothing seems to be written in /media/rootfs/var/log dated after the shutdown post pacman update.

I even moved dmesg.log and boot there to other names to see any newly created files by those names and none were created. I mentioned this in my original post.

Could the logs have been written somewhere else because of some funky link or something? For example, could they somehow be written to /tmp and thus lost? I will also note in the pacman upgrade, there is " upgraded syslog-ng (3.3.5-1.1 -> 3.3.5-2)".

BTW, I do not have serial access.

This is the tail of everything.log showing the shutdown right after the pacman update and then nothing else. I don't know why samba shut down so poorly. But I removed samba from DAEMONS in etc/rc.conf and that did not help.

$this->bbcode_second_pass_code('', '
Jul 17 09:01:01 e02 /USR/SBIN/CROND[23546]: (root) CMD (run-parts /etc/cron.hourly)
Jul 17 09:21:01 e02 -- MARK --
Jul 17 09:41:23 e02 shutdown[23609]: shutting down for system reboot
Jul 17 09:41:24 e02 init: Switching to runlevel: 6
Jul 17 09:41:25 e02 nmbd[269]: [2012/07/17 09:41:25.447655, 0] nmbd/nmbd.c:66(terminate)
Jul 17 09:41:25 e02 nmbd[269]: Got SIGTERM: going down...
Jul 17 09:41:26 e02 smbd[12263]: [2012/07/17 09:41:26.287313, 0] lib/fault.c:47(fault_report)
Jul 17 09:41:26 e02 smbd[12263]: ===============================================================
Jul 17 09:41:26 e02 smbd[12263]: [2012/07/17 09:41:26.324023, 0] lib/fault.c:48(fault_report)
Jul 17 09:41:26 e02 smbd[12263]: INTERNAL ERROR: Signal 7 in pid 12263 (3.6.5)
Jul 17 09:41:26 e02 smbd[12263]: Please read the Trouble-Shooting section of the Samba3-HOWTO
Jul 17 09:41:26 e02 smbd[12263]: [2012/07/17 09:41:26.325814, 0] lib/fault.c:50(fault_report)
Jul 17 09:41:26 e02 smbd[12263]:
Jul 17 09:41:26 e02 smbd[12263]: From: http://www.samba.org/samba/docs/Samba3-HOWTO.pdf
Jul 17 09:41:26 e02 smbd[12263]: [2012/07/17 09:41:26.326340, 0] lib/fault.c:51(fault_report)
Jul 17 09:41:26 e02 smbd[12263]: ===============================================================
Jul 17 09:41:26 e02 smbd[12263]: [2012/07/17 09:41:26.326700, 0] lib/util.c:1117(smb_panic)
Jul 17 09:41:26 e02 smbd[12263]: PANIC (pid 12263): internal error
Jul 17 09:41:26 e02 smbd[12263]: [2012/07/17 09:41:26.429039, 0] lib/util.c:1221(log_stack_trace)
Jul 17 09:41:26 e02 smbd[12263]: BACKTRACE: 0 stack frames:
Jul 17 09:41:26 e02 smbd[12263]: [2012/07/17 09:41:26.511741, 0] lib/fault.c:372(dump_core)
Jul 17 09:41:26 e02 smbd[12263]: dumping core in /var/log/samba/cores/smbd
Jul 17 09:41:26 e02 smbd[12263]:
Jul 17 09:41:26 e02 dhcpcd[23684]: sending signal 1 to pid 212
Jul 17 09:41:26 e02 dhcpcd[23684]: waiting for pid 212 to exit
Jul 17 09:41:26 e02 dhcpcd[212]: received SIGHUP, releasing
Jul 17 09:41:26 e02 ntpd[257]: Terminating
Jul 17 09:41:26 e02 dhcpcd[212]: eth0: releasing lease of 192.168.141.19
Jul 17 09:41:27 e02 dhcpcd[212]: eth0: removing interface
Jul 17 09:41:27 e02 syslog-ng[176]: syslog-ng shutting down; version='3.3.5'
')

Could it be something to do with udev rules? I looked in /media/rootfs/lib/udev and there is just the same remnant pcmcia rules as was left on my V3 devices when I went through the upgrade on my 2 V3's. All the rest of the udev rules are properly in /media/rootfs/usr/lib/udev.

Have you updated a pogo V2 today by any chance?
karog
 
Posts: 305
Joined: Thu Jan 05, 2012 7:55 pm

Re: E02 no ssh after pacman -Syu

Postby corbo » Tue Jul 17, 2012 11:34 pm

I believe my Dockstar is having the same issue. I've even started fresh. I dropped the rootfs onto my drive and updated again to the same results. Nothing in the logs after the reboot.
corbo
 
Posts: 15
Joined: Sat Oct 22, 2011 6:17 pm

Re: E02 no ssh after pacman -Syu

Postby portnumber53 » Wed Jul 18, 2012 5:56 am

mv /lib/modules/2.6.31.6_SMP_820 /usr/lib/modules

seems to solve this problem for me.

I also did
cp /lib/modules/gmac_copro_firmware /usr/lib/modules
just for the sake of doing it :)
portnumber53
 
Posts: 2
Joined: Mon Jun 25, 2012 1:30 am

Re: E02 no ssh after pacman -Syu

Postby karog » Wed Jul 18, 2012 12:43 pm

$this->bbcode_second_pass_quote('portnumber53', 'm')v /lib/modules/2.6.31.6_SMP_820 /usr/lib/modules

seems to solve this problem for me.

I also did
cp /lib/modules/gmac_copro_firmware /usr/lib/modules
just for the sake of doing it :)

If you are on 2.6.31.6_SMP_820, you are not on a pogo V2 and I am guessing none of the other devices of this forum section. Looks more like a pogo V3.

Nonetheless, good that that worked for you.
karog
 
Posts: 305
Joined: Thu Jan 05, 2012 7:55 pm
Top

Re: E02 no ssh after pacman -Syu

Postby corbo » Wed Jul 18, 2012 2:19 pm

I rebuilt again last night. I've updated now, but haven't rebooted. Looking in /lib, I have no modules directories. Just have some files owned by glibc.

Rebooting at this point, the system will not come backup. So as much as I wish it was the /lib/modules -> /usr/lib/modules issue, it doesn't seem to be so.
corbo
 
Posts: 15
Joined: Sat Oct 22, 2011 6:17 pm

Re: E02 no ssh after pacman -Syu

Postby BrianD » Thu Jul 19, 2012 3:30 am

I have a similar setup on an E02, separate /boot and / partitions, and experienced the same issue. After connecting a serial cable, I found the following:

$this->bbcode_second_pass_code('', 'Found bootable drive on usb 0:1
Loading file "/boot/uImage" from usb device 0:1 (usbda1)
2857200 bytes read
Loading file "/boot/uInitrd" from usb device 0:1 (usbda1)
** File not found /boot/uInitrd
## Booting kernel from Legacy Image at 00800000 ...
Image Name: Linux-3.1.10-12-ARCH
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2857136 Bytes = 2.7 MiB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[ 5.250578] rtc-mv rtc-mv: internal RTC not ticking
[ 5.258663] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
INIT: version 2.88 booting

> Arch Linux ARM

> http://www.archlinuxarm.org

------------------------------
:: Mounting Root Read-Only [BUSY] [FAIL]
:: Adjusting system time and setting kernel timezone [BUSY] [DONE]
:: Starting UDev Daemon [BUSY] [DONE]
:: Triggering UDev uevents [BUSY] [DONE]
:: Loading User-specified Modules [BUSY] [DONE]
:: Waiting for UDev uevents to be processed [BUSY] [DONE]
:: Configuring Virtual Consoles [BUSY] G [DONE]
:: Bringing up loopback interface [BUSY] [DONE]
:: Unlocking encrypted volumes [BUSY] [DONE]
:: Checking Filesystems [BUSY] /dev/sda2 is mounted.
e2fsck: Cannot continue, aborting.


[FAIL]

***************** FILESYSTEM CHECK FAILED ****************
* *
* Please repair manually and reboot. Note that the root *
* file system is currently mounted read-only. To remount *
* it read-write type: mount -o remount,rw / *
* When you exit the maintenance shell the system will *
* reboot automatically. *
* *
************************************************************

Give root password for maintenance
(or type Control-D to continue): ')

After editing the /etc/fstab and disabling fsck on all partitions, the unit will now successfully boot.
BrianD
 
Posts: 14
Joined: Thu Jul 19, 2012 3:16 am

Next

Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 1 guest