Qemu-Neo

classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|

Qemu-Neo

Aleix Orti
hello

I'm trying to compile the qemu-neo1973 on a ArchLinux X86_64. I use the
gcc-3.4,
Dowload the repo https://svn.openmoko.org/trunk/src/host/qemu-neo1973

and execute:
./configure --target-list=arm-softmmu --cc=gcc-3.4
make

and I ever have this bug:
" gcc-3.4  -m64 -Wl,-T,/home/baul/Moc/Qemu-Neo/qemu-neo1973/x86_64.ld -g -o qemu-system-arm vl.o osdep.o monitor.o pci.o loader.o isa_mmio.o block-raw-posix.o lsi53c895a.o usb-ohci.o eeprom93xx.o bt-hci.o eepro100.o ne2000.o pcnet.o rtl8139.o integratorcp.o versatilepb.o ps2.o smc91c111.o arm_pic.o arm_timer.o arm_boot.o pl011.o pl031.o pl050.o pl080.o pl110.o pl181.o pl190.o versatile_pci.o ptimer.o realview_gic.o realview.o arm_sysctl.o mpcore.o armv7m.o armv7m_nvic.o stellaris.o pl022.o stellaris_enet.o pl061.o arm-semi.o pxa2xx.o pxa2xx_pic.o pxa2xx_gpio.o pxa2xx_timer.o pxa2xx_dma.o pxa2xx_lcd.o pxa2xx_mmci.o pxa2xx_pcmcia.o pxa2xx_keypad.o pflash_cfi01.o gumstix.o spitz.o ide.o serial.o nand.o ecc.o s3c2410.o s3c24xx_gpio.o s3c24xx_lcd.o s3c24xx_mmci.o s3c24xx_rtc.o s3c24xx_udc.o neo1973.o jbt6k74.o gps.o gnokiigsm/virtmodem.o gnokiigsm/at-emulator.o gnokiigsm/datapump.o gnokiigsm/rlp-common.o gnokiigsm/rlp-crc24.o modem.o omap.o omap_lcdc.o omap1_clk.o omap_mmc.o omap_i2c.o palm.o tsc210x.o mst_fpga.o mainstone.o gdbstub.o ../libqemu_common.a libqemu.a  -lm -lz -lgnutls   -L/usr/lib -lSDL -lpthread  -lrt -lpthread -lutil
/usr/bin/ld: warning: libtasn1.so.3, needed by /usr/lib/libgnutls.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libnettle.so.4, needed by /usr/lib/libgnutls.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libhogweed.so.2, needed by /usr/lib/libgnutls.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libgmp.so.10, needed by /usr/lib/libgnutls.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libdl.so.2, needed by /usr/lib/libSDL.so, not found (try using -rpath or -rpath-link)
/usr/lib/libgnutls.so: undefined reference to `asn1_array2tree@LIBTASN1_0_3'
/usr/lib/libgnutls.so: undefined reference to `asn1_copy_node@LIBTASN1_0_3'
/usr/lib/libgnutls.so: undefined reference to `__gmpz_cmp'
/usr/lib/libgnutls.so: undefined reference to `__gmpz_mul'
/usr/lib/libgnutls.so: undefined reference to `__gmpz_mul_ui'
/usr/lib/libgnutls.so: undefined reference to `nettle_md2_init'
/usr/lib/libgnutls.so: undefined reference to `nettle_rsa_private_key_clear'
/usr/lib/libgnutls.so: undefined reference to `nettle_sha256_update'
/usr/lib/libgnutls.so: undefined reference to `memxor'
/usr/lib/libgnutls.so: undefined reference to `__gmpz_divexact_ui'
/usr/lib/libgnutls.so: undefined reference to `nettle_des_decrypt'
/usr/lib/libgnutls.so: undefined reference to `__gmpz_init2'
/usr/lib/libgnutls.so: undefined reference to `__gmpz_set_ui'
/usr/lib/libgnutls.so: undefined reference to `nettle_des_fix_parity'
/usr/lib/libgnutls.so: undefined reference to `nettle_aes_set_encrypt_key'
/usr/lib/libgnutls.so: undefined reference to `nettle_md5_digest'
/usr/lib/libgnutls.so: undefined reference to `nettle_rsa_public_key_init'
/usr/lib/libgnutls.so: undefined reference to `nettle_hmac_sha512_digest'
/usr/lib/libgnutls.so: undefined reference to `nettle_dsa_signature_init'
/usr/lib/libgnutls.so: undefined reference to `nettle_dsa_signature_clear'
/usr/lib/libgnutls.so: undefined reference to `asn1_number_of_elements@LIBTASN1_0_3'
/usr/lib/libgnutls.so: undefined reference to `__gmpz_fdiv_r'
/usr/lib/libgnutls.so: undefined reference to `nettle_gcm_aes_set_iv'
/usr/lib/libgnutls.so: undefined reference to `nettle_dsa_public_key_clear'
/usr/lib/libgnutls.so: undefined reference to `nettle_dsa_public_key_init'
/usr/lib/libgnutls.so: undefined reference to `nettle_sha512_init'
/usr/lib/libgnutls.so: undefined reference to `nettle_hmac_sha512_update'
/usr/lib/libgnutls.so: undefined reference to `nettle_sha384_init'
/usr/lib/libSDL.so: undefined reference to `dlopen@GLIBC_2.2.5'
/usr/lib/libgnutls.so: undefined reference to `nettle_aes_decrypt'
/usr/lib/libgnutls.so: undefined reference to `__gmpz_add'
/usr/lib/libgnutls.so: undefined reference to `nettle_gcm_aes_update'
/usr/lib/libgnutls.so: undefined reference to `nettle_hmac_sha256_set_key'
/usr/lib/libgnutls.so: undefined reference to `__gmpz_set'
/usr/lib/libgnutls.so: undefined reference to `__gmpz_sizeinbase'
/usr/lib/libgnutls.so: undefined reference to `nettle_hmac_sha384_digest'
/usr/lib/libSDL.so: undefined reference to `dlerror@GLIBC_2.2.5'
/usr/lib/libgnutls.so: undefined reference to `nettle_des_encrypt'
/usr/lib/libgnutls.so: undefined reference to `nettle_sha1_digest'
/usr/lib/libgnutls.so: undefined reference to `nettle_arcfour_set_key'
/usr/lib/libgnutls.so: undefined reference to `nettle_mpz_set_str_256_s'
/usr/lib/libgnutls.so: undefined reference to `nettle_camellia_crypt'
/usr/lib/libgnutls.so: undefined reference to `nettle_des_set_key'
/usr/lib/libSDL.so: undefined reference to `dlclose@GLIBC_2.2.5'
/usr/lib/libgnutls.so: undefined reference to `nettle_rsa_generate_keypair'
/usr/lib/libgnutls.so: undefined reference to `nettle_gcm_aes_decrypt'
/usr/lib/libgnutls.so: undefined reference to `nettle_sha224_init'
/usr/lib/libgnutls.so: undefined reference to `nettle_rsa_public_key_clear'
/usr/lib/libSDL.so: undefined reference to `dlsym@GLIBC_2.2.5'
/usr/lib/libgnutls.so: undefined reference to `nettle_sha512_update'
/usr/lib/libgnutls.so: undefined reference to `nettle_mpz_sizeinbase_256_u'
/usr/lib/libgnutls.so: undefined reference to `nettle_hmac_sha1_update'
/usr/lib/libgnutls.so: undefined reference to `nettle_md5_init'
/usr/lib/libgnutls.so: undefined reference to `asn1_write_value@LIBTASN1_0_3'
/usr/lib/libgnutls.so: undefined reference to `nettle_sha1_update'
/usr/lib/libgnutls.so: undefined reference to `nettle_cbc_encrypt'
/usr/lib/libgnutls.so: undefined reference to `nettle_arctwo_encrypt'
/usr/lib/libgnutls.so: undefined reference to `__gmpz_probab_prime_p'
/usr/lib/libgnutls.so: undefined reference to `nettle_hmac_sha1_set_key'
/usr/lib/libgnutls.so: undefined reference to `nettle_rsa_compute_root'
/usr/lib/libgnutls.so: undefined reference to `nettle_sha1_init'
/usr/lib/libgnutls.so: undefined reference to `nettle_des3_set_key'
/usr/lib/libgnutls.so: undefined reference to `nettle_hmac_md5_update'
/usr/lib/libgnutls.so: undefined reference to `nettle_arctwo_set_key'
/usr/lib/libgnutls.so: undefined reference to `nettle_md5_update'
/usr/lib/libgnutls.so: undefined reference to `nettle_hmac_sha1_digest'
/usr/lib/libgnutls.so: undefined reference to `nettle_cbc_decrypt'
/usr/lib/libgnutls.so: undefined reference to `nettle_rsa_private_key_init'
/usr/lib/libgnutls.so: undefined reference to `_nettle_dsa_verify'
/usr/lib/libgnutls.so: undefined reference to `asn1_create_element@LIBTASN1_0_3'
/usr/lib/libgnutls.so: undefined reference to `asn1_der_decoding_startEnd@LIBTASN1_0_3'
/usr/lib/libgnutls.so: undefined reference to `nettle_sha384_digest'
/usr/lib/libgnutls.so: undefined reference to `nettle_hmac_md5_digest'
/usr/lib/libgnutls.so: undefined reference to `nettle_dsa_private_key_init'
/usr/lib/libgnutls.so: undefined reference to `nettle_hmac_md5_set_key'
/usr/lib/libgnutls.so: undefined reference to `__gmpz_sub_ui'
/usr/lib/libgnutls.so: undefined reference to `asn1_read_value@LIBTASN1_0_3'
/usr/lib/libgnutls.so: undefined reference to `nettle_gcm_aes_encrypt'
/usr/lib/libgnutls.so: undefined reference to `nettle_sha512_digest'
/usr/lib/libgnutls.so: undefined reference to `nettle_md2_digest'
/usr/lib/libgnutls.so: undefined reference to `nettle_sha224_digest'
/usr/lib/libgnutls.so: undefined reference to `asn1_find_node@LIBTASN1_0_3'
/usr/lib/libgnutls.so: undefined reference to `asn1_der_coding@LIBTASN1_0_3'
/usr/lib/libgnutls.so: undefined reference to `nettle_yarrow256_init'
/usr/lib/libgnutls.so: undefined reference to `__gmpz_sub'
/usr/lib/libgnutls.so: undefined reference to `nettle_hmac_sha512_set_key'
/usr/lib/libgnutls.so: undefined reference to `nettle_arcfour_crypt'
/usr/lib/libgnutls.so: undefined reference to `asn1_get_length_der@LIBTASN1_0_3'
/usr/lib/libgnutls.so: undefined reference to `__gmpz_init'
/usr/lib/libgnutls.so: undefined reference to `nettle_hmac_sha256_digest'
/usr/lib/libgnutls.so: undefined reference to `nettle_des3_decrypt'
/usr/lib/libgnutls.so: undefined reference to `__gmpz_init_set_ui'
/usr/lib/libgnutls.so: undefined reference to `__gmpz_cdiv_q'
/usr/lib/libgnutls.so: undefined reference to `nettle_dsa_generate_keypair'
/usr/lib/libgnutls.so: undefined reference to `__gmpz_set_str'
/usr/lib/libgnutls.so: undefined reference to `nettle_hmac_sha224_set_key'
/usr/lib/libgnutls.so: undefined reference to `nettle_des3_encrypt'
/usr/lib/libgnutls.so: undefined reference to `nettle_camellia_set_encrypt_key'
/usr/lib/libgnutls.so: undefined reference to `nettle_gcm_aes_set_key'
/usr/lib/libgnutls.so: undefined reference to `__gmpz_setbit'
/usr/lib/libgnutls.so: undefined reference to `__gmpz_powm'
/usr/lib/libgnutls.so: undefined reference to `nettle_yarrow256_slow_reseed'
/usr/lib/libgnutls.so: undefined reference to `nettle_md2_update'
/usr/lib/libgnutls.so: undefined reference to `asn1_der_decoding@LIBTASN1_0_3'
/usr/lib/libgnutls.so: undefined reference to `nettle_gcm_aes_digest'
/usr/lib/libgnutls.so: undefined reference to `__gmpz_cmp_ui'
/usr/lib/libgnutls.so: undefined reference to `nettle_mpz_set_str_256_u'
/usr/lib/libgnutls.so: undefined reference to `_nettle_dsa_sign'
/usr/lib/libgnutls.so: undefined reference to `asn1_get_tag_der@LIBTASN1_0_3'
/usr/lib/libgnutls.so: undefined reference to `nettle_sha256_digest'
/usr/lib/libgnutls.so: undefined reference to `nettle_hmac_sha224_digest'
/usr/lib/libgnutls.so: undefined reference to `__gmpz_invert'
/usr/lib/libgnutls.so: undefined reference to `asn1_check_version@LIBTASN1_0_3'
/usr/lib/libgnutls.so: undefined reference to `__gmpz_mod'
/usr/lib/libgnutls.so: undefined reference to `nettle_aes_encrypt'
/usr/lib/libgnutls.so: undefined reference to `nettle_dsa_private_key_clear'
/usr/lib/libgnutls.so: undefined reference to `nettle_sha256_init'
/usr/lib/libgnutls.so: undefined reference to `asn1_delete_structure@LIBTASN1_0_3'
/usr/lib/libgnutls.so: undefined reference to `__gmpz_clear'
/usr/lib/libgnutls.so: undefined reference to `nettle_camellia_invert_key'
/usr/lib/libgnutls.so: undefined reference to `nettle_hmac_sha384_set_key'
/usr/lib/libgnutls.so: undefined reference to `nettle_mpz_get_str_256'
/usr/lib/libgnutls.so: undefined reference to `nettle_mpz_sizeinbase_256_s'
/usr/lib/libgnutls.so: undefined reference to `nettle_arctwo_decrypt'
/usr/lib/libgnutls.so: undefined reference to `nettle_hmac_sha256_update'
/usr/lib/libgnutls.so: undefined reference to `nettle_aes_invert_key'
/usr/lib/libgnutls.so: undefined reference to `nettle_yarrow256_update'
/usr/lib/libgnutls.so: undefined reference to `nettle_yarrow256_random'
/usr/lib/libgnutls.so: undefined reference to `__gmpz_add_ui'
collect2: ld returned 1 exit status
make[1]: *** [qemu-system-arm] Error 1
make[1]: Leaving directory `/home/baul/Moc/Qemu-Neo/qemu-neo1973/arm-softmmu'
make: *** [subdir-arm-softmmu] Error 2"

I've loked for the libs libtasn1.so.3, libnettle.so.4, libhogweed.so.2,
libgmp.so.10, libdl.so.2; and there are in /usr/lib or in /lib. I don't
understand because ld have the option -L/usr/lib

what can I do?

thanks in advance
Aleix Orti

_______________________________________________
support mailing list
[hidden email]
https://lists.openmoko.org/mailman/listinfo/support
Reply | Threaded
Open this post in threaded view
|

Re: Qemu-Neo

Timo Juhani Lindfors
Aleix Orti<[hidden email]> writes:
> I'm trying to compile the qemu-neo1973 on a ArchLinux X86_64. I use the
> gcc-3.4,
> Dowload the repo https://svn.openmoko.org/trunk/src/host/qemu-neo1973

This is so ancient that I doubt anybody is going to care.. Why are you
doing this?


_______________________________________________
support mailing list
[hidden email]
https://lists.openmoko.org/mailman/listinfo/support
Reply | Threaded
Open this post in threaded view
|

Re: Qemu-Neo

Aleix Orti
On Mon, 12 Sep 2011 14:15:35 +0300
Timo Juhani Lindfors <[hidden email]> wrote:

> Aleix Orti<[hidden email]> writes:
> > I'm trying to compile the qemu-neo1973 on a ArchLinux X86_64. I use
> > the gcc-3.4,
> > Dowload the repo
> > https://svn.openmoko.org/trunk/src/host/qemu-neo1973
>
> This is so ancient that I doubt anybody is going to care.. Why are you
> doing this?

I want to emulate Freerunner with Qemu to have something as a
Freerunner sandbox.
>
>
> _______________________________________________
> support mailing list
> [hidden email]
> https://lists.openmoko.org/mailman/listinfo/support
>


_______________________________________________
support mailing list
[hidden email]
https://lists.openmoko.org/mailman/listinfo/support
Reply | Threaded
Open this post in threaded view
|

Re: Qemu-Neo

Timo Juhani Lindfors
aleixof <[hidden email]> writes:
> I want to emulate Freerunner with Qemu to have something as a
> Freerunner sandbox.

Afaik that code only ever emulated gta01 and not gta02. I'm still not
quite sure what you are trying to do. Why not use normal qemu?

_______________________________________________
support mailing list
[hidden email]
https://lists.openmoko.org/mailman/listinfo/support
Reply | Threaded
Open this post in threaded view
|

Re: Qemu-Neo

Aleix Orti
On Mon, 12 Sep 2011 20:20:50 +0300
Timo Juhani Lindfors <[hidden email]> wrote:

> aleixof <[hidden email]> writes:
> > I want to emulate Freerunner with Qemu to have something as a
> > Freerunner sandbox.
>
> Afaik that code only ever emulated gta01 and not gta02. I'm still not
> quite sure what you are trying to do. Why not use normal qemu?
First I thought that It was better to follow the method of the wiki
because it promise a more similar device.
Now I think try it with normal qemu, but is the first time that I use
qemu for emulate a non-x86 machine and I'm not sure how to do it
because in x86 machines I had only one image but now I have a image
for the file system, a image for the kernel and a image for the boot
manager.

