Buffalo NAS-Central Forums

Welcome to the Linkstation Wiki community
It is currently Sat Dec 16, 2017 10:13 am

All times are UTC+01:00




Post new topic  Reply to topic  [ 23 posts ]  Go to page 1 2 Next
Author Message
PostPosted: Mon May 03, 2010 6:39 pm 
Offline
Newbie

Joined: Mon Sep 01, 2008 6:58 pm
Posts: 17
Greetings,

I have an non working kurobox HG for the moment. It was loaded with Debian Etch from Sylver. I've tried to load Tomcat on it and after a restart I’ve got the following message at the end (seen on the serial port):

FATAL: kernel toKernel panic: Attempted to kill init!
o old
<0>Rebooting in 30 seconds..

Now I want to make use of this bad situation and install the latest Debian version lenny on it.
I want to start with the installation of the u-boot bootloader.

My questions are:

- Where can I find the latest U-boot bootloader with a simple explanation how to install ?
(I found a description at:
http://buffalo.nas-central.org/index.ph ... .6_kernels
But to compile it I must have a working installation, re-installed the Debian Sylver version worked until I installed all the necessary packages then it also fails to startup with the same message as above.)

- Where can I find the Debian lenny version for the kurobox HG ?

At start-up the kurobox tells me the following:

******* Product Information *******
----------------------------------
Product Name: KURO-BOX/HG(IESHIGE)
VER: 1.00
Date: 2004/10/19 17:18:54
----------------------------------
Firmware check:done.

>>root=/dev/hda1
Now Loading...done.
Now Booting
Memory BAT mapping: BAT2=128Mb, BAT3=0Mb, residual: 0Mb
Linux version 2.4.17_mvl21 (root@toda_dev.melcoinc.co.jp) (gcc version 2.95.3 20
010315 (release/MontaVista)) #24 2004ǯ 10·î 19Æü ²ÐÍËÆü 17:17:03 JST
KURO-BOX (C) 2004 KUROUTO-SHIKOU.

Kind regards,
Willy Verbiest

_________________
Kurobox HG (Debian Lenny) (Virgin!)


Top
   
PostPosted: Mon May 03, 2010 11:33 pm 
Offline
Site Admin
User avatar

Joined: Mon Aug 28, 2006 1:15 am
Posts: 2606
Hi Willy,

There is a premade/precompiled ready-to-flash .bin uboot iamge ... and a Lenny image also, witha relatively capable kernel included in it.

Look in the PPC suborums and search under my name - you'll find it.

I'd post teh link now but am in the middle of something important here...
followup: viewtopic.php?f=9&t=16626




=====

you'd probably want to consider putting in not just uboot, and Lenny, but also some sort of viable EM mode image (foonas-em).

I need to check to see what I have in my HG, but I know I run Lenny+ uBoot + foonas-em [a special custom roll, IIRC, that has ext4 support built in].

If you are interested, I'll check to see exactly what the foonas-em image has under the hood.

_________________
LS1 (foonas, nfs, Tranmission & p910nd print server, Firefly for my Roku)
LS-HG500 (Lenny)
Various LS-Pros v1,v2 (unbricked w/ serial & jtag)
KuroPro, LS2 & KuroHG (foonas)
Working on davysweather.dyndns.org lately...

=> wooohooo!
wooohooo!
Unknown command 'wooohooo!' - try 'help'


Top
   
PostPosted: Tue May 04, 2010 7:25 pm 
Offline
Newbie

Joined: Mon Sep 01, 2008 6:58 pm
Posts: 17
Hi Davy,Thanks for the reply,
Yes I’m also interested to install the foonas-em.
I have started to search for your conversations in the PPC subforums.

Can you point me the an URL where I can find the binary U-Boot file and the installation manual ?

I’ve downloaded the LS-HG : Lenny 2.6.28.8 file (Lenny-LSPPC-0.1.0.tar.gz) from http://downloads.buffalo.nas-central.or ... 1.0.tar.gz as mentioned in your reply from:
Post subject: Etch & Lenny Tarballs for PPC boxes Posted: Fri Apr 17, 2009 6:45 am

Is this the latest version ?
I have currently a HD of 500GB formatted as EXT3 ( 4GB / SWAP / 496GB ) is it necessary to convert it to EXT4 ?
if so how can I do it ?
I don’t want to lose the data on the 3rd partition. I will first test this upgrade on a spare HD.

