Sign up here and you can log into the forum!

cross compile help apache apr for Gen3/SMP

Have a question about devices internals, memory layout, reverse engineering, etc---This is the place for anything so technical that it would cause a n00b's head to 'splode

Re: cross compile help apache apr for Gen3/SMP   

Postby KAD » Tue Feb 03, 2015 12:17 pm

ok .rootfs support added commit #44 https://svn.wdlxtv.com/log.php?repname=2.02.32-wdlxtv-gen3&path=%2FBootScripts%2F&isdir=1&

svn checkout and update seem to work
but status does not

Code: Select all
WDTVDEV login: root
Password:
# cd /share/.rootfs
# svn update
Updating '.':
Restored 'usr/lib/libpar2.so.0'
At revision 44.
# svn status
svn: E000022: Error converting entry in directory '/share/.rootfs' to UTF-8
svn: E000022: Can't convert string from native encoding to 'UTF-8':
svn: E000022: X?\161E


anybody have an idea on how to fix the encoding
also I have no idea why it's showing Restored 'usr/lib/libpar2.so.0'
If you like my work please consider a Donation. Donate
Please read the appropriate documentation before posting questions! READ ME FAQ WIKI
PM's are for private matters. Post support questions to the appropriate forum, or they will be ignored.
User avatar
KAD
Global Moderator
 
Posts: 5103
Joined: Mon Apr 12, 2010 4:59 pm
Location: Seattle, WA USA

Re: cross compile help apache apr for Gen3/SMP   

Postby mad_ady » Tue Feb 03, 2015 11:52 pm

Don't know about the encoding, but it's restoring libpar2 because it's part of the svn tree: http://svn.wdlxtv.com/filedetails.php?repname=2.02.32-wdlxtv-gen3&path=%2Ftrunk%2Fusr%2Flib%2Flibpar2.so.0 and probably missing from your local copy
User avatar
mad_ady
Developer
 
Posts: 4549
Joined: Fri Nov 05, 2010 9:08 am
Location: Bucharest, Romania

Re: cross compile help apache apr for Gen3/SMP   

Postby kroetkroet » Wed Feb 04, 2015 12:34 am

KAD, I found this on the encoding:

Code: Select all
$ svn update
svn: Error converting entry in directory '.' to UTF-8
svn: Can't convert string from native encoding to 'UTF-8':

$ export LC_CTYPE=en_US.UTF-8

$ svn update
[no errors]


In summary: try export LC_CTYPE=en_US.UTF-8 this
WDLXTV-fan! - In case you need further assistance: read our WIKI, search our Forum and most of all: donate 'something' to b-rad for his great efforts!!!
User avatar
kroetkroet
Beta Tester
 
Posts: 1008
Joined: Mon Apr 05, 2010 11:53 pm

Re: cross compile help apache apr for Gen3/SMP   

Postby KAD » Wed Feb 04, 2015 12:45 am

libpar indeed is part of svn tree, but it actually needs to restore that file after every reboot :?

LC_CTYPE=en_US.UTF-8 I had seen that as a possible fix, but it actually causes more problems
notice above svn update no problems only restore 1 file

but below after set LC_CTYPE now svn update broken as well, previously only svn status was broken

Code: Select all
# export LC_CTYPE=en_US.UTF-8
# svn update
svn: warning: cannot set LC_CTYPE locale
svn: warning: environment variable LC_CTYPE is en_US.UTF-8
svn: warning: please check that your locale name is correct
Updating '.':
svn: E000022: Error converting entry in directory '/share/.rootfs' to UTF-8
svn: E000022: Can't convert string from native encoding to 'UTF-8':
svn: E000022: ?\216?G


I also read it could be problem server related, but since I don't have any of these errors on linux pc, I assume it's WD problem
If you like my work please consider a Donation. Donate
Please read the appropriate documentation before posting questions! READ ME FAQ WIKI
PM's are for private matters. Post support questions to the appropriate forum, or they will be ignored.
User avatar
KAD
Global Moderator
 
Posts: 5103
Joined: Mon Apr 12, 2010 4:59 pm
Location: Seattle, WA USA

Re: cross compile help apache apr for Gen3/SMP   

Postby recliq » Thu Feb 05, 2015 6:05 am

KAD,

make sure you actually have a locale en_US-UTF-8 available on your system.

Please post the output of this command:
Code: Select all
locale -a

