The Following 33 Users Say Thank You to AapoRantalainen For This Useful Post: | ||
|
2013-03-14
, 14:18
|
Posts: 189 |
Thanked: 171 times |
Joined on Jul 2011
|
#2
|
The Following 3 Users Say Thank You to pablocrossa For This Useful Post: | ||
|
2013-03-15
, 09:31
|
Posts: 839 |
Thanked: 3,386 times |
Joined on Mar 2009
|
#3
|
Maybe you need a newer locale-gen?? Also try this:
ln -s /usr/share/X11/locale/locale.alias /usr/share/locale/locale.alias
The file exists in our N900 (at least in mine), got it from here:
http://bts.grml.org/grml/issue655
dpkg -i libc6_2.15.90-maemo1_armel.deb locales_2.15.90-maemo1_armel.deb localedef -i en_GB -c -f UTF-8 -A /usr/share/locale/locale.alias en_GB.UTF-8 --no-archive ln -s /usr/lib/locale/en_GB.utf8/ /usr/lib/locale/en_GB reboot #english locale is working
localedef -i fi_FI -c -f UTF-8 -A /usr/share/locale/locale.alias fi_FI.UTF-8 --no-archive ln -s /usr/lib/locale/fi_FI.utf8/ /usr/lib/locale/fi_FI
The Following 13 Users Say Thank You to AapoRantalainen For This Useful Post: | ||
anthonie, Estel, freemangordon, fw190, misiak, pablocrossa, reinob, Skry, Sohil876, szopin, thedead1440, trx, Zaerc |
|
2013-03-18
, 11:41
|
Posts: 839 |
Thanked: 3,386 times |
Joined on Mar 2009
|
#4
|
#FLASH #install openssh-server via application manager apt-get install wget wget http://cc.oulu.fi/~rantalai/maemo5/eglibc/2.15/with_gcc47_deb/libc6_2.15.90-maemo1_armel.deb wget http://cc.oulu.fi/~rantalai/maemo5/eglibc/2.15/with_gcc47_deb/locales_2.15.90-maemo1_armel.deb dpkg -i libc6_2.15.90-maemo1_armel.deb locales_2.15.90-maemo1_armel.deb reboot #locale broken localedef -i en_GB -c -f UTF-8 -A /usr/share/locale/locale.alias en --no-archive reboot #locale working again #metapackage apt-get remove mp-fremantle-generic-pr #ldd needs it apt-get install bash
|
2013-03-18
, 15:59
|
Posts: 3,328 |
Thanked: 4,476 times |
Joined on May 2011
@ Poland
|
#5
|
|
2013-03-20
, 12:22
|
Posts: 224 |
Thanked: 132 times |
Joined on Jun 2012
@ Cairo ;Egypt
|
#6
|
# apt-get -f install Reading package lists... Done Building dependency tree Reading state information... Done Correcting dependencies... Done The following packages will be REMOVED: libc6-dev libgl1-mesa-dev libglew1.5-dev libglewmx1.5-dev libglu1-mesa-dev libqt4-dev libsignoncrypto-qt-dev libsqlite3-dev 0 upgraded, 0 newly installed, 8 to remove and 0 not upgraded. After this operation, 45.5MB disk space will be freed. Do you want to continue [Y/n]?
|
2013-03-20
, 12:26
|
Posts: 839 |
Thanked: 3,386 times |
Joined on Mar 2009
|
#7
|
I have a problem
HTML Code:# apt-get -f install Reading package lists... Done Building dependency tree Reading state information... Done Correcting dependencies... Done The following packages will be REMOVED: libc6-dev libgl1-mesa-dev libglew1.5-dev libglewmx1.5-dev libglu1-mesa-dev libqt4-dev libsignoncrypto-qt-dev libsqlite3-dev 0 upgraded, 0 newly installed, 8 to remove and 0 not upgraded. After this operation, 45.5MB disk space will be freed. Do you want to continue [Y/n]?
The Following User Says Thank You to AapoRantalainen For This Useful Post: | ||
|
2013-03-20
, 13:03
|
Posts: 224 |
Thanked: 132 times |
Joined on Jun 2012
@ Cairo ;Egypt
|
#8
|
The Following User Says Thank You to amr.fayz For This Useful Post: | ||
|
2013-03-20
, 17:24
|
Posts: 3,328 |
Thanked: 4,476 times |
Joined on May 2011
@ Poland
|
#9
|
The Following User Says Thank You to marmistrz For This Useful Post: | ||
|
2013-03-20
, 19:16
|
Posts: 839 |
Thanked: 3,386 times |
Joined on Mar 2009
|
#10
|
Stock Maemo5 has quite old eglibc-2.5.1 (2008-04-16).
glibc HISTORY:
1) get it compiled
2) get it booted and running
3) optimize for N900
INVESTIGATING
I have tried to track origin of Maemo's eglibc and closest match is svn-2784 on eglibc-branch-2.5.
STEP1:
Starting with stock maemo SDK, i.e gcc-4.2.
Compile latest eglibc-2.5 from svn without Maemo-patches, but using very same packeting:
STEP2
Compile newer eglibc from upstream.
Fastest way to test them are just skip version numbering and use same commands as above but starting with:
svn co svn://svn.eglibc.org/branches/eglibc-2_6 svn_eglibc-2.5
-> works.
svn co svn://svn.eglibc.org/branches/eglibc-2_7 svn_eglibc-2.5
-> works
svn co svn://svn.eglibc.org/branches/eglibc-2_8 svn_eglibc-2.5
no need for "arm-asm-page-header.diff" anymore
-> works
svn co svn://svn.eglibc.org/branches/eglibc-2_10 svn_eglibc-2.5
-> works
svn co svn://svn.eglibc.org/branches/eglibc-2_11 -r 8593 svn_eglibc-2.11_8593
#version 2.10.90.
-> works
NOTE: 'ldd' with this version and later needs bash!
This is the end of this approach: later commits have new file ports/sysdeps/arm/eabi/backtrace.c which causes linking error:
backtrace.c:105: undefined reference to `_Unwind_Backtrace'
I'm pretty sure this is because of too old GCC (because it happens even I use newer binutils)
(Btw: even this will be workarounded, eglibc-2.12 fails, because it needs CFI support:
checking whether the CFI directive .cfi_sections is supported... no
configure: error: need .cfi_sections in this configuration
CFI stands for Call Frame Information and is a GNU AS extension to manage call frames.
http://www.logix.cz/michal/devel/gas-cfi/ I don't know is this used, but at least it is checked and failed.)
Here is the deb, I have tested it just reflashed N900 and didn't encounter any issues.
http://cc.oulu.fi/~rantalai/maemo5/e...emo1_armel.deb
STEP3
Use newer compiler: gcc-4.7.2 (and binutils-2.22)
Upstream versions between 2.5 ... 2.15 need one patch and then they can be compiled:
http://cc.oulu.fi/~rantalai/maemo5/e...ctor-nscd.diff
There are problem that locales might break: Every text on the screen looks like: "wdgt_va_24h_time"
(nothing helps from here: http://talk.maemo.org/showthread.php?t=52443)
This is tested way to get eglibc-2.10.90 compiled with gcc-4.7 fully working (including working locales).
You do not need thumb-support, but you need libstdc++6_4.7.2 and libgcc1_4.7.2 installed.
STEP4
Latest eglibc I could compiled so far is 2.16_r17194, version number 2.15.90. Next commit, svn-r17195, starts to complain about:
intl/dcigettext.c:714: undefined reference to `__libc_enable_secure'
elf/dl-addr.c:36: undefined reference to `_rtld_global'
(these are defined, but it fails to link them)
Commit message is "Merge changes between r17050 and r17194 from /fsf/trunk."
But locales are broken. Investigating from commandline: command locale gives three errors before shows current locale:
STEP4b:
Take smaller steps. eglibc-2.11.0 (svn_r9170) with gcc-4.7 upgrading from 2.10.90.
-> locales are broken, this time only:
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Stracing shows: