Buffalo NAS-Central Forums

Welcome to the Linkstation Wiki community
It is currently Fri Nov 17, 2017 8:29 pm

All times are UTC+01:00




Post new topic  Reply to topic  [ 23 posts ]  Go to page Previous 1 2
Author Message
PostPosted: Tue May 11, 2010 12:42 am 
Offline
Site Admin
User avatar

Joined: Mon Aug 28, 2006 1:15 am
Posts: 2606
Willy wrote:
Davy,
1. I will look at it this weekend, it's a lot of reading 98 Posts ?
2. Is this new command:

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

The rigtht one ?

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

Regards,
Willy


1. hehehehe, yes 98 posts is a lot ... ;)

2. yes, it looks correct to me...

3. You should be booted in a 2.4 kernel. IIRC, the EM mode kernel is just that - 2.4.2x or so.

best luck to you willy.
:)

_________________
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: Thu May 13, 2010 4:44 pm 
Offline
Newbie

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

I’ve just installed the U-Boot: u-boot-lsppchg-flash-1.2.0-r2.bin

From out EM I did the following commands:
# dd if=/root/u-boot-lsppchg-flash-1.2.0-r2.bin of=/dev/mtdblock1 bs=1k
174+1 records in
174+1 records out
#

After rebooting I found no new U-Boot :(

Then I rebooted the kurobox in normal mode (from the HD) en issued the commands:
KURO-BOX:~# dd if=u-boot-lsppchg-flash-1.2.0-r2.bin of=/dev/mtdblock1 bs=1k
174+1 records in
174+1 records out
179028 bytes transferred in 7.409250 seconds (24163 bytes/sec)
KURO-BOX:~#

Now I’ve got the number of bytes transferred. :)

Then I rebooted the system and found the following messages:

U-Boot 1.2.0 (Apr 10 2007 - 19:13:32) LinkStation HG / KuroBox HG

CPU: MPC8245 Revision 1.4 at 262.144 MHz: 16 kB I-Cache 16 kB D-Cache
DRAM: 128 MB
FLASH: 4 MB
*** Warning - bad CRC, using default environment

00 0b 10ec 8169 0200 ff
00 0c 1095 0680 0101 ff
00 0e 1033 0035 0c03 ff
00 0e 1033 0035 0c03 ff
00 0e 1033 00e0 0c03 ff
Net: RTL8169#0


! Here the kurobox hangs for about 80 seconds and then continues.

I didn’t have these message before ?
After some seconds the kurobox continues with booting and finally the HD is booted.

On the NetConsole nc I see the following:
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

U-Boot 1.2.0 (Apr 10 2007 - 19:13:32) LinkStation HG / KuroBox HG
stdin : nc
stdout: nc
stderr: nc
IDE: Bus 0: OK
Device 0: Model: Maxtor 51536H3 Firm: DAC10SC0 Ser#: K3HE35JC
Type: Hard Disk
Capacity: 14655.8 MB = 14.3 GB (30015216 x 512)
Boot in 01 seconds ('s' to stop)...
Loading 0:1:boot/uImage

** Unable to read "boot/uImage" from ide 0:1 **

** Unable to read "boot/kuroboxHG.dtb" from ide 0:1 **

## Booting image at ffc00000 ...

******* Product Information *******
----------------------------------
Product Name: KURO-BOX/HG(IESHIGE)
VER: 1.00
Date: 2004/10/19 17:18:54
----------------------------------
Verifying checksum... OK
Uncompressing kernel...done.
Loading Ramdisk at 0x07C58000, end 0x07E6E615 ... OK
Booting the kernel

Is there something wrong with the new U-Boot ?
Can I install foonas-em at this state ?

At shutdown I get the following messages:
INIT: Sending processes the TERM signal
INITStopping periodic command scheduler: cron.
Stop services: avr_evtd
Stopping MTA: No /usr/lib/exim/exim3 found running; none killed.
exim.
Stopping internet superserver: inetd.
Saving the System Clock time to the Hardware Clock...
Hardware Clock updated to Fri May 14 00:35:19 JST 2010.
Stopping deferred execution scheduler: atd.
Stopping kernel log daemon: klogd.
Stopping system log daemon: syslogd.
Sending all processes the TERM signal...done.
Sending all processes the KILL signal...done.
Saving random seed...done.
Unmounting remote and non-toplevel virtual filesystems...done.
Deconfiguring network interfaces...done.
Deactivating swap...done.
Unmounting local filesystems...done.
Shutdown: hda
Power down.

Are these OK ?

The kurobox can still startup even from a cold boot.

Kind regards,
Willy

_________________
Kurobox HG (Debian Lenny) (Virgin!)


Top
   
PostPosted: Fri May 14, 2010 12:37 am 
Offline
Site Admin
User avatar

Joined: Mon Aug 28, 2006 1:15 am
Posts: 2606
Yes, that all looks good, from what I can see/remember.

Basically, as far as I've ever seen, if you have netconsole capability and can talk to uboot, then all is well.

