It is currently May 24th, 2013, 10:46 pm Advanced search

Compiling from Buildroot - Lessons learned

Guides, mods, hacks and tips related to the XIOS DS XBMC Linux port

Re: Compiling from Buildroot - Lessons learned

Postby davilla » August 18th, 2012, 5:01 pm

Pivos_BigC » August 18th, 2012, 3:08 pm wrote:iproute needs its source adjusted. If you are having trouble with a message saying the iproute package isn't a bz2 archive:

Code: Select all
cd dl
rm iproute2-2.6.37.tar.bz2
wget http://pkgs.fedoraproject.org/repo/pkgs/iproute/iproute2-2.6.37.tar.bz2/9774ff9d74ebd301bf56bd8d74473786/iproute2-2.6.37.tar.bz2
cd ..
make


to get back on track! (wget command is on one line)

from: http://pkgs.fedoraproject.org/repo/pkgs ... 37.tar.bz2

To: http://pkgs.fedoraproject.org/repo/pkgs ... 37.tar.bz2


WTF are fedora devs thinking with that URL :)
davilla
Pivos Employee
 
Posts: 1332
Joined: July 14th, 2012, 9:12 pm

Re: Compiling from Buildroot - Lessons learned

Postby sclowater » August 18th, 2012, 7:41 pm

Well, my 24 hour build adventure is finally complete with great success, lol.

From absolutely cratering my Ubuntu VM when I tried to resize the disk (when my first make died due to lack of disk) to the fun of the walking away and having git ask me for my ssh pw while i was downstairs and timing out in the middle to all the fun with the moved downloads it's been quite a process.

Add to the fact that I'm absolutely clueless as to how all of this actually hangs together but it's been a very pleasant learning experience.

The last bit that was needed was a JDK as Ubuntu doesn't ship with an Oracle JDK anymore and the update.img signing failed w/o it. I almost wept when it crashed and I feared I would have to start the build from scratch, but It skipped right to the end and did its thing and I think I heard a chorus of angels.

Overall build time for me with a i7 2600k with a sata drive is around a 3-4 hours start to finish I think (hard to tell with the various fails) but I'm building on a win7 box inside a VM with 3 gigs of RAM allocated so it's less than an ideal environment but it did the trick.

I was able to customize the image a bit but now to learn what other features I can add :D
sclowater
Curious
 
Posts: 32
Joined: August 14th, 2012, 9:13 pm

Re: Compiling from Buildroot - Lessons learned

Postby davilla » August 18th, 2012, 9:53 pm

eval `ssh-agent`
ssh-add ~/.ssh/id_rsa

^^ is your friend with ssh pulls.
davilla
Pivos Employee
 
Posts: 1332
Joined: July 14th, 2012, 9:12 pm

Re: Compiling from Buildroot - Lessons learned

Postby emveepee » August 18th, 2012, 10:00 pm

Another lesson learned, I did the make today and although the git commit number matched, I didn't have the zoneinfo changes. So I went back did the

make clean
make

and now everything is great. Nice to be able to have the correct time on my Pivos box in XBMC and I think the a/v sync change helps on some files that looked a little off before but more testing tomorrow.

To save a bit when you have a good setup, copy

guisettings.xml
passwords.xml
sources.xml

to you usb and then copy them to /root/.xbmc/userdata via ssh after the next image.

Martin
emveepee
Hardcore
 
Posts: 186
Joined: July 16th, 2012, 6:44 pm

Re: Compiling from Buildroot - Lessons learned

Postby sensite » August 19th, 2012, 5:12 am

which subproject should i clean and rebuild if i just changed /etc/init.d/ startup files? rebuilding everything works, but i don't wanna have to rebuild everything to have the image file rebuild w/ a simple change to a startup script.
sensite
Hardcore
 
Posts: 276
Joined: July 16th, 2012, 4:32 pm

Re: Compiling from Buildroot - Lessons learned

Postby davilla » August 19th, 2012, 7:30 am

sensite » August 19th, 2012, 8:12 am wrote:which subproject should i clean and rebuild if i just changed /etc/init.d/ startup files? rebuilding everything works, but i don't wanna have to rebuild everything to have the image file rebuild w/ a simple change to a startup script.


cp the new stuff into output/target, that rootfs will be used in making update.img. I do this all the time when trying out fixes. To keep from losing changes, I always change their original files, then cp over. That way git status/diff will always show what I did.
davilla
Pivos Employee
 
Posts: 1332
Joined: July 14th, 2012, 9:12 pm

Compiling from Buildroot - Lessons learned

Postby xrmnx » August 19th, 2012, 7:41 am

i have a problem with signing the image. building works all fine, but it always ends with an error telling me, it's "unable to access jarfile signapk.jar". the oracle jdk is installed and works just fine. can anybody tell me, what i'm missing?
xrmnx
 
Posts: 6
Joined: August 19th, 2012, 7:32 am

Re: Compiling from Buildroot - Lessons learned

Postby davilla » August 19th, 2012, 7:57 am

xrmnx » August 19th, 2012, 10:41 am wrote:i have a problem with signing the image. building works all fine, but it always ends with an error telling me, it's "unable to access jarfile signapk.jar". the oracle jdk is installed and works just fine. can anybody tell me, what i'm missing?


you have to have signing setup just like for XBMC for Android. See https://github.com/xbmc/xbmc/blob/maste ... ME.android
davilla
Pivos Employee
 
Posts: 1332
Joined: July 14th, 2012, 9:12 pm

Re: Compiling from Buildroot - Lessons learned

Postby sensite » August 19th, 2012, 8:03 am

i'm trying out the latest git but ntp still doesn't work for me. tried ntpd -d and its complaining that /etc/ntp.conf doesn't exist, i added
Code: Select all
server poo.ntp.org


now ntpd -g runs and connects to the ntp server, but it takes mins for the time to sync.

and i don't think /etc/init.d/S21hwclock are working. i see some syntax error when i tried showing/restarting
sensite
Hardcore
 
Posts: 276
Joined: July 16th, 2012, 4:32 pm

Re: Compiling from Buildroot - Lessons learned

Postby davilla » August 19th, 2012, 8:15 am

post the errors. use a pastebin site like www.pastebin.com
davilla
Pivos Employee
 
Posts: 1332
Joined: July 14th, 2012, 9:12 pm

PreviousNext

Return to XIOS DS (Linux) Guides, Mods, Hacks and Tips

Who is online

Users browsing this forum: No registered users and 0 guests