Buffalo NAS-Central Forums

Welcome to the Linkstation Wiki community
It is currently Sun Dec 21, 2014 4:51 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 117 posts ]  Go to page Previous  1, 2, 3, 4, 5 ... 8  Next
Author Message
PostPosted: Thu Feb 28, 2008 9:44 pm 
Offline
Site Admin
User avatar

Joined: Tue Jul 12, 2005 11:26 am
Posts: 3701
Location: JAPAN
This one does build to a similar size if I remember right. Got this a while ago now.

_________________
LS used as PVR and streaming source


Top
 Profile  
 
PostPosted: Fri Feb 29, 2008 4:04 am 
Offline
Site Admin
User avatar

Joined: Mon Aug 28, 2006 1:15 am
Posts: 2606
well, I could have been more specific, I guess...

What I meant to say was that I thought that turning on 5 or 10 new commands in UBoot would increase the size of its image. It just seemed counterintuitive that it didn't, but something I saw at the end of the build looks like it may explain it, anyway.

But for kicks, I'll go ahead and add in enough commands to make it equivalent to LNI's (minus the NetConsole... yeah, that's a very big minus) and see if it is still exactly 240.0 KB (245776 bytes).

EDIT: OK, I turned on everything (except netconsole) in the Marvell UBoot that was in LNI's. I tested most of it and it works.

Still at 240KB. Maybe there is still a lot of room in there...

_________________
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 Fri Feb 29, 2008 2:26 pm, edited 1 time in total.

Top
 Profile  
 
PostPosted: Fri Feb 29, 2008 11:12 am 
Offline
Site Admin
User avatar

Joined: Mon Jul 11, 2005 7:19 am
Posts: 7702
Location: Austria, Vienna
just4info: netcat now is a standard feature of uboot...but not in the early version which the LS Pro was based on.

2 ways possible for getting netcat enabled in a lsarm uboot build
1) backport netcat to the modified uboot source
2) using the differences from the modified uboot source compared to the vanilla source of the same version as a base for creating a patch for the current uboot source.

_________________
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 Feb 29, 2008 1:58 pm 
Offline
Site Admin
User avatar

Joined: Mon Aug 28, 2006 1:15 am
Posts: 2606
personally, #2 sounds better, but there is a lot of extra code that Buff or Marvell threw in... I think bbradley said around 300k lines? that's certainly nontrivial...

the idea of a 'clean' & modern uboot for LS Pro certainly does sound attractive ...

anyway I will upload a copy of the latest one I have 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: Fri Feb 29, 2008 2:50 pm 
Offline
Site Admin
User avatar

Joined: Mon Jul 11, 2005 7:19 am
Posts: 7702
Location: Austria, Vienna
300 000 lines? wtf?

did they recode it from scratch :D ?

_________________
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 Feb 29, 2008 6:22 pm 
Offline
Developer

Joined: Tue Jul 24, 2007 4:43 pm
Posts: 113
Location: UK
Total differences between stock and marvell u-boot (1.1.1):

Code:
$ wc -l diff1.1.1.patch
693683 diff1.1.1.patch


After manually removing the obvious crap that doesn't effect the orion build:

Code:
$ wc -l diff2.patch
285418 diff2.patch


Just the board setup code:

Code:
$ find board/mv88fxx81/ \( -iname *.h -o -iname *.c -o -iname *.S\) | xargs wc -l | tail -n1
 171722 total

_________________
Byron Bradley


Top
 Profile  
 
PostPosted: Fri Feb 29, 2008 11:41 pm 
Offline
Site Admin
User avatar

Joined: Mon Aug 28, 2006 1:15 am
Posts: 2606
bbradley wrote:
Total differences between stock and marvell u-boot (1.1.1):

Code:
$ wc -l diff1.1.1.patch
693683 diff1.1.1.patch


After manually removing the obvious crap that doesn't effect the orion build:

Code:
$ wc -l diff2.patch
285418 diff2.patch


Just the board setup code:

Code:
$ find board/mv88fxx81/ \( -iname *.h -o -iname *.c -o -iname *.S\) | xargs wc -l | tail -n1
 171722 total


OK, OK, so I misquoted you bbradley :lol: I was only off by a factor of 2.3 ....

Like you said, somewhere in there is VOIP capability (seriously, who would want to call me on my LS Pro?!), and a bunch of other stuff. Maybe it will walk the dog, too (have to get one first).

_________________
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 01, 2008 3:57 pm 
Offline
Site Admin
User avatar

Joined: Mon Aug 28, 2006 1:15 am
Posts: 2606
Has anyone built a usable u-boot.bin from the http://buffalo.nas-central.org/download ... -1.1.4.zip sources?

Has anyone seen a Buffalo or other ARM SoC NAS device booting w/ console messages that include:
Code:
Marvell version: 2.2.2


OK, after building U-Boot from the 1.1.4 sources that lb_worm has posted, I see a problem w/ the size. The u-boot.bin is just under 600kb, which isn't right. (should be around 240kb)

Also, a lot of stuff in the source leads me to believe this was source that perhaps Buffalo is/was tinkering with, but hadn't used in any machine yet (as if it was a work in progress- not finished) - reasons:
1. None of their machines (current ARM based ones) have a ROM big enough for this image.

2. It looked to me like big swaths of code pertinent to Buffalo machines are missing from some of the files.

3. The version string in feroceon.h seems to be one that I've never seen in any U-Boot console message:
Code:
Marvell version: 2.2.2


...to contrast with that, the Buff109 source dir has the 88f5181.h that has
Code:
 Marvell version: 1.12.1 - TINY



When untarred, the directory is called u-boot-1.1.4working. It is my guess that maybe the word "working" is there to be distinguished from "finished".

_________________
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 01, 2008 5:48 pm 
Offline
Site Admin
User avatar

Joined: Tue Jul 12, 2005 11:26 am
Posts: 3701
Location: JAPAN
I think that it was WIP.

_________________
LS used as PVR and streaming source


Top
 Profile  
 
PostPosted: Sat Mar 01, 2008 9:24 pm 
Offline
Site Admin
User avatar

Joined: Mon Aug 28, 2006 1:15 am
Posts: 2606
hmmm, does anyone here have console output from the UBoot on the LS Dual? I'm thinking that it is the newest model, so maybe it would be the most likely candidate to have the newest UBoot on...

maybe it is using the 2.2.2?

Also, who does one contact at Buffalo to get GPL sources? (assuming no one has got the absolute latest UBoot source from them...)

I've poked around and see no other sites that actually mention the Marvell(-ish) Uboot sources... are we the only wiki that has it and is using it (or at least experimenting with it)?

_________________
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 02, 2008 1:22 am 
Offline
Site Admin
User avatar

Joined: Mon Aug 28, 2006 1:15 am
Posts: 2606
sorry... but ... and now for the official disclaimer... :biglol:

Caution : for JTAG capable testers, developers and risk takers only... do not attempt unless you can unbrick your own box without anxiety or asking someone else for help... You have been warned!

available for testing : a fuller featured u-boot for LS Pro (v2 machines only ...probably ...might work w/ v1 machines) confirmed to work with stock firmware and foonas/foonas-em
http://buffalo.nas-central.org/download ... bin.tar.gz

Not as good as a clean uboot (still looking forward to that myself) from more modern sources (1.2.0 or higher), but it has a full array of commands (except no netconsole, sorry)... has a bunch of commands that weren't in the stock u-boot, probably most importantly the run command, and the maximum number of arguements has been increased from 16 to 32.

Code:
=> help
?       - alias for 'help'
base    - print or set address offset
bdinfo  - print Board Info structure
boot    - boot default, i.e., run 'bootcmd'
bootd   - boot default, i.e., run 'bootcmd'
boot end  .
bootm   - boot application image from memory
bootp   - boot image via network using BootP/TFTP protocol
bubt    - Burn an image on the Boot Flash.
cmp     - memory compare
coninfo - print console devices and informations
cp      - memory copy
cpumap - Display CPU memory mapping settings.
crc32   - checksum calculation
date    - get/set/reset date & time
dhcp    - invoke DHCP client to obtain IP/boot params
diskboot- boot from IDE device
echo    - echo args to console
erase   - erase FLASH memory
ext2load- load binary file from a Ext2 filesystem
ext2ls- list files in a directory (default /)
flinfo  - print FLASH memory information
go      - start application at address 'addr'
help    - print online help
ide     - IDE sub-system
loadb   - load binary file over serial line (kermit mode)
loads   - load S-Record file over serial line
loop    - infinite loop on address range
md      - memory display
micon -command(2byte hex) -data(witin 32byte hex)
mm      - memory modify (auto-incrementing)
mtest   - simple RAM test
mw      - memory write (fill)
nm      - memory modify (constant address)
pci     - list and access PCI Configuraton Space
ping    - send ICMP ECHO_REQUEST to network host
printenv- print environment variables
protect - enable or disable FLASH write protection
rarpboot- boot image via network using RARP/TFTP protocol
reset   - Perform RESET of the CPU
run     - run commands in an environment variable
saveenv - save environment variables to persistent storage
security -device -command -options -password
setenv  - set environment variables
shutdown        - Poff .
tftpboot- boot image via network using TFTP protocol
version - print monitor version


_________________
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 Sat Mar 08, 2008 1:21 am, edited 3 times in total.

Top
 Profile  
 
PostPosted: Mon Mar 03, 2008 12:51 pm 
Offline
Site Admin
User avatar

Joined: Mon Aug 28, 2006 1:15 am
Posts: 2606
@ lb_worm, I was mistaken ... I asked you about the wrong source... you do have a 1.1.4 U-Boot in your user dir, but that wasn't the one I played with... I meant, instead, this one http://buffalo.nas-central.org/download ... pro.tar.gz in mdfirefighter's dir.

It has the suffix "-working" attached to its dir, and I was able to compile it out to get a uboot.bin that was unfortunately too large (around 590kb).

But, I notice that it has the netconsole underpinning already there...

Did anyone besides you, jonli or mdfirefighter work on this last year?

_________________
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: Mon Mar 03, 2008 1:16 pm 
Offline
Site Admin
User avatar

Joined: Tue Jul 12, 2005 11:26 am
Posts: 3701
Location: JAPAN
Sorry, just us. It was in-conjunction with the kernel dev as we were trying to up-rev the baseline drivers too.

_________________
LS used as PVR and streaming source


Top
 Profile  
 
PostPosted: Mon Mar 03, 2008 1:19 pm 
Offline
Site Admin
User avatar

Joined: Mon Aug 28, 2006 1:15 am
Posts: 2606
lb_worm wrote:
Sorry, just us. It was in-conjunction with the kernel dev as we were trying to up-rev the baseline drivers too.


hehehe... :D ...just...

thanks, I was hoping there was now a third copy of it around somewhere with yet further progress... mdfirefighter's copy is quite different from yours... a lot more developed... it looks very close, maybe just the TINY flag setup needs to be tweaked/fixed.

_________________
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 6:21 am 
Offline
Site Admin
User avatar

Joined: Mon Aug 28, 2006 1:15 am
Posts: 2606
bbradley, got a few minutes to try something on the 1.1.4 uboot source in mdfirefighter's user dir, and I figured out what I was missing... something in the release notes that I'd skimmed over but not really thought through... and I just built a uboot image from it that is less than 240kb.

In other words, they had changed the structure/usage of the tiny flag... that's what I had missed.

BTW, this source does have support for netconsole.

I really want to try out your script w/ this image I just built. I should use the ELF file for it, right?
Code:
 file '/home/davygravy/CROSSCOMPILING/CROSSTOOLCHAINS/COMPILING/u-boot-1.1.4-working/u-boot-rd88f5182_NAS2_TINY_buffalo_hs'
/home/davygravy/CROSSCOMPILING/CROSSTOOLCHAINS/COMPILING/u-boot-1.1.4-working/u-boot-rd88f5182_NAS2_TINY_buffalo_hs: ELF 32-bit LSB executable, ARM, version 1 (SYSV), statically linked, not stripped


EDIT: Got it! :biglol: :up:

Code:
LS-GL=>                                                                         
         __  __                      _ _                                       
        |  \/  | __ _ _ ____   _____| | |                                       
        | |\/| |/ _` | '__\ \ / / _ \ | |                                       
        | |  | | (_| | |   \ V /  __/ | |                                       
        |_|  |_|\__,_|_|    \_/ \___|_|_|                                       
 _   _     ____              _                                                 
| | | |   | __ )  ___   ___ | |_                                               
| | | |___|  _ \ / _ \ / _ \| __|                                               
| |_| |___| |_) | (_) | (_) | |_                                               
 \___/    |____/ \___/ \___/ \__|  ** LOADER **                                 
 ** MARVELL BOARD: DB-88F5182-DDR2 LE                                           
                                                                               
U-Boot 1.1.4 (Mar  5 2008 - 23:11:44) Marvell version: 2.2.2-TINY               
                                                                               
U-Boot code: 00200000 -> 0023C000  BSS: -> 00247C28                             
                                                                               
Soc: 88F5182 A2 (DDR2)                                                         
CPU running @ 400Mhz                                                           
SysClock = 200Mhz , TClock = 166Mhz                                             
                                                                               
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 7M - 0M are saved for the U-Boot usage.                               
Mem malloc Initialization (7M - 3M): Done                                       
                                                                               
CPU : ARM926 (Rev 0)                                                           
88F5182 A2 streaming disabled                                                   
                                                                               
USB 0: host mode                                                               
USB 1: host mode                                                               
PCI 0: PCI Express Root Complex Interface                                       
Net:   egiga0 [PRIME]                                                           
Hit any key to stop autoboot:  0                                               
Using egiga0 device                                                             
TFTP from server 192.168.11.149; our IP address is 192.168.11.150     

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

All times are UTC [ DST ]


Who is online

Users browsing this forum: Google [Bot] and 3 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