Buffalo NAS-Central Forums

Welcome to the Linkstation Wiki community
It is currently Thu Oct 30, 2014 1:40 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 117 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6 ... 8  Next
Author Message
PostPosted: Thu Mar 06, 2008 11:05 am 
Offline
Site Admin
User avatar

Joined: Mon Jul 11, 2005 7:19 am
Posts: 7702
Location: Austria, Vienna
!

already have tested netconsole??

_________________
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
 Profile  
 
PostPosted: Thu Mar 06, 2008 1:17 pm 
Offline
Site Admin
User avatar

Joined: Mon Aug 28, 2006 1:15 am
Posts: 2606
No, sorry, this was just my happiness at getting the 2.2.2 to build ... :)
I can't tell yet if its going to work w/ this source. Will be taking a little bit more look tonight or this weekend.

_________________
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
 Profile  
 
PostPosted: Thu Mar 06, 2008 1:18 pm 
Offline
Site Admin
User avatar

Joined: Tue Jul 12, 2005 11:26 am
Posts: 3701
Location: JAPAN
This is good! Is it possible to load the new image into memory and then copy to flash to update as I will try and update on of my Kuro's if so.

_________________
LS used as PVR and streaming source


Top
 Profile  
 
PostPosted: Thu Mar 06, 2008 1:27 pm 
Offline
Site Admin
User avatar

Joined: Mon Aug 28, 2006 1:15 am
Posts: 2606
I'd advise against doing it just now ... You can, but I don't think this one is quite ready. The one I have posted in the UBoot for LSPro article is (probably!) just fine (tested it a bunch now) but this one doesn't even have any micon support, and seems to be in a much earlier stage of developement ... so I'm not sure if it is ready.


EDIT: I'm sure that it isn't ready, as I've had some time to tinker w/ it now...

_________________
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
 Profile  
 
PostPosted: Thu Mar 06, 2008 1:39 pm 
Offline
Site Admin
User avatar

Joined: Tue Jul 12, 2005 11:26 am
Posts: 3701
Location: JAPAN
Will hold off then until you are happy with it.

_________________
LS used as PVR and streaming source


Top
 Profile  
 
PostPosted: Thu Mar 06, 2008 2:17 pm 
Offline
Site Admin
User avatar

Joined: Mon Aug 28, 2006 1:15 am
Posts: 2606
To clarify (my enthusiasm my have gotten the best of me :) ), the source has netconsole support in it, but I haven't gotten to the point where I've done an install or even RAM test (thanks to bbradley for getting this set up!) of a uboot.bin that has netconsole built in with all of the stuff needed to in it. The image that I built did have netconsole built in, but no run yet and the env vars needed some more tweaking.

The uboot map shows that it's in there, and everything built fine, but that's a ways of (perhaps) from actually getting a console feed flowing through the network...

In my haste :oops: I rebricked my LSPro while testing the newest one, so I'm re-JTAGGING :? now...



I shoulda done a RAM test first... hehehe...

_________________
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
 Profile  
 
PostPosted: Thu Mar 06, 2008 3:05 pm 
Offline
Site Admin
User avatar

Joined: Mon Jul 11, 2005 7:19 am
Posts: 7702
Location: Austria, Vienna
but still good to see progress than the uboot stasis of the past months because no one could test anything without jtag.

it really helps :)

_________________
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
 Profile  
 
PostPosted: Fri Mar 07, 2008 2:39 am 
Offline
Site Admin
User avatar

Joined: Mon Aug 28, 2006 1:15 am
Posts: 2606
Well, for starters the 1.1.4 source hasn't been tied in w/ micon support, so at most we can only get about 5 minutes out it it in UBoot before it shuts down.

As far as netconsole, it is not functional, but I think not too far off, as I can get at least a bit out of it now:

Code:
root@bitbaker-i686:/home/davygravy# nc -u -l -p 6666 < /dev/null &
[1] 17432
root@bitbaker-i686:/home/davygravy# nc -u 192.168.11.150 6666
=>


just a single prompt, then nothing... but that is something... I will peek at lni's diff file and try to see what all he had to build in as underpinnings for this...

Nor is this version stable for foonas or stock OS. I'll look at the flash and memory setup as well. It may have a lot of missing pieces, but this is good for me to learn a little from.

EDIT: A unified diff (between vanilla 1.1.4 and this 1.1.4-working shows a mere 45000 added lines of code. ;)

_________________
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
 Profile  
 
PostPosted: Sat Mar 08, 2008 9:22 pm 
Offline
Site Admin
User avatar

Joined: Mon Aug 28, 2006 1:15 am
Posts: 2606
still stuck at just a prompt for netconsole... so I'm hunting for ideas on how to get further ...

bbradley, as you mentioned, a peek at things through WireShark (Ethereal) gives better details:
Code:
905   726.837441   192.168.11.150   192.168.11.149   UDP   Source port: 6666  Destination port: 6666

0000  00 0b cd 2c 13 f8 00 16  01 41 4e 2b 08 00 45 00     ...,.... .AN+..E.
0010  00 1f 00 00 40 00 ff 11  e3 51 c0 a8 0b 96 c0 a8     ....@... .Q......
0020  0b 95 1a 0a 1a 0a 00 0b  00 00 3d 3e 20 00 00 00     ........ ..=> ...
0030  00 00 00 00 00 00 00 00  00 00 00 00                 ........ ....   
which shows the only packet sent, with correct ports, and even the prompt is visible in the data column... but that's all she writes...

just before I started did the run nc, I tried a ping from uboot to my Ubuntu machine/host and both the request and the reply come through fine, so I don't think ethernet is broken...:
Code:
9   11.068539   192.168.11.150   192.168.11.149   ICMP   Echo (ping) request
10   11.068556   192.168.11.149   192.168.11.150   ICMP   Echo (ping) reply


In terms of what I've tried...
1st - changes to code
- added to include/configs/mv_feroceon.h
Code:
#define CONFIG_NET_RETRY_COUNT          5
#define CONFIG_NETCONSOLE

-added the run command and others ...
Code:
...
| CFG_CMD_RUN  \
| CFG_CMD_ECHO     \
| CFG_CMD_DHCP     \
| CFG_CMD_PING     \
| CFG_CMD_CONSOLE \
...


-adjusted uboot env vars (only selected values shown - hopefully the important ones)
Code:
=> printenv
baudrate=115200
loads_echo=0
...
nc=setenv stdin nc;setenv stdout nc;setenv stderr nc
...
bootargs=netconsole=6666@192.168.11.150/,@192.168.11.149/ root=/dev/sda1 rw
...
bootargs_root=root=/dev/sda2 rw initrd=0x00800040,15M panic=5
def_tftp=tftp 0x00100000 $(kernel);tftp 0x00800000 $(initrd);setenv bootargs $0
stdin=serial
stdout=serial
stderr=serial
ethprime=egiga0
usb0Mode=host
usb1Mode=host
force_tftp=1
bootcmd=tftp 0x00100000 $(kernel);tftp 0x00800000 $(initrd);setenv bootargs $(0...
...
netmask=255.255.255.0
ipaddr=192.168.11.150
serverip=192.168.11.149
bootargs_base=root=/dev/sda2 netconsole=6666@192.168.11.150/,@192.168.11.149/
ncip=192.168.11.149
...



coninfo gives:
Code:
=> coninfo
List of available devices:
serial   80000003 SIO stdin stdout stderr
nc       80000003 SIO


It is my understanding that running the nc script with run nc should switch the console input/output from serial to netconsole. It does seem to do that... but only that first packet is sent. Maybe it is just a question of having only 1-way traffic now?

_________________
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
 Profile  
 
PostPosted: Sat Mar 08, 2008 9:49 pm 
Offline
Site Admin
User avatar

Joined: Mon Aug 28, 2006 1:15 am
Posts: 2606
got it!!! :up:
Code:
192.168.11.150: inverse host lookup failed: Unknown host
(UNKNOWN) [192.168.11.150] 6666 (?) open
=>

=>

=>

=>

=> printenv
printenv
baudrate=115200
loads_echo=0
rootpath=/nfs/arm
cpuName=926
CASset=min
MALLOC_len=4
bootargs_end=:::DB88FXX81:eth0:none
ethact=egiga0
ethaddr=00:16:01:41:4E:2B
image_name=uImage
standalone=fsload 0x400000 $(image_name);setenv bootargs $(bootargs) root=/dev/mtdblock0 rw ip=$(ipaddr):$(serverip)$(bootargs_end); bootm 0x400000;
eth1addr=00:00:00:00:51:82
mvNetConfig=mv_net_config=(eth0,00:aa:bb:cc:dd:ee,0)(eth1,00:11:22:33:44:55,1:2:3:4)
nc=setenv stdin nc;setenv stdout nc;setenv stderr nc
foonasemboot=tftp 00800000 uImage_em ; setenv bootargs console=ttyS0,115200 root=/dev/ram0 rw ; bootm 00800000
bootargs=netconsole=6666@192.168.11.150/,@192.168.11.149/ root=/dev/sda1 rw
buffalo_minor_ver=BOOT_MINOR_VER=1.00
buffalo_ver=BOOTVER=1.09
build_time=22:04:51
initrd=initrd.buffalo
kernel=uImage.buffalo
bootargs_root=root=/dev/sda2 rw initrd=0x00800040,15M panic=5
def_tftp=tftp 0x00100000 $(kernel);tftp 0x00800000 $(initrd);setenv bootargs $(bootargs_base) $(bootargs_root) $(buffalo_ver) tftpboot=yes;bootm 0x00100000 0x00800000
ethprime=egiga0
usb0Mode=host
usb1Mode=host
force_tftp=1
bootcmd=tftp 0x00100000 $(kernel);tftp 0x00800000 $(initrd);setenv bootargs $(bootargs_base) $(bootargs_root) $(buffalo_ver) tftpboot=yes;bootm 0x00100000 0x00800000
filesize=3a07c
fileaddr=100000
netmask=255.255.255.0
ipaddr=192.168.11.150
serverip=192.168.11.149
bootargs_base=root=/dev/sda2 netconsole=6666@192.168.11.150/,@192.168.11.149/
ncip=192.168.11.149
enaMonExt=no
enaFlashBuf=yes
enaCpuStream=no
bootdelay=3
disaMvPnp=no
overEthAddr=no
stdin=nc
stdout=nc
stderr=nc

Environment size: 1568/4092 bytes
=>
Environment size: 1568/4092 bytes
=> coninfo
coninfo
List of available devices:
serial   80000003 SIO
nc       80000003 SIO stdin stdout stderr
=>
=> bdinfo
bdinfo
arch_number = 0x0000020E
env_t       = 0x00000000
boot_params = 0x00000100
DRAM bank   = 0x00000000
-> start    = 0x00000000
-> size     = 0x08000000
DRAM bank   = 0x00000001
-> start    = 0xFFFFFFFF
-> size     = 0x00000000
DRAM bank   = 0x00000002
-> start    = 0xFFFFFFFF
-> size     = 0x00000000
DRAM bank   = 0x00000003
-> start    = 0xFFFFFFFF
-> size     = 0x00000000
ethaddr     = 00:16:01:41:4E:2B
ip_addr     = 192.168.11.150
baudrate    = 115200 bps


it is a bit slow (maybe some adjustments in buffer size?) and it needs to be set come up as the default (rather than being switched on w/ the run nc) but it works. Guess I need to understand how to hook in micon support next, and check that flash and env are all set up correctly. It still crashes when I try to boot w/ a stock kernel... but this is closer...

EDIT: speed is fine, just a bit slow on big dumps of text like 'printenv'.
Also, just checking, if one sets
Code:
ser=setenv stdin serial;setenv stdout serial;setenv stderr serial
and runs 'run ser' from the netconsole side, it does indeed toggle it back to serial console, as it should.

_________________
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
 Profile  
 
PostPosted: Sat Mar 08, 2008 10:55 pm 
Offline
Site Admin
User avatar

Joined: Tue Jul 12, 2005 11:26 am
Posts: 3701
Location: JAPAN
Great news, well done. I would love to help but without jtag its a gamble :). Good to see you are making progress.

