![]() |
#16 |
Junior Member
![]() Posts: 6
Karma: 10
Join Date: Dec 2008
Device: iRex DR1000S
|
I was able to compile the hello_world program via the shell (Debian on VMware). Copied the compiled program and a .desktop file on the DR (SD card) and it worked. I tried Anjuta/PokySDK but this gives me package requirements errors (gtk+-2.0, glib-2.0 not found). What am I doing wrong here?
Poky-qemu works perfectly with the iOn SDK. Code:
> cd /usr/local/poky/eabi-glibc/arm > source environment-setup > poky-qemu zImage-2.6.23-qemuarm-xxx.bin poky-image-ion-devel-qemuarm-xxx.rootfs.ext2 Tomek: Did you deploy the hello_world by copying it to the SD card? I still don't know how to setup networking for the emulator and DR device. The Poky handbook contains information about QEMU/USB networking but I don't know if all is the same for iOn as it is for Poky... though iOn is 99% Poky right? Last edited by phasesync; 12-26-2008 at 04:54 AM. |
![]() |
![]() |
![]() |
#17 |
Junior Member
![]() Posts: 6
Karma: 10
Join Date: Dec 2008
Device: iRex DR1000S
|
In hello_world's configure.ac there is a PKG_CHECK_MODULES(DEPS, gtk+-2.0 >= 2.2 glib-2.0 >= 2.2).
Code:
>cd /usr/local/poky/eabi-glibc/arm >source environment-setup >cd ~/hello_world >autoreconf --install >./configure --host=arm-poky-linux-gnueabi >make Code:
>pkg-config --modversion gtk+-2.0 To ./configure in Anjuta... >anjuta hello_world.anjuta >Edit->Preferences added Poky SDK addon configured cross-compiler options in Poky SDK use a full poky tree -> /usr/local/poky/eabi-glibc/arm toolchain triplet -> arm-poky-linux-gnueabi use QEMU Device emulator -> zImage-2.6.23.qemuarm-xxx.bin -> poky-image-ion-devel-qemuarm-xxx.rootfs.ext2 > Build->Clean Project > Build->Run Autogenerate > Build->Run Configure Uh oh... [config.log] configure:6697: checking for DEPS configure:6705: $PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.2 glib-2.0 > = 2.2" Package gtk+-2.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `gtk+-2.0.pc' to the PKG_CONFIG_PATH environment variable No package 'gtk+-2.0' found Package glib-2.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `glib-2.0.pc' to the PKG_CONFIG_PATH environment variable No package 'glib-2.0' found which stops us from building the project :-( Code:
> echo $PKG_CONFIG_PATH /usr/local/poky/eabi-glibc/arm/arm-poky-linux-gnueabi/usr/lib/pkgconfig Last edited by phasesync; 12-26-2008 at 04:54 AM. |
![]() |
![]() |
Advert | |
|
![]() |
#18 |
Junior Member
![]() Posts: 6
Karma: 10
Join Date: Dec 2008
Device: iRex DR1000S
|
Sometimes it is possible to overlook a little picture with settings ;-)
The following Poky SDK setting I had configured wrongly: > use a full poky tree -> /usr/local/poky/eabi-glibc/arm instead use the following as Adam showed us already in a snapshot of his Poky SDK settings: > use an external toolchain -> /usr/local/poky/eabi-glibc/arm I do like to know what the differences are between the the two possibilities. |
![]() |
![]() |
![]() |
#19 | ||
Enthusiast
![]() Posts: 29
Karma: 10
Join Date: Sep 2008
Location: USA
Device: Kindle DX
|
Quote:
Quote:
By the way, you can ssh into the IP address it shows when prompting for the root password and poke around the emulator's file system which I found helpful. In my case the IP address is setup to be 192.168.7.2 which I'm guessing is probably the same for everyone. Just make sure to ssh as root/root. |
||
![]() |
![]() |
![]() |
#20 |
Enthusiast
![]() Posts: 29
Karma: 10
Join Date: Sep 2008
Location: USA
Device: Kindle DX
|
Is it possible to read ebooks in QEMU? I'm not sure what would the best way to get the ebook to the image, but it looks like 'wget' is available so that would be one way. I can't figure out however where to place the content. I tried several places with a *.txt file but I never see it available from Menu->Open... in QEMU which always takes me to the "Settings" option.
For example, there is a /usr/share/uds/ebooks symlink that points to /media/mmcblk0p1/eBooks folder which doesn't exist by default. I created the folder and a test *.txt file there, but it still doesn't open. I'm also curious if anyone here has tried developing a custom Universal Document Shell (UDS) plugin yet? I'm studying the examples and would love to be able to bounce ideas around, ask for help, and eventually help out other newcomers. Specifically, I haven't figured out yet what is the main entry point for the plugin? That is, what is the first function/method that is called by the UDS system? So far it looks like IPluginLibrary interface's "is_supported_document" may be up there near the top... but how does the system know about the new plugin? Does the plugin register somewhere? Last edited by Tomek; 12-26-2008 at 01:12 AM. |
![]() |
![]() |
Advert | |
|
![]() |
#21 | ||||
Junior Member
![]() Posts: 6
Karma: 10
Join Date: Dec 2008
Device: iRex DR1000S
|
Quote:
Code:
> scp ~/hello_world/src/hello_world root@192.168.7.2:/tmp Quote:
> ssh -o "CheckHostIP no" -o "StrictHostKeyChecking no" -o "UserKnownHostFile /dev/null" -l root 192.168.7.2 rsync --vvlogDTpre.iL ./usr I did the following things: deb -> linux debian shell emu -> qemuarm shell Services running on the emu: Code:
deb> nmap 192.168.7.2 PORT STATE SERVICE 22/tcp open ssh (dropbear ssh deamon) 111/tcp open rpcbind (RPC program number mapper) 849/tcp open unknown 856/tcp open unknown 3632/tcp open distccd (distributed c/c++ compiler server) 4224/tcp open xtell (simple messaging server) 6000/tcp open X11 (xserver) deb> ssh 192.168.7.2 (logon with root as password) emu> cd / Code:
emu> mount rootfs on / type rootfs (rw) /dev/root on / type ext2 (rw) proc on /proc type proc (rw) sysfs on /sys type sysfs (rw) /dev/root on /dev/.static/dev type ext2 (rw) tmpfs on /dev type tmpfs (rw) devpts on /dev/pts type devpts (rw) tmpfs on /var type tmpfs (rw) tmpfs on /media/ram type tmpfs (rw) Code:
emu> export DISPLAY=192.168.7.2:0.0 emu> /tmp/hello_world Code:
deb> dd if=/dev/zero of=/tmp/card-image count=20480 deb> mkfs card-image deb> scp card-image root@192.168.7.2:/tmp/ Quote:
Code:
emu> mkdir /media/mmcblk0p1 emu> mount -o loop=/dev/loop0 /tmp/card-image /media/mmcblk0p1/ emu> mkdir /media/mmcblk0p1/eBooks Code:
emu> ps emu> kill [PID of Xfbdev] emu> /etc/X11/Xserver deb> scp poky-handbook.pdf root@192.168.7.2:/media/mmcblk0p1/eBooks Probably just creating a folder "/media/mmcblk0p1" and restarting the Xserver could work also. Quote:
![]() checkout http://developer.irexnet.com/pub/iOn/SDK/1.03/ Last edited by phasesync; 12-28-2008 at 06:17 AM. |
||||
![]() |
![]() |
![]() |
#22 |
Enthusiast
![]() Posts: 29
Karma: 10
Join Date: Sep 2008
Location: USA
Device: Kindle DX
|
|
![]() |
![]() |
![]() |
#23 |
Enthusiast
![]() Posts: 29
Karma: 10
Join Date: Sep 2008
Location: USA
Device: Kindle DX
|
Has anyone figured out yet how to use a dictionary and writing on PDFs in QEMU? I can't get these to work. I can read the ebooks, I placed a DRM-free dictionary in /media/mmcblk01/System/Dictionaries and can open it as a book, but the dictionary lookup menu option remains disabled. I've been trying to develop a plugin that makes use of a dictionary, but I'm not sure if QEMU allows that functionality.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
DR1000 Public BETA of the DR1000S 2.0 software available | rfog | iRex | 150 | 09-21-2010 12:00 PM |
B&N new software development location | Fbone | News | 1 | 08-25-2010 03:08 AM |
I love my new DR1000S, thoughts & questions, 3rd Party Software | Cliffe | iRex | 3 | 04-26-2009 10:02 AM |
iRex DR1000 Software Development website | vwinstead | iRex | 23 | 02-04-2009 12:21 PM |