maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Alternatives (https://talk.maemo.org/forumdisplay.php?f=36)
-   -   Easy Debian Fremantle Beta Testing (https://talk.maemo.org/showthread.php?t=34550)

marmistrz 2014-01-02 18:50

Re: Easy Debian Fremantle Beta Testing
 
Quote:

Originally Posted by elros34 (Post 1403133)
You should recompile qobi-wmhint-fix for armhf or eventually try to symlink: ln -s /lib/ld-linux-armhf.so.3 /lib/ld-linux.so.3

Is /sbin in PATH?

sulu 2014-01-02 19:56

Re: Easy Debian Fremantle Beta Testing
 
Quote:

Originally Posted by elros34 (Post 1403133)
You should recompile qobi-wmhint-fix for armhf or eventually try to symlink: ln -s /lib/ld-linux-armhf.so.3 /lib/ld-linux.so.3

The link did it. Thanks a lot!
I guess I'll do a proper recompile some time in the future anyways.

Quote:

Originally Posted by marmistrz (Post 1403134)
Is /sbin in PATH?

Yes, it is.

Estel 2014-01-02 22:27

Re: Easy Debian Fremantle Beta Testing
 
Quote:

Originally Posted by sulu (Post 1403104)
I tried to set up a new Wheezy/armhf image from scratch and I have good and bad news.

the good:
Gimp works without crashing when using the text tool.

the bad:
For some reason I'm unable to get keyboard support in lxde (via debbie it works fine in roxterm and gimp).
Just for reference, I also created an armel image and I have the same problems there, so I'm pretty sure it's not architecture-specific, but I'm missing some "magic".

Armel version also doesn't have GIMP problems? I wonder, what causes them in our "old" image, then. Also, it would be interesting to see if gparted and chromium problems are manifesting themselves, but I understand, that you wanted to have working keyboard, first :D

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

sulu 2014-01-02 23:14

Re: Easy Debian Fremantle Beta Testing
 
Quote:

Originally Posted by Estel (Post 1403217)
Armel version also doesn't have GIMP problems?

Sorry, my formulation was very ambiguous.
In my new armel image gimp crashes too. It's only armhf where it works fine.

Quote:

Originally Posted by Estel (Post 1403217)
Also, it would be interesting to see if gparted and chromium problems are manifesting themselves

gparted crashes in armhf too and chromium isn't even present in the non-x86 Debian repos anymore (my last attempt to compile it anyway failed due to missing make targets with which I didn't bother any more).
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:

Originally Posted by Estel (Post 1403217)
Keep up that good work

Thanks, I'll try. :)

Quote:

Originally Posted by Estel (Post 1403217)
so if anyone reincarnate fully working ED, it would be you.

If "fully working" for you means you want gparted then I think I'll have to disappoint you. I don't even know where to begin debugging.
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.

Estel 2014-01-03 20:59

Re: Easy Debian Fremantle Beta Testing
 
Quote:

Originally Posted by sulu (Post 1403229)
If "fully working" for you means you want gparted then I think I'll have to disappoint you. I don't even know where to begin debugging.
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.

By "fully working" I mean "without things that doesn't work for reasons that we can't pinpoint", like that glib things gparted complains about (remember, it's not about gparted version - so it may be sign of more serious problems with library in question, that can manifest itself in other cases. Although, it haven't done so yet, which buggs me...). Things like chromium or GIMP - which are, (now) clearly bugs in their code/build process, are of lesser importance, as effects are surely limited to those programs.

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

pichlo 2014-01-03 21:33

Re: Easy Debian Fremantle Beta Testing
 
Quote:

Originally Posted by sulu (Post 1403229)
gparted crashes in armhf too and chromium isn't even present in the non-x86 Debian repos anymore

To be honest, I feel somewhat baffled by that. ARM is the future about as much as x86 is, if not more, and anyone silly enough to bury a popular package on that platform just because it does not build rather than getting their acts together and fixing it is IMO digging their own grave. That does not give me much confidence in the future of Debian as such.

sulu 2014-01-04 13:41

Re: Easy Debian Fremantle Beta Testing
 
Quote:

Originally Posted by pichlo (Post 1403508)
To be honest, I feel somewhat baffled by that.

Just to get that straight, gparted doesn't crash on armel/hf in general. It works fine on my Cubieboard2 (armhf) and it worked fine in my qemu-arm installation (armel).
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 ***
strace doesn't reveal any further useful info (at least to my understanding) and google doesn't return any results.
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:

Originally Posted by pichlo (Post 1403508)
That does not give me much confidence in the future of Debian as such.

Debian is around for more than 20 years now and it's the base for the vast majority of the distributions out there.
To my understanding, if Debian gets to the point where its future becomes questionable the whole FLOSS ecosystem is in big trouble.

sulu 2014-01-04 14:23

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
pulseaudio
pulseaudio-utils

3. To have the same starting point as in my working armel image I also installed these packages from the Debian repo (although I believe they aren't necessary at that point):
Code:

gstreamer0.10-pulseaudio
xmms2-plugin-pulse

4. I copied /etc/asound.conf from the armel image to the armhf image. It looks like this:
Code:

# PCM
# pcm.!default {
#        type alsa_dsp
#        playback_device_file ["/dev/dsptask/pcm3"]
#        recording_device_file ["/dev/dsptask/pcm_rec1"]
# }

pcm.!default {
  type pulse
}

# Mixer
ctl.!master {
        type hw
        card 0
}

ctl.!default {
        type dsp_ctl
        playback_devices ["/dev/dsptask/pcm3"]
        recording_devices ["/dev/dsptask/pcm_rec1"]
}

# OSS emulation
pcm.dsp0 pcm.default
ctl.mixer0 mixer.default

5. dus (and dbus-x11) were already installed in the armhf image and as far as I can tell they work fine. roxterm doesn't complain about missing dbus and ps shows this output:
Code:

$ ps ax | grep dbus
  816 ?        S<s    1:14 /usr/bin/dbus-daemon --system --nofork
 1197 ?        S      0:00 dbus-launch --exit-with-session
 1202 ?        S<s    0:08 /usr/bin/dbus-daemon --fork --print-pid 5 --print-address 7 --session
 1541 ?        S<sl  0:01 /usr/bin/mafw-dbus-wrapper mafw-gst-renderer
 1543 ?        Ss    0:00 /usr/bin/mafw-dbus-wrapper mafw-iradio-source
 1548 ?        Ss    0:00 /usr/bin/mafw-dbus-wrapper mafw-upnp-source
 1554 ?        Ss    0:00 /usr/bin/mafw-dbus-wrapper mafw-tracker-source
21702 ?        S      0:00 dbus-launch --sh-syntax --exit-with-session
21703 ?        Ss    0:00 /usr/bin/dbus-daemon --fork --print-pid 5 --print-address 7 --session
21770 pts/1    S      0:00 dbus-launch --autolaunch b97b807cce17de74591ffb9000130353 --binary-syntax --close-stderr
21771 ?        Ss    0:00 /usr/bin/dbus-daemon --fork --print-pid 5 --print-address 7 --session

6. According to [2] these mounts from the host system have to be present in the chroot:
Code:

/var/lib/dbus
~/.pulse
/tmp
/dev/shm

#1 and #4 were already there because ED mounts them by default.
#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
b97b807cce17de74591ffb9000130353
# cat /.debian/var/lib/dbus/machine-id
b97b807cce17de74591ffb9000130353

The problem is, when I try to play an audio file from within the chroot via mplayer or moc I get this error:
Code:

$ mocp 10_-_Magic_Zone.ogg
Running the server...
Trying JACK...
Trying ALSA...
ALSA lib dlmisc.c:254:(snd1_dlobj_cache_get) Cannot open shared library /usr/lib/arm-linux-gnueabihf/alsa-lib/libasound_module_ctl_dsp_ctl.so
ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused

Trying OSS...

FATAL_ERROR: No valid sound driver!


FATAL_ERROR: Server exited!

$
$
$
$ mplayer 10_-_Magic_Zone.ogg
MPlayer svn r34540 (Debian), built with gcc-4.6 (C) 2000-2012 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing 10_-_Magic_Zone.ogg.
libavformat version 53.21.1 (external)
Mismatching header version 53.19.0
libavformat file format detected.
[lavf] stream 0: audio (vorbis), -aid 0, Magic Zone
Load subtitles in ./
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
libavcodec version 53.35.0 (external)
Mismatching header version 53.32.2
AUDIO: 44100 Hz, 2 ch, s16le, 256.0 kbit/18.14% (ratio: 32000->176400)
Selected audio codec: [ffvorbis] afm: ffmpeg (FFmpeg Vorbis)
==========================================================================
AO: [pulse] Init failed: Connection refused
Failed to initialize audio driver 'pulse'
[AO_ALSA] alsa-lib: pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused

[AO_ALSA] Playback open error: Connection refused
Failed to initialize audio driver 'alsa'
[AO SDL] Samplerate: 44100Hz Channels: Stereo Format s16le
[AO SDL] using aalib audio driver.
[AO SDL] Unable to open audio: No available audio device
Failed to initialize audio driver 'sdl:aalib'
Could not open/initialize audio device -> no sound.
Audio: no sound
Video: no video


Exiting... (End of file)

The problem seems to be that the PA in the chroot can't connect to the one on the host (possibly due to some dbus-related issue?).
This is what I get when I manually start PA as user in the chroot:
Code:

$ pulseaudio
E: [pulseaudio] core-util.c: Failed to connect to system bus: Failed to connect to socket /var/run/dbus/system_bus_socket: Connection refused
E: [pulseaudio] core-util.c: Failed to connect to system bus: Failed to connect to socket /var/run/dbus/system_bus_socket: Connection refused
E: [pulseaudio] core-util.c: Failed to connect to system bus: Failed to connect to socket /var/run/dbus/system_bus_socket: Connection refused
E: [pulseaudio] core-util.c: Failed to connect to system bus: Failed to connect to socket /var/run/dbus/system_bus_socket: Connection refused
E: [pulseaudio] core-util.c: Failed to connect to system bus: Failed to connect to socket /var/run/dbus/system_bus_socket: Connection refused
E: [pulseaudio] core-util.c: Failed to connect to system bus: Failed to connect to socket /var/run/dbus/system_bus_socket: Connection refused
E: [pulseaudio] core-util.c: Failed to connect to system bus: Failed to connect to socket /var/run/dbus/system_bus_socket: Connection refused
E: [pulseaudio] core-util.c: Failed to connect to system bus: Failed to connect to socket /var/run/dbus/system_bus_socket: Connection refused
E: [pulseaudio] core-util.c: Failed to connect to system bus: Failed to connect to socket /var/run/dbus/system_bus_socket: Connection refused
E: [pulseaudio] core-util.c: Failed to connect to system bus: Failed to connect to socket /var/run/dbus/system_bus_socket: Connection refused
E: [pulseaudio] core-util.c: Failed to connect to system bus: Failed to connect to socket /var/run/dbus/system_bus_socket: Connection refused
libudev: udev_monitor_enable_receiving: bind failed: Operation not permitted
E: [pulseaudio] module-udev-detect.c: Failed to enable monitor: Operation not permitted
E: [pulseaudio] module.c: Failed to load module "module-udev-detect" (argument: ""): initialization failed.
E: [pulseaudio] main.c: Module load failed.
E: [pulseaudio] main.c: Failed to initialize daemon.

This is as root:
Code:

# pulseaudio
W: [pulseaudio] main.c: This program is not intended to be run as root (unless --system is specified).
E: [pulseaudio] module-console-kit.c: Unable to contact D-Bus system bus: org.freedesktop.DBus.Error.NoServer: Failed to connect to socket /var/run/dbus/system_bus_socket: Connection refused
E: [pulseaudio] module.c: Failed to load module "module-console-kit" (argument: ""): initialization failed.
E: [pulseaudio] main.c: Module load failed.
E: [pulseaudio] main.c: Failed to initialize daemon.

The first one says something about module-udev-detect, the second about module-console-kit. consolekit, udev and libudev0 are installed in the chroot.
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

misiak 2014-01-05 01:50

Re: Easy Debian Fremantle Beta Testing
 
Quote:

Originally Posted by sulu (Post 1403705)
Just to get that straight, gparted doesn't crash on armel/hf in general. It works fine on my Cubieboard2 (armhf) and it worked fine in my qemu-arm installation (armel).
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 ***
strace doesn't reveal any further useful info (at least to my understanding) and google doesn't return any results.
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.

Great work! Some ideas:

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

sulu 2014-01-05 10:13

Re: Easy Debian Fremantle Beta Testing
 
3 Attachment(s)
Quote:

Originally Posted by misiak (Post 1403874)
1. I suppose both Cubieboard2 and your pc with qemu-arm installation have newer kernels than 2.6.28?

Correct.
My CB2 runs a custom 3.4.67+ made by the Cubian folks, my PC runs the 3.2.51 Debian kernel.

Quote:

Originally Posted by misiak (Post 1403874)
Are you able to install second kernel on your pc, preferably 2.6.28?

I can try to do so in a VM. I remember having done something like that in the past with some troubles due to the age of the kernel, but I can't remember what exactly was the problem.
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:

Originally Posted by misiak (Post 1403874)
Googling told me Cubieboard2 supports 3.something (3.4?) kernels only, so I guess downgrading that one is not possible.

Quite frankly, installing custom kernels on the CB2 is above my skills since it involves a lot of special tricks.
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:

Originally Posted by misiak (Post 1403874)
2. Again very remote guess, but could you try running gparted from console with "LD_PRELOAD=/path/to/libstdc++.so" ?

Here it is (wheezy/armhf image on the N900):
Code:

# ls -l /usr/lib/arm-linux-gnueabihf/libstdc++.so.6*
lrwxrwxrwx 1 root root    19 Jan  8  2013 /usr/lib/arm-linux-gnueabihf/libstdc++.so.6 -> libstdc++.so.6.0.17
-rw-r--r-- 1 root root 641216 Jan  8  2013 /usr/lib/arm-linux-gnueabihf/libstdc++.so.6.0.17
# export LD_PRELOAD=/usr/lib/arm-linux-gnueabihf/libstdc++.so.6
# echo $LD_PRELOAD
/usr/lib/arm-linux-gnueabihf/libstdc++.so.6
# export LD_PRELOAD=/usr/lib/arm-linux-gnueabihf/libstdc++.so.6
# gparted
======================
libparted : 2.3
======================
*** glibc detected *** /usr/sbin/gpartedbin: free(): invalid pointer: 0x00287210 ***
Aborted

strace outputs are attached.

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:

Originally Posted by misiak (Post 1403874)
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).

You'll find outputs for the armel image, armhf image, CB2 and my PC (amd64) in the attached tar.gz archive.
My qemu machine doesn't exist anymore since I have the CB2.

Thanks for all the tips!

misiak 2014-01-05 15:02

Re: Easy Debian Fremantle Beta Testing
 
Quote:

Originally Posted by sulu (Post 1403921)
Correct.
My CB2 runs a custom 3.4.67+ made by the Cubian folks, my PC runs the 3.2.51 Debian kernel.

Quote:

Originally Posted by sulu (Post 1403921)
Quite frankly, installing custom kernels on the CB2 is above my skills since it involves a lot of special tricks.
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.

That's what I thought - I suspect older kernel wouldn't even boot, as it requires some patches done by project Cubian.

Quote:

Originally Posted by sulu (Post 1403921)
I can try to do so in a VM. I remember having done something like that in the past with some troubles due to the age of the kernel, but I can't remember what exactly was the problem.
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.

Yeah, that's what I think, too, so I guess that's not needed.

Here it is (wheezy/armhf image on the N900):
Code:

# ls -l /usr/lib/arm-linux-gnueabihf/libstdc++.so.6*
lrwxrwxrwx 1 root root    19 Jan  8  2013 /usr/lib/arm-linux-gnueabihf/libstdc++.so.6 -> libstdc++.so.6.0.17
-rw-r--r-- 1 root root 641216 Jan  8  2013 /usr/lib/arm-linux-gnueabihf/libstdc++.so.6.0.17
# export LD_PRELOAD=/usr/lib/arm-linux-gnueabihf/libstdc++.so.6
# echo $LD_PRELOAD
/usr/lib/arm-linux-gnueabihf/libstdc++.so.6
# export LD_PRELOAD=/usr/lib/arm-linux-gnueabihf/libstdc++.so.6
# gparted
======================
libparted : 2.3
======================
*** glibc detected *** /usr/sbin/gpartedbin: free(): invalid pointer: 0x00287210 ***
Aborted

strace outputs are attached.[/QUOTE]

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

sulu 2014-01-05 15:15

Re: Easy Debian Fremantle Beta Testing
 
Quote:

Originally Posted by misiak (Post 1404000)
What does the "file /usr/sbin/gpartedbin" say (could you post the output)?

from the armhf image:
Code:

# file /usr/sbin/gpartedbin
/usr/sbin/gpartedbin: ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.26, BuildID[sha1]=0x6b53240fd4b63aa95583556d7b4fa2ac9d200ae9, stripped

Sorry, I lack the concentration right now to do any actual thinking. I'll get back to your post later.

sulu 2014-01-05 15:41

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:

# create 2GB image file (adjust size if desired)
dd if=/dev/zero of=/path/to/image_file bs=1M count=2048

# format image file with ext2 (or ext3 etc.)
mkfs.ext2 /path/to/image_file

# mount image
mount -o loop /path/to/image_file /mountpoint

# install base system (if you ommit --arch debootstrap will use the host's architecture, armel on an N900, armhf on a Cubieboard2; chose the Debian mirror closest to your location [1])
debootstrap --arch=armhf wheezy /mountpoint http://ftp.de.debian.org/debian

# copy /etc/apt sources.list and /etc/apt/apt.conf (I don't want suggests and recommends [2]) from host system
cp /etc/apt/sources.list /mountpoint/etc/apt/
cp /etc/apt/apt.conf /mountpoint/etc/apt/

# In the image /var/run is a symlink to /run. For pulseaudio and dbus to work we need this to be swapped (the missing /mountpoint in the last line is not a typo)
rm -rf /mountpoint/var/run
mkdir /mountpoint/var/run
rm -rf /mountpoint/run
ln -s /var/run /mountpoint/run

# we also need directories for pulse and dbus in /var/run
mkdir /mountpoint/var/pulse
mkdir /mountpoint/var/dbus

# replace standard keyboard layout in the chroot with N900 keyboard (assuming you are already on the N900)
rm -rf /mountpoint/usr/share/X11/xkb/*
cp -r /usr/share/X11/xkb/* /mountpoint/usr/share/X11/xkb/

# chroot into image (everything after this step will happen in the chroot unless indicated otherwise)
mount -o bind /proc /mountpoint/proc
mount -o bind /sys /mountpoint/sys
mount -o bind /dev/pts /mountpoint/dev/pts
chroot /mountpoint

# update apt and install additional required packages (add any packages you like)
apt-get update
apt-get install locales lxde-core dbus-x11 roxterm-gtk2 lxde-icon-theme xserver-xephyr bash-completion sudo libgtkstylus pulseaudio

# fix this locales warning we just received (adjust the locale if you wish; info from here [3])
export LANGUAGE=en_US.UTF-8
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
locale-gen en_US.UTF-8
dpkg-reconfigure locales

# replace Debian's pulseaudio packages with recompiled ones, either from the provided archive or your own ones (see [4])
dpkg -i pulseaudio_2.0-6.1_armhf.deb libpulse0_2.0-6.1_armhf.deb

# make sure they won't be overwritten by future Debian updates (note: if you use synaptic you have to hold them there as well because synaptic doesn't care for what dpkg says)
echo pulseaudio hold |dpkg --set-selections
echo libpulse0:armhf hold |dpkg --set-selections

# also hold xkb-data (this is where the keyboard layout comes from)
echo xkb-data hold |dpkg --set-selections

# you'll need these binaries for keyboard focus in the chroot (take them from the provided archive, an existing image you have, or compile them on your own; sources are here [5][6])
/sbin/qobi-wmhint-fix
/usr/bin/set-focus

# if you use the provided armel binaries on a armhf image you'll need this symlink (see [7])
ln -s /lib/ld-linux-armhf.so.3 /lib/ld-linux.so.3

# additionally you'll need a script that starts lxde on $DISPLAY :1 (again, take it from the archive or an old image)
/usr/bin/startlxde1
# for an unknown reason I had to add export GTK_MODULES=libgtkstylus.so here although it's supposed to be set in debbie-sue on the host; both versions are in the archive; I believe the rest of the scripts aren't necessary anymore, but I included them nevertheless in the archive
[1] http://debgen.simplylinux.ch/
[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

Estel 2014-01-05 19:15

Re: Easy Debian Fremantle Beta Testing
 
Quote:

Originally Posted by misiak (Post 1404000)
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.

[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

misiak, could you forward those findings to CSSU guys, and/or guy working on glibc updates for maemo (Aapo, IIRC)? I think it may be interesting outside ED, too.

Nice research, BTW!

/Estel

sulu 2014-01-05 23:07

Re: Easy Debian Fremantle Beta Testing
 
Quote:

Originally Posted by misiak (Post 1404000)
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?

I'm not sure, but I guess one of these kernel version numbers I've encountered during my Jessie tests in the Debian package source configuration [1] should take care of that:
Code:

debian/sysdeps/linux.mk:MIN_KERNEL_SUPPORTED := 2.6.32
debian/debhelper.in/libc.preinst:        if linux_compare_versions "$kernel_ver" lt 2.6.32
ports/sysdeps/unix/sysv/linux/tile/configure.in:arch_minimum_kernel=2.6.32
ports/sysdeps/unix/sysv/linux/tile/configure:arch_minimum_kernel=2.6.32

I think I remember that in the Wheezy source I haven't seen any check above 2.6.26 but my memory might be wrong and I was probably not as thorough as I was for Jessie.
I'll check that again when I have the time.

Quote:

Originally Posted by misiak (Post 1404000)
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]...

That reminds me of what I've read in the Debian changelogs. [2]


[1] http://talk.maemo.org/showpost.php?p...postcount=3030
[2] http://ftp-master.metadata.debian.or...7-97_changelog

sulu 2014-01-06 18:19

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:        headers up to 2.6.30.
ChangeLog.17:        architectures have preadv/pwritev in 2.6.30.
ChangeLog.17:        have preadv/pwritev in 2.6.30.
ChangeLog.17:        preadv/pwritev in 2.6.30.
ChangeLog.17:        * version.h (VERSION): Set to 2.6.90.
debian/debhelper.in/libc.preinst:        # 2.6.32 kernel is needed.
debian/debhelper.in/libc.preinst:            vmin=2.6.32
ports/sysdeps/unix/sysv/linux/arm/kernel-features.h:/* Support for pselect6, ppoll and epoll_pwait was added in 2.6.32.  */
ports/ChangeLog.arm:        O_DSYNC to match 2.6.33+ kernels.
ports/ChangeLog.arm:        __ASSUME_PPOLL): Don't undefine for kernel 2.6.32 and later.
sysdeps/unix/sysv/linux/sys/timex.h:/* These definitions from linux/timex.h as of 2.6.30.  */
sysdeps/unix/sysv/linux/kernel-features.h:/* Support for the FUTEX_CLOCK_REALTIME flag was added in 2.6.29.  */
sysdeps/unix/sysv/linux/kernel-features.h:/* Support for the AT_RANDOM auxiliary vector entry was added in 2.6.29.  */
sysdeps/unix/sysv/linux/kernel-features.h:/* Support for preadv and pwritev was added in 2.6.30.  */
sysdeps/unix/sysv/linux/kernel-features.h:/* Support for F_GETOWN_EX was introduced in 2.6.32.  */
sysdeps/unix/sysv/linux/kernel-features.h:/* Support for the recvmmsg syscall was added in 2.6.33.  */
sysdeps/unix/sysv/linux/kernel-features.h:/* statfs fills in f_flags since 2.6.36.  */
sysdeps/unix/sysv/linux/kernel-features.h:/* prlimit64 is available in 2.6.36.  */

And short contextual excerpts:

ChangeLog.17
Code:

2009-12-11  Ulrich Drepper  <drepper@redhat.com>

        * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Redefine O_SYNC and
        O_DSYNC to match 2.6.33+ kernels.
        * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
        * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
        * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
        * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
        * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
        * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
[..]
2009-04-20  Ulrich Drepper  <drepper@redhat.com>

        [BZ #10086]
        * sysdeps/unix/sysv/linux/sys/timex.h: Add definitions from kernel
        headers up to 2.6.30.

        * po/ca.po: Update from translation team.
[..]
2009-04-17  Ulrich Drepper  <drepper@redhat.com>

        * malloc/malloc.c (malloc_info): Also output system memory information.

        * sysdeps/unix/sysv/linux/kernel-features.h: All supported
        architectures have preadv/pwritev in 2.6.30.

        * sysdeps/posix/preadv.c: Reading of zero bytes is no error.
        * sysdeps/posix/readv.c: Likewise.
        Reported by Markus Armbruster <armbru@redhat.com>.

        * malloc/hooks.c (top_check): Force hook value into register.
[..]
2009-04-09  Ulrich Drepper  <drepper@redhat.com>

        * sysdeps/x86_64/rawmemchr.S: New file.

        * stdio-common/vfprintf.c (vfprintf): Slightly more compact code.
        Simplified code and possible copy problem fixed.

        * sysdeps/unix/sysv/linux/preadv.c: Avoid prototype for static
        function if it is not defined.  Add some necessary casts.
        * sysdeps/unix/sysv/linux/pwritev.c: Likewise.

        * sysdeps/unix/sysv/linux/kernel-features.h: SPARC and IA64 also
        have preadv/pwritev in 2.6.30.
[..]
2007-05-17  Ulrich Drepper  <drepper@redhat.com>

        Dummy files to prevent stub versions from being used.
        * sysdeps/x86_64/fpu/k_cosl.c: New file.
        * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
        * sysdeps/x86_64/fpu/k_sinl.c: New file.
        * sysdeps/x86_64/fpu/k_tanl.c: New file.

        * version.h (VERSION): Set to 2.6.90.

ports/sysdeps/unix/sysv/linux/arm/kernel-features.h
Code:

/* Support for pselect6, ppoll and epoll_pwait was added in 2.6.32.  */
#if __LINUX_KERNEL_VERSION < 0x020620
# undef __ASSUME_PSELECT
# undef __ASSUME_PPOLL
#endif

debian/debhelper.in/libc.preinst
Code:

        # The GNU libc requires a >= 2.6.26 kernel, except on m68k where a
        # 2.6.32 kernel is needed.
        if [ "$realarch" != m68k ]
        then
            vmin=2.6.26
        else
            vmin=2.6.32
        fi
        if linux_compare_versions "$kernel_ver" lt ${vmin}
        then
            echo WARNING: this version of the GNU libc requires kernel version
            echo ${vmin} or later.  Please upgrade your kernel before installing
            echo glibc.
            kernel26_help

            exit 1
        fi

ports/ChangeLog.arm
Code:

2009-12-15  Joseph Myers  <joseph@codesourcery.com>

        * sysdeps/unix/sysv/linux/arm/bits/fcntl.h: Redefine O_SYNC and
        O_DSYNC to match 2.6.33+ kernels.
[..]
2009-11-19  Joseph Myers  <joseph@codesourcery.com>

        * sysdeps/unix/sysv/linux/arm/kernel-features.h (__ASSUME_PSELECT,
        __ASSUME_PPOLL): Don't undefine for kernel 2.6.32 and later.

sysdeps/unix/sysv/linux/kernel-features.h
Code:

/* Support for the FUTEX_CLOCK_REALTIME flag was added in 2.6.29.  */
#if __LINUX_KERNEL_VERSION >= 0x02061d
# define __ASSUME_FUTEX_CLOCK_REALTIME  1
#endif

/* Support for the AT_RANDOM auxiliary vector entry was added in 2.6.29.  */
#if __LINUX_KERNEL_VERSION >= 0x02061d
# define __ASSUME_AT_RANDOM    1
#endif

/* Support for preadv and pwritev was added in 2.6.30.  */
#if __LINUX_KERNEL_VERSION >= 0x02061e
# define __ASSUME_PREADV        1
# define __ASSUME_PWRITEV      1
#endif

/* Support for F_GETOWN_EX was introduced in 2.6.32.  */
#if __LINUX_KERNEL_VERSION >= 0x020620
# define __ASSUME_F_GETOWN_EX  1
#endif

/* Support for the recvmmsg syscall was added in 2.6.33.  */
#if __LINUX_KERNEL_VERSION >= 0x020621
# define __ASSUME_RECVMMSG      1
#endif

/* statfs fills in f_flags since 2.6.36.  */
#if __LINUX_KERNEL_VERSION >= 0x020624
# define __ASSUME_STATFS_F_FLAGS        1
#endif

/* prlimit64 is available in 2.6.36.  */
#if __LINUX_KERNEL_VERSION >= 0x020624
# define __ASSUME_PRLIMIT64    1
#endif

sysdeps/unix/sysv/linux/sys/timex.h has only the comment from the egrep output and the rest of the code seems either totally irrelevant or totally relevant to me, so I'll attach the whole file.

Maybe someone can gather any insight from this.


[1] http://packages.debian.org/source/wheezy/eglibc

marmistrz 2014-01-06 18:25

Re: Easy Debian Fremantle Beta Testing
 
And what is the maximal version the Fremantle kernel could be (theoretically upgraded)?

sulu 2014-01-06 18:54

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.

marmistrz 2014-01-07 18:43

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?

FlashInTheNight86 2014-04-13 22:03

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?

pichlo 2014-04-13 22:31

Re: Easy Debian Fremantle Beta Testing
 
Estel's!

http://talk.maemo.org/showthread.php...22#post1401322
http://talk.maemo.org/showthread.php...42#post1355842

sulu 2014-04-14 05:59

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

sulu 2014-04-14 17:52

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
c0f6f1c5f8d398229cb0852e9986e704  debian_wheezy2sulu_armhf.img.lzma
$ md5sum debian_wheezy2sulu_armhf.img
07490006e902bd932cfca99df6b49b2a  debian_wheezy2sulu_armhf.img

Apart from updating the packages there is no change compared to the previous one, so there's no need for you to switch if you've keept the last one up to date.
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

mayhem 2014-04-15 04:30

Re: Easy Debian Fremantle Beta Testing
 
Quote:

Originally Posted by sulu (Post 1421382)
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
c0f6f1c5f8d398229cb0852e9986e704  debian_wheezy2sulu_armhf.img.lzma
$ md5sum debian_wheezy2sulu_armhf.img
07490006e902bd932cfca99df6b49b2a  debian_wheezy2sulu_armhf.img

Apart from updating the packages there is no change compared to the previous one, so there's no need for you to switch if you've keept the last one up to date.
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

Great image clean fast and not bloated with alot of stuff thanks

mayhem 2014-04-15 05:22

Re: Easy Debian Fremantle Beta Testing
 
Quote:

Originally Posted by sulu (Post 1421382)
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
c0f6f1c5f8d398229cb0852e9986e704  debian_wheezy2sulu_armhf.img.lzma
$ md5sum debian_wheezy2sulu_armhf.img
07490006e902bd932cfca99df6b49b2a  debian_wheezy2sulu_armhf.img

Apart from updating the packages there is no change compared to the previous one, so there's no need for you to switch if you've keept the last one up to date.
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

i dont know if i am doing something but when i try to install iceweasel or synaptic i get this error

[\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]

sulu 2014-04-15 06:19

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?

pichlo 2014-04-15 06:28

Re: Easy Debian Fremantle Beta Testing
 
Quote:

Originally Posted by mayhem (Post 1421428)
syntax error: unknown group 'crontab' in statoverride file

I've had something like that once. With trepidation, I removed the offending entry from the file, tried again and it worked. Can't say I'd recommend it though since I didn't really know what I was doing.

sulu 2014-04-15 07:17

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.

elros34 2014-04-15 07:19

Re: Easy Debian Fremantle Beta Testing
 
mayhem, groupadd crontab will fix it

Sohil876 2014-04-15 08:58

Re: Easy Debian Fremantle Beta Testing
 
Quote:

Originally Posted by sulu (Post 1421440)
...please let me know and I'll upload another image with the group removed

if you can please upload it on uppit.

mayhem 2014-04-15 13:56

Re: Easy Debian Fremantle Beta Testing
 
Quote:

Originally Posted by elros34 (Post 1421441)
mayhem, groupadd crontab will fix it

there was no /etc/groups file in this image so this fix it thanks!

FlashInTheNight86 2014-04-15 15:07

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?

sulu 2014-04-15 16:22

Re: Easy Debian Fremantle Beta Testing
 
Quote:

Originally Posted by Sohil876 (Post 1421444)
if you can please upload it on uppit.

I tried. But on my first two attempts the upload stalled at about 40MB and when I finally succeeded the link generation failed.
So I assume the image is up there somewhere, but I don't have a link to present.

Quote:

Originally Posted by mayhem (Post 1421468)
there was no /etc/groups file in this image so this fix it thanks!

/etc/groups? - I guess that's a typo.
/etc/group is in the image:
Code:

root@i7-2700k:/tmp# unlzma -k debian_wheezy2sulu_armhf.img.lzma
root@i7-2700k:/tmp# md5sum debian_wheezy2sulu_armhf.img*
07490006e902bd932cfca99df6b49b2a  debian_wheezy2sulu_armhf.img
c0f6f1c5f8d398229cb0852e9986e704  debian_wheezy2sulu_armhf.img.lzma
root@i7-2700k:/tmp# mount -o loop debian_wheezy2sulu_armhf.img /mnt
root@i7-2700k:/tmp# ls -l /mnt/etc/group
-rw-r--r-- 1 root root 550 Jan  3 21:30 /mnt/etc/group
root@i7-2700k:/tmp# cat /mnt/etc/group
root:x:0:
daemon:x:1:
bin:x:2:
sys:x:3:
adm:x:4:
tty:x:5:
disk:x:6:
lp:x:7:
mail:x:8:
news:x:9:
uucp:x:10:
man:x:12:
proxy:x:13:
kmem:x:15:
dialout:x:20:
fax:x:21:
voice:x:22:
cdrom:x:24:
floppy:x:25:
tape:x:26:
sudo:x:27:user
audio:x:29:pulse
dip:x:30:
www-data:x:33:
backup:x:34:
operator:x:37:
list:x:38:
irc:x:39:
src:x:40:
gnats:x:41:
shadow:x:42:
utmp:x:43:
video:x:44:
sasl:x:45:
plugdev:x:46:
staff:x:50:
games:x:60:
users:x:100:
nogroup:x:65534:
libuuid:x:101:
crontab:x:102:
messagebus:x:103:
pulse:x:104:
pulse-access:x:105:
user:x:29999:

Quote:

Originally Posted by FlashInTheNight86 (Post 1421475)
As far as I understand, you recommend LibreOffice over OpenOffice. Is it faster or any otherwise better?

It's in the Debian repos, OpenOffice is not (anymore). Therefore you'd probably save a lot of trouble compared to finding an armel/hf version of OO or compiling it on your own.

mayhem 2014-04-15 18:12

Re: Easy Debian Fremantle Beta Testing
 
Quote:

Originally Posted by sulu (Post 1421491)
/etc/groups? - I guess that's a typo.
/etc/group is in the image:

than why i had this error?i didn't install any software when i was trying and i tried both from chroot and lxde.

sulu 2014-04-15 18:49

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.

magick777 2014-04-18 02:08

Re: Easy Debian Fremantle Beta Testing
 
Quote:

Originally Posted by sulu (Post 1421382)
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
c0f6f1c5f8d398229cb0852e9986e704 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.

Mirrored at http://debian.keithdunnett.net/~sulu...armhf.img.lzma, md5sum verified.

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.

sulu 2014-04-18 14:18

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
d2436498fea04d8aed422c005c485939  debian_wheezy3sulu_armhf.img.lzma

This image also contains a file /etc/dhclient-enter-hooks with this content:
Code:

make_resolv_conf(){
        :
}

According to [2] this should prevent /etc/resolv.conf from ever being written again and therefore might save trouble in the future.

@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/

magick777 2014-04-19 11:10

Re: Easy Debian Fremantle Beta Testing
 
Latest image:

http://debian.keithdunnett.net/~sulu...armhf.img.lzma

Estel 2014-04-23 01:22

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

sulu 2014-04-23 05:28

Re: Easy Debian Fremantle Beta Testing
 
Quote:

Originally Posted by Estel (Post 1422375)
sulu, how you rate chances for any (upstream?) fixes re bugs that you've reported against things in wheezy?

If not through sheer luck I'd say the chances are exactly zero.

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