![]() |
Re: Easy Debian Fremantle Beta Testing
Quote:
|
Re: Easy Debian Fremantle Beta Testing
Quote:
I guess I'll do a proper recompile some time in the future anyways. Quote:
|
Re: Easy Debian Fremantle Beta Testing
Quote:
Keep up that good work - again, things that you're trying now are (currently) far above my knowledge level, so if anyone reincarnate fully working ED, it would be you. /Estel |
Re: Easy Debian Fremantle Beta Testing
Quote:
In my new armel image gimp crashes too. It's only armhf where it works fine. Quote:
Not sure if that's an option for you but I found midori to be pretty useful in ED. xxxterm might also be worth a try, but I have no idea if that browser has a bright future in Debian (the project was renamed to xombrero ages ago but in Debian is still an outdated xxxterm version). Quote:
Quote:
But I intend to release a basic Wheezy/armhf image in the near future (pretty similar to my old Wheezy/armel image - but hopefully with fewer stupid bugs) that others can use to create more "end-user-friendly" images. It always bothered me that I didn't actually understand the inner workings of qole-based images (all we have so far) and since I'd have to start over from scratch for an armhf transition anyway I thought this might be a good opportunity to dig deeper. Oh, btw: A good portion of that dissatifaction was due to (in my eyes) missing or hard-to-find documentation on how to create images from scratch. So once I have an image up I intend to change that situation by putting all the necessary info into the wiki. Please feel free to needle me until everything is clear! Should I disappear (again), others should be able to continue right where I have stopped. |
Re: Easy Debian Fremantle Beta Testing
Quote:
I think that your work to understand inner working of those images + documenting their creation from scratch is exactly thing that contributes to understanding possible problems, too. Kudos for your work, again :) /Estel |
Re: Easy Debian Fremantle Beta Testing
Quote:
|
Re: Easy Debian Fremantle Beta Testing
Quote:
It only crashes in ED, no matter if armel or armhf. For reference: This is the error message which appears right after the GUI comes up, tries to scan available devices and crashes: Code:
*** glib detected *** /usr/sbin/gpartedbin: free(): invalid pointer: 0x00285ae0 *** As I said, I have no idea how to debug that, but then again I'm a very poor programmer (as in writing C(++) code). So if somebody else has any pointers (pun intended) I'd be happy to assist in tracking the problem down as good as I can. Quote:
To my understanding, if Debian gets to the point where its future becomes questionable the whole FLOSS ecosystem is in big trouble. |
Re: Easy Debian Fremantle Beta Testing
[edit: Well, that was tricky! ;) But I have the solution. More at the end of this post. ]
On a more serious note, I think I may be at the point of uploading an image, except for audio. In general I try to avoid pulseaudio wherever I can. Here I can't and I don't know how to proceed. steps in detail: 1. I recompiled pulseaudio with this patch [1] to account for Maemo's ancient PA version. (I did that for armel as well and the resulting packages work fine in my working armel image.) 2. I installed the following recompiled packages in my armhf image: Code:
libpulse0 Code:
gstreamer0.10-pulseaudio Code:
# PCM Code:
$ ps ax | grep dbus Code:
/var/lib/dbus #2 was not mounted in my case but it was an identical copy of the host system's directory which works fine in my armel image. Mounting it from the host system didn't change anything. #3 was a tmpfs mount in the image, which also works fine in the armel image. Mounting it from the host didn't get pA working. 7. Mentioned in [2], and stressed in [3] one has to make sure that the machine_id is the same in the chroot as on the host. Since /var/lib/dbus is a bind-mount this is the case: Code:
# cat /var/lib/dbus/machine-id Code:
$ mocp 10_-_Magic_Zone.ogg This is what I get when I manually start PA as user in the chroot: Code:
$ pulseaudio Code:
# pulseaudio What puzzles me is this line, as, according to Google, it usually seems to indicate a machine_id mismatch, which I've already ruled out (see step 7): Code:
E: [pulseaudio] core-util.c: Failed to connect to system bus: Failed to connect to socket /var/run/dbus/system_bus_socket: Connection refused edit/solution: In a default Debian installation /var/run is a symlink to /run. But in ED /var/run needs to be a real directory because /run will be empty at the beginning, which means /var/run/dbus and /var/run/pulse will be missing. On the other hand we can't simply make both of them real directories since we need Maemo's contents of these directories at the beginning. So the solution is to reverse the order. Make /var/run a real directory and /run a symlink to /var/run. [1] http://talk.maemo.org/showpost.php?p...6&postcount=34 [2] http://www.freedesktop.org/wiki/Soft...FAQ/#index36h3 [3] http://blog.einval.com/2010/11/12 |
Re: Easy Debian Fremantle Beta Testing
Quote:
1. I suppose both Cubieboard2 and your pc with qemu-arm installation have newer kernels than 2.6.28? The reason I'm asking is I've seen in my past glibc crashes when specific combination of glibc version and kernel version, and quick googling returned some other case where a person with kernel 2.6.28 had "...gpartedbin: free(): invalid pointer..." error [1]. Are you able to install second kernel on your pc, preferably 2.6.28? Googling told me Cubieboard2 supports 3.something (3.4?) kernels only, so I guess downgrading that one is not possible. 2. Again very remote guess, but could you try running gparted from console with "LD_PRELOAD=/path/to/libstdc++.so" ? This is based again on some googling results, mostly one explanation of possible cause of "...free(): invalid pointer..." issues when some of the libraries are compiled with incorrect flags [2] and related ubuntu bug [3]. Maybe comparing "ldd /usr/sbin/gpartedbin" from Cubieboard2, from qemu-armel environment on pc and from n900 in both armel and armhf image would also show something suspicious or give any clues (it would be nice if you could also post them here for reference). edit: 3. Posting strace would be nice, too (maybe it will provide some suspiciously looking data for some other community member, without the need to run the ED and gparted). [1] http://ubuntuforums.org/archive/inde...t-1211516.html [2] https://www.libavg.de/site/projects/...nvalid-pointer [3] https://bugs.launchpad.net/ubuntu/+s...sa/+bug/259219 |
Re: Easy Debian Fremantle Beta Testing
3 Attachment(s)
Quote:
My CB2 runs a custom 3.4.67+ made by the Cubian folks, my PC runs the 3.2.51 Debian kernel. Quote:
On the other hand my experience (with x86, arm and ppc) is, that when you get that close to the hardware level you can't simply abstract from one architecture to another. So I'm sceptic if x86-experiments are useful for arm. Quote:
Kernels always have "just worked" for me. I've tried some occasional recompiles just for fun but I'm far away from actually being able to do any troubleshooting. Quote:
Code:
# ls -l /usr/lib/arm-linux-gnueabihf/libstdc++.so.6* edit: At first I had outputs that contained Locale warnings and therefore might be misleading (pointer address changes etc.). I've reuploaded outputs without these problems. /edit Quote:
My qemu machine doesn't exist anymore since I have the CB2. Thanks for all the tips! |
Re: Easy Debian Fremantle Beta Testing
Quote:
Quote:
Quote:
Here it is (wheezy/armhf image on the N900): Code:
# ls -l /usr/lib/arm-linux-gnueabihf/libstdc++.so.6* Thanks for all the updates, I don't see anything obvious in them either. What does the "file /usr/sbin/gpartedbin" say (could you post the output)? Maybe it doesn't support our kernel [1], which would be a suprise, but worth checking. On my virtual machine with a bit old Debian installation the minimal supported kernel for gparted is "2.6.26" which is quite close to N900's version... By the way, while looking for glibc, libstdc++ and kernel combination bugs, I found interesting info - Maemo's default gcc's (4.2.1) libstdc++ (6.0.9) which is present on N900s has one known binary incomatibility with all older and newer versions - see [2] and relevant gcc bug report [3]. It's marked as fixed - I wonder if "our" 6.0.9 and gcc have this fix included by some patch or all "our" binaries are abi-incompatible with all other gcc/libstdc++ version :) That would make me a sad panda. Edit: I also wonder what "--enable-kernel=2.X.Y" was passed when glibc was being compiled. Anyone know how to check that, so Sulu could do that? Edit2: I found out that GNU C Library 2.17 is compatible with kernels 2.6.16 upwards [4] while GNU C Library 2.18 doesn't even state that info in annoucement [5]... [1] http://stackoverflow.com/questions/6...active#tab-top [2] http://gcc.gnu.org/onlinedocs/libstdc++/manual/abi.html search for "GCC 4.2.1: libstdc++.so.6.0.9" and read further note [3] http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33678 [4] https://sourceware.org/ml/libc-annou.../msg00001.html [5] https://sourceware.org/ml/libc-alpha.../msg00160.html |
Re: Easy Debian Fremantle Beta Testing
Quote:
Code:
# file /usr/sbin/gpartedbin |
Re: Easy Debian Fremantle Beta Testing
Here's the first attempt of a Wheezy/armhf image:
http://netload.in/dateiKJ3z5OMsGg/ea..._armhf.tar.htm Besides the image itself the archive also includes all of my recompiled pulseaudio packages (most of them should never be necessary) and afaik all the custom binaries and scripts that are still present in qole-based Easy Debian images. edit: the user's pasword (for sudo) is: user the root password (for su) is: root Here's a preliminary draft of a how-to to reproduce how I've created this image: Quote:
[2] http://linux.koolsolutions.com/2009/...-debian-linux/ [3] http://talk.maemo.org/showpost.php?p...6&postcount=34 [4] http://www.thomas-krenn.com/de/wiki/...d_unter_Debian [5] http://talk.maemo.org/showpost.php?p...4&postcount=23 [6] http://talk.maemo.org/showpost.php?p=425218&postcount=7 [7] http://talk.maemo.org/showpost.php?p...postcount=3040 |
Re: Easy Debian Fremantle Beta Testing
Quote:
Nice research, BTW! /Estel |
Re: Easy Debian Fremantle Beta Testing
Quote:
Code:
debian/sysdeps/linux.mk:MIN_KERNEL_SUPPORTED := 2.6.32 I'll check that again when I have the time. Quote:
[1] http://talk.maemo.org/showpost.php?p...postcount=3030 [2] http://ftp-master.metadata.debian.or...7-97_changelog |
Re: Easy Debian Fremantle Beta Testing
2 Attachment(s)
Here's a summary of kernel version mentions in Debian's eglibc source package [1]:
A full egrep output is attached. This is what remains if all kernel versions <=2.6.28 and all lines explicitely only valid for other architectures are eliminated: Code:
ChangeLog.17: O_DSYNC to match 2.6.33+ kernels. ChangeLog.17 Code:
2009-12-11 Ulrich Drepper <drepper@redhat.com> Code:
/* Support for pselect6, ppoll and epoll_pwait was added in 2.6.32. */ Code:
# The GNU libc requires a >= 2.6.26 kernel, except on m68k where a Code:
2009-12-15 Joseph Myers <joseph@codesourcery.com> Code:
/* Support for the FUTEX_CLOCK_REALTIME flag was added in 2.6.29. */ Maybe someone can gather any insight from this. [1] http://packages.debian.org/source/wheezy/eglibc |
Re: Easy Debian Fremantle Beta Testing
And what is the maximal version the Fremantle kernel could be (theoretically upgraded)?
|
Re: Easy Debian Fremantle Beta Testing
As far a I understand you can't go beyond 2.6.28 (which is why KP still is 2.6.28, although heavily tweaked) because some of the non-free components (drivers, probably apps) would cease to work.
The Linux kernel infrastructure (modules) is highly version dependent. Have a look at /lib/modules and you'll see that there is a directory for every kernel! Linux experiences frequent ABI changes, which means to be on the safe side you'll have to recompile all your kernel modules for every new minor revision (3rd number in 2.x kernels). For that of course you need the code of these modules. Unfortunately we don't have this code for all the modules in the Maemo kernel, which means we can't move on. This is why it's so important for the Neo900 to be as free (libre) as possible and identifying (easy) and replacing (hard?) non-free components is an important task for FPTF. In fact being able to use a newer kernel (3.x) is one of their main goals. |
Re: Easy Debian Fremantle Beta Testing
Hmm... And did anyone try whether 2.6.32 works? I know that type of situation from the meecolay development. Everybody said - it won't work soft vs hard float but some of the apps worked even though. Maybe the ABI changes are not so big... :)
Or maybe it would be possible to use an analogical approach as with LD_PRELOAD? But, we're not m68k, so we don't need the newer kernel, do we? |
Re: Easy Debian Fremantle Beta Testing
306 pages is bloody long and the first page hasn't been updated for ages, so I'll ask a (stupid) newbie question.
I want to use EasyDebian when my N900 is working as a desktop (i.e. with external keyboard, mouse, TV as a monitor, ntfs hdd for additional storage). The main goal is to use OpenOffice, but it would also be nice to use IceWeasel or something else for browsing. The device will most likely be overclocked to 900MHz during that kind of operation. Which image should I download from http://qole.org/files/ to suit my needs best? Any recommendations on Easy-Debian package version itself? |
Re: Easy Debian Fremantle Beta Testing
|
Re: Easy Debian Fremantle Beta Testing
It really depends on what you're doing.
Estel's image is the most "rounded" one when it comes to beginner friendlyness due to the software it already includes, but all the images at qole.org suffer from being heavily outdated. For example iceweasel in squeeze hasn't received any updates since december 2012 (the backports have version 10.0.12 but that's not really better). I haven't checked the implications of that, but I wouldn't use iceweasel from squeeze for online banking or any other stuff that requires me to login somewhere. I tried to adress this by uploading a minimal wheezy-based image some posts ago [2], but as I've seen just now the link is dead. I will upload an updated before easter, maybe this evening (CEST), maybe tomorrow.* I also included instructions that are hopefully detailed enough to reproduce my work. So if you have any decent armel/hf machine (> Raspberry PI; in which case you'll likely have some slightly advanced knowledge about debian) you could build your own image as well. *) I'd appreciate hint's on any sharehosters that don't essentially require me to add an nsfw warning to my link due to their advertising. Otherwise I'm considering on signing up at linuxtracker.org, in which case you'd have to bear with my quite stable but slow connection. [1] http://metadata.ftp-master.debian.or...6-20_changelog [2] http://talk.maemo.org/showthread.php...&page=306#3053 |
Re: Easy Debian Fremantle Beta Testing
I've just uploaded an updated version of my minimal Wheezy/armhf image. [1]
The md5sums are as follows: Code:
$ md5sum debian_wheezy2sulu_armhf.img.lzma And as always: If you feel like mirroring this image on your own webspace, feel free to do that! In fact I'd be grateful. @FlashInTheNight86: In case you use kernel power [2] (required for armhf) you can use this image, install iceweasel and libreoffice on your own and you should be ready to go. [1] http://freakshare.com/files/m8yq5o6h....img.lzma.html [2] http://wiki.maemo.org/Kernel_Power |
Re: Easy Debian Fremantle Beta Testing
Quote:
|
Re: Easy Debian Fremantle Beta Testing
Quote:
[\u@chroot: \w]apt-get install iceweasel Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: libevent-2.0-5 libhunspell-1.3-0 libmozjs24d xulrunner-24.0 Suggested packages: fonts-stix otf-stix fonts-oflb-asana-math fonts-mathjax mozplugger libgnomeui-0 libcanberra0 Recommended packages: hunspell-en-us hunspell-dictionary myspell-dictionary The following NEW packages will be installed: iceweasel libevent-2.0-5 libhunspell-1.3-0 libmozjs24d xulrunner-24.0 0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/20.7 MB of archives. After this operation, 41.6 MB of additional disk space will be used. Do you want to continue [Y/n]? y dpkg: unrecoverable fatal error, aborting: syntax error: unknown group 'crontab' in statoverride file E: Sub-process /usr/bin/dpkg returned an error code (2) [\u@chroot: \w] |
Re: Easy Debian Fremantle Beta Testing
I can't reproduce this, but your prompt looks funny.
Can you give more details please? Where does your shell come from? Is it from within LXDE or via debbie? Also I'd like to see the output of mount from Maemo. May your image be corrupted? Edit: Was this your first attempt to install something in this image? |
Re: Easy Debian Fremantle Beta Testing
Quote:
|
Re: Easy Debian Fremantle Beta Testing
I don't have my N900 at hand now, but iirc there's a group 'cron' or 'crontab' with the gid 102 in the image's /etc/group.
It doesn't cause any problems for me, but it might still be a bad idea to have it there. If removing this entry solves your problem, please let me know and I'll upload another image with the group removed. As for your prompt, I believe the problem might be that Easy Debian by default bind-mounts Maemo's /home/user into the image. I consider this to be a bad idea since it messes Maemo's home up with stuff that doesn't belong there. Therefore I've disabled this bind-mount long time ago and I honestly can't say what happens if it's still there. I'll give it a try though and see if I can fix it. |
Re: Easy Debian Fremantle Beta Testing
mayhem, groupadd crontab will fix it
|
Re: Easy Debian Fremantle Beta Testing
Quote:
|
Re: Easy Debian Fremantle Beta Testing
Quote:
|
Re: Easy Debian Fremantle Beta Testing
sulu, I'll try your latest image then...
As far as I understand, you recommend LibreOffice over OpenOffice. Is it faster or any otherwise better? |
Re: Easy Debian Fremantle Beta Testing
Quote:
So I assume the image is up there somewhere, but I don't have a link to present. Quote:
/etc/group is in the image: Code:
root@i7-2700k:/tmp# unlzma -k debian_wheezy2sulu_armhf.img.lzma Quote:
|
Re: Easy Debian Fremantle Beta Testing
Quote:
|
Re: Easy Debian Fremantle Beta Testing
I have no idea.
Edit: I just tried on my secondary device, which apart from running CSSU thumb is almost naked (Easy Debian, rootsh, conky and the default Nokia stuff that came with it.) Easy Debian is in it's vanilla shape, the only change is the image path that points to my image. And I have no problems installing Iceweasel. |
Re: Easy Debian Fremantle Beta Testing
Quote:
Hosted on my UK-based VPS - no CAPTCHAs, no adverts, wget and curl friendly if you want to download on your N900. Note that decompressing it on the N900 takes a good few minutes. |
Re: Easy Debian Fremantle Beta Testing
I found a bug in my latest image:
It contains a file /etc/resolv.conf which will prevent you from establishing any network connection from within the image, unless you happen to use the same nameserver ip I do. To fix this just delete the file from your image, or use the fixed image I uploaded [1]. The md5sums are as follows: Code:
f063dea7727c2621870e334f2bb28814 debian_wheezy3sulu_armhf.img Code:
make_resolv_conf(){ @magick777: Thanks a lot for mirroring the image! Could you host the new one instead please? [1] http://freakshare.com/files/09z2uj21....img.lzma.html [2] http://www.cyberciti.biz/faq/dhclien...olvconf-hooks/ |
Re: Easy Debian Fremantle Beta Testing
|
Re: Easy Debian Fremantle Beta Testing
sulu, how you rate chances for any (upstream?) fixes re bugs that you've reported against things in wheezy? Frankly, I lost all hope for it (because it seems to only affect very specific cases, like our armel/armhf implementation), and it made me to revert back to Squeeze-only ED, despite possible security flaws in things you've described..
/Estel |
Re: Easy Debian Fremantle Beta Testing
Quote:
Considering that chromium was removed from armel/hf after my bug report and that the gimp and gparted issues only seem to occur on the N900 I don't see us in a position to fix these bugs, since at least to me they don't seem to be Debian bugs but N900/Fremantle bugs. I still have a little hope that some fundamental updates to Fremantle might happen if fremangordon succeeds in his attempt to update the kernel. Otherwise I believe the future of ED might be in jeopardy alltogether since getting a jessie image to run won't be possible through a simple debootstrap but requires a patched glibc. This means that it will become more likely for software in jessie to break. |
All times are GMT. The time now is 05:56. |
vBulletin® Version 3.8.8