Buffalo NAS-Central Forums

Welcome to the Linkstation Wiki community
It is currently Sun Nov 19, 2017 6:09 am

All times are UTC+01:00




Post new topic  Reply to topic  [ 81 posts ]  Go to page Previous 1 2 3 4 5 6
Author Message
PostPosted: Fri Feb 15, 2008 5:23 pm 
Offline
Newbie

Joined: Fri Mar 31, 2006 11:48 pm
Posts: 63
You can count me as one of those "average Joes". Without an idiots guide and ideally an indication of a future "proper" 2.6 kernel I am nervous about breaking something that isn't particularly broken (even though I have 2 LS2s).

_________________
1TB LS-XHL Optware installed with SANE and CUPS running
Two LS2 - configured almost identically (one main, one backup).
Backup LS2 upgraded with IDE-SATA adaptor and a 1TB drive!
Freelink - SAMBA for Windows file access, CUPS for printing, SANE for remote scanning (using an Epson RX560 printer/scanner).
Twonky media server for Roku and PS3.


Top
   
PostPosted: Wed Mar 12, 2008 6:07 pm 
Offline
Regular Member

Joined: Mon Nov 07, 2005 4:37 pm
Posts: 205
Location: Germany
Hi there,

I've an LS2 too and want free it for new 2.6 kernels. Now first I've a hint:

I tried to compile an own U-Boot the hello world application doesn't compile:
Quote:
mips@crosscompiler:~/src/u-boot-1.1.4$ make linkstation_v2_ram
make[1]: Betrete Verzeichnis '/home/mips/src/u-boot-1.1.4'
make[2]: Betrete Verzeichnis '/home/mips/src/u-boot-1.1.4/tools'
make[2]: ».depend« ist bereits aktualisiert.
make[2]: Verlasse Verzeichnis '/home/mips/src/u-boot-1.1.4/tools'
make[2]: Betrete Verzeichnis '/home/mips/src/u-boot-1.1.4/examples'
make[2]: ».depend« ist bereits aktualisiert.
make[2]: Verlasse Verzeichnis '/home/mips/src/u-boot-1.1.4/examples'
make[2]: Betrete Verzeichnis '/home/mips/src/u-boot-1.1.4/post'
make[2]: ».depend« ist bereits aktualisiert.
make[2]: Verlasse Verzeichnis '/home/mips/src/u-boot-1.1.4/post'
make[2]: Betrete Verzeichnis '/home/mips/src/u-boot-1.1.4/post/cpu'
make[2]: ».depend« ist bereits aktualisiert.
make[2]: Verlasse Verzeichnis '/home/mips/src/u-boot-1.1.4/post/cpu'
make -C tools all
make[2]: Betrete Verzeichnis '/home/mips/src/u-boot-1.1.4/tools'
make[2]: Verlasse Verzeichnis '/home/mips/src/u-boot-1.1.4/tools'
make -C examples all
make[2]: Betrete Verzeichnis '/home/mips/src/u-boot-1.1.4/examples'
make[2]: *** Keine Regel vorhanden, um das Target »hello_world.srec«,
benötigt von »all«, zu erstellen. Schluss.
make[2]: Verlasse Verzeichnis '/home/mips/src/u-boot-1.1.4/examples'
make[1]: *** [examples] Fehler 2
make[1]: Verlasse Verzeichnis '/home/mips/src/u-boot-1.1.4'
make: *** [linkstation_v2_ram] Fehler 2
So far I read, the application isn't really neccessary but I think, the patch should be complete. So if someone knows, where I can get an working patch, please let me know.

And now my questions:
1. I read, that there could be maybe some problems, if the flash chips is another one like the tested one. When I load the RAM build version and it does word, indicate it that flashing would also work? Which conditions should be fulfilled?

2. I read, that the LS2 kernel are encrypted and it can't be booted with u-boot. Does it mean, that only the "normal" kernel wouldn't boot or would it also mean, that in EM Mode the kernel doesn't boot? So if the last one is true, I can ignore this and should only store the LNI vmlinuz in /boot, right?

_________________
LS2 (U-Boot + Freelink) | Kurobox (U-Boot + Deboostraped) | LS Pro Duo (Freelink)


Top
   
PostPosted: Wed Mar 12, 2008 9:53 pm 
Offline
Site Admin
User avatar

Joined: Mon Jul 11, 2005 7:19 am
Posts: 7703
Location: Austria, Vienna
prodigy7 wrote:
Hi there,

I've an LS2 too and want free it for new 2.6 kernels. Now first I've a hint:

I tried to compile an own U-Boot the hello world application doesn't compile:
Quote:
mips@crosscompiler:~/src/u-boot-1.1.4$ make linkstation_v2_ram
make[1]: Betrete Verzeichnis '/home/mips/src/u-boot-1.1.4'
make[2]: Betrete Verzeichnis '/home/mips/src/u-boot-1.1.4/tools'
make[2]: ».depend« ist bereits aktualisiert.
make[2]: Verlasse Verzeichnis '/home/mips/src/u-boot-1.1.4/tools'
make[2]: Betrete Verzeichnis '/home/mips/src/u-boot-1.1.4/examples'
make[2]: ».depend« ist bereits aktualisiert.
make[2]: Verlasse Verzeichnis '/home/mips/src/u-boot-1.1.4/examples'
make[2]: Betrete Verzeichnis '/home/mips/src/u-boot-1.1.4/post'
make[2]: ».depend« ist bereits aktualisiert.
make[2]: Verlasse Verzeichnis '/home/mips/src/u-boot-1.1.4/post'
make[2]: Betrete Verzeichnis '/home/mips/src/u-boot-1.1.4/post/cpu'
make[2]: ».depend« ist bereits aktualisiert.
make[2]: Verlasse Verzeichnis '/home/mips/src/u-boot-1.1.4/post/cpu'
make -C tools all
make[2]: Betrete Verzeichnis '/home/mips/src/u-boot-1.1.4/tools'
make[2]: Verlasse Verzeichnis '/home/mips/src/u-boot-1.1.4/tools'
make -C examples all
make[2]: Betrete Verzeichnis '/home/mips/src/u-boot-1.1.4/examples'
make[2]: *** Keine Regel vorhanden, um das Target »hello_world.srec«,
benötigt von »all«, zu erstellen. Schluss.
make[2]: Verlasse Verzeichnis '/home/mips/src/u-boot-1.1.4/examples'
make[1]: *** [examples] Fehler 2
make[1]: Verlasse Verzeichnis '/home/mips/src/u-boot-1.1.4'
make: *** [linkstation_v2_ram] Fehler 2
So far I read, the application isn't really neccessary but I think, the patch should be complete. So if someone knows, where I can get an working patch, please let me know.

And now my questions:
1. I read, that there could be maybe some problems, if the flash chips is another one like the tested one. When I load the RAM build version and it does word, indicate it that flashing would also work? Which conditions should be fulfilled?

2. I read, that the LS2 kernel are encrypted and it can't be booted with u-boot. Does it mean, that only the "normal" kernel wouldn't boot or would it also mean, that in EM Mode the kernel doesn't boot? So if the last one is true, I can ignore this and should only store the LNI vmlinuz in /boot, right?


i have no clue why it does not compile correctly. i never had an LS2 so i never compiled uboot for it.

1) there are 2 different flash chips in LS2`s. as far as i know (i could be wrong) it is absolutely save to flash uboot. the problem is when trying to flash something bigger to flash. as long as you only flash to the first half of the flash (actually to the first flash bank, there are 2) everything works...the moment you flash a custom firmimg.bin (which is about 3 MB in size and the total flash is about 4 MB) it flashes only a part of it correctly. i do not know what exactly happens when performing the flash...it could mess up the first flash bank again or it does not do anything..i do not know. i would not try it....ah...and please only risk it after reading the other LS2-uboot thread.......to be sure that i do not write any crap here and the result is a killed LS2...

2) as far as i know LNI was unsure if he could add the algorithm for decrypting the firmimg.bin (which contains the kernel and the initrd which implements EM currently)...thats why he did not add it. i would store a known to work kernel at /boot and use it....if uboot works you can easily change the bootcommands via the 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
   
PostPosted: Thu Jan 01, 2009 7:36 pm 
Offline
Newbie

Joined: Thu Mar 01, 2007 7:43 pm
Posts: 8
Resurrecting an old thread, because I ran into the same problem myself. The u-boot examples makefile has a few broken rules. Replacing them with the ones from the current version of u-boot fixes that:

Code:
$(SREC):
$(obj)%.srec:   $(obj)%
                $(OBJCOPY) -O srec $< $@ 2>/dev/null

$(BIN):
$(obj)%.bin:    $(obj)%
                $(OBJCOPY) -O binary $< $@ 2>/dev/null

There's some other places you must modify as well if you want to do a native build. Current u-boot seems to be better about it, but the 1.1.4 version has some nasty hardcoded assumptions about the build environment.


Top
   
PostPosted: Tue Jan 06, 2009 2:07 am 
Offline
Site Admin
User avatar

Joined: Mon Aug 28, 2006 1:15 am
Posts: 2606
Antime, which "current" version of uboot do you mean? something 1.3.4-ish?

Have you successfully tested your uboot on an LS2?

_________________
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 Mar 04, 2009 11:37 pm 
Offline
Newbie

Joined: Thu Mar 01, 2007 7:43 pm
Posts: 8
Quote:
which "current" version of uboot do you mean? something 1.3.4-ish?

I think so, but I'm not absolutely sure about that. IIRC I didn't try to actually compile the newer version, I just used it as reference to fix some parts of the 1.1.4 sources.

Quote:
Have you successfully tested your uboot on an LS2?

Yep, works just fine. Unfortunately I've nuked my fixed sources, but IIRC in the end the errors were fairly obvious. Just to clarify, the errors I encountered stemmed from doing a native build on the LS2, while the sources assume you're cross-compiling.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 81 posts ]  Go to page Previous 1 2 3 4 5 6

All times are UTC+01:00


Who is online

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