The pages at foonas.org show how to tftp-boot a foonas-em kernel, and how to burn it into ROM.

It can also be loaded from the hdd, but into ROM is prolly the best/easiest to use.
http://foonas.org/index.php/Foonas-em:lsppc

bb ___very___ careful that you flash it into ROM using the HG commands, and not the HD commands. Read it a few times and make sure you use just the HG commands.

_________________
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 16, 2010 8:22 pm 
Offline
Newbie

Joined: Mon Sep 01, 2008 6:58 pm
Posts: 17
Hello Davy,
Thanks for your help.

I've just installed foonas-em and I didn't got any problem.

Now the kurobox HG boots up in foonas-em mode but I don’t know how to use it.
I’ve searched for a documentation of the foonas-em commands but didn’t found any.
I just found a list of implemented commands on the URL:
http://foonas.org/index.php/Foonas-em:B ... figs#Small

I want to start with the following commands:
+ Create partitions on the hard disk (missing mfdisk menu driven) :!:
+ Make filesystems on the hard disks (missing mkfs command) :!:
+ Untar the Dabian lenny distribution
+ Set the kurobox to boot next time from hard disk. (missing write_ok) :!:

I can mount my hard drive with the command:
mount /dev/sda1 /mnt

Can you give me the commands how to create the partitions ?
There is no data on the disk that I want to keep.

I had the following partitions in use:
sda1: 4GB, sda2 SWAP disk, sda3 The rest –4GB, sda4 4GB
I’ve used sda4 as a backup of the first partition.

Kind regards,
Willy

_________________
Kurobox HG (Debian Lenny) (Virgin!)


Top
   
PostPosted: Mon May 17, 2010 2:27 am 
Offline
Site Admin
User avatar

Joined: Mon Aug 28, 2006 1:15 am
Posts: 2606
The basics are here: viewtopic.php?f=9&t=16626 but you will want to read the man pages for fdisk and mkfs..


fdisk /dev/sda

and follow your nose... chose the correct sizes and all of that...

you'll have to make sure that sda1 and sda3 are ext2 type, and sda2 is swap type

mkswap /dev/sda2
mkfs.ext2 /dev/sda1
mkfs.ext3 /dev/sda3

... you'll have to check these, I don't know for sure they are right or that they are what you want...

But for sure, all of the mk* commands are there, though not included in the busybox subset - timtimred decided to put put them in from the official e2fsprogs source.

hth,

davy

_________________
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 17, 2010 9:38 pm 
Offline
Newbie

Joined: Mon Sep 01, 2008 6:58 pm
Posts: 17
Hi Davy,
I issued the commands with success:

# fdisk /dev/sda (and made the partitions)
# mkswap /dev/sda2
# mkfs.ext2 /dev/sda1
# mkfs.ext3 /dev/sda3


Mounted the HD
# mount /dev/sda1 /mnt
With FTP Transferred the file Lenny-LSPPC-0.1.0.tar.gz to /mnt
Then I untar the file from /mnt with the command:
# tar –zxvf Lenny-LSPPC-0.1.0.tar.gz

I found an instruction for the nc and issued that on the netconsole:
http://www.linuxnotincluded.pwp.blueyon ... stall.html

=> run writeok
Un-Protected 1 sectors
Flash erase: first = 55 @ 0xfff70000
Last = 55 @ 0xfff70000
Flash erase: Done
Erased 1 sectors
Copy to Flash… done
=> run boot

Then the kurobox HG booted from the Hard disk sda1:
Debian GNU/Linux 5.0 Lenny :D
Last login: Mon Apr 20 02:17:25 2009 from 192.168.11.149
LSPPC-Lenny:~#


Can you point me to some information how to control the boot process with the power button ?

Many thanks for the support. :up:
Kind regards,
Willy

_________________
Kurobox HG (Debian Lenny) (Virgin!)


Top
   
PostPosted: Mon May 17, 2010 9:57 pm 
Offline
Newbie

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

One more question:
I see that the serial port is disabled after booting !
The last line I see on the serial terminal is:

Console: colour dummy device 80x25
console handover: boot [udbg0] -> real [tty0]
àààààààààààààààààààààààààààààààà


Any ide how to enable the port at startup ?

Kind regards,
Willy

_________________
Kurobox HG (Debian Lenny) (Virgin!)


Top
   
PostPosted: Mon May 17, 2010 11:06 pm 
Offline
Site Admin
User avatar

Joined: Mon Aug 28, 2006 1:15 am
Posts: 2606
hmmm... I don't know where the info is exactly, but it is in one of the Articles-> Uboot writeups...

Basically, something like 1 blink is sda boot, 2 flashes is rootfs + em Kernel (obsolete now) , and 3 flashes is from ROM (foonas-em). It either that or the same w/ the 2 & 3 flash options switched around.

THere is also a Articles-> Netcat, a Uboot-Friendly Network Util that mentions some tweaks & tips.

hth,
davy

_________________
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
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 23 posts ]  Go to page Previous 1 2

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