On Monday, May 6, 2013 11:41:13 PM UTC-5, Brian W wrote:I had the recent release of Alt-F installed...and went with the Debian install through the admin pages on Alt-F. the activity light is "fluttering" but nothing on lights on either side.
Anyone time the install? can't seem to get back to the NAS with the prior IP address.
TIADidn't time it
but it locks up the box upon attempt to execute Debian from Alt-F panels.
debian -chroot ls
debian -chroot
Using RC3 in a DNS-321 Debian install via the Alt-F panels, the Debian install starts, initial disk usage is:Filesystem Size Used Available Use% Mounted on
rootfs 30.0M 1.3M 28.7M 4% /
tmpfs 30.0M 1.3M 28.7M 4% /rootmnt
/rootmnt/dev/loop0 6.3M 6.3M 0 100% /rootmnt/ro
aufs 30.0M 1.3M 28.7M 4% /
tmpfs 52.0M 1.9M 50.1M 4% /tmp
/dev/sda2 186.4G 194.1M 186.3G 0% /mnt/sda2climbs to :/dev/sda2 186.4G 539.3M 185.9G 0% /mnt/sda2then settles down after Debian install fetches Alt-F from sourceforge to ( which Alt-F is the script fetching ( 323, 321 Chopper) ? )
:/dev/sda2 186.4G 441.2M 186.0G 0% /mnt/sda2Upon attempt to execute Debian from Alt-F panels, it finds Debian installed, click on execute and the following appears:Executing Debian...
failed.
Once this happens, the 321 is not accessible until power is removed
and it reboots. The center blue led is flashing steady and the drive light is on solid.After removing power and powering back on Alt-F is accessible again. Same thing happens when attempting to start Debian after the reboot, total lockup.Is the Debian 'install' log which disappears from the web interface once Debian is installed stored somewhere ?
Phil
On Saturday, May 25, 2013 12:11:26 AM UTC+1, hal...@gmail.com wrote:
but it locks up the box upon attempt to execute Debian from Alt-F panels.Try using the command line debian command first to chroot it, e.g.,
debian -chroot lsif that works, try just
debian -chrootyou should now be using debian rootfs but running Alt-F kernel; type 'exit' to return to Alt-F.
If it works, see if a valid kernel and initramfs (vmlinuz and initrd.img) exists in the base of the partition where debian was installed.
Executing Debian...
failed.hmmm, I have to try this myself (again)...
Is the Debian 'install' log which disappears from the web interface once Debian is installed stored somewhere ?
debian -chroot
/usr/sbin/update-initramfs -u
exit
On Saturday, May 25, 2013 2:40:05 PM UTC+1, hal...@gmail.com wrote:
hmmm, I have to try this myself (again)...I can, at least partly, confirm that there are issues with Debian when installing on a degraded RAID. But not on an ordinary filesystem.First I installed Debian on an ordinary filesystem, just to be sure that it works. It did works fine.
Then I installed in a RAID partition; like you 'debian -chroot' worked fine, but 'debian -kexec' didn't.As I have a serial console, I could watch Debian booting, and it stopped waiting for the root (RAID) device, that didn't appears.
That was due to the fact that I'm on a degraded RAID, and for that reason the Debian installation script didn't add support for booting from RAID.I executed
debian -chroot
/usr/sbin/update-initramfs -u
exit
After fixing the 'debian' script to also support a degraded RAID, I was able to start 'debian -kexec' from my serial console and from a telnet and a ssh session (as the 'root' user, of course).The box has the same IP under Debian as before. If Alt-F has a static IP, the 'debian' script sets Debian to use that IP; if Alt-F is using DHCP, then the Debian script sets Debian to also use DHCP (not necessarily using the same IP!).Then, within Debian I was able to "return" to Alt-F by executing the 'alt-f' command (faster then a reboot)
On Sunday, May 26, 2013 11:41:32 AM UTC-5, João Cardoso wrote:
On Saturday, May 25, 2013 2:40:05 PM UTC+1, hal...@gmail.com wrote:Executing Debian...
failed.hmmm, I have to try this myself (again)...I can, at least partly, confirm that there are issues with Debian when installing on a degraded RAID. But not on an ordinary filesystem.First I installed Debian on an ordinary filesystem, just to be sure that it works. It did works fine.I installed on the 2TB drive as well, still no go. Used United States repository. Noticed squeeze flash by on one of the lines during the last portion, but could see everything toward the end as it 'disappears' ;)Then I installed in a RAID partition; like you 'debian -chroot' worked fine, but 'debian -kexec' didn't.As I have a serial console, I could watch Debian booting, and it stopped waiting for the root (RAID) device, that didn't appears.Haven't made a serial connection yet as haven't located a good plug for the on-board jack.
Have the CA42/52 ? cable with the level shift built-in. Anyone have a good idea for a plug source that fits the jack ? The SS4000-e serial jack was a cinch as I had a jumper cable with the header that fits.That was due to the fact that I'm on a degraded RAID, and for that reason the Debian installation script didn't add support for booting from RAID.I executed
debian -chroot
/usr/sbin/update-initramfs -u
exit
After fixing the 'debian' script to also support a degraded RAID, I was able to start 'debian -kexec' from my serial console and from a telnet and a ssh session (as the 'root' user, of course).The box has the same IP under Debian as before. If Alt-F has a static IP, the 'debian' script sets Debian to use that IP; if Alt-F is using DHCP, then the Debian script sets Debian to also use DHCP (not necessarily using the same IP!).Then, within Debian I was able to "return" to Alt-F by executing the 'alt-f' command (faster then a reboot)Thinking perhaps 2 drives with swap space might help I put the previously formated 200MB drive in the left side and tried again. debian -chroot works but debian -kexec fails like so:root@DNS-323:/# which chroot
/usr/sbin/chroot
root@DNS-323:/# exit
exit
# debian -kexec
# nohup: appending output to nohup.out
Connection closed by foreign host.and the DNS-321 is locked up after this.Not knowing what I am doing at this point I try :# debian -chroot
root@DNS-323:/# which update-initramfs
/usr/sbin/update-initramfs
root@DNS-323:/# update-initramfs -u
update-initramfs: Generating /boot/initrd.img-2.6.32-5-orion5x
W: mdadm: unchecked configuration file: /etc/mdadm/mdadm.conf
W: mdadm: please read /usr/share/doc/mdadm/README.upgrading-2.5.3.gz .
W: mdadm: no arrays defined in configuration file.
root@DNS-323:/# exit
exit
#which still locks the box after debian -kexec is attempted.There must be something different between the 323 and the 321 which is killing loading the Debian kernal.
Philb
Depending on your current directory when executing the command (the filesystem with the Debian install is a hood place) , the 'nohup.out' file it might be on disk, and you can read it (until a certain point)
runlevel >> /var/log/user.log
ps -ef >> /var/log/user.log
ifconfig >> /var/log/user.log
exit 0
Correction: replace the last exit with
>
> runlevel >> /var/log/user.log
> ps -ef >> /var/log/user.log
> ifconfig >> /var/log/user.log
> exit 0
>
>
> And watch/post '/var/log/user.log' after an -kexec
>
> Anyhow, the dmesg shows that the Debian kernel has no DNS-321 support, it is identical to the first attempts that Matt did when he flashed Alt-F on his DNS-321 (see the "So I flashed Alt-F to a DNS-321... :)" topic).
> Otherwise, the boot proceeds normally, the rootfs is mounted and udev is even started. But no other user level process is shown.
> The network does not seems to be initialized (the MAC wasn't read) but that didn't avoided Alt-F to continue booting in the same circumstances.
> However it seems that a fake MAC is used later...
>
> Relevant lines, showing that it is booting:
>
> net eth0: port 0 with MAC address 00:22:b0:51:98:79
> eth0: link up, 100 Mb/s, full duplex, flow control disabled
>
> Adding 524280k swap on /dev/sda1.
> EXT4-fs (sda2): mounted filesystem with ordered data mode
> udev[165]: starting version 164
>
>
> --
> You received this message because you are subscribed to the Google Groups "Alt-F" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to alt-f+un...@googlegroups.com.
> To post to this group, send email to al...@googlegroups.com.
> Visit this group at http://groups.google.com/group/alt-f?hl=en.
> To view this discussion on the web visit https://groups.google.com/d/msgid/alt-f/760b77f6-5903-4fb2-83ac-1d941faa2271%40googlegroups.com?hl=en.
>
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
I don't understand: how was you able to get those kernel boot messages if you don't have a serial console? How exactly?Ah, you chroot to Debian afterwards and examined /var/log/... stupid of me!
You have lots of logs there, try seeing the faillog, syslog, daemon.log... they are the result of concatenating all the logs from previous attempts, so you could remove all them and then do a new -kexe test, followed by a -chroot -- then you have the logs from only the last failed boot. Archive them.
Also post the /etc/network/interfaces file. Are you on DHCP or with a static fixed IP on Alt-F?
Also, add the following lines to the end of /etc/rc.local:
runlevel >> /var/log/user.log
ps -ef >> /var/log/user.log
ifconfig >> /var/log/user.log
exit 0
And watch/post '/var/log/user.log' after an -kexec
Anyhow, the dmesg shows that the Debian kernel has no DNS-321 support, it is identical to the first attempts that Matt did when he flashed Alt-F on his DNS-321 (see the "So I flashed Alt-F to a DNS-321... :)" topic).Otherwise, the boot proceeds normally, the rootfs is mounted and udev is even started. But no other user level process is shown.The network does not seems to be initialized (the MAC wasn't read) but that didn't avoided Alt-F to continue booting in the same circumstances.However it seems that a fake MAC is used later...Relevant lines, showing that it is booting:net eth0: port 0 with MAC address 00:22:b0:51:98:79eth0: link up, 100 Mb/s, full duplex, flow control disabledAdding 524280k swap on /dev/sda1.EXT4-fs (sda2): mounted filesystem with ordered data modeudev[165]: starting version 164
>Also, add the following lines to the end of /etc/rc.local:Correction: replace the last exit with
>
> runlevel >> /var/log/user.log
> ps -ef >> /var/log/user.log
> ifconfig >> /var/log/user.log
> exit 0
> Anyhow, the dmesg shows that the Debian kernel has no DNS-321 support, it is identical to the first attempts that Matt did when he flashed Alt-F
on his DNS-321 (see the "So I flashed Alt-F to a DNS-321... :)" topic).
Some searching this morning confirms no support for DNS-321 in kernel, so guess kexec isn't going to work at all for the 321 currently. From:
No, only the D-Link DNS-323 is supported. I'm not planning to add support for other D-Link devices but you're welcome to contribute patches to the debian-arm list."
http://hezmatt.org/~mpalmer/blog/2008/10/23/porting-d-i-to-the-dns-323.htmlthe NIC initialisation (all DNS-323 models);"
On Monday, May 27, 2013 12:43:40 PM UTC-5, João Cardoso wrote:I don't understand: how was you able to get those kernel boot messages if you don't have a serial console? How exactly?Ah, you chroot to Debian afterwards and examined /var/log/... stupid of me!
There must be some more setup in the panel than in the 'debian -kexec' command line execution.
# ls -l etc/rc.local
-rwxr-xr-x 1 root root 393 May 27 15:20 etc/rc.localAlso, add the following lines to the end of /etc/rc.local:
runlevel >> /var/log/user.log
ps -ef >> /var/log/user.log
ifconfig >> /var/log/user.log
exit 0
And watch/post '/var/log/user.log' after an -kexecuser.log still has 0 bytes after both the 'debian -kexec' and the panel exeuction of debian.
Relevant lines, showing that it is booting:net eth0: port 0 with MAC address 00:22:b0:51:98:79eth0: link up, 100 Mb/s, full duplex, flow control disabledAdding 524280k swap on /dev/sda1.EXT4-fs (sda2): mounted filesystem with ordered data modeudev[165]: starting version 164
I'll have to go back and re-read the flash 321 post, but IIRC the MAC address is in a different place than the 323.
Another post on the internet shows similar boot sequence with VFP (?) the next line after the one where the 321 stops logging. Perhaps floating-point support in the two different processors 500mhz 323 vs 400mhz 321 (can't remember the actual processor models) may be a culprit if VFP stands for Virtual Floating Point.
Again, I am at a loss as to what is actually going on.
On Tuesday, May 28, 2013 1:46:01 PM UTC-4, João Cardoso wrote:
That I need a serial console.
Something that I was wanting to avoid like the plague.
Agree that it must be something minor stopping Debian from running native. SYSLOG has a few more lines than the previous message I posted:
"May 27 19:48:07 DNS-323 kernel: [ 11.472593] lm75 0-0048: hwmon0: sensor 'lm75'
May 27 19:48:07 DNS-323 kernel: [ 12.403082] Adding 524280k swap on /dev/sda1. Priority:-1 extents:1 across:524280k
May 27 19:48:07 DNS-323 kernel: [ 17.086625] eth0: link up, 100 Mb/s, full duplex, flow control disabled
May 27 19:48:08 DNS-323 /usr/sbin/cron[537]: (CRON) INFO (pidfile fd = 3)
May 27 19:48:08 DNS-323 /usr/sbin/cron[538]: (CRON) STARTUP (fork ok)
May 27 19:48:08 DNS-323 /usr/sbin/cron[538]: (CRON) INFO (Running @reboot jobs)
May 27 19:48:09 DNS-323 kernel: [ 25.868234] NET: Registered protocol family 10
May 27 19:48:20 DNS-323 kernel: [ 36.806282] eth0: no IPv6 routers present"
Regarding Alt-F being able to continue despite MAC address issue, it was a earlier LINUX kernel than the Debian native currently available.
Since Mat Palmer (?) mentioned it running in circles trying to find the net perhaps it is only the MAC problem now that Debian is hanging on ( IPV6 in particular).
If the interd or vmlinuz were editable files, one might be able to change only the MAC location in them and see what happens.
I don't know if that is possible or not since they are compressed images themselves and can not directly searched for the value to change it.
Just so I can see what it should look like, can you post the archive of syslog where kexec successfully runs on your 323 ?
On Tuesday, May 28, 2013 9:53:49 PM UTC+1, hal...@gmail.com wrote:
On Tuesday, May 28, 2013 1:46:01 PM UTC-4, João Cardoso wrote:
That I need a serial console.
Something that I was wanting to avoid like the plague.
Agree that it must be something minor stopping Debian from running native. SYSLOG has a few more lines than the previous message I posted:
"May 27 19:48:07 DNS-323 kernel: [ 11.472593] lm75 0-0048: hwmon0: sensor 'lm75'
May 27 19:48:07 DNS-323 kernel: [ 12.403082] Adding 524280k swap on /dev/sda1. Priority:-1 extents:1 across:524280k
May 27 19:48:07 DNS-323 kernel: [ 17.086625] eth0: link up, 100 Mb/s, full duplex, flow control disabled
May 27 19:48:08 DNS-323 /usr/sbin/cron[537]: (CRON) INFO (pidfile fd = 3)
May 27 19:48:08 DNS-323 /usr/sbin/cron[538]: (CRON) STARTUP (fork ok)
May 27 19:48:08 DNS-323 /usr/sbin/cron[538]: (CRON) INFO (Running @reboot jobs)
May 27 19:48:09 DNS-323 kernel: [ 25.868234] NET: Registered protocol family 10
May 27 19:48:20 DNS-323 kernel: [ 36.806282] eth0: no IPv6 routers present"
Regarding Alt-F being able to continue despite MAC address issue, it was a earlier LINUX kernel than the Debian native currently available.Alt-F runs under 2.6.35, while Debian runs under 2.6.32According to the logs, Debian is using a fake MAC, but that only should make a difference is you have a NIC with that MAC in your network.
Since Mat Palmer (?) mentioned it running in circles trying to find the net perhaps it is only the MAC problem now that Debian is hanging on ( IPV6 in particular).
If the interd or vmlinuz were editable files, one might be able to change only the MAC location in them and see what happens.Not feasible and not the way I work. I put hypotheses, make tests to verify its validity, then fix the bug. I don't guess ;-).Well, sometimes I make educated guesses because there must not exists data enough to prove the hypothesis -- happens often :-(
I don't know if that is possible or not since they are compressed images themselves and can not directly searched for the value to change it.
Just so I can see what it should look like, can you post the archive of syslog where kexec successfully runs on your 323 ?Not at hand.You can try to increase the log verbosity, edit /etc/default/rcS and set VERBOSE=yes.Don't know if it works, I don't use Debian, I just glimpse http://www.debian.org/doc/debian-policy/ch-opersys.html#s-/etc/init.d and http://wiki.debian.org/LSBInitScript
Just so I can see what it should look like, can you post the archive of syslog where kexec successfully runs on your 323 ?Not at hand.
root 487 1 1 21:41 ? 00:00:00 /bin/sh /etc/init.d/rc 2
root 490 487 2 21:41 ? 00:00:00 startpar -p 4 -t 20 -T 3 -M star
root 505 1 8 21:41 ? 00:00:00 /usr/sbin/rsyslogd -c4
root 533 1 1 21:41 ? 00:00:00 /usr/sbin/cron
root 548 1 0 21:41 ? 00:00:00 /sbin/mdadm --monitor --pid-file
root 559 163 1 21:41 ? 00:00:00 udevd --daemon
root 560 163 1 21:41 ? 00:00:00 udevd --daemon
root 561 1 1 21:41 ? 00:00:00 /usr/sbin/sshd
root 567 490 1 21:41 ? 00:00:00 startpar -p 4 -t 20 -T 3 -M star
root 569 567 1 21:41 ? 00:00:00 /bin/sh /etc/init.d/rc.local sta
root 576 569 0 21:41 ? 00:00:00 ps -ef
eth0 Link encap:Ethernet HWaddr 00:22:b0:51:98:79
inet addr:192.168.0.108
Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::222:b0ff:fe51:9879/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3 errors:0 dropped:0 overruns:0 frame:0
TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1252 (1.2 KiB) TX bytes:774 (774.0 B)
I take that back. Debian is working and can be accessed via SSH into the above address.
I had been attempting to telnet into the box thinking that was the method to connect, but just like the HTML panel access, telnet access is not active in native Debian ( I guess ).
The LED controls aren't working and don't guess the fan control is either
( expected if one thinks about it in a native Debian execution without loading any modules to activate control of them ).
After sign in on native Debian, there is a message which mentions you are on your own and to return to alt-f enter alt-f.
That works as well and returns the 321 back to running alt-f after a reboot (?).
The Alt-F panel where you click 'EXECUTE' still shows 'failed' but on firefox it shows a series of things stopping on alt-f and finally executing Debian now, even though the 'failed' is still present at the top of the screen. Opera doesn't show this series of messages unless you click the stop on the browser then they show up.
You have spoiled me and perhaps others by getting Alt-F to manage the LEDs and Fan which is the only outward appearance that an OS is working.
Sorry to have taken so long to try SSH, it isn't installed in the CYGWIN environment on the WIN2K laptop I had been using for testing.