For foonas-em I will follow the instructions on:http://foonas.org/index.php/Foonas-em:Install-lsppc

Kind regards,
Willy

_________________
Kurobox HG (Debian Lenny) (Virgin!)


Top
   
PostPosted: Wed May 05, 2010 1:42 am 
Offline
Site Admin
User avatar

Joined: Mon Aug 28, 2006 1:15 am
Posts: 2606
The choice of fs type for your box (between ext3 vs ext4) is your choice, just make sure to modify /etc/fstab to match your situation.

As far as the uboot bin for an HG/KuroHG , it is here : http://downloads.buffalo.nas-central.or ... 2.0-r2.bin

In terms of installing it (burning it into flash ROM) I'll have to look around and see if I can find the directions. IIRC, it may have to be done when you are still in a 2.4 kernel, as someone commented (and I experienced that) some of the 2.6 kernels had a ROM driver that wasn't quite right for writing.

If you want directions for installing foonas-em, there is something on that @ foonas.org


==========

edit: here is my first adventure in flashing... viewtopic.php?f=9&t=1753

don't flash in the firmimg.bin, just the uboot. before you do that, also make sure you have netcat installed on your own computer (Linux workstation?) and your network properly adjusted . Also read the "Netcat..." article in the Articles section... it give some details about connecting via netconsole to your uboot-ized LinkStation.

_________________
LS1 (foonas, nfs, Tranmission & p910nd print server, Firefly for my Roku)
LS-HG500 (Lenny)
Various LS-Pros v1,v2 (unbricked w/ serial & jtag)
KuroPro, LS2 & KuroHG (foonas)
Working on davysweather.dyndns.org lately...

=> wooohooo!
wooohooo!
Unknown command 'wooohooo!' - try 'help'


Top
   
PostPosted: Wed May 05, 2010 10:44 am 
Offline
Newbie
User avatar

Joined: Mon Apr 24, 2006 1:18 pm
Posts: 59
Location: NW UK
It would be a good thing if someone could add this [bin] method of installing U-Boot to the original wiki entry (the link listed in Willy's original post) to keep everything together for future users. In the meantime all the best Willy in getting it all worked out.

_________________
kuroboxHG [U-Boot 1.2.0 * foonas-em 0.0.8-r2 * Gentoo OS * ]


Top
   
PostPosted: Fri May 07, 2010 5:41 pm 
Offline
Newbie

Joined: Mon Sep 01, 2008 6:58 pm
Posts: 17
I have tried to follow the instructions on URL http://buffalo.nas-central.org/index.ph ... .6_kernels but found a some troubles:

- The host www.kurobox.com doesn’t exists anymore !

- For this installation this tutorial goes out from a working kurobox with the following tools and libraries installed:
bzip2, git-core, make, patch, perl, tar, unzip, wget, bison, flex, libncurses5-dev

I only found an old Debian distribution from Sylver in my backups:
debian-sarge-2.6.17.1-mh1_kuro-box-20060623.tgz
Installing this version works well until I try to update / upgrade it then it install libraries from other distributions and refuses to startup. Same problem as reported in my first message.

The file /etc/apt/sources.list has the following contents:
deb http://security.debian.org stable/updates main contrib
deb ftp://ftp.dti.ad.jp/pub/Linux/debian stable main contrib
deb ftp://ftp.dti.ad.jp/pub/Linux/debian-non-US stable/non-US main contrib
deb-src ftp://ftp.dti.ad.jp/pub/Linux/debian stable main contrib
deb-src ftp://ftp.dti.ad.jp/pub/Linux/debian-non-US stable/non-US main contrib

I also lost the FTP server functionality after booting the Debian distribution so I cannot move files over the network to the kurobox with the USB stick it is still possible to copy files to the kurobox.

The description on URL http://buffalo.nas-central.org/index.ph ... .6_kernels is very complex for me, I don’t understand what’s happens exactly with the kurobox and how the memory map is set up on this device. Also the boot order is not clear for me.

At this point I’m totally stuck with my kurobox any help is welcome.

Kind regards,
Willy Verbiest

_________________
Kurobox HG (Debian Lenny) (Virgin!)


Top
   
PostPosted: Sat May 08, 2010 1:43 pm 
Offline
Site Admin
User avatar

Joined: Mon Aug 28, 2006 1:15 am
Posts: 2606
Willy, we need to be absolutely sure... is your box a Kurobox, or a KuroboxHG?

It makes a difference when you flash uboot, since the 2 different boxes have different ethernet chips.

http://buffalo.nas-central.org/index.ph ... bootloader

near the bottom of the page it gives commands using dd.

You might want to post your mtd devices.

Code:
ls /dev/mtd*
or something like that.

_________________
LS1 (foonas, nfs, Tranmission & p910nd print server, Firefly for my Roku)
LS-HG500 (Lenny)
Various LS-Pros v1,v2 (unbricked w/ serial & jtag)
KuroPro, LS2 & KuroHG (foonas)
Working on davysweather.dyndns.org lately...

=> wooohooo!
wooohooo!
Unknown command 'wooohooo!' - try 'help'


Top
   
PostPosted: Sat May 08, 2010 6:16 pm 
Offline
Newbie

Joined: Mon Sep 01, 2008 6:58 pm
Posts: 17
Davy,
This is definitely a Kurobox HG with ppc processor.

While running the Debian (Sylver) distribution:
debian-sarge-2.6.17.1-mh1_kuro-box-20060623.tgz

KURO-BOX:~# uname -a
Linux KURO-BOX 2.6.17.1-mh1_kuro-box #4 Fri Jun 23 02:52:02 CEST 2006 ppc GNU/Linux

KURO-BOX:~# ls -l /dev/mtd*
crw-r--r-- 1 root root 90, 0 Jan 18 2006 /dev/mtd0
crw-r--r-- 1 root root 90, 2 Jan 18 2006 /dev/mtd1
crw-r--r-- 1 root root 90, 4 Jan 18 2006 /dev/mtd2
crw-r--r-- 1 root root 90, 6 Jan 18 2006 /dev/mtd3
crw-r--r-- 1 root root 90, 8 Jan 18 2006 /dev/mtd4
brw-r--r-- 1 root root 31, 0 Jan 18 2006 /dev/mtdblock0
brw-r--r-- 1 root root 31, 1 Jan 18 2006 /dev/mtdblock1
brw-r--r-- 1 root root 31, 2 May 8 23:15 /dev/mtdblock2
brw-r--r-- 1 root root 31, 3 Jan 18 2006 /dev/mtdblock3
brw-r--r-- 1 root root 31, 4 Jan 18 2006 /dev/mtdblock4


Here are some commands from:
http://buffalo.nas-central.org/index.ph ... HGFlashROM

KURO-BOX:~# ./showflash.pl < /dev/mtd0
Version 1
Firmware ID 4098
Firmware Name KURO-BOX/HG(IESHIGE)
Sub Version FLASH 1.0
Major Version 1
Minor Version 0
Build Number 0
Build Date 2004/10/19 17:18:54
firmimg.bin size 2987507
Checksum 2422369039
vmlinux.gz offset 108
vmlinux.gz size 798578
ramdisk.image.gz offset 798686
ramdisk.image.gz size 2188821

KURO-BOX:~# head -c 2903237 /dev/mtd0 > firmimg.bin

KURO-BOX:~# ./showflash.pl < firmimg.bin
Version 1
Firmware ID 4098
Firmware Name KURO-BOX/HG(IESHIGE)
Sub Version FLASH 1.0
Major Version 1
Minor Version 0
Build Number 0
Build Date 2004/10/19 17:18:54
firmimg.bin size 2987507
Checksum 2422369039
vmlinux.gz offset 108
vmlinux.gz size 798578
ramdisk.image.gz offset 798686
ramdisk.image.gz size 2188821

Now in kurobox EM mode
# uname -a
Linux KURO-BOX-EM 2.4.17_mvl21 #24 2004ǯ 10·î 19Æü ²ÐÍËÆü 17:17:03 JST ppc unknown

My kuroboxHG is equipped with a serial port.
If it can help me I can make a jtag cable but I don’t know how I have to use it.

Kind regards,
Willy Verbiest

(PS: I already posted this message but didn't saw it appearing in this forum ?)

_________________
Kurobox HG (Debian Lenny) (Virgin!)


Top
   
PostPosted: Sat May 08, 2010 6:59 pm 
Offline
Site Admin
User avatar

Joined: Mon Aug 28, 2006 1:15 am
Posts: 2606
As far as I can see, everything looks good.

If I remember correctly, the older 2.6 kernels had a problem with the mtd device driver, so you will have to flash while you are in 2.4. That is how I flash.

1. First flash uboot. If you have a good uboot bootloader in ROM, then you can recover from almost _any_ problem that could ever happen.


2. If #1 is good,then you can consider putting in foonas-em.

3. You should not need the JTAG cable if #1 goes OK.

Once you have uboot installed, you can boot by tftp, which is very handy.

Do you need more info?

_________________
LS1 (foonas, nfs, Tranmission & p910nd print server, Firefly for my Roku)
LS-HG500 (Lenny)
Various LS-Pros v1,v2 (unbricked w/ serial & jtag)
KuroPro, LS2 & KuroHG (foonas)
Working on davysweather.dyndns.org lately...

=> wooohooo!
wooohooo!
Unknown command 'wooohooo!' - try 'help'


Top
   
PostPosted: Sat May 08, 2010 8:12 pm 
Offline
Newbie

Joined: Mon Sep 01, 2008 6:58 pm
Posts: 17
Davy,
Yes I need more information.
Where can I find a up-to-date clear description how to put the U-Boot in the kuroboxHG.

With the Debian (Sylver) distribution that I have I cannot compile the U-Boot
When I do an update / upgrade to install the needed packages the kurobox will not boot anymore and I have to clear the first partition on an other computer and re-install Debian again.

Do you know a Debian 2.4 distribution that I can install and update / upgrade and that hase the needed packages ?

Is there somewhere around a binary U-Boot file with a description how to load it into the flash ?
Thanks,
Willy Verbiest

_________________
Kurobox HG (Debian Lenny) (Virgin!)


Top
   
PostPosted: Sat May 08, 2010 8:39 pm 
Offline
Site Admin
User avatar

Joined: Mon Aug 28, 2006 1:15 am
Posts: 2606
Do you have netcat installed, and your network set for 192.168.11.* ? Your workstation should be @ 192.168.11.149 - uboot will expect to see it there.

If I remember correctly, I used something like this:
Code:
dd if=u-boot-hg.flash.bin of=/dev/mtd1 bs=1k

where u-boot-hg.bin is the name of the uboot bin file. NB: Burning something into ROM always carries an inherent risk. I've usually been lucky (30 or 40) - a few times (4 or 5) unlucky and had to JTAG it back to life. Proceed at your own risk.

I used this premade uboot image :
http://downloads.buffalo.nas-central.or ... 2.0-r2.bin

Although I have built uboot from source, I no longer do that.

I'm not sure if the RAM build works EDIT not sure if it works with newer source in the uboot git tree... I've tried one or two RAM builds and it did work for me, but I didn't feel they were necessary once the community had the bugs ironed out.

I'm guessing that dd is built into the EM image capabilities. cmp might not be.

I also ran this version of Debian Sarge: http://downloads.buffalo.nas-central.or ... -HG-HS.tgz

Updating Sarge isn't practical, I guess, anymore, since it is no longer supported by Debian's package feeds. Trying to update it will almost always break it.

Once you have uboot installed, burning in foonas-em and installing the lenny image I pointed you to above is easy.

_________________
LS1 (foonas, nfs, Tranmission & p910nd print server, Firefly for my Roku)
LS-HG500 (Lenny)
Various LS-Pros v1,v2 (unbricked w/ serial & jtag)
KuroPro, LS2 & KuroHG (foonas)
Working on davysweather.dyndns.org lately...

=> wooohooo!
wooohooo!
Unknown command 'wooohooo!' - try 'help'


Top
   
PostPosted: Sun May 09, 2010 7:03 pm 
Offline
Newbie

Joined: Mon Sep 01, 2008 6:58 pm
Posts: 17
Davy,

I’ve just flashed the U-Boot bootloader but I don’t know if it actually worked correctly.
Here is the whole story:

1) I have started Netcat on an other PC running Debian in the same network with the following settings:
mars:~# cat /etc/network/interfaces

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
#address 192.168.1.60
# Special address so the KuroboxHG U-Boot nc can find us
address 192.168.11.149
gateway 192.168.1.254
netmask 255.255.255.0

mars:~# nc -u -p 6666 -v -v 192.168.11.150 6666
192.168.11.150: inverse host lookup failed: Unknown host
(UNKNOWN) [192.168.11.150] 6666 (?) open

2) I have putted the kurobox in normal mode and issued the dd command.
This gave me IO errors.