>
> _______________________________________________
> support mailing list
> [hidden email]
> https://lists.openmoko.org/mailman/listinfo/support
>


_______________________________________________
support mailing list
[hidden email]
https://lists.openmoko.org/mailman/listinfo/support
Reply | Threaded
Open this post in threaded view
|

Re: Qemu-Neo

Timo Juhani Lindfors
Aleix Orti<[hidden email]> writes:
> qemu for emulate a non-x86 machine and I'm not sure how to do it
> because in x86 machines I had only one image but now I have a image
> for the file system, a image for the kernel and a image for the boot
> manager.

For example

http://people.debian.org/~aurel32/qemu/armel/

has examples.

_______________________________________________
support mailing list
[hidden email]
https://lists.openmoko.org/mailman/listinfo/support
Reply | Threaded
Open this post in threaded view
|

Re: Qemu-Neo

Patryk Benderz
In reply to this post by Aleix Orti
[cut]
> because in x86 machines I had only one image but now I have a image
> for the file system, a image for the kernel and a image for the boot
> manager.
Try like this:
$ qemu -kernel ./bzImage -initrd ./rootfs.cpio

Other usefull parameters are:
-m 1024 -alt-grab -enable-kvm -vga std -usb -net nic -net user

--
Patryk "LeadMan" Benderz
Linux Registered User #377521
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments


_______________________________________________
support mailing list
[hidden email]
https://lists.openmoko.org/mailman/listinfo/support
Reply | Threaded
Open this post in threaded view
|

Re: Qemu-Neo

Aleix Orti
hello

> Try like this:
> $ qemu -kernel ./bzImage -initrd ./rootfs.cpio

I try:
$ qemu-system-arm -kernel uImage.bin -initrd shr2011.raw

and this is the result:
qemu: fatal: Trying to execute code outside RAM or ROM at 0x30008000

R00=00000000 R01=00000113 R02=00000100 R03=00000000
R04=00000000 R05=00000000 R06=00000000 R07=00000000
R08=00000000 R09=00000000 R10=00000000 R11=00000000
R12=00000000 R13=00000000 R14=00000000 R15=30008000
PSR=400001d3 -Z-- A svc32
Aborted

I dont't know what is happen but

I suppose that I need to find a way to flash a bootloader in the
shr2011 filesystem...

thank you
br


_______________________________________________
support mailing list
[hidden email]
https://lists.openmoko.org/mailman/listinfo/support
Reply | Threaded
Open this post in threaded view
|

Re: Qemu-Neo

Aleix Orti
hello again!
I try to explain myself better.

In a SHR distro I have a:
A) bootloader: there are two diferents: qi with a
udfu extension and uboot with .bin extension
B) kernel: usually named uImage.bin
C) a filesystem: there are two possibilities: a om-gta02.tar.gz and
om-gta02.jffs2

I unpacked om-gta02.tar.gz on shr2011.raw

and I tried to run it with Qemu but it haven't worked

My questions are:
-How can I get a initrd file from the files I have? Can I get it from
the SHR running on the phone?
- How can I boot the SHR on qemu? where is the place of the bootloader?
  or why haven't started the kernel with:
$ qemu-system-arm -kernel uImage.bin -hda shr2011.raw

thank you again in advance
br

_______________________________________________
support mailing list
[hidden email]
https://lists.openmoko.org/mailman/listinfo/support
Reply | Threaded
Open this post in threaded view
|

Re: Qemu-Neo

Patryk Benderz
[cut]
> thank you again in advance
Hi Aleix,
I do not know what are the answers, nor have time to build testing
environment similar to yours. Of course it is very appropriate to ask
these questions here, but "support" is ML with very low traffic these
days. You will get answer much faster if you ask at
[hidden email] or directly at SHR's ML
[hidden email]
        Hope this helps.

--
Patryk "LeadMan" Benderz
Linux Registered User #377521
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments


_______________________________________________
support mailing list
[hidden email]
https://lists.openmoko.org/mailman/listinfo/support
Reply | Threaded
Open this post in threaded view
|

Re: Qemu-Neo

Aleix Orti
On Mon, 03 Oct 2011 11:26:36 +0200
Patryk Benderz <[hidden email]> wrote:

> [cut]
> > thank you again in advance
> Hi Aleix,
> I do not know what are the answers, nor have time to build testing
> environment similar to yours. Of course it is very appropriate to ask
> these questions here, but "support" is ML with very low traffic these
> days. You will get answer much faster if you ask at
> [hidden email] or directly at SHR's ML
> [hidden email]
> Hope this helps.
>
sure it does,

br

_______________________________________________
support mailing list
[hidden email]
https://lists.openmoko.org/mailman/listinfo/support