Uploaded image for project: 'Funtoo Linux'
  1. Funtoo Linux
  2. FL-9968

Add powerpc (G4) support to fchroot

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Normal Normal
    • None
    • None
    • None

      Please, include support to powerpc (32bits) on fchroot.

       

      We need change use to enable QEMU_SOFTMMU_TARGETS=ppc and QEMU_USER_TARGETS=ppc with:

      >=app-emulation/qemu-6.2.0-r3 qemu_user_targets_aarch64 qemu_user_targets_arm qemu_user_targets_riscv64 static-user qemu_user_targets_ppc64 qemu_user_targets_ppc qemu_softmmu_targets_ppc
      

       

      I have successfully built boostrap using FFS optimized for PowerPC-G4 (PPC 74xx) PPC 7450 family Compatible processors are Motorola/Freescale MPC7450, MPC7440, MPC7451, MPC7441, MPC7455, MPC7445, MPC7457, MPC7447, MPC7447/A and MPC7448.

       

      I used the following steps:

      1- I created this yaml file on ~/ffs/profiles/gnu/arches/powerpc.yaml:

      arch:
        cflags: -mcpu=7450 -O2 -maltivec -mabi=altivec -fno-strict-aliasing -pipe
        arch: powerpc
        musl_lib_arch: powerpc
        target: powerpc-unknown-linux-gnu
        notes: |
          NOTE:  optimized to cpu G4 (PPC 74xx) PPC 7450 family Compatible processors are Motorola/Freescale MPC7450, MPC7440, MPC7451, MPC7441, MPC7455, MPC7445, MPC7457, MPC7447, MPC7447/A, and MPC7448.
      

       

      2- I needed to alter the versions of some software in the FFS gnu since musl was not able to build the GCC for this architecture on file ~/ffs/profiles/gnu/sources.yaml:

      • gcc-12.1.0
      • glibc-2.35
      • diffutils-2.38

       

      3- I built a complete native toolchain and starter environment with gnu libc:

      user $ sudo emerge -v pyyaml jinja
      user $ git clone https://code.funtoo.org/bitbucket/scm/core/ffs.git
      user $ cd ffs
      user $ bin/sourcer gnu fetch
      user $ bin/builder gnu powerpc cross_tools
      user $ bin/builder powerpc tools
      

      Work like a charm! Thanks drobbins for creating this fantastic tool that is FFS

            drobbins drobbins
            coffnix coffnix
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: