[Help] Compiling Firefox 9.0.1 for/on Pogoplug (armv5)

This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.

Re: [Help] Compiling Firefox 9.0.1 for/on Pogoplug (armv5)

Postby cyberic » Fri Jan 27, 2012 11:40 pm

Ok I trust you guys, you sure know what you are doing, I didn't want to offend anyone, and I thank you for what you do for Archlinux.
Nevertheless, regarding your sentence $this->bbcode_second_pass_quote('', 't')he official ct-ng environment used in the build system is built from the same gcc/glibc/binutils source tarballs as the versions used natively
, it is the same with qemu, the same binaries are run in the emulated environment than in the native one! But I can understand that the binaries do not run exactly the same way in the emulated env.
I will keep doing some tests just to learn some more stuff, just for me, and see if I find something obvious that is not working.
Image
cyberic
 
Posts: 71
Joined: Sun Jan 15, 2012 11:26 pm

Re: [Help] Compiling Firefox 9.0.1 for/on Pogoplug (armv5)

Postby kmihelich » Fri Jan 27, 2012 11:47 pm

Emulated environment != native environment. There just isn't a way around that. And since the crosstools GCC is a native x86 program pumping out ARM object files in the same way the native compiler does.. I'm out of ways to show that it's a better process.
Arch Linux ARM exists and continues to grow through community support, please donate today!
kmihelich
Developer
 
Posts: 1133
Joined: Tue Jul 20, 2010 6:55 am
Location: aka leming #archlinuxarm

Re: [Help] Compiling Firefox 9.0.1 for/on Pogoplug (armv5)

Postby moonman » Sat Jan 28, 2012 12:27 am

I had problems setting up distcc with ubuntu. WIll try archlinux 3 this time...
And about qemu. I had that setup a long time ago and I compiled kernel for the plug. Plug would not boot up so I had to re-setup everything. Compiled the same source-code with the same options on the plug itself, and it booted up.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: [Help] Compiling Firefox 9.0.1 for/on Pogoplug (armv5)

Postby macau » Sat Jan 28, 2012 6:34 am

$this->bbcode_second_pass_quote('Kurlon', 'T')he patch to disable the neon tests doesn't seem to actually disable the neon tests looking at configure's output. I'ma get a bit more 'agressive' about the matter and try again.

https://github.com/tmpdo/PKGBUILDs/blob ... nvert.diff try thise
macau
 
Posts: 40
Joined: Thu Jul 21, 2011 6:43 am

Re: [Help] Compiling Firefox 9.0.1 for/on Pogoplug (armv5)

Postby Kurlon » Sat Jan 28, 2012 3:42 pm

So, after I figured out that patches to configure.in require a run of autoconf to actually impact configure... yeah I know, rookie mistake... FF 9.0.1 built cleanly. I'm installing and testing now.

Ok, so it built and installed, and even opens! It died with an illegal instruction when I went to check out the alARM home page. So still not stable yet. I'll post my patch later so others can poke at it to see where to tweak next.
Kurlon
 
Posts: 132
Joined: Fri Jan 06, 2012 10:05 pm

Re: [Help] Compiling Firefox 9.0.1 for/on Pogoplug (armv5)

Postby Kurlon » Sat Jan 28, 2012 10:41 pm

I've included the patch I used, this covers everything after pulling down the 9.0.1 release tarball and extracting it.

I configured with:
$this->bbcode_second_pass_code('', './configure --disable-neon --disable-necko-wifi --disable-debug-symbols')

Based on the illegal instructions everywhere I almost wonder if some portions are trying to compile as ARMv7?
Attachments
mozilla-release-armv5.patch.gz
Patch file
(62.16 KiB) Downloaded 642 times
Kurlon
 
Posts: 132
Joined: Fri Jan 06, 2012 10:05 pm

Re: [Help] Compiling Firefox 9.0.1 for/on Pogoplug (armv5)

Postby moonman » Sun Jan 29, 2012 4:06 am

$this->bbcode_second_pass_quote('Kurlon', 'I')'ve included the patch I used, this covers everything after pulling down the 9.0.1 release tarball and extracting it.

I configured with:
$this->bbcode_second_pass_code('', './configure --disable-neon --disable-necko-wifi --disable-debug-symbols')

Based on the illegal instructions everywhere I almost wonder if some portions are trying to compile as ARMv7?


You should be using mozconfig files. That's probably why you had to run autoconf.

In the file under browser\config\mozconfig add these lines
$this->bbcode_second_pass_code('', 'ac_add_options --enable-application=browser
ac_add_options --disable-necko-wifi
ac_add_options --disable-neon
ac_add_options --disable-debug-symbols')

And then create ".mozconfig" in the mozilla-release and add the following there:
$this->bbcode_second_pass_code('', ' . $topsrcdir/browser/config/mozconfig')
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am
Top

Re: [Help] Compiling Firefox 9.0.1 for/on Pogoplug (armv5)

Postby Kurlon » Mon Jan 30, 2012 5:02 pm

So, forcing -march=armv5 everything sill compiles without error, but running generates invalid instruction errors and bombs out. I wonder if it's something in the JS interpreter that's generating bytecode on the fly and doing so for the wrong arch? Next step is breaking out the debugger I suspect, which is where I'm completely out of my element.

Edit: http://old.nabble.com/Illegal-instructi ... 30987.html seems relevant... :D
Kurlon
 
Posts: 132
Joined: Fri Jan 06, 2012 10:05 pm

Re: [Help] Compiling Firefox 9.0.1 for/on Pogoplug (armv5)

Postby moonman » Tue Jan 31, 2012 12:24 am

Isn't java bytecode platform independent? Only java interpreter

On a side note what happens if you visit a website without any javascrip?
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: [Help] Compiling Firefox 9.0.1 for/on Pogoplug (armv5)

Postby Kurlon » Tue Jan 31, 2012 12:31 am

It works as long as I don't allow autocomplete to work in the addressbar... that seems to trip it up also.
Kurlon
 
Posts: 132
Joined: Fri Jan 06, 2012 10:05 pm

Previous

Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 4 guests