Buffalo NAS-Central Forums

Welcome to the Linkstation Wiki community
It is currently Fri Aug 17, 2018 3:53 pm

All times are UTC+01:00




Post new topic  Reply to topic  [ 115 posts ]  Go to page Previous 14 5 6 7 8 Next
Author Message
PostPosted: Sun Feb 24, 2008 12:38 am 
Offline
Site Admin
User avatar

Joined: Mon Aug 28, 2006 1:15 am
Posts: 2606
well, I built it right after I saw it was in svn (revision 315), but I imagine a few more changes must be made. Something about the behavior was a little different, but not completly changed as it would not control (halt) it still, but that was on Thursday Feb 21. I'll keep watching it as I'm sure drath will want this to be completed...

_________________
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'


Last edited by davy_gravy on Sun Feb 24, 2008 6:53 am, edited 1 time in total.

Top
   
PostPosted: Sun Feb 24, 2008 3:32 am 
Offline
Developer

Joined: Tue Jul 24, 2007 4:43 pm
Posts: 113
Location: UK
I tried the latest OpenOCD SVN but couldn't get it to halt (reset worked fine). I eventually did manage to get it to halt but had to make a change to the code which I assume is a bad idea since its already been tested on the 88f5182A2. I also failed to get a working area ("No MMU Present") so it was still slow to flash a new u-boot image. There are still a couple of things I need to try out and I'm really busy this weekend but I'll send an email to Nicolas Pitre and the openocd mailing list in the next couple of days if nobody beats me to it.

_________________
Byron Bradley


Top
   
PostPosted: Sun Feb 24, 2008 5:54 am 
Offline
Site Admin
User avatar

Joined: Mon Aug 28, 2006 1:15 am
Posts: 2606
bbradley, did you notice that the config line like:
Code:
target feroceon little reset_init 0
is now recognized by OpenOCD, but it looks like from the posts that there is a lot of stuff to be added in still. I think he said that it is just OK for loading Uboot in, but the flash capability is not yet functioning... from what I understood, he has just added in the top layer... more will likely come soon...

PS. I understand you are busy, but if happen to have a moment or minute, could you diff your source for me? I still can't get mine to halt properlyfor a flash... :\ . I tried the latest : rev 324.

_________________
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 Feb 25, 2008 2:53 am 
Offline
Site Admin
User avatar

Joined: Mon Aug 28, 2006 1:15 am
Posts: 2606
Success!

Code:
Welcome to minicom 2.2

OPTIONS: I18n
Compiled on Apr 27 2007, 15:50:20.
Port /dev/ttyUSB0

                 Press CTRL-A Z for help on special keys

Orion1   CPU =  Low

=== BUFFALO LS-GL U-Boot. ===
 ** LOADER **
 ** BUFFALO BOARD: BUFFALO_BOARD_LS_GL LE (CFG_ENV_ADDR=fffff000)


U-Boot 1.1.1 (Apr 18 2007 - 18:35:44) Marvell version: 1.12.1 - TINY

DRAM CS[0] base 0x00000000   size 128MB
DRAM Total size 128MB
[256kB@fffc0000] [0kB@f8000000] ## Unknown FLASH at f8000000: Size = 0x00000000B
Flash: 256 kB
Addresses 20M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (20M - 16M): Done                                     
                                                                               
Soc: 88F5182 A2                                                                 
CPU: ARM926 (Rev 0) running @ 400Mhz                                           
Orion 1 streaming disabled                                                     
SysClock = 200Mhz , TClock = 166Mhz                                             
                                                                               
                                                                               
USB 0: host mode                                                               
USB 1: host mode                                                               
PCI 0: PCI Express Root Complex Interface                                       
PCI 1: Conventional PCI, speed = 33000000                                       
Net:   egiga0 [PRIME]                                                           
Using 88E1118 phy                                                               
                                                                               
Marvell Serial ATA Adapter                                                     
Integrated Sata device found                                                   
                                                                               
HDD is not found                                                               
<<can_not_mount>>                                                               
hit any key to switch tftp boot.                                               
Hit any key to stop autoboot:  0                                               
switched to TFTP boot.                                                         
<<system_bootend>>                                                             
Hit any key to stop autoboot:  0                                               
Marvell>>


Details:

1. used openocd svn r335

2. made one change to source suggested by bbradley:
In src/target/feroceon.c, find the lines:
Code:
        /* asserting DBGRQ won't win over the undef exception */
        arm7_9->use_dbgrq = 0 ;


change the 0 to 1:
Code:
        /* asserting DBGRQ won't win over the undef exception */
        arm7_9->use_dbgrq = 1 ;


3. compiled, halt wouldn't halt it, so I had briefly connect to pins on the header...The only way to get it halted was to do a soft_reset_halt and simultaneously connect pins (RTCK) and (sRST) long enough to get it to halt.

4. the rest was normal

_________________
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'


Last edited by davy_gravy on Mon Feb 25, 2008 1:47 pm, edited 1 time in total.

Top
   
PostPosted: Mon Feb 25, 2008 10:02 am 
Offline
Site Admin
User avatar

Joined: Mon Jul 11, 2005 7:19 am
Posts: 7703
Location: Austria, Vienna
very nice. what exactly did you do with the pins to get it to halt?

it somehow looks like as if flashing it the first time slightly modifies the box somehow....its not the first time that it was reported that the arm9 box halted properly the first time...but the second time it didn`t.

_________________
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: Mon Feb 25, 2008 2:27 pm 
Offline
Site Admin
User avatar

Joined: Mon Aug 28, 2006 1:15 am
Posts: 2606
I editted it, added in those pins... and am retesting the HowTo 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
   
PostPosted: Wed Feb 27, 2008 2:43 am 
Offline
Site Admin
User avatar

Joined: Mon Aug 28, 2006 1:15 am
Posts: 2606
We now have a HowTo for

JTAG & OpenOCD for the LS Pro

tested 3 or 4 times, available for general use... enjoy !

:D

_________________
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 Feb 27, 2008 9:58 am 
Offline
Site Admin
User avatar

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

i will be able to confirm this guide as i have a LS Live v2 which does not send out tftp packets....reflashing via jtag might be needed here.

then we also will see if the jtag10 cable you had were broken or if they generally make problems on arm

_________________
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: Wed Feb 27, 2008 11:38 pm 
Offline
Site Admin
User avatar

Joined: Mon Aug 28, 2006 1:15 am
Posts: 2606
great!

mindbender, when you do test drive it, can you please save your output (as text) from both windows? they each give some useful stuff - some of it is overlap, but some is unique to the window, it seems..

Since my only difficulties were getting it halted, I am very interested in how that phase goes for you: that is, whether it is halt, reset, or soft_reset_halt that does the trick for you ...

The guide is set up only w/ directions for JTAG-ARM (20 pin standard), so if you do find success w/ the jtag 10, it would be good to know if there are any differences in behavior for that... (though I'd expect it to work just like the 20 pin, if it does work).

Good luck!

_________________
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 Apr 23, 2008 8:07 pm 
Offline
Site Admin
User avatar

Joined: Mon Jul 11, 2005 7:19 am
Posts: 7703
Location: Austria, Vienna
i only get this response on the LS pro v2 when trying to start openocd with the config supplied by davygravy.

Code:
root@mindbender:/home/mindbender/OPENOCD_LSPRO/openocd-package/doc/configs# openocd  -f lsp_wig.cfg 
Info:    openocd.c:86 main(): Open On-Chip Debugger (2007-04-26 16:40 CEST)
Error:   jtag.c:1284 jtag_examine_chain(): number of discovered devices in JTAG chain (423) doesn't match configuration (1)
root@mindbender:/home/mindbender/OPENOCD_LSPRO/openocd-package/doc/configs# openocd  -f lsp_wig.cfg
Info:    openocd.c:86 main(): Open On-Chip Debugger (2007-04-26 16:40 CEST)
Error:   jtag.c:1236 jtag_examine_chain(): JTAG communication failure, check connection, JTAG interface, target power etc.


i have compiled openocd twice from the sources in the downloadsection...with both --enable-parport & --enable-parport --enable-parport-ppdev .......

i am executing everything as root so the parallel port should be accessable.....

the problem could either be:
1) the specific jtag10 cable
2) bad soldering on the board
3) i don't know

i will use a different still sealed jtag10 cable now.

_________________
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: Wed Apr 23, 2008 10:59 pm 
Offline
Site Admin
User avatar

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

I was wondering what svn you are compiling? The one linked to in our user downloads section is the one put up by jonli447 and mdfirefighter about a year ago. I've never used it with success, but they apparently had... the config in it is for a wiggler/wiggler compatible... not 100% sure the SoC ones that we have are wiggler compat... ? Do you know if jon used one of those? Maybe lb_worm knows ...?
EDIT: this link to the openprotium site's jtag-for-storcenter page shows it is wiggler-equivalent : http://www.openprotium.org/tiki-downloa ... ?fileId=19


I have had good success w/ svn 335... as I mentioned here... http://buffalo.nas-central.org/index.ph ... ng_OpenOCD
with that patch that bbradley gave me. The patch just might be unnecessary (since the same effect could possibly be achieved by changing settings, but I've had luck with the patch so I leave it there...).

I spent some frustrating times (different gradations of :evil: :twisted: and :cry: , followed by eventual :idea: and :up: ) to get it right (digging out the right settings, choosing the right lib, etc., getting help once or twice from bbradley). A lot of good info is at the SparkFun OOCD forum... great for searching... http://forum.sparkfun.com/viewforum.php?f=18

I'll check back here & in the irc to see how it goes...

_________________
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'


Last edited by davy_gravy on Thu Apr 24, 2008 1:48 am, edited 1 time in total.

Top
   
PostPosted: Wed Apr 23, 2008 11:43 pm 
Offline
Developer

Joined: Tue Jul 24, 2007 4:43 pm
Posts: 113
Location: UK
Nicolas Pitre reported success a few days ago (https://lists.berlios.de/pipermail/open ... 01915.html) at r590 or maybe a little later. You might want to try the latest version first and go back to r335 is it doesn't work.

_________________
Byron Bradley


Top
   
PostPosted: Thu Apr 24, 2008 1:19 am 
Offline
Site Admin
User avatar

Joined: Mon Aug 28, 2006 1:15 am
Posts: 2606
I'll do that ... an absolutely positive halt (that can be counted on 100% of the time) would be great... and maybe the RAM buffer option will work soon, too...

_________________
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 Apr 24, 2008 2:51 am 
Offline
Site Admin
User avatar

Joined: Mon Jul 11, 2005 7:19 am
Posts: 7703
Location: Austria, Vienna
jonli447 never added the jtag port on his box. but he was brave enough to flash the uboot binary he compiled from the uboot sources we got from buffalo....

yes i used the openocd source package from the downloadsection...which one did you use davygravy?

i will compile it from svn as well bbradley...thx for the hint. good to know that nico is looking into this.

_________________
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 Apr 24, 2008 12:54 pm 
Offline
Site Admin
User avatar

Joined: Mon Aug 28, 2006 1:15 am
Posts: 2606
mindbender wrote:
...

yes i used the openocd source package from the downloadsection...which one did you use davygravy?

i will compile it from svn as well bbradley...



I use svn 335 w/ the patch that is shown in the article - works pretty well though halting can be sometimes a bit trying. It is possible that as bbradley mentions, that r590 or greater might work - I read the short thread that he linked to, but I couldn't tell how completely they had tested it - whether just the halting was fixed or all of it was fixed. Hmm... experimentation ... :|

Of course, you'd have to make a minor change or two from the config file that is in the source that jonli &mdfirefighter put up,...

this one might work (it is a cut & paste from jonli's mixed with what I am using now)... note the change in the target specifier : from arm926 to feroceon... I left some of the old stuff commented out... and (iirc) bbradley & I (for sure) have both found that it seems fine to leave the two lines #jtag_nsrst_delay 500 & #jtag_ntrst_delay 500 commented out as well. Again though, I haven't tested this config on wiggler so it may need tweeking... bbradley, did I leave anything out?

Code:
# daemon config
telnet_port 4444
gdb_port 3333
daemon_startup attach

# interface
interface parport
parport_port /dev/parport0
parport_cable wiggler
jtag_speed 0


# use combined on interfaces or targets that can't set TRST/SRST separately
reset_config srst_only
#reset_config trst_and_srst

# jtag scan chain
#format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE)
jtag_device 4 0x1 0xf 0xe

#jtag_nsrst_delay 500
#jtag_ntrst_delay 500

# target configuration
# target <type> <endianess> <reset_mode>
# if chain_pos is not zero it seg faults
#target arm926ejs little reset_init 0
target feroceon little reset_init 0
run_and_halt_time 0 30


# flash configuration
# flash bank <driver> <base> <size> <chip_width> <bus_width> [driver_options ...]
flash bank cfi 0xfffc0000 0x00040000 1 1 0 jedec_probe


best of luck to you ...

_________________
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  [ 115 posts ]  Go to page Previous 14 5 6 7 8 Next

All times are UTC+01:00


Who is online

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