Buffalo NAS-Central Forums

Welcome to the Linkstation Wiki community
It is currently Sun Nov 19, 2017 6:10 am

All times are UTC+01:00




Post new topic  Reply to topic  [ 81 posts ]  Go to page Previous 1 2 3 4 5 6 Next
Author Message
PostPosted: Thu Oct 25, 2007 6:59 am 
Offline
Site Admin
User avatar

Joined: Sun Jul 17, 2005 4:34 pm
Posts: 5332
There's still some work to do, I'm currently rewriting the bootloader, and it has only been tested with mipsel 2.4 kernels so far (MIPS24_HACK). I suggest to install the latest development snapshot from my tmp directory;

cp /etc/default/boot_new.sh_local_sample /etc/default/boot_new.sh_local

then uncomment the MIPS26 configuration in /etc/default/boot_new.sh_local so it reads

BOOTLOADERARGS=' load_addr=0x80800000 start_addr=0x80426000 '

and reboot. Can't guarantee it will already works as expected, but it should.


Top
   
PostPosted: Thu Oct 25, 2007 12:39 pm 
Offline
Newbie

Joined: Wed Aug 30, 2006 11:43 pm
Posts: 38
I'm gonna try that with your new bootloader right now I'll report back any problems.

But I have some doubt for one thing:
I don't know what we're searching trough the kernel file doing:
Code:
nm vmlinux-2.6.22.ls2 | grep _ftext
but it returns nothing.
I think the bootloader will be confused because there is no 80800000 address in the kernel:
Code:
nm vmlinux-2.6.22.ls2 | grep 80800000
gives nothing back
The problem is there is no "_ftext" in the kernel.
I absolutely don't know is that could be a problem.


Top
   
PostPosted: Thu Oct 25, 2007 12:57 pm 
Offline
Newbie

Joined: Wed Aug 30, 2006 11:43 pm
Posts: 38
Ok I just rebooted and uname -r gives back 2.4.20_mipsel_linkstation :(


Top
   
PostPosted: Thu Oct 25, 2007 1:32 pm 
Offline
Newbie
User avatar

Joined: Sun May 21, 2006 11:04 am
Posts: 29
Location: Japan
Sorry, load_addr value is not correct. 0x80100000 is correct value.
Try "grep _text System.map" to fetch it.

And, start_addr value may get "grep __init_begin System.map".

For example, (for LNI's kernel)
Quote:
insmod loader.o kernel=vmlinux-2.6.22.ls2.bin load_addr=0x80100000 start_addr=0x80426000

_________________
NetBSD/LinkStation works well :-)


Top
   
PostPosted: Thu Oct 25, 2007 2:03 pm 
Offline
Newbie

Joined: Wed Aug 30, 2006 11:43 pm
Posts: 38
Thank you Eiji
changed address in /etc/default/boot_new.sh_local

rebooted --> no luck, still 2.4 kernel


Top
   
PostPosted: Thu Oct 25, 2007 2:25 pm 
Offline
Site Admin
User avatar

Joined: Sun Jul 17, 2005 4:34 pm
Posts: 5332
Because my loader looks for different file names (depending on the version), so

cd /boot
ln -s vmlinux-2.6.22.ls2.bin vmlinux.binII
ln -s vmlinux-2.6.22.ls2.bin vmlinux.bin
rm try*
touch try_new_kernel
echo -n 'vmlinux.binII' > try_new_kernelII
reboot


Top
   
PostPosted: Thu Oct 25, 2007 3:57 pm 
Offline
Newbie

Joined: Wed Aug 30, 2006 11:43 pm
Posts: 38
--> bricked
I'll have to unscrew my LSII one more time I think.

I did as you wrote:
cd /boot
ln -s vmlinux-2.6.22.ls2.bin vmlinux.binII
ln -s vmlinux-2.6.22.ls2.bin vmlinux.bin
rm try* --> cannot find file
touch try_new_kernel --> create a new empty try_new_kernel file
echo -n 'vmlinux.binII' > try_new_kernelII --> create a new try_kernelII file (non empty but I forgot to see what's inside)
before rebooting, I renamed my vmlinux-2.6.22-ls2 to vmlinux-2.6.22.ls2.bin to match the link
reboot
Then no weird lights on my lsII but when I try to ping it, nobody on the line. To reboot it I had to remove the powercord because the front switch did nothing.
Any idea before I fix my LS with ide cable?


Top
   
PostPosted: Thu Oct 25, 2007 4:06 pm 
Offline
Newbie
User avatar

Joined: Sun May 21, 2006 11:04 am
Posts: 29
Location: Japan
mouloud wrote:
before rebooting, I renamed my vmlinux-2.6.22-ls2 to vmlinux-2.6.22.ls2.bin to match the link


Only make a link?

If your "vmlinux-2.6.22-ls2" is ELF format, you must convert it to "binary" to boot.
Quote:
objcopy -O binary vmlinux-2.6.22-ls2 vmlinux-2.6.22-ls2.bin

_________________
NetBSD/LinkStation works well :-)


Top
   
PostPosted: Thu Oct 25, 2007 4:06 pm 
Offline
Site Admin
User avatar

Joined: Sun Jul 17, 2005 4:34 pm
Posts: 5332
My kernel loader features an anti-bricking mechanism, which makes it superior to running insmod directly. The first advantage is, it will load the kernel from a read-only file system. The second, if the system can't be shut down or rebooted cleanly, for example because the kernel doesn't work, it will not attempt to load kernel 2.6 the next time you boot. So in terms of fixing things on the file system level, I wouldn't know what to fix.


Top
   
PostPosted: Thu Oct 25, 2007 4:28 pm 
Offline
Newbie

Joined: Wed Aug 30, 2006 11:43 pm
Posts: 38
Sorry guys, my ls is not bricked. Shame on me.
But the first time I rebooted the LS wasn't responding (I tried for a long time).
I just didn't wait that long on my second reboot.
Now the old kernel is loaded I just run the toggle script and my linkstation did boot (took a longer time) but on the old kernel.
You were right André, your bootloader is brick-proof.

And Eiji, I did convert the kernel to binary, I just didn't rename it to bin, but I agree it wasn't clear.

By the way, thank you both guys, I really appreciate your fast answer and the time you spend with my case.


Top
   
PostPosted: Thu Oct 25, 2007 4:31 pm 
Offline
Site Admin
User avatar

Joined: Sun Jul 17, 2005 4:34 pm
Posts: 5332
Try insmod directly, as Eiji suggested, watch for errors.


Top
   
PostPosted: Thu Oct 25, 2007 4:39 pm 
Offline
Newbie

Joined: Wed Aug 30, 2006 11:43 pm
Posts: 38
loading the module seemed to hang my linkstation. It is now unreachable. Unfortunately I can't continue trying right now. I will continue later this day.

edit
the LS is now reachable and old kernel still here


Top
   
PostPosted: Thu Oct 25, 2007 4:51 pm 
Offline
Newbie
User avatar

Joined: Sun May 21, 2006 11:04 am
Posts: 29
Location: Japan
FYI
This is my boot log (from serial console).

# Sorry, too big. :(

Quote:
loader module loaded
kernel=/boot/linux2.6.22.bin
load address=0x80100000
start address=0x80426000
flushing ide devices: hda
Linux version 2.6.22.ls2 (mihai@meme.inline.com) (gcc version 4.0.0 (DENX ELDK 4.0 4.0.0)) #1 Thu Aug 16 23:30:01 BST 2007
CPU revision is: 0001800a
Determined physical RAM map:
memory: 04000000 @ 00000000 (usable)
Initrd not found or empty - disabling initrd
Built 1 zonelists. Total pages: 16256
Kernel command line: root=/dev/hda1 ro console=ttyS0,57600
Primary instruction cache 8kB, physically tagged, 4-way, linesize 16 bytes.
Primary data cache 8kB, 4-way, linesize 16 bytes.
Synthesized TLB refill handler (20 instructions).
Synthesized TLB load handler fastpath (32 instructions).
Synthesized TLB store handler fastpath (32 instructions).
Synthesized TLB modify handler fastpath (31 instructions).
Initializing IRQ's: 168 out of 168
PID hash table entries: 256 (order: 8, 1024 bytes)
Rx5C348: driver initialized
calculating r4koff... 000c34d5(799957)
CPU frequency 399.98 MHz
Using 199.989 MHz high precision timer.
start_kernel(): bug: interrupts were enabled early
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 60384k/65536k available (2774k kernel code, 5096k reserved, 445k data, 160k init, 0k highmem)
Mount-cache hash table entries: 512
NET: Registered protocol family 16
PCI: Initializing PCI
registering PCI controller with io_map_base unset
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
Time: MIPS clocksource has been installed.
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
VFS: Disk quotas dquot_6.5.1
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
Generic RTC Driver v1.07
Serial: 8250/16550 driver $Revision: 1.90 $ 1 ports, IRQ sharing disabled
serial8250: ttyS0 at MMIO 0xb8058000 (irq = 104) is a 16550A
RAMDISK driver initialized: 2 RAM disks of 8192K size 1024 blocksize
loop: module loaded
rc32434 Ethernet driver. (mar2904)
eth0: Rx IRQ 40, Tx IRQ 41, 00:07:40:**:**:**
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
IT8212: IDE controller at PCI slot 0000:00:02.0
IT8212: chipset revision 19
it821x: controller in pass through mode.
IT8212: 100% native mode on irq 146
ide0: BM-DMA at 0x18800000-0x18800007, BIOS settings: hda:pio, hdb:pio
ide1: BM-DMA at 0x18800008-0x1880000f, BIOS settings: hdc:pio, hdd:pio
hda: ST3120022A, ATA DISK drive
ide0 at 0x18800010-0x18800017,0x18800022 on irq 146
hda: max request size: 512KiB
hda: 234441648 sectors (120034 MB) w/2048KiB Cache, CHS=16383/255/63, UDMA(100)
hda: cache flushes supported
hda: hda1 hda2 hda3 hda4
LinkStation v2 flash device: 400000 at 1fc00000
LinkStation v2 Flash: Found 1 x16 devices at 0x0 in 8-bit bank
Amd/Fujitsu Extended Query Table at 0x0040
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
Creating 4 MTD partitions on "LinkStation v2 Flash":
0x00000000-0x00040000 : "mtd0: bootloader"
0x00040000-0x00390000 : "mtd1: kernel+ramdisk"
0x003c0000-0x00400000 : "mtd2: configuration"
0x00000000-0x00400000 : "mtd3: all flash"
LinkStation v2 flash device initialized
PCI: Enabling device 0000:00:04.2 (0000 -> 0002)
ehci_hcd 0000:00:04.2: EHCI Host Controller
ehci_hcd 0000:00:04.2: new USB bus registered, assigned bus number 1
ehci_hcd 0000:00:04.2: irq 148, io mem 0x50022000
ehci_hcd 0000:00:04.2: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 5 ports detected
PCI: Enabling device 0000:00:04.0 (0000 -> 0002)
ohci_hcd 0000:00:04.0: OHCI Host Controller
ohci_hcd 0000:00:04.0: new USB bus registered, assigned bus number 2
ohci_hcd 0000:00:04.0: irq 148, io mem 0x50020000
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 3 ports detected
PCI: Enabling device 0000:00:04.1 (0000 -> 0002)
ohci_hcd 0000:00:04.1: OHCI Host Controller
ohci_hcd 0000:00:04.1: new USB bus registered, assigned bus number 3
ohci_hcd 0000:00:04.1: irq 148, io mem 0x50021000
usb usb3: configuration #1 chosen from 1 choice
hub 3-0:1.0: USB hub found
hub 3-0:1.0: 2 ports detected
usbcore: registered new interface driver usblp
drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver libusual
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
NET: Registered protocol family 5
kjournald starting. Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
VFS: Mounted root (ext3 filesystem) readonly.
Freeing unused kernel memory: 160k freed
Algorithmics/MIPS FPU Emulator v1.5
INIT: version 2.86 booting
mount: proc already mounted
Activating swap...
Adding 265064k swap on /dev/hda2. Priority:-1 extents:1 across:265064k
umount: /proc: device is busy
Checking root file system...
fsck 1.37 (21-Mar-2005)
/dev/hda1: clean, 85061/524288 files, 411250/1048233 blocks
EXT3 FS on hda1, internal journal
Segmentation fault
mount: proc already mounted
System time was Thu Oct 25 15:46:16 UTC 2007.
Setting the System Clock using the Hardware Clock as reference...
System Clock set. System local time is now Fri Oct 26 00:46:18 JST 2007.
Cleaning up ifupdown...done.
Calculating module dependencies... done.
Loading modules...
All modules loaded.
Checking all file systems...
fsck 1.37 (21-Mar-2005)
Setting kernel variables ...
... done.
Mounting local filesystems...
kjournald starting. Commit interval 5 seconds
EXT3 FS on hda3, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
/dev/hda3 on /mnt/hda type ext3 (rw,noatime)
Cleaning /tmp /var/run /var/lock.
Running 0dns-down to make sure resolv.conf is ok...done.
Setting up networking...done.
Setting up IP spoofing protection: rp_filter.
Configuring network interfaces...done.
Starting portmap daemon: portmap.

Setting the System Clock using the Hardware Clock as reference...
System Clock set. Local time: Fri Oct 26 00:46:23 JST 2007

Running ntpdate to synchronize clockNET: Registered protocol family 10
lo: Disabled Privacy Extensions
Mobile IPv6
.
Initializing random number generator...done.
Recovering nvi editor sessions... done.
Setting up X server socket directory /tmp/.X11-unix...done.
Setting up ICE socket directory /tmp/.ICE-unix...done.
INIT: Entering runlevel: 2
Starting system log daemon: syslogdtelnetd: starting
port: 60023; interface: any; login program: /bin/bash
.
Starting kernel log daemon: klogd.
Starting portmap daemon: portmap.
Starting cannaserver...
Starting MTA: exim4.
Starting FreeWnn Japanese server: jserver (FreeWnn 1.1.0 pl20) Nihongo Multi Client Server
Reading /usr/share/wnn/ja_JP/dic/pubdic/kihon.dic Fid = 1
Reading /usr/share/wnn/ja_JP/dic/pubdic/setsuji.dic Fid = 2
Reading /usr/share/wnn/ja_JP/dic/pubdic/koyuu.dic Fid = 3
Reading /usr/share/wnn/ja_JP/dic/pubdic/chimei.dic Fid = 4
Reading /usr/share/wnn/ja_JP/dic/pubdic/jinmei.dic Fid = 5
Reading /usr/share/wnn/ja_JP/dic/pubdic/special.dic Fid = 6
Reading /usr/share/wnn/ja_JP/dic/pubdic/computer.dic Fid = 7
Reading /usr/share/wnn/ja_JP/dic/pubdic/symbol.dic Fid = 8
Reading /usr/share/wnn/ja_JP/dic/pubdic/tankan.dic Fid = 9
Reading /usr/share/wnn/ja_JP/dic/pubdic/bio.dic Fid = 10
Reading /usr/share/wnn/ja_JP/dic/gerodic/g-jinmei.dic Fid = 11
Reading /usr/share/wnn/ja_JP/dic/pubdic/full.fzk Fid = 12
Finished Reading Files
jserver.
Starting internet superserver: inetd.
Starting printer spooler: lpd .
Starting OpenBSD Secure Shell server: sshd.
Starting NFS common utilities: statd.
Starting deferred execution scheduler: atd.
Starting periodic command scheduler: cron.
Not start services: mc_ctld

Debian GNU/Linux 3.1 BUFFALO ttyS0

BUFFALO login:

_________________
NetBSD/LinkStation works well :-)


Top
   
PostPosted: Thu Oct 25, 2007 4:58 pm 
Offline
Site Admin
User avatar

Joined: Sun Jul 17, 2005 4:34 pm
Posts: 5332
mouloud, wait two to three minutes for the power light to settle. Still unreachable via ping?


Top
   
PostPosted: Thu Oct 25, 2007 6:51 pm 
Offline
Newbie

Joined: Wed Aug 30, 2006 11:43 pm
Posts: 38
My linkstation boots ok finally, just have to wait a little. But it boots always on the old kernel with the try_new_kernelII.running file present.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 81 posts ]  Go to page Previous 1 2 3 4 5 6 Next

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 9 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