_________________
LS used as PVR and streaming source


Top
 Profile  
 
PostPosted: Sun Mar 09, 2008 12:13 am 
Offline
Site Admin
User avatar

Joined: Mon Aug 28, 2006 1:15 am
Posts: 2606
lb_worm wrote:
Great news, well done. I would love to help but without jtag its a gamble :). Good to see you are making progress.

Thanks, and thank bbradley as he has given me good advice or an idea whenever I've been stuck. But the next thing will be to get the rest of UBoot 1.1.4 to work properly, maybe w/ micon support, or maybe w/o. This one is still not happy about booting a kernel, but I think that is just some adjustment to the config header, hopefully. (hopefully not too much code missing... :? ).

Or maybe a completely new clean port?

_________________
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
 Profile  
 
PostPosted: Sun Mar 09, 2008 3:28 am 
Offline
Site Admin
User avatar

Joined: Tue Mar 21, 2006 9:11 pm
Posts: 658
will this build work on a Kuro Pro? If so, can you post a binary?

_________________
My completely scratch built 832 push-pull tube amplifier with Padauk frame. It matches my custom mini-ITX machine.


Top
 Profile  
 
PostPosted: Sun Mar 09, 2008 5:33 am 
Offline
Site Admin
User avatar

Joined: Mon Aug 28, 2006 1:15 am
Posts: 2606
well, the netconsole is just proof-of-concept (not sure that makes sense as it been proven for years... ;) ) , but this is I think the first time we've had any netconsole on ARM-based machines. this isn't ready for use, as isn't reliable for anything yet...

the only thing we have new to offer is this: http://buffalo.nas-central.org/index.ph ... Pro#Custom ... but it has been used only on a LSProv2. ... not tested on a Kuro Pro ... which has a different flash setup because of the NAND.

We'll post when 'the real thing' is ready to go...

_________________
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
 Profile  
 
PostPosted: Sun Mar 09, 2008 2:11 pm 
Offline
Site Admin
User avatar

Joined: Mon Jul 11, 2005 7:19 am
Posts: 7702
Location: Austria, Vienna
great progress.

on the kurobox pro? if you have jtag it could work isn`t it?

the v2 mainboard is a crippled nand flash less version of the kurobox pro mainboard...

_________________
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
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 117 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6 ... 8  Next

All times are UTC [ DST ]


Who is online

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

Protected by Anti-Spam ACP
Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group