Kurobox NAS-Central Forums

Welcome to the Kuro Community
It is currently Sun Jun 24, 2018 7:59 pm

All times are UTC-06:00




Forum locked  This topic is locked, you cannot edit posts or make further replies.  [ 23 posts ]  Go to page 1 2 Next
Author Message
 Post subject: Compiling U-Boot
PostPosted: Sat Nov 10, 2007 6:07 pm 
Offline

Joined: Mon Sep 11, 2006 5:21 pm
Posts: 13
Location: California
I'd like to put U-Boot on my Kurobox HG, but i'm fearful of flashing an image found online and all the instructions for compiling U-Boot that I can find are outdated.

The latest instructions (http://nas-central.org/index.php/Kurobox_support_in_stock_2.6_kernels) tell me to download u-boot-86xx from www.jdl.com/software/

BUT www.jdl.com/software/u-boot-86xx.git DOES NOT EXIST!
the git repository has been removed from that site.

What does exist is u-boot-cfg (http://www.jdl.com/software/u-boot-cfg.git)
but whether that would work, i do not know.

So i'm wondering: What do I need to do to compile U-Boot from source?


Top
   
 Post subject:
PostPosted: Sat Nov 10, 2007 9:03 pm 
Offline

Joined: Sat Jul 15, 2006 8:49 am
Posts: 219
Location: Virginia
Maybe we should be getting it from here anyway(?): http://www.denx.de/cgi-bin/gitweb.cgi?p=u-boot.git

There is a tag for 1.2 there too. I don't know git very well. If you can figure out how to git the right release from there let us know or update the instructions.

There is a uboot mailing list, http://sourceforge.net/mailarchive/forum.php?forum_name=u-boot-users
Maybe someone there could tell you how to git the 1.2 release. I think you want 1.2 for the patches to work.

Good luck :)


Top
   
 Post subject:
PostPosted: Sat Nov 10, 2007 10:55 pm 
Offline

Joined: Sat Jul 15, 2006 8:49 am
Posts: 219
Location: Virginia
I thought there might be a 1.2 tarball available so I looked and sure enough: ftp://ftp.denx.de/pub/u-boot/


Top
   
 Post subject:
PostPosted: Sat Nov 10, 2007 10:57 pm 
Offline

Joined: Mon Sep 11, 2006 5:21 pm
Posts: 13
Location: California
I've looked over the patches found here: http://www.kurobox.com/revolution/downl ... atches.zip

They modify the following files
Code:
MAKEALL
Makefile
board/linkstation/INSTALL
board/linkstation/Makefile
board/linkstation/avr.c
board/linkstation/bootls.c
board/linkstation/config.mk
board/linkstation/early_init.S
board/linkstation/firminfo.h
board/linkstation/flash.c
board/linkstation/hwctl.c
board/linkstation/ide.c
board/linkstation/linkstation.c
board/linkstation/nc.sh
board/linkstation/u-boot.lds
common/cmd_bootm.c
common/cmd_ext2.c
common/console.c
common/main.c
cpu/mpc824x/cpu.c
cpu/mpc824x/start.S
drivers/dc2114x.c
drivers/netconsole.c
drivers/rtl8169.c
fs/ext2/ext2fs.c
include/configs/linkstation.h
include/flash.h
include/pci_ids.h
lib_ppc/board.c
lib_ppc/interrupts.c
net/net.c
net/nfs.c
tools/Makefile
include/configs/linkstation.h


It would take a lot of work to apply this patch to a different version of U-Boot. And then there's also the increased risk of bricking my Kuro.

Hopefully I can find a copy of u-boox-86xx somewhere.


Top
   
 Post subject:
PostPosted: Sun Nov 11, 2007 9:18 pm 
Offline

Joined: Sat Jul 15, 2006 8:49 am
Posts: 219
Location: Virginia
denx.de is the place to get it. You can see in their log around 12 months ago they merged with http://www.jdl.com/software/u-boot-86xx.git, look around a third of the way down the page: http://www.denx.de/cgi-bin/gitweb.cgi?p=u-boot.git;a=log;h=U-Boot-1_2_0;pg=1


Top
   
 Post subject:
PostPosted: Wed Nov 14, 2007 8:07 pm 
Offline

Joined: Mon Sep 11, 2006 5:21 pm
Posts: 13
Location: California
I'm going to take a stab at re-patching U-Boot. I've been looking at this patch (http://www.kurobox.com/revolution/downloads/contest/patches.zip) and it doesn't seem like it'll be too hard to modify it to fit a more up-to-date version of U-Boot.

Hopefully, U-Boot 1.3.0 will come out soon. latest is 1.3.0-rc3 :-)

Just one question:
-- Aside from the patch mentioned above, are there any OTHER U-Boot patches?


Top
   
 Post subject:
PostPosted: Fri Nov 16, 2007 6:11 pm 
Offline

Joined: Sat Jul 15, 2006 8:49 am
Posts: 219
Location: Virginia
I noticed on the nas-central.org forum that lyakh is talking about submitting patches upstream: http://forum.nas-central.org/viewtopic.php?p=41396#p41396. He is the one that submitted the linkstation patches on the kernel to kernel.org. This would be great. So you can either attempt patching uboot 1.3 yourself or wait for it to just happen (perhaps it won't make 1.3).


Top
   
 Post subject:
PostPosted: Sun Nov 18, 2007 12:30 am 
Offline

Joined: Mon Sep 11, 2006 5:21 pm
Posts: 13
Location: California
the 1.2.0 tarball didn't work with the patch.

nor could i figure out how to get the right version via git.

I'll just wait until lyakh gets a patch into the official u-boot.


Top
   
 Post subject:
PostPosted: Thu Nov 29, 2007 5:16 pm 
Offline

Joined: Wed Nov 29, 2006 3:54 pm
Posts: 12
I've been super busy with work and a housing relocation and accidentally trashed my file system due to a fat fingered f***-up .... But I've started taking a look at the move to U-Boot as well on my KuroHG/WR and took a look at http://www.denx.de/cgi-bin/gitweb.cgi to see what they named their repository. In terms of getting the current version of u-boot you can just run
Code:
cd /usr/src/
git clone git://www.denx.de/git/u-boot.git u-boot-86xx
cd u-boot-86xx
git show U-Boot-1_1_4

take the first seven charachters of the comit identifyer from the show command "e6b6d16de73de6a76e2ec4338291e828b860f040" and do a hard reset and prune back to that version.
Code:
git reset --hard e6b6d16
git prune


I'll post back any additional findings on whether or not the http://www.kurobox.com/revolution/downl ... atches.zip apply to that version...

But this should get you going towards something that may compile according the the instructions at http://nas-central.org/index.php/Kurobo ... .6_kernels ....


Top
   
 Post subject:
PostPosted: Mon Dec 03, 2007 7:09 am 
Offline

Joined: Mon Dec 03, 2007 6:45 am
Posts: 1
u-boot 1.2.0 from denx.de with the patches works.

Quote:


..yeah, that part tripped me up the most, so I corrected it after I got it working.

Quote:


The rest of that article should be all good.


Top
   
 Post subject:
PostPosted: Mon Dec 03, 2007 1:52 pm 
Offline

Joined: Wed Nov 29, 2006 3:54 pm
Posts: 12
For those that want to build via source from git the following appears to work for pulling a specific tagged version.
Code:
git clone git://www.denx.de/git/u-boot.git u-boot-1.2.0
cd u-boot-1.2.0
git show U-Boot-1_2_0
git reset --hard f4eb54529bb3664c3a562e488b460fe075f79d67
git prune
git clean


I'm building right now, but I can confirm that the contents of the tar (ftp://ftp.denx.de/pub/u-boot/u-boot-1.2.0.tar.bz2 ) are identical to the contents of that tag from git. If the patches get merged upstream then this would represent a work flow that works for building arbitrary versions as well.

[Edited a few hours later ...]

I followed the rest of the instructions at http://www.nas-central.org/index.php/Ku ... .6_kernels using a build for a newer kernel and I am currently successfully working in a ram build of U-Boot 1.2.0 and Linux-2.6.23.9 ... if all goes well over the next few days of testing I'll flash this and call it a day.

Thank you all for the great info in the forums and the related wiki's!


Top
   
 Post subject:
PostPosted: Thu Dec 27, 2007 4:17 am 
Offline

Joined: Thu May 25, 2006 7:20 am
Posts: 43
Location: Sydney, Australia
Guys,

I’m hoping someone can help, I’m having a few problems with the UBoot instructions too, now located at:
http://www.nas-central.org/index.php/Ku ... .6_kernels

When I attempt to patch UBoot I get the following results:
Code:
 localhost u-boot-1.2.0 # patch -p1 < ../u-boot-kurobox.patch
patching file MAKEALL
Hunk #1 FAILED at 106.
1 out of 1 hunk FAILED -- saving rejects to file MAKEALL.rej
patching file Makefile
Hunk #1 FAILED at 122.
Hunk #2 FAILED at 237.
Hunk #3 FAILED at 351.
Hunk #4 FAILED at 1300.
4 out of 4 hunks FAILED -- saving rejects to file Makefile.rej
patching file board/linkstation/INSTALL
patching file board/linkstation/Makefile
patching file board/linkstation/avr.c
patching file board/linkstation/bootls.c
patching file board/linkstation/config.mk
patching file board/linkstation/early_init.S
patching file board/linkstation/firminfo.h
patching file board/linkstation/flash.c
patching file board/linkstation/hwctl.c
patching file board/linkstation/ide.c
patching file board/linkstation/linkstation.c
patching file board/linkstation/nc.sh
patching file board/linkstation/u-boot.lds
patching file common/cmd_bootm.c
Hunk #1 FAILED at 193.
1 out of 1 hunk FAILED -- saving rejects to file common/cmd_bootm.c.rej
patching file common/cmd_ext2.c
Hunk #1 FAILED at 283.
1 out of 1 hunk FAILED -- saving rejects to file common/cmd_ext2.c.rej
patching file common/console.c
Hunk #1 FAILED at 48.
Hunk #2 FAILED at 444.
2 out of 2 hunks FAILED -- saving rejects to file common/console.c.rej
patching file common/main.c
Hunk #1 FAILED at 84.
Hunk #2 FAILED at 167.
Hunk #3 FAILED at 195.
Hunk #4 FAILED at 221.
Hunk #5 FAILED at 438.
Hunk #6 FAILED at 476.
Hunk #7 FAILED at 504.
Hunk #8 FAILED at 1017.
8 out of 8 hunks FAILED -- saving rejects to file common/main.c.rej
patching file cpu/mpc824x/cpu.c
Hunk #1 FAILED at 92.
Hunk #2 FAILED at 126.
2 out of 2 hunks FAILED -- saving rejects to file cpu/mpc824x/cpu.c.rej
patching file cpu/mpc824x/start.S
Hunk #1 FAILED at 130.
Hunk #2 FAILED at 155.
Hunk #3 FAILED at 176.
Hunk #4 FAILED at 197.
Hunk #5 FAILED at 479.
Hunk #6 FAILED at 693.
6 out of 6 hunks FAILED -- saving rejects to file cpu/mpc824x/start.S.rej
patching file drivers/dc2114x.c
Hunk #1 FAILED at 27.
Hunk #2 FAILED at 49.
Hunk #3 FAILED at 62.
Hunk #4 FAILED at 73.
Hunk #5 FAILED at 96.
Hunk #6 FAILED at 108.
Hunk #7 FAILED at 149.
Hunk #8 FAILED at 250.
Hunk #9 FAILED at 261.
Hunk #10 FAILED at 348.
Hunk #11 FAILED at 368.
Hunk #12 FAILED at 384.
Hunk #13 FAILED at 394.
Hunk #14 FAILED at 467.
Hunk #15 FAILED at 585.
Hunk #16 FAILED at 608.
Hunk #17 FAILED at 649.
Hunk #18 FAILED at 814.
Hunk #19 FAILED at 883.
19 out of 19 hunks FAILED -- saving rejects to file drivers/dc2114x.c.rej
patching file drivers/netconsole.c
Hunk #1 FAILED at 27.
Hunk #2 FAILED at 125.
Hunk #3 FAILED at 257.
3 out of 3 hunks FAILED -- saving rejects to file drivers/netconsole.c.rej
patching file drivers/rtl8169.c
Hunk #1 FAILED at 48.
Hunk #2 FAILED at 71.
Hunk #3 FAILED at 417.
Hunk #4 FAILED at 458.
Hunk #5 FAILED at 470.
Hunk #6 FAILED at 615.
Hunk #7 FAILED at 648.
Hunk #8 FAILED at 752.
Hunk #9 FAILED at 824.
Hunk #10 FAILED at 940.
10 out of 10 hunks FAILED -- saving rejects to file drivers/rtl8169.c.rej
patching file fs/ext2/ext2fs.c
Hunk #1 FAILED at 35.
Hunk #2 FAILED at 853.
2 out of 2 hunks FAILED -- saving rejects to file fs/ext2/ext2fs.c.rej
patching file include/configs/linkstation.h
patching file include/devices.h
Hunk #1 FAILED at 93.
Hunk #2 FAILED at 112.
2 out of 2 hunks FAILED -- saving rejects to file include/devices.h.rej
patching file include/flash.h
Hunk #1 FAILED at 215.
Hunk #2 FAILED at 248.
Hunk #3 FAILED at 357.
3 out of 3 hunks FAILED -- saving rejects to file include/flash.h.rej
patching file include/pci_ids.h
Hunk #1 FAILED at 1473.
1 out of 1 hunk FAILED -- saving rejects to file include/pci_ids.h.rej
patching file lib_ppc/board.c
Hunk #1 FAILED at 439.
Hunk #2 FAILED at 899.
Hunk #3 FAILED at 955.
Hunk #4 FAILED at 1005.
4 out of 4 hunks FAILED -- saving rejects to file lib_ppc/board.c.rej
patching file lib_ppc/interrupts.c
Hunk #1 FAILED at 40.
Hunk #2 FAILED at 111.
2 out of 2 hunks FAILED -- saving rejects to file lib_ppc/interrupts.c.rej
patching file net/net.c
Hunk #1 FAILED at 641.
Hunk #2 FAILED at 763.
Hunk #3 FAILED at 1153.
Hunk #4 FAILED at 1178.
Hunk #5 FAILED at 1308.
Hunk #6 FAILED at 1360.
6 out of 6 hunks FAILED -- saving rejects to file net/net.c.rej
patching file net/nfs.c
Hunk #1 FAILED at 29.
Hunk #2 FAILED at 180.
Hunk #3 FAILED at 216.
Hunk #4 FAILED at 241.
Hunk #5 FAILED at 270.
Hunk #6 FAILED at 301.
Hunk #7 FAILED at 327.
Hunk #8 FAILED at 358.
Hunk #9 FAILED at 432.
Hunk #10 FAILED at 465.
Hunk #11 FAILED at 587.
Hunk #12 FAILED at 644.
12 out of 12 hunks FAILED -- saving rejects to file net/nfs.c.rej
patching file tools/Makefile
Hunk #1 FAILED at 21.
1 out of 1 hunk FAILED -- saving rejects to file tools/Makefile.rej


I assume this is not the expected result?
Then when I try to run make I suspect I get problems due to the failed patch?

Code:
 

localhost u-boot-1.2.0 # make linkstation_HGLAN_config
make: *** No rule to make target `linkstation_HGLAN_RAM_config'.  Stop.


I have started over a few times, any ideas where I’m going wrong?

Cheers,
Stonie.


Top
   
 Post subject:
PostPosted: Wed Jan 23, 2008 3:22 am 
Offline

Joined: Wed Jun 15, 2005 2:00 am
Posts: 12
Stonie: just wanted to let you know that I'm suffering the same problem.
Tried both the GIT and the tgz approach from this thread an the patching fails.

Did you have any other success so far for a new uboot?


Top
   
 Post subject:
PostPosted: Fri Jan 25, 2008 11:37 am 
Offline

Joined: Wed Nov 29, 2006 3:54 pm
Posts: 12
A couple of days ago my 2 year old drive I had in the kuro decided it was time to die... I'm waiting on the replacement at the moment but I didn't backup the sources. I didn't do anything special to patches that are available and I can confirm that the patches do work against the sources from both git and the archive.

The instructions got moved recently to http://buffalo.nas-central.org/index.ph ... .6_kernels

Just make sure to be certain that everything is working exactly as you want it to before you do the final flash. Good luck!


Top
   
 Post subject:
PostPosted: Fri Feb 01, 2008 7:28 pm 
Offline

Joined: Mon Mar 27, 2006 3:03 pm
Posts: 19
Location: Austin, TX
Stonie:
Quote:
I have started over a few times, any ideas where I’m going wrong?

I had the same problem with patch. I had to use "unzip -aa patches.zip" to put the right line endings on the patch files. Then the patch applied correctly.

Tonyo


Top
   
Display posts from previous:  Sort by  
Forum locked  This topic is locked, you cannot edit posts or make further replies.  [ 23 posts ]  Go to page 1 2 Next

All times are UTC-06:00


Who is online

Users browsing this forum: No registered users and 2 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:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited