![]() ![]() |
Feb 6 2004, 03:04 AM
Post
#1
|
|
|
Group: Members Posts: 225 Joined: 9-December 03 Member No.: 1,104 |
The sharp rom contains libc 2.2.2 and ld-config 2.2.2.
The blackdown JVM for Xscale is compiled against libc 2.3.x and ld-config 2.3.x. I've copied the library 2.3.x to /home/zaurus/mylib and I've started the JVM as follow: CODE export LD_LIBRARY_PATH=/home/zaurus/mylib:$LD_LIBRARY_PATH
java -version the JVM has found my new libc 2.3.x but the new libc is still loaded by the old ld-config. How can I load the JVM libraries using the new ld-config 2.3.x. with "chroot"?? or LD_PRELOAD?? |
|
|
|
Feb 6 2004, 04:12 AM
Post
#2
|
|
|
Group: Members Posts: 4,515 Joined: 25-October 03 From: Bath, UK Member No.: 464 |
QUOTE but the new libc is still loaded by the old ld-config I presume that ld-config is always in memory and is shared so it can't be unloaded unless you reboot (this is just a guess though). I think your options are - recompile ROM against libc 2.3 or statically link libc 2.3 into your JVM (would this work, I don't know?). Si |
|
|
|
Feb 6 2004, 04:50 AM
Post
#3
|
|
|
Group: Members Posts: 225 Joined: 9-December 03 Member No.: 1,104 |
can I replace the ld-linux library from 2.2.2 to 2.3.2 without re-building a new rom?
just by mounting the file system as read/write? do my changes and re-apply the file system to read only. can I do that? any issue moving to libc 2.2.2 to 2.3.2? is it down-compatible? (I'm not sure if I've asked this question before...) |
|
|
|
Feb 6 2004, 05:06 AM
Post
#4
|
|
|
Group: Members Posts: 1,176 Joined: 3-October 03 From: UK Member No.: 547 |
The 5600 ROM is a readonly JFFS2 partition, so to make the 5600 ROM writable just run this command as root:
mount / -o rw,remount Then replace the files you need to change and run this command to protect the ROM again: mount / -o ro,remount No reboot required |
|
|
|
Feb 6 2004, 05:10 AM
Post
#5
|
|
|
Group: Members Posts: 4,515 Joined: 25-October 03 From: Bath, UK Member No.: 464 |
libc 2.3 is backwards compatible (in my experience of running old command line apps on Oz3.3.6pre1 anyway).
I doubt you'll be able to replace ld-config while your Z is running as it's always loaded (I assume). Make sure you have your CF/SD card setup for flashing if you do try this as it will probably end up with a dead Z which needs a flash. Si |
|
|
|
Feb 6 2004, 05:25 AM
Post
#6
|
|
|
Group: Members Posts: 225 Joined: 9-December 03 Member No.: 1,104 |
d'oh!!!!
I've done this... cd /lib rm ld-linux.so.2 rm ld.so.2 and going to do -> ln -s ld-2.3.2.so ld-linux.so.2 but the system doesn't find anything... :-( ;-) and if I reboot then the system won't work! do I need to reflash? should I do this instead next time? -> ln -n -f ld-2.3.2.so ld-linux.so.2 |
|
|
|
Feb 6 2004, 06:38 AM
Post
#7
|
|
|
Group: Members Posts: 4,515 Joined: 25-October 03 From: Bath, UK Member No.: 464 |
QUOTE and if I reboot then the system won't work! Assuming you've tried rebooting and it now doesn't work, then yes you need to reflash. However the method you've used might work, you just have to make sure you get all of the relevant files and symlinks updated. I once tried doing ld-linux.* and libc.so.* but it still failed. My guess then was that I'd left some other vital file at the old version. I reflashed and have left well alone since then (not least because I'm using OZ 3.3.6pre1 which uses libc2.3). Si |
|
|
|
Feb 6 2004, 07:25 AM
Post
#8
|
|
|
Group: Members Posts: 225 Joined: 9-December 03 Member No.: 1,104 |
I've replaced all the libraries in /lib
after a reboot the /sbin/launch prg failed to run... so I think I'll wait the new cacko rom with libc 2.3 and qtopia 1.7. |
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 23rd May 2013 - 02:35 PM |