Buffalo NAS-Central Forums

Welcome to the Linkstation Wiki community
It is currently Thu Nov 23, 2017 6:28 am

All times are UTC+01:00




Post new topic  Reply to topic  [ 103 posts ]  Go to page Previous 13 4 5 6 7 Next
Author Message
PostPosted: Tue May 23, 2006 4:52 pm 
Offline
Newbie
User avatar

Joined: Sun May 21, 2006 11:04 am
Posts: 29
Location: Japan
Hi.
This is bootlog of my LinkStationII. It captured with serial console.

It includes:
i) power-on boot (ROM boot)
ii) boot with loader.o (New kernel boot)
iii) shutdown

ls2.log

Thanks.

_________________
NetBSD/LinkStation works well :-)


Top
   
PostPosted: Tue May 23, 2006 5:08 pm 
Offline
Site Admin
User avatar

Joined: Sun Jul 17, 2005 4:34 pm
Posts: 5332
Can you tell us more about the start of the watchdog, and why it may not be satisfied with our kernels?

BTW, I've got a bootloader that does a cleaner insmod, namely on a readonly filesytem. Check it out at <http://hvkls.dyndns.org/downloads/>. Needs only small modifications for you I would say (replace 2005 w/ 2003, move the kernel to /bootII/vmlinuxII.bin)


Top
   
PostPosted: Wed May 24, 2006 2:41 pm 
Offline
Newbie
User avatar

Joined: Sun May 21, 2006 11:04 am
Posts: 29
Location: Japan
Hi,
(Sorry, In broken English.)

Can you tell us more about the start of the watchdog

I only have a little infomation about watchdog.

- Watchdog is a part of Power-Controller, and it connected via ttyS0.
- A daemon named "mc_ctld" is feed a food to the watchdog.
- Feed interval is about 40 seconds.
- It is more difficult to analyze the sequence than LinkStationI/HG.
- It sequence is bi-directional. (LinkStationI is not.)
- So "mv /dev/ttyS0 /dev/ttyS0.orig; touch /dev/ttyS0; /usr/sbin/mc_ctld" gets useless results.
(mc_ctld send commands to PowerController, but none reply. Then mc_ctld retry it infinity.)
- And, it is not possible that use of PowerController and SerialConsole at same time.
- IDT 79RC32434 has only one UART.

I nomally use serial console and "Disable-AVR" method. This disables watchdog too.
But, I will try to analyze it more positive. :)


why it may not be satisfied with our kernels?

The kernel has serial driver, and it works well. (I use it as serial console.)
I think it is possible to run mc_ctld completely. (But it is not.)

Is mc_ctld runs twice? This cause sequence mismatch against PowerController.
(a) Boot from rom.
(b) Boot with loader.o
If so, is it possible to run "insmod loader.o" before mc_ctld(a) with your bootloader?

Thanks.

_________________
NetBSD/LinkStation works well :-)


Top
   
PostPosted: Wed May 24, 2006 3:05 pm 
Offline
Site Admin
User avatar

Joined: Sun Jul 17, 2005 4:34 pm
Posts: 5332
The bootloader script is the very first thing to start in the boot process, /etc/rcS.d/S00*. The watchdog starts much much later (on the LS1), /etc/rc2.d/S93* by default, /etc/rc2.d/S12* by our recommendation.

Get the latest version of the bootloader, it should work with your 2003 original kernel now as well.


Top
   
PostPosted: Wed May 24, 2006 3:51 pm 
Offline
Newbie
User avatar

Joined: Sun May 21, 2006 11:04 am
Posts: 29
Location: Japan
Hi andre,

The bootloader script is the very first thing to start in the boot process,

Then, I have no idea. :-(

BTW, I got your bootloader. I'll try with it.
Thank you!

_________________
NetBSD/LinkStation works well :-)


Top
   
PostPosted: Wed May 24, 2006 4:15 pm 
Offline
Site Admin
User avatar

Joined: Sun Jul 17, 2005 4:34 pm
Posts: 5332
Grab the new version "v33a", I've added a switch for BOOTLOADERARGS


Top
   
PostPosted: Wed May 24, 2006 7:56 pm 
Offline
Regular Member
User avatar

Joined: Thu Apr 13, 2006 12:28 pm
Posts: 76
Location: United Kingdom (Great Britain)
I have been working with lb_worm to try to get the avr_evtd (the opensource mc_ctld replacement) working on the mips. We have been using strace to monitor the activity of the of mc_ctld which will be worked into avr_evtd.

It was communicating with the AVR today but still 5min reboot.

If I get the chance I will run a strace of mc_ctld after doing the insmod loader...... Might give us a clue..


Top
   
PostPosted: Wed May 24, 2006 8:12 pm 
Offline
Site Admin
User avatar

Joined: Tue Jul 12, 2005 11:26 am
Posts: 3701
Location: JAPAN
Completed MIPSEL coding of the avr_evtd. Will try on Spanners box tomorrow. Had to change the launch script in the process.

_________________
LS used as PVR and streaming source


Top
   
PostPosted: Thu May 25, 2006 1:09 pm 
Offline
Site Admin
User avatar

Joined: Tue Jul 12, 2005 11:26 am
Posts: 3701
Location: JAPAN
See kuroevtd posting. MIPSEL loader.o working with avr_evtd

_________________
LS used as PVR and streaming source


Top
   
PostPosted: Thu May 25, 2006 9:33 pm 
Offline
Site Admin
User avatar

Joined: Mon Jul 11, 2005 7:19 am
Posts: 7703
Location: Austria, Vienna
@andre: i can`t download the new bootloader at the moment...your linkstations seems to be down.

i wanted to look into the new bootloader a bit.
----------------------------------------------------------------------
i have a suggestion for it:

if someone tries to load the kernel with root=/dev/hda3 (=/mnt/).....

....and if the kernel really loads.......

then he will never have a chance to get back to his root-filesystem on /dev/hda1 at the moment.

he would have never the chance to remove /boot/kernel-last-boot-okay ..... because he is jailed to /mnt/ ......

i would suggest that if the option "root=/dev/hda3" is set, it should instead/additionally check if /mnt/boot/kernel-last-boot-okay (or how you want to call this file....) is present.

then any user could easily go back to the normal filesystem by removing /mnt/boot/kernel-last-boot-okay....

......there you won`t need the different flavoured boot-folders, as there is no binary used there.....you would only have to check for the second kernel-last-boot-okay on hda3.....

there must be a way to get back to the normal root-fs on /dev/hda1

_________________
LS1 (2.6 kernel, foonas svn1062, 750 GB, UBoot 1.2) & LS Pro (FreeLink/jtymod/GenLink, changes all the time)
Thx to all donators!


Top
   
PostPosted: Thu May 25, 2006 11:05 pm 
Offline
Regular Member
User avatar

Joined: Thu Apr 13, 2006 12:28 pm
Posts: 76
Location: United Kingdom (Great Britain)
Can confirm the avr_evtd stops the 5min restart! Good work lb_worm!!


As discovered earlier avr_evtd is still suspending when any of the buttons are pressed on the box. I'll try to look at this this weekend.


Top
   
PostPosted: Fri May 26, 2006 5:38 am 
Offline
Site Admin
User avatar

Joined: Sun Jul 17, 2005 4:34 pm
Posts: 5332
Just to make this very clear: kernel-last-boot-okay is dead and buried since v30 is out (the current version is v32; the bootloader is at v33a). Remove kernel-last-boot-okay from your system. You need try_new_kernel. R T F M .

As for the trap, create /dev/hda3/mnt/stdroot. Then edit /dev/hda3/etc/fstab (sic!), mount /dev/hda1 on /mnt/stdroot/ automatically, and have all settings at your command. If you make sure /dev/hda1/etc/default/boot_new.sh and /dev/hda3/etc/default/boot_new.sh are in sync, it will boot the desired rootfs.


Top
   
PostPosted: Fri May 26, 2006 8:35 am 
Offline
Site Admin
User avatar

Joined: Mon Jul 11, 2005 7:19 am
Posts: 7703
Location: Austria, Vienna
well sorry....it was late....and i meant try_new_kernel....and i could not download your last bootloader because your LS was down..

_________________
LS1 (2.6 kernel, foonas svn1062, 750 GB, UBoot 1.2) & LS Pro (FreeLink/jtymod/GenLink, changes all the time)
Thx to all donators!


Top
   
PostPosted: Fri May 26, 2006 9:00 am 
Offline
Site Admin
User avatar

Joined: Mon Jul 11, 2005 7:19 am
Posts: 7703
Location: Austria, Vienna
hmm...i just looked at the bootloader.....

say we are loading the 2.6-kernel successfully with "root=/dev/hda3"......it is loaded everytime as there is no problem.

how could we break out of the trap?

i see no special commands regarding that in /etc/init.d/boot_new.sh.

If you make sure /dev/hda1/etc/default/boot_new.sh and /dev/hda3/etc/default/boot_new.sh are in sync, it will boot the desired rootfs.

how? do you want to load the 2.4-kernel via loader.o?
(this won`t work anyway as the it was built for the 2.4.17-kernel in the flash....we would have to recompile the loader.o for that)

a simple file like gobackto24 (or some other name...its your choice of course) in /dev/hda3/boot/ (=/mnt/boot/ ) would make it easy to revert back to 2.4.17 on /dev/hda1 .... if it was checked also then we could go back by simply creating or removing it (that depends of course which name you choose for it )

if i annoy you because i do not understand the bootloader completely, then sorry. could you please describe how a LS thats continously boots into 2.6-kernel with "root=/dev/hda3" gets out of its jail?

_________________
LS1 (2.6 kernel, foonas svn1062, 750 GB, UBoot 1.2) & LS Pro (FreeLink/jtymod/GenLink, changes all the time)
Thx to all donators!


Top
   
PostPosted: Fri May 26, 2006 4:30 pm 
Offline
Site Admin
User avatar

Joined: Sun Jul 17, 2005 4:34 pm
Posts: 5332
The bootloader process is described in great detail in <http://buffalo.nas-central.org/Articles/GeneralUpgradeTo26-Kernel#toc4>

It's very simple: you always boot Buffalo's 2.4, then load a new kernel that uses either into /dev/hda1 or /dev/hda3. As you have access to both configuration files, and you can set them both to the same value, you can boot into the kernel and root filesystem you prefer. Of couse kernel and bootloader must also be present on /dev/hda3.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 103 posts ]  Go to page Previous 13 4 5 6 7 Next

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Limited