This should display the locales available on your system.
https://help.ubuntu.com/community/Locale
­WDLXTV Project Maintainer
-:] If you like my contributions feel free to donate for a beer or a new flash drive. ...and always remember: RTFM! (README, FAQ, WIKI) [:-
User avatar
recliq
WDLXTV Team
 
Posts: 5513
Joined: Thu Apr 15, 2010 8:09 am
Location: Kiel, Germany

Re: cross compile help apache apr for Gen3/SMP   

Postby KAD » Thu Feb 05, 2015 9:14 am

great tip, I haven't done any work on locale's, so who knows what's available
If you like my work please consider a Donation. Donate
Please read the appropriate documentation before posting questions! READ ME FAQ WIKI
PM's are for private matters. Post support questions to the appropriate forum, or they will be ignored.
User avatar
KAD
Global Moderator
 
Posts: 5103
Joined: Mon Apr 12, 2010 4:59 pm
Location: Seattle, WA USA

Re: cross compile help apache apr for Gen3/SMP   

Postby KAD » Thu Feb 05, 2015 9:04 pm

so locale's on Gen3

first
binary locale does not exist on gen3, but I check on old live as well and it does not exist on old live either
running
Code: Select all
find / -name en_US.UTF-8
yields no results on gen3 or on old live
so checking the debian chroot
does have locale binary
and result on gen3 is
Code: Select all
# locale -a
C
POSIX


if I also copy some locale's from the debian image additional C and POSIX options become available
Code: Select all
# ls
C                 iso8859-14        ja_JP.UTF-8       th_TH
am_ET.UTF-8       iso8859-15        ko                th_TH.UTF-8
armscii-8         iso8859-2         ko_KR.UTF-8       tscii-0
compose.dir       iso8859-3         koi8-c            vi_VN.tcvn
el_GR.UTF-8       iso8859-4         koi8-r            vi_VN.viscii
en_US.UTF-8       iso8859-5         koi8-u            zh_CN
fi_FI.UTF-8       iso8859-6         locale.alias      zh_CN.UTF-8
georgian-academy  iso8859-7         locale.dir        zh_CN.gb18030
georgian-ps       iso8859-8         microsoft-cp1251  zh_CN.gbk
ibm-cp1133        iso8859-9         microsoft-cp1255  zh_HK.UTF-8
iscii-dev         iso8859-9e        microsoft-cp1256  zh_HK.big5
isiri-3342        ja                mulelao-1         zh_HK.big5hkscs
iso8859-1         ja.JIS            nokhchi-1         zh_TW
iso8859-10        ja.S90            pt_BR.UTF-8       zh_TW.UTF-8
iso8859-11        ja.SJIS           ru_RU.UTF-8       zh_TW.big5
iso8859-13        ja.U90            tatar-cyr
# locale -a
C
C.en
C.en:
C_C.C
C_C.C:
English_United-States.437
English_United-States.437:
POSIX
POSIX-UTF2
POSIX-UTF2:
POSIX:


as you can see only a couple of them get picked up
so I wonder how were locale's handled on old live and live plus
any other idea's on how to add
If you like my work please consider a Donation. Donate
Please read the appropriate documentation before posting questions! READ ME FAQ WIKI
PM's are for private matters. Post support questions to the appropriate forum, or they will be ignored.
User avatar
KAD
Global Moderator
 
Posts: 5103
Joined: Mon Apr 12, 2010 4:59 pm
Location: Seattle, WA USA

Re: cross compile help apache apr for Gen3/SMP   

Postby KAD » Fri Feb 06, 2015 9:03 pm

some more digging

kernel config already has
CONFIG_NLS_UTF8=y

also trying find anything already existing in firmware
Code: Select all
# find ./ -iname *lang*
./webserver/htdocs/web/function/language.js
./webserver/htdocs/xml/language_KC
./webserver/htdocs/xml/lang.xml
./webserver/htdocs/DB/languageConfig.php
./osd/tvdock_wizard_language.xml
./osd/tvdock_wizard_language_for_wizard.xml
./usr/lib/perl/5.10.1/I18N/Langinfo.pm
./usr/lib/perl/5.10.1/auto/I18N/Langinfo
./usr/share/perl/5.10.1/Locale/Language.pod
./usr/share/perl/5.10.1/Locale/Language.pm
./usr/share/perl/5.10.1/I18N/LangTags.pm
./usr/share/perl/5.10.1/I18N/LangTags
./usr/share/pctv/www/TVC/lang
# find ./ -iname *utf*
./usr/lib/perl/5.10.1/CORE/utf8.h
./usr/lib/perl/5.10.1/CORE/utfebcdic.h
./usr/lib/perl/5.10.1/Encode/Unicode/UTF7.pm
./usr/share/perl/5.10.1/DBM_Filter/utf8.pm
./usr/share/perl/5.10.1/utf8_heavy.pl
./usr/share/perl/5.10.1/Pod/Simple/TiedOutFH.pm
./usr/share/perl/5.10.1/utf8.pm
./usr/share/locale/pt_BR.UTF-8
./usr/share/locale/en_US.UTF-8
./usr/share/locale/am_ET.UTF-8
./usr/share/locale/ko_KR.UTF-8
./usr/share/locale/fi_FI.UTF-8
./usr/share/locale/el_GR.UTF-8
./usr/share/locale/zh_CN.UTF-8
./usr/share/locale/th_TH.UTF-8
./usr/share/locale/zh_TW.UTF-8
./usr/share/locale/ru_RU.UTF-8
./usr/share/locale/ja_JP.UTF-8
./usr/share/locale/zh_HK.UTF-8


the ones you see at /usr/share/locale are the ones I added from debian, which are not functional

and what's available on system is
Code: Select all
# locale -a
C
C.en
C.en:
C_C.C
C_C.C:
English_United-States.437
English_United-States.437:
POSIX
POSIX-UTF2
POSIX-UTF2:
POSIX:
If you like my work please consider a Donation. Donate
Please read the appropriate documentation before posting questions! READ ME FAQ WIKI
PM's are for private matters. Post support questions to the appropriate forum, or they will be ignored.
User avatar
KAD
Global Moderator
 
Posts: 5103
Joined: Mon Apr 12, 2010 4:59 pm
Location: Seattle, WA USA

Previous

Return to WDTV Live

Who is online

Users browsing this forum: No registered users and 1 guest