maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Alternatives (https://talk.maemo.org/forumdisplay.php?f=36)
-   -   [Debian] Deblet in Scratchbox? (https://talk.maemo.org/showthread.php?t=22816)

fatalsaint 2008-08-13 16:48

[Debian] Deblet in Scratchbox?
 
Can anyone help point me in the direction to getting a deblet-like base into a scratchbox or similar environment??

I run an Ubuntu box .. trying to setup the maemo scratchbox didn't quite work right and I got a bunch of errors.. so I added debian's repo's and removed the hildon stuff from it and tried reloading everything out of the debian repo's but there is some software that refuses to load right in there..

Basically - I can't compile kdebase 4.1 on the tablet. It gets to 31%; somewhere in konqmain.o while building konqueror.. and it locks up and reboots.. the processor just can't handle the compile.

So I would like to find some way to use my desktop's processor to get this software compiled for the ARMEL and then just load the deb's into my tablet.

This is the last step in getting a basic, fundamental KDE 4.1 working without all the goodies in it.. and it's really getting on my nerves that it gets 1/3rd of the way done and then just reboots. I even tried running a nice -n19 on it to make it the least prioritize process and it still crashes.

Any suggestions?

Stskeeps 2008-08-13 21:46

Re: Deblet in Scratchbox?
 
http://www.scratchbox.org/documentat...velopment.html might be a start

fatalsaint 2008-08-13 22:24

Re: Deblet in Scratchbox?
 
Yeah I did that.. I'm starting over and trying again.. but I get a lot of errors when it tried to upgrade/update things like the apt package itself.. the debian-keyring package.. I can't install aptitude for nothing..

But I don't start with a rootstrap..which might be a problem.. I haven't actually tried a rootstrap yet though.. I copy over the files with the sb-menu command.. but I'll try a rootstrap if this doesn't work again...

fatalsaint 2008-08-14 21:21

Re: Deblet in Scratchbox?
 
Well.. I had to totally screw around with almost everything that scratchbox had setup filesystem wise.. had to get the upgraded libc's and g++ and crap all loaded.. and I started with Qole's rootfs he made for using his image on the partition instead of a .img file :D :D... not a straight deblet but close enough once I added SID and experimental to the repo's..

Went through my script that gets everything installed/ready for kde compiling with no problems.. and after 3 days of screwing with it it's currently making a real good pretend at compiling kdebase for me.. 5% so far.

I'll be entertained to see if the binary actually works on the tablet.. (so far all the tablet's installed inside of it...)

qole 2008-08-14 22:01

Re: Deblet in Scratchbox?
 
For future reference, and to save you some time downloading, you can use my minimal Debian rootfs which is 110MB (instead of 272MB), and has all the basics installed (including stuff like locales, etc) without any of the application fluff.

EDIT: I have even a smaller one, 43MB, here. But it is really only the rootfs you get after doing a bootstrap.

EDIT (Long after the fact): I have deleted the minimal Debian rootfs, but I have a better new one now, everything installed (except apps) and only about 54MB.

basic-debian-chroot-fs.tar.bz2

I hope this compiles for you! This'll be a big deal. You should try for a free N810 :)

fatalsaint 2008-08-14 22:15

Re: Deblet in Scratchbox?
 
Good point.. I was just so frustrated at trying to get hte built-in scratchbox debian to work that I ended up trying to SCP my entire mmc1 from my tablet over.. which then caused all kinds of other problems (i'd venture exactly the same problems Brent was seeing when he just tried to copy the FS over)... and finally I just gave up and the first tarball I could think of was that one lol.

I prolly coulda used any of John's, yours, whatever .. just something to get a working debian base.

fatalsaint 2008-08-15 05:11

Re: Deblet in Scratchbox?
 
Well good news.,.. it compiled.. installed on the tablet and I got no errors...

Not sure how good the binaries are... was having issues.. it failed to launch a kdestartupconfig4 .. and the way the desktop looks and the fact the mesa packages were required I think kde4 is trying to use 3d support from somewhere to make things "fancy"... I never made it to a desktop and then my SD card got corrupted... Im starting over from a fresh deblet install; gonna install all my made binaries and apt-get -f for the rest of the dependencies... see if it helps anything.

So far it's look good for KDE.. and scratchbox compiling for debian is awesome (gonna start on the rest, kdegames; multimedia; etc). I need to find a way, if it is, to disable the 3d stuff too..

qole 2008-08-15 05:50

Re: Deblet in Scratchbox?
 
That sucks about the SD card corruption. I've noticed that happens more with ext2 partitions, I've gotta be pretty religious with the fsck to keep things from derailing. I think we're just being really hard on the poor cards when we use them this way.

And remember to use the software rendering for mesa. You've gotta be specific about installing the software rendering, it tries to install hardware accelerated mesa by default. I mentioned it in that other thread.

fatalsaint 2008-08-15 22:50

Re: Deblet in Scratchbox?
 
All my problems were PEBKAC.... I had moved around my home drive from the new one to an old one before I booted and forgot to change my user account 29999 ... so that's why I was getting errors and no desktop - user didn't have rights to his own drive.

Did a complete reload of deblet; installed KDE 4.1 minimal; booted and it works.. performance is horrible.. I am going to update my original thread. At least I know my scratchbox environment works.. now I can try and compile anything missing in the debian repo's... there is still some limitations though it appears with some programs.. some of the kde ones won't compiled because they make calls the arm processor can't handle - should be fixable.. but seeing how kde runs now I don't think I'll put in the effort unless asked.

b-man 2008-08-15 23:18

Re: Deblet in Scratchbox?
 
Quote:

Originally Posted by fatalsaint (Post 214206)
now I can try and compile anything missing in the debian repo's

Cool, glad to see you have everything up and allmost running properly:). I do have some software that i'm having truble compileing, could you try theas out?
(i sadly don't have scratchbox running at the moment and have ben using the command line: gcc, mono, apt, dpkg, ect.. ) here's my short list:

Emelfm2 ~ from ubuntu
qemu
python-gconf
dosemu

I've ben constantly trying to compile the sorce but have had no luck so far. :(


All times are GMT. The time now is 02:08.

vBulletin® Version 3.8.8