Firefox 3.6 PPC

If you are new to YDL and have some more or less basic questions.

Re: Firefox 3.6 PPC

Postby Nobody » 01 Nov 2010, 06:47

ppietro wrote:Hi everyone,

Just put a build of Firefox 3.6.11 on my server:
firefox-3.6.11.en-US.linux-powerpc.tar.bz2

You guys know the drill - enjoy!

Cheers,
Paul



may i ask what is this.... Firefox 3.6.11?

and whats the drill?
NEED TO:2make ydl 6 like ps3webbrowser,but wit more computer capabilities. HELP IS NEEDED

Mozilla/5.0 (X11; U; Linux ppc64; en-US; rv:1.9.0.6) Gecko/2009020516 YellowDog/3.0.6-1.ydl6.1 Firefox/3.0.6
User avatar
Nobody
ydl lover
ydl lover
 
Posts: 64
Joined: 09 Aug 2010, 13:03
Location: Honolulu, H1

Re: Firefox 3.6 PPC

Postby ppietro » 01 Nov 2010, 08:24

Nobody wrote:may i ask what is this.... Firefox 3.6.11?

and whats the drill?


We're doing developer builds of Firefox from the latest source code. If you're really comfortable with Linux, these are ready to use, but they're not in nice installer packages and require some system administration knowledge to properly install and use.

And - before you ask - I'm not writing up a step-by-step guide for these. :D I did post a simple guide here in this very thread:
viewtopic.php?f=4&t=7285&start=30#p37998

If someone else wants to jump in here with a more detailed guide - great - go for it! - but I'm too time limited to explain further. It's all I can do just to build 'em.

Hopefully, someone will add these to the ps3bodega repos soon, so that other folks can use them.

Oh - and - yes - I'm starting a build of 3.6.12 as I type this. I should have that up tonight. More soon.

Cheers,
Paul
User avatar
ppietro
Site Admin
Site Admin
 
Posts: 4965
Joined: 13 Sep 2007, 22:18

Re: Firefox 3.6 PPC

Postby ppietro » 01 Nov 2010, 10:25

ppietro wrote:Oh - and - yes - I'm starting a build of 3.6.12 as I type this. I should have that up tonight. More soon.


And - it's up!

firefox-3.6.12.en-US.linux-powerpc.tar.bz2

Cheers,
Paul
User avatar
ppietro
Site Admin
Site Admin
 
Posts: 4965
Joined: 13 Sep 2007, 22:18

Re: Firefox 3.6 PPC

Postby aguilarojo » 02 Nov 2010, 01:25

ppietro wrote:
otakusupreme wrote:ok so could someone make a howto for this cause i am stupid and a little step by step would be helpful in this area, thanks.


What are you stuck on? Installing Firefox 3.6 or installing personas?

If you are stuck on installing Firefox 3.6, here's what to do:

1. Download Firefox to your desktop:
firefox-3.6.3.en-US.linux-powerpc.tar.bz2

2. Open a terminal window.

3. Execute this command from a terminal window:
cd ~/Desktop
bzip2 -dc firefox-3.6.3.en-US.linux-powerpc.tar.bz2 | tar -xvf -


3. Switch to root user with the su command
su

4. Move the resultant firefox folder to /usr/local:
mv firefox /usr/local

5. Create a symbolic link to the firefox starter in /usr/local/bin
ln -s /usr/local/firefox/firefox /usr/local/bin

6. Exit out of root:
exit

7. Start Firefox from the command line once:
firefox

That's it! Your firefox icon will now launch 3.6.3 instead of the Firefox you have installed. Don't uninstall your old one. There are plugins and such that the new one will use.

Cheers,
Paul


Works as posted perfectly!! Of course, I did a variation. I used sudo instead, no need to go back and forth between root and user mode. :mrgreen:

Ok, call me evil.

Any work being done on considering the next browser to use after Mozilla switches to 4? Remember, there won't be any PowerPC variants available from Mozilla after they move to version 4 of Firefox.

Everything on the Earth has a purpose.
Every disease an herb to cure it.
And every person has a mission.
This is the Indian Theory of Existence.
-- Morning Dove, Salish (1888-1936)
User avatar
aguilarojo
ydl guru
ydl guru
 
Posts: 227
Joined: 06 May 2009, 14:50
Location: New York City

Re: Firefox 3.6 PPC

Postby ppietro » 06 Jan 2011, 23:16

Could it be? Yes it is! A new build of Firefox:

firefox-3.6.13.en-US.linux-powerpc.tar.bz2

Hopefully, this won't crash my web server. Oh - yeah - the web server is my PS2. :D

Cheers,
Paul
User avatar
ppietro
Site Admin
Site Admin
 
Posts: 4965
Joined: 13 Sep 2007, 22:18

Re: Firefox 3.6 PPC

Postby ppietro » 07 Jan 2011, 07:20

ppietro wrote:Hopefully, this won't crash my web server. Oh - yeah - the web server is my PS2. :D


My web server is temporarily down. It didn't crash - I need all of my DSL bandwidth for a work-related thingy. It'll be back up in about 10 minutes.

EDIT: Yup - it's up and running now. :D

Cheers,
Paul
User avatar
ppietro
Site Admin
Site Admin
 
Posts: 4965
Joined: 13 Sep 2007, 22:18

Re: Firefox 3.6 PPC

Postby danimoth » 18 Jan 2011, 00:14

pwall wrote:You will need to add the following line to your mozconfig file.
Code: Select all
ac_add_options --disable-ipc

In Firefox 3.6.4 IPC crash protection was introduced based on Chromium source code. As far as I know Chromium doesn't support the PowerPC architecture.
Hopefully that fixes it for you.
Pat



Hi,

I wrote this little patch this afternoon. It adds atomics operation to the ipc part of firefox (and could be ported in Chrome too).
I need an hand to check code into data_pack.cc, to make it endianness-indepentent (maybe you could have a contact of Chrome/Mozilla developers, which I think in 5 minutes could fix it).

Code: Select all
diff -Nur mozilla-1.9.2/ipc/chromium/src//base/atomicops.h mozilla-1.9.2/ipc/chromium/src//base/atomicops.h
--- mozilla-1.9.2/ipc/chromium/src//base/atomicops.h   2010-12-03 16:48:04.000000000 +0100
+++ mozilla-1.9.2/ipc/chromium/src//base/atomicops.h   2011-01-17 19:01:13.000000000 +0100
@@ -132,6 +132,8 @@
 #include "base/atomicops_internals_x86_gcc.h"
 #elif defined(COMPILER_GCC) && defined(ARCH_CPU_ARM_FAMILY)
 #include "base/atomicops_internals_arm_gcc.h"
+#elif defined(COMPILER_GCC) && defined(ARCH_CPU_PPC_FAMILY)
+#include "base/atomicops_internals_ppc_gcc.h"
 #else
 #error "Atomic operations are not supported on your platform"
 #endif
diff -Nur mozilla-1.9.2/ipc/chromium/src//base/atomicops_internals_ppc_gcc.h mozilla-1.9.2/ipc/chromium/src//base/atomicops_internals_ppc_gcc.h
--- mozilla-1.9.2/ipc/chromium/src//base/atomicops_internals_ppc_gcc.h   1970-01-01 01:00:00.000000000 +0100
+++ mozilla-1.9.2/ipc/chromium/src//base/atomicops_internals_ppc_gcc.h   2011-01-17 19:42:29.000000000 +0100
@@ -0,0 +1,166 @@
+// Copyright (c) 2010 JJDaNiMoTh <jjdanimoth@gmail.com>. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// This file is an internal atomic implementation, use base/atomicops.h instead.
+
+#ifndef BASE_ATOMICOPS_INTERNALS_PPC_GCC_H_
+#define BASE_ATOMICOPS_INTERNALS_PPC_GCC_H_
+#define ATOMICOPS_COMPILER_BARRIER() __asm__ __volatile__("" : : : "memory")
+
+#define __stringify_in_c(...) #__VA_ARGS__
+#define stringify_in_c(...)   __stringify_in_c(__VA_ARGS__) " "
+
+#define FTR_ENTRY_OFFSET        .long
+#define START_LWSYNC_SECTION(label)     label##1:
+#define MAKE_LWSYNC_SECTION_ENTRY(label, sect)          \
+label##2:                                               \
+        .pushsection sect,"a";                          \
+        .align 2;                                       \
+label##3:                                               \
+        FTR_ENTRY_OFFSET label##1b-label##3b;           \
+        .popsection;
+
+
+#define __PPC_ACQUIRE_BARRIER                           \
+   START_LWSYNC_SECTION(97);                       \
+   isync;                                          \
+MAKE_LWSYNC_SECTION_ENTRY(97, __lwsync_fixup);
+#define PPC_ACQUIRE_BARRIER     "\n" stringify_in_c(__PPC_ACQUIRE_BARRIER)
+#define PPC_RELEASE_BARRIER     stringify_in_c(LWSYNC) "\n"
+
+namespace base {
+namespace subtle {
+
+// 32-bit low-level operations on any platform.
+
+/*
+ * Compare and exchange - if *ptr == old, set it to new,
+ * and return the old value of *p.
+ */
+inline Atomic32 NoBarrier_CompareAndSwap(volatile Atomic32* ptr,
+                                         Atomic32 old_value,
+                                         Atomic32 new_value) {
+   Atomic32 prev;
+
+   __asm__ __volatile__ (
+   "1: lwarx   %0,0,%2\n"
+   "cmpw    0,%0,%3\n"
+   "bne-    2f\n"
+   "stwcx.  %4,0,%2\n"
+   "bne-    1b\n"
+   "2:\n"
+   : "=&r" (prev), "+m" (*ptr)
+   : "r" (ptr), "r" (old_value), "r" (new_value)
+   : "cc", "memory");
+
+   return prev;
+}
+
+/*
+* Atomic exchange
+*
+* Changes the memory location '*ptr' to be new_value and returns
+* the previous value stored there.
+*/
+inline Atomic32 NoBarrier_AtomicExchange(volatile Atomic32* ptr,
+                                         Atomic32 new_value) {
+        Atomic32 prev;
+
+        __asm__ __volatile__(
+"1:     lwarx   %0,0,%2 \n"
+"       stwcx.  %3,0,%2 \n\
+        bne-    1b"
+        : "=&r" (prev), "+m" (*ptr)
+        : "r" (ptr), "r" (new_value)
+        : "cc", "memory");
+
+        return prev;
+}
+
+inline Atomic32 NoBarrier_AtomicIncrement(volatile Atomic32* ptr,
+                                          Atomic32 increment) {
+        Atomic32 temp;
+
+        __asm__ __volatile__(
+"1:     lwarx   %0,0,%2\n\
+        add     %0,%1,%0\n"
+"       stwcx.  %0,0,%2 \n\
+        bne-    1b"
+        : "=&r" (temp)
+        : "r" (increment), "r" (ptr)
+        : "cc", "memory");
+
+        return temp;
+}
+
+inline Atomic32 Barrier_AtomicIncrement(volatile Atomic32* ptr,
+                                        Atomic32 increment) {
+        Atomic32 temp;
+
+        __asm__ __volatile__(
+   PPC_RELEASE_BARRIER
+"1:     lwarx   %0,0,%2\n\
+        add     %0,%1,%0\n"
+"       stwcx.  %0,0,%2 \n\
+        bne-    1b"
+        PPC_ACQUIRE_BARRIER
+        : "=&r" (temp)
+        : "r" (increment), "r" (ptr)
+        : "cc", "memory");
+
+        return temp;
+}
+
+inline Atomic32 Acquire_CompareAndSwap(volatile Atomic32* ptr,
+                                       Atomic32 old_value,
+                                       Atomic32 new_value) {
+  return NoBarrier_CompareAndSwap(ptr, old_value, new_value);
+}
+
+inline Atomic32 Release_CompareAndSwap(volatile Atomic32* ptr,
+                                       Atomic32 old_value,
+                                       Atomic32 new_value) {
+  return NoBarrier_CompareAndSwap(ptr, old_value, new_value);
+}
+
+inline void NoBarrier_Store(volatile Atomic32* ptr, Atomic32 value) {
+  *ptr = value;
+}
+
+inline void MemoryBarrier() {
+  __asm__ __volatile__("sync" : : : "memory");
+}
+
+inline void Acquire_Store(volatile Atomic32* ptr, Atomic32 value) {
+  *ptr = value;
+  MemoryBarrier();
+}
+
+inline void Release_Store(volatile Atomic32* ptr, Atomic32 value) {
+  MemoryBarrier();
+  *ptr = value;
+}
+
+inline Atomic32 NoBarrier_Load(volatile const Atomic32* ptr) {
+  return *ptr;
+}
+
+inline Atomic32 Acquire_Load(volatile const Atomic32* ptr) {
+  Atomic32 value = *ptr;
+  MemoryBarrier();
+  return value;
+
+}
+
+inline Atomic32 Release_Load(volatile const Atomic32* ptr) {
+  MemoryBarrier();
+  return *ptr;
+}
+
+} // namespace base::subtle
+} // namespace base
+
+#undef ATOMICOPS_COMPILER_BARRIER
+
+#endif  // BASE_ATOMICOPS_INTERNALS_PPC_GCC_H_
diff -Nur mozilla-1.9.2/ipc/chromium/src//base/data_pack.cc mozilla-1.9.2/ipc/chromium/src//base/data_pack.cc
--- mozilla-1.9.2/ipc/chromium/src//base/data_pack.cc   2010-12-03 16:48:05.000000000 +0100
+++ mozilla-1.9.2/ipc/chromium/src//base/data_pack.cc   2011-01-17 20:27:01.000000000 +0100
@@ -91,15 +91,7 @@
 bool DataPack::Get(uint32_t resource_id, StringPiece* data) {
   // It won't be hard to make this endian-agnostic, but it's not worth
   // bothering to do right now.
-#if defined(__BYTE_ORDER)
-  // Linux check
-  COMPILE_ASSERT(__BYTE_ORDER == __LITTLE_ENDIAN,
-                 datapack_assumes_little_endian);
-#elif defined(__BIG_ENDIAN__)
-  // Mac check
-  #error DataPack assumes little endian
-#endif
-
+#warning DoTheRightThingMakingThisEndianAgnostic!
   DataPackEntry* target = reinterpret_cast<DataPackEntry*>(
       bsearch(&resource_id, mmap_->data() + kHeaderLength, resource_count_,
               sizeof(DataPackEntry), DataPackEntry::CompareById));
diff -Nur mozilla-1.9.2/ipc/chromium/src//base/debug_util_posix.cc mozilla-1.9.2/ipc/chromium/src//base/debug_util_posix.cc
--- mozilla-1.9.2/ipc/chromium/src//base/debug_util_posix.cc   2010-12-03 16:48:05.000000000 +0100
+++ mozilla-1.9.2/ipc/chromium/src//base/debug_util_posix.cc   2011-01-17 20:01:22.000000000 +0100
@@ -108,8 +108,10 @@
 
 // static
 void DebugUtil::BreakDebugger() {
-#if !defined(ARCH_CPU_ARM_FAMILY)
+#if !defined(ARCH_CPU_ARM_FAMILY) && !defined(ARCH_CPU_PPC_FAMILY)
   asm ("int3");
+#elif defined(ARCH_CPU_PPC_FAMILY)
+  // use the twi instruction..
 #endif
 }
 
diff -Nur mozilla-1.9.2/ipc/chromium/src//build/build_config.h mozilla-1.9.2/ipc/chromium/src//build/build_config.h
--- mozilla-1.9.2/ipc/chromium/src//build/build_config.h   2010-12-03 16:48:05.000000000 +0100
+++ mozilla-1.9.2/ipc/chromium/src//build/build_config.h   2011-01-17 19:01:13.000000000 +0100
@@ -57,6 +57,8 @@
 #define ARCH_CPU_ARMEL 1
 #define ARCH_CPU_32_BITS 1
 #define WCHAR_T_IS_UNSIGNED 1
+#elif defined(__powerpc__) || defined(__POWERPC__)
+#define ARCH_CPU_PPC_FAMILY 1
 #else
 #error Please add support for your architecture in build/build_config.h
 #endif


Build fine here.
danimoth
ydl newbie
ydl newbie
 
Posts: 1
Joined: 18 Jan 2011, 00:09

Re: Firefox 3.6 PPC

Postby ppietro » 20 Jan 2011, 07:47

Hi everyone,

I think I found some SRPMs for Firefox 3.6.13 and the corresponding xulrunner. If I can build the RPMs, I'll let you guys know.

That would supersede my 3.6 binary builds and could be installed via YUM.

Watch this space for updates.

Cheers,
Paul
User avatar
ppietro
Site Admin
Site Admin
 
Posts: 4965
Joined: 13 Sep 2007, 22:18

Re: Firefox 3.6 PPC

Postby ppietro » 20 Jan 2011, 21:52

ppietro wrote:I think I found some SRPMs for Firefox 3.6.13 and the corresponding xulrunner. If I can build the RPMs, I'll let you guys know.


And - it's done. I'm running it right now.

billb - I'll send you a link so that you can add the RPMs to ps3bodega.

Everyone else - that means I'm taking down the links I provided in this thread. You should run the RPM version instead. :D

Cheers,
Paul
User avatar
ppietro
Site Admin
Site Admin
 
Posts: 4965
Joined: 13 Sep 2007, 22:18

Re: Firefox 3.6 PPC

Postby billb » 21 Jan 2011, 04:55

Thanks Paul -- I've updated PS3Bodega with your Firefox 3.6.13 build and everything seems to have gone smoothly with the upgrade. Also, this fixes the issue I was having logging in to my bank. :D
PS3 60GB [CECHA01], FW 3.15, YDL 6.2, Samsung T260HD @ 1920x1200
Powermac G4 1.25 GHz x2, 2 GB RAM, YDL 6.2
User avatar
billb
Site Admin
Site Admin
 
Posts: 5522
Joined: 24 May 2007, 20:30
Location: Eastern NC, USA

Re: Firefox 3.6 PPC

Postby ppietro » 06 Apr 2011, 23:17

Hi everyone,

I'm working on getting a build of Firefox 3.6.15. Normally, I'd pull the SRPMs from CentOS - but they've included it in 5.6, and that hasn't been fully copied up to the mirrors yet.

So - I poked around RHEL's mirrors and found it. I'm not sure if these (firefox & xulrunner) SRPMs will build, but I'll give it a shot, and let you know.

Cheers,
Paul
User avatar
ppietro
Site Admin
Site Admin
 
Posts: 4965
Joined: 13 Sep 2007, 22:18

Re: Firefox 3.6 PPC

Postby ppietro » 08 Apr 2011, 03:20

ppietro wrote:So - I poked around RHEL's mirrors and found it. I'm not sure if these (firefox & xulrunner) SRPMs will build, but I'll give it a shot, and let you know.


And - it built great. :) Using it right now, in fact.

billb - I'll send you a link to the RPMs for ps3bodega.

Cheers,
Paul
User avatar
ppietro
Site Admin
Site Admin
 
Posts: 4965
Joined: 13 Sep 2007, 22:18

Re: Firefox 3.6 PPC

Postby billb » 12 Apr 2011, 03:01

Thanks Paul -- the update is now available on ps3bodega for YDL 6.2. :)
PS3 60GB [CECHA01], FW 3.15, YDL 6.2, Samsung T260HD @ 1920x1200
Powermac G4 1.25 GHz x2, 2 GB RAM, YDL 6.2
User avatar
billb
Site Admin
Site Admin
 
Posts: 5522
Joined: 24 May 2007, 20:30
Location: Eastern NC, USA

Re: Firefox 3.6 PPC

Postby ppietro » 10 May 2011, 19:00

Hi everyone,

In better news (for me anyway) - my build of Firefox 3.6.17 for ppc is done. billb - I'll send you the links to the RPMs.

Cheers,
Paul
User avatar
ppietro
Site Admin
Site Admin
 
Posts: 4965
Joined: 13 Sep 2007, 22:18

Re: Firefox 3.6 PPC

Postby CronoCloud » 11 May 2011, 16:58

ppietro wrote:Hi everyone,

In better news (for me anyway) - my build of Firefox 3.6.17 for ppc is done. billb - I'll send you the links to the RPMs.

Cheers,
Paul


Paul, you're only like a few days behind Fedora x86 in getting those builds out. Even though I don't use Linux on my PS3 (@#$#), I appreciate the work that you do.

Ron Rogers Jr. (CronoCloud)
CECHE01 PS3 (MGS4 80GB Bundle) without OtherOS and with an upgraded 320GB HD
Running Fedora 23 on a Compaq Presario CQ5320F upgraded with a Phenom X4 and GT640
Vizio E221A1 22" 1080P TV with HDMI, using 1080P over HDMI
PSN ID: CronoCloudAuron
User avatar
CronoCloud
Moderator
Moderator
 
Posts: 523
Joined: 21 Oct 2006, 05:48
Location: Central Illinois, USA

PreviousNext

Return to Beginner

Who is online

Users browsing this forum: No registered users and 4 guests