3) I have putted my kurobox in EM mode
4) I copied the file u-boot-lsppchg-flash-1.2.0-r2.bin to the root folder with telnet.
5) I issued the command:
KURO-BOX-EM login: root
Password:

BusyBox v0.60.5 (2003.07.30-12:03+0000) Built-in shell (ash)
Enter 'help' for a list of built-in commands.

# ls
u-boot-lsppchg-flash-1.2.0-r2.bin

# dd if=u-boot-lsppchg-flash-1.2.0-r2.bin of=/dev/mtd1 bs=1k
174+1 records in
174+1 records out
#

6) Did a reboot
7) Put kurobox back in normal mode (write_ok)
Result:
It seems that the kuroboxHG starts correctly, but I don’t see any difference.
I had not seen any messages on the Netcat server machine.
When examinating the new startup log I can see only one problem near the end of the startup:

Initializing random number generator...done.
Recovering nvi editor sessions... done.
INIT: Entering runlevel: 2
Starting system log daemon: syslogd.
Starting kernel log daemon: klogd.
Start services: avr_evtd
Starting MTA: 2010-05-10 01:36:56 Failed to open configuration file /etc/exim/ex
im.conf
Starting internet superserver: inetd.
Starting deferred execution scheduler: atd.
Starting periodic command scheduler: cron.
AVR port init : AVR init string send.

Debian GNU/Linux 3.1 KURO-BOX ttyS0

KURO-BOX login:

The folder /etc/exim/ is empty

Can you tell me in what state my kurobox is now ?
What bootloader is active ?

I think that the flash memory was not written at all.

Regards,
Willy

I

_________________
Kurobox HG (Debian Lenny) (Virgin!)


Top
   
PostPosted: Mon May 10, 2010 2:00 am 
Offline
Site Admin
User avatar

Joined: Mon Aug 28, 2006 1:15 am
Posts: 2606
well, you can dump the contents of that mtd to a file, and then compare it to the uboot.bin.

A hex compare would allow you to see specifically what kinds of differences there are.

Are you sure you were booted in 2.4?

Also, if you have netcat running as shown in the uboot docs, you will see output and a chance to interact w/ the uboot via netconsole.

Yet another sign that you would have uboot in flash is the behavior of the LED lights.

Both of these are mentioned here : http://buffalo.nas-central.org/index.ph ... bootloader

_________________
LS1 (foonas, nfs, Tranmission & p910nd print server, Firefly for my Roku)
LS-HG500 (Lenny)
Various LS-Pros v1,v2 (unbricked w/ serial & jtag)
KuroPro, LS2 & KuroHG (foonas)
Working on davysweather.dyndns.org lately...

=> wooohooo!
wooohooo!
Unknown command 'wooohooo!' - try 'help'


Top
   
PostPosted: Mon May 10, 2010 4:23 am 
Offline
Site Admin
User avatar

Joined: Mon Aug 28, 2006 1:15 am
Posts: 2606
hmmm... looking here... viewtopic.php?f=9&t=1753&p=17625&hilit=mtdblock1#p17625

I seem to have used
mtdblock1
... you can read for yourself...



( for the LS Pro - not for the ppc boxes, but the principle is the same... http://buffalo.nas-central.org/index.ph ... tation_Pro )

_________________
LS1 (foonas, nfs, Tranmission & p910nd print server, Firefly for my Roku)
LS-HG500 (Lenny)
Various LS-Pros v1,v2 (unbricked w/ serial & jtag)
KuroPro, LS2 & KuroHG (foonas)
Working on davysweather.dyndns.org lately...

=> wooohooo!
wooohooo!
Unknown command 'wooohooo!' - try 'help'


Top
   
PostPosted: Mon May 10, 2010 8:18 pm 
Offline
Newbie

Joined: Mon Sep 01, 2008 6:58 pm
Posts: 17
Davy,
I will look at it this weekend, it's a lot of reading 98 Posts ?
Is this new command:

dd if=u-boot-hg.flash.bin of=/dev/mtdblock1 bs=1k

The rigtht one ?

Should I do this when booted in EM-mode or must I boot from the hard disk ?

Regards,
Willy

_________________
Kurobox HG (Debian Lenny) (Virgin!)


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 23 posts ]  Go to page 1 2 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:
cron
Powered by phpBB® Forum Software © phpBB Limited