02-28-2012, 05:26 AM | #31 |
M92 info archivist
Posts: 238
Karma: 1398
Join Date: Jun 2008
Device: IRex Iliad 2nd ed., Onyx Boox M92, Onyx Boox Max Lumi
|
This was indeed my problem with the arm build (see above )
My current problem is with build:x86:static . g++ is unhappy with some assembler code in onyx_wireless... given that it's unlikely that I will ever need that on the x86 platform, I'm wondering whether I should just disable it... Code:
[ 1%] Building CXX object code/src/wireless/CMakeFiles/onyx_wireless.dir/ap_item.cpp.o cd /home/grsch/arbeit/home/boox_m92/booxsdk/build/x86/code/src/wireless && /usr/bin/g++ -DSHARE_ROOT=\"/usr/share\" -DCONFIG_CTRL_IFACE -DCONFIG_CTRL_IFACE_UNIX -DQT_SCRIPT_LIB -DQT_WEBKIT_LIB -DQT_GUI_LIB -DQT_TEST_LIB -DQT_DBUS_LIB -DQT_XML_LIB -DQT_SQL_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SCRIPT_LIB -DQT_WEBKIT_LIB -DQT_GUI_LIB -DQT_TEST_LIB -DQT_DBUS_LIB -DQT_XML_LIB -DQT_SQL_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I/home/grsch/arbeit/home/boox_m92/booxsdk/third_party/gtest/include -I/home/grsch/arbeit/home/boox_m92/booxsdk/code/include -I/opt/onyx/arm/include -I/opt/onyx/arm/include/QtScript -I/opt/onyx/arm/include/QtWebKit -I/opt/onyx/arm/include/QtGui -I/opt/onyx/arm/include/QtTest -I/opt/onyx/arm/include/QtDBus -I/opt/onyx/arm/include/QtXml -I/opt/onyx/arm/include/QtSql -I/opt/onyx/arm/include/QtNetwork -I/opt/onyx/arm/include/QtCore -Wall -Werror -o CMakeFiles/onyx_wireless.dir/ap_item.cpp.o -c /home/grsch/arbeit/home/boox_m92/booxsdk/code/src/wireless/ap_item.cpp /opt/onyx/arm/include/QtCore/qatomic_arm.h: Assembler messages: /opt/onyx/arm/include/QtCore/qatomic_arm.h:131: Error: no such instruction: `swpb %bl,%al,[%rdx]' make[2]: *** [code/src/wireless/CMakeFiles/onyx_wireless.dir/dialup_dialog.cpp.o] Error 1 make[2]: *** Waiting for unfinished jobs.... |
02-28-2012, 06:00 AM | #32 |
Connoisseur
Posts: 64
Karma: 669
Join Date: Jan 2012
Device: M92
|
When I compile the SDK for x86, the qt header files from my system are used, not those from /opt/onyx/include. Do you have the qt header files installed? It could also be that you have some environment variable defined that tells the build script that they should use the arm headers.
|
Advert | |
|
02-29-2012, 07:49 AM | #33 | |
M92 info archivist
Posts: 238
Karma: 1398
Join Date: Jun 2008
Device: IRex Iliad 2nd ed., Onyx Boox M92, Onyx Boox Max Lumi
|
Quote:
No special environment variables are set. Nonetheless, the arm headers are explicitely included: Code:
/usr/bin/cmake -E cmake_progress_report /home/grsch/arbeit/home/boox_m92/booxsdk/build/x86/CMakeFiles [ 2%] Building CXX object code/src/wireless/CMakeFiles/onyx_wireless.dir/ap_item.cpp.o cd /home/grsch/arbeit/home/boox_m92/booxsdk/build/x86/code/src/wireless && /usr/bin/g++ -DSHARE_ROOT=\"/usr/share\" -DCONFIG_CTRL_IFACE -DCONFIG_CTRL_IFACE_UNIX -DQT_SCRIPT_LIB -DQT_WEBKIT_LIB -DQT_GUI_LIB -DQT_TEST_LIB -DQT_DBUS_LIB -DQT_XML_LIB -DQT_SQL_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SCRIPT_LIB -DQT_WEBKIT_LIB -DQT_GUI_LIB -DQT_TEST_LIB -DQT_DBUS_LIB -DQT_XML_LIB -DQT_SQL_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I/home/grsch/arbeit/home/boox_m92/booxsdk/third_party/gtest/include -I/home/grsch/arbeit/home/boox_m92/booxsdk/code/include -I/opt/onyx/arm/include -I/opt/onyx/arm/include/QtScript -I/opt/onyx/arm/include/QtWebKit -I/opt/onyx/arm/include/QtGui -I/opt/onyx/arm/include/QtTest -I/opt/onyx/arm/include/QtDBus -I/opt/onyx/arm/include/QtXml -I/opt/onyx/arm/include/QtSql -I/opt/onyx/arm/include/QtNetwork -I/opt/onyx/arm/include/QtCore -Wall -Werror -o CMakeFiles/onyx_wireless.dir/ap_item.cpp.o -c /home/grsch/arbeit/home/boox_m92/booxsdk/code/src/wireless/ap_item.cpp |
|
03-04-2012, 06:29 AM | #34 |
M92 info archivist
Posts: 238
Karma: 1398
Join Date: Jun 2008
Device: IRex Iliad 2nd ed., Onyx Boox M92, Onyx Boox Max Lumi
|
Starting with a fresh checkout and using
build:static instead of build:arm/x86:static it finally worked. Furthermore, I managed to compile some of the packages in boox-opensource , though not all:
I've updated the wiki on how to compile boox-opensource packages. Cheers. |
03-06-2012, 05:42 AM | #35 |
M92 info archivist
Posts: 238
Karma: 1398
Join Date: Jun 2008
Device: IRex Iliad 2nd ed., Onyx Boox M92, Onyx Boox Max Lumi
|
So it turned out that music_player was merely missing some -dev packages on the x86 platform.
feed_reader is indeed missing the feed_action.h header file. cr3, djvu_reader, fbreader_onyx, and rss_reader have portability issues compiling for x86 on amd64 machines (e.g., casting pointers to int). djvu_reader and rss_reader compile for arm on amd64, and for x86 in 32bit environments. fbreader compiles for x86 in 32bit environments, if a not needed cryptopenssl lib inclusion is removed from its CMakeLists.txt (patch attached) - but arm toolchain & sdk are lacking the needed libcrypto . cr3 yields linker errors (several 'multiple definition' errors, such as this one) Code:
./../../../libs/libonyx_ui.a(number_dialog.cpp.o): In function `ui::NumberDialog::keyPressEvent(QKeyEvent*)': number_dialog.cpp:(.text+0x0): multiple definition of `ui::NumberDialog::keyPressEvent(QKeyEvent*)' Hence what we need from Onyx seems
|
Advert | |
|
03-06-2012, 11:03 AM | #36 |
M92 info archivist
Posts: 238
Karma: 1398
Join Date: Jun 2008
Device: IRex Iliad 2nd ed., Onyx Boox M92, Onyx Boox Max Lumi
|
...wrote a support ticket requesting the missing resources (but didn't get feedback that submission actually worked)... hope they will react
Cheers! |
03-06-2012, 03:45 PM | #37 | |
OpenBOOX developer
Posts: 22
Karma: 10000
Join Date: Jan 2012
Device: BeBook Neo
|
Quote:
|
|
03-08-2012, 03:13 PM | #38 | |
M92 info archivist
Posts: 238
Karma: 1398
Join Date: Jun 2008
Device: IRex Iliad 2nd ed., Onyx Boox M92, Onyx Boox Max Lumi
|
Quote:
Welcome, Koudijs! Thx for the link (though I'd still prefer them adding it to the regular sdk package :P ) Btw., since you're already 'here' - do you happen have a pointer to firmware/software update (procedure/safety) documentation? Do the update routines reside in the bootloader? Initrd? Another partition? Or does one have to fear bricking a device by replacing files in the regular file system? And are there plans to extend OpenBoox support to the M92? :P |
|
03-09-2012, 01:27 PM | #39 | |
Connoisseur
Posts: 62
Karma: 1114
Join Date: Jan 2012
Device: Onyx Boox M92
|
Quote:
I didn't mention there that the bootloader runs the update kernel+initramfs only if you hold down the "ok" button (if there is no update file, nothing happens, except displaying messages). Just replacing files in the root filesystem will do no permanent harm. A bad flash can brick the device, since the initramfs where most of the updating procedure is gets updated as well, leaving you unable to update again; however that update is done last, so you should be able to log in the M92 and fix everything by hands. Also as long as the bootloader is good you should be able to flash a good image manually, but I don't know how to connect to the serial port (no obvious serial/jtag pin header). Hope this helps! |
|
03-09-2012, 05:09 PM | #40 |
Addict
Posts: 320
Karma: 99999
Join Date: Oct 2011
Location: Germany
Device: Onyx Boox M92, Icarus Illumina E653
|
When connecting to my M92 via g_serial over USB everything works fine. But as soon as I log out by typing "exit" in the remote console, I have to remove the "g_serial.ko" module on M92 and insmod it again in order to login again. Is this intended? Any way around this?
|
03-09-2012, 05:47 PM | #41 | |
Connoisseur
Posts: 62
Karma: 1114
Join Date: Jan 2012
Device: Onyx Boox M92
|
Quote:
|
|
03-09-2012, 06:06 PM | #42 |
Addict
Posts: 320
Karma: 99999
Join Date: Oct 2011
Location: Germany
Device: Onyx Boox M92, Icarus Illumina E653
|
Okay, your solution sounds very sensible Thanks for the explanation!
|
03-10-2012, 04:33 AM | #43 | |
M92 info archivist
Posts: 238
Karma: 1398
Join Date: Jun 2008
Device: IRex Iliad 2nd ed., Onyx Boox M92, Onyx Boox Max Lumi
|
Quote:
I'm still trying to assess the situation (though I don't have much time these days ), finding out what you can/cannot do and collecting infos/resources to play around with the device. Mentioning jtag: Did you actually disassemble the device? It might interest some folks to know about the specific hardware built into the product (e.g., the wacom tablet type to facilitate a search for alternative styli). Unfortunately, I didn't get any response from Onyx on my ticket requesting kernel sources/patches yet... I'm wondering whether something went wrong submitting the ticket, or whether they're ignoring it... has anyone else tried? |
|
03-23-2012, 09:05 PM | #44 | |
M92 info archivist
Posts: 238
Karma: 1398
Join Date: Jun 2008
Device: IRex Iliad 2nd ed., Onyx Boox M92, Onyx Boox Max Lumi
|
Quote:
How are things going with the kernel config? Can you please add a section to the Devel Wiki page w.r.t. kernel module compilation? If I interpret this post https://lists.ubuntu.com/archives/ke...ly/006417.html correctly, there's a considerable chance that the M92 USB controller may support host mode... and that would open a new world of possibilities (bluetooth/keyboard support for text input, e.g. ) I hope that Onyx will release the sources and patches in accordance to the GPL, though... It'd be a shame to have to involve the FSF :-| . btw.: I'm a little surprised to see bluetooth.ko included with the std. fw image... it seems to be used by the wifi driver... does anyone know why? Does the atheros chip support bluetooth, or is it only this bt coexistence interface? Last edited by kodomo; 03-24-2012 at 07:55 PM. |
|
03-24-2012, 12:21 PM | #45 | |
M92 info archivist
Posts: 238
Karma: 1398
Join Date: Jun 2008
Device: IRex Iliad 2nd ed., Onyx Boox M92, Onyx Boox Max Lumi
|
Quote:
Attached, you'll find a patchfile modifying the Makefile to make it easy to use the toolchain. To use it, download and unpack the openssl archive, patch the Makefile, set your environment variables (as described in the Development wiki), and call Code:
export INSTALLTOP=`pwd`/build/arm ; export TC_PREFIX=arm-linux- ; make install Copy the contents of the include and lib directories into your onyx sdk environment (presumably under /opt/onyx/arm - mind that there's already an include/openssl directory). fbreader should compile thereafter (mind to remove the other library dependency). I'll update the Devel wiki to that respect. Cheers! Update: initial post was missing a '-' after arm-linux Last edited by kodomo; 03-24-2012 at 12:48 PM. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
python on pocketbook ... and on onyx boox m92 too! | jbaach | Onyx Boox | 19 | 04-16-2012 07:34 PM |
Pocketbook 903 / Onyx Boox M92 comparison | jbaach | PocketBook | 8 | 03-04-2012 08:40 AM |
Pocketbook 903 / Onyx Boox M92 Vergleich | jbaach | PocketBook | 7 | 03-02-2012 02:02 PM |
Onyx Boox M92 available in November | hansokumake | Onyx Boox | 47 | 12-20-2011 05:46 AM |
Onyx Boox m92 / Pocketbook 903 Vergleich | jbaach | Andere Lesegeräte | 0 | 12-13-2011 12:22 PM |