Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gentoo-ppc on a 128 usb stick
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
kdag
Tux's lil' helper
Tux's lil' helper


Joined: 18 Mar 2004
Posts: 139
Location: Switzerland

PostPosted: Fri Sep 09, 2005 12:39 am    Post subject: gentoo-ppc on a 128 usb stick Reply with quote

hi all,

i've seen few HOWTO's on LiveCD remasterization, and few nice pages from other linux distros on howto get your linux on a USB pendrive..

But i havent found yet a step by step guide on getting gentoo-ppc onto a USB memory device.
I have a cruzer mini 128megas that will like to use to cheer up few powerbooks.
if anyone has a good link please let me know.

if anyone wants to explain it in a easy way, just reply on this forum.

thanks,
/KDaG!
_________________
http://soup.znerol.ch
Back to top
View user's profile Send private message
silian87
Advocate
Advocate


Joined: 06 Oct 2003
Posts: 2318
Location: Treviso, Italy

PostPosted: Fri Sep 09, 2005 8:06 am    Post subject: Reply with quote

A few mouth ago I tried to create a ppc-gentoo to boot from my 128MB usb memory, But I was able only to boot yaboot installed on the memory. Probably I did some thing wrong with yaboot config file (I don't know why but I hate yaboot :evil: ).
So I think you have to format the memory with mac-fdisk (yeah, It will be incompatible with pcs), and create a / partition and a little swap. Then you have to put in all the base system, but a entire stage3 is too big, so you have to create your own. I've made this script to help you with the libraries dependencies:

Code:
#!/bin/bash
n_args=0; for destination in "$@"; do let n_args=n_args+1; done
[ ! -d "${destination}" ] && echo "Error: invalid destination!" && exit 1
i=0; for entry in "$@"; do
   let i=i+1
   if [ "${i}" -lt "${n_args}" ]; then
      echo "Copiyng ${entry} and all his libraries:"
      binary=`which ${entry}`; [ "${binary}" = "" ] &&\
      echo "Error: binary ${entry} not found!" && exit 1
      ldd_total=`ldd "${binary}"`
      lines=`echo "${ldd_total}" | grep -c ""`; let lines=lines+1
      l=0; while [ "${l}" -lt "${lines}" ];do
         single_ldd=`echo "${ldd_total}" | head -n "${l}" | tail -n -1`
         set -- ${single_ldd}
         lib_name=${1}
         lib_path=${3}
         [ "${lib_name}" = "/lib/ld-linux.so.2" ] && cp -v "/lib/ld-linux.so.2" "${destination}/lib/ld-linux.so.2"
         lib_path_space=`echo ${lib_path} | sed -e s/[/]/" "/g`
         pre_dir=""
         for dir in ${lib_path_space}; do
            if [ ! "${dir}" = "${lib_name}" ]; then
               if [ ! -d "${destination}${pre_dir}/${dir}" ]; then
                  mkdir -v "${destination}${pre_dir}/${dir}"
               fi
               pre_dir="${pre_dir}/${dir}"
            fi
         done
         if [ ! -e "${destination}${lib_path}" ]; then
            cp -v "${lib_path}" "${destination}${lib_path}"
         fi
         let l=l+1
      done
      binary_space=`echo ${binary} | sed -e s/[/]/" "/g`
      pre_dir=""
      for dir in ${binary_space}; do
         if [ ! "${dir}" = "${entry}" ]; then
            if [ ! -d "${destination}${pre_dir}/${dir}" ]; then
               mkdir -v "${destination}${pre_dir}/${dir}"
            fi
            pre_dir="${pre_dir}/${dir}"
         fi
      done
      if [ ! -e "${destination}${binary}" ]; then
         cp -v "${binary}" "${destination}${binary}"
      fi
   fi
done


You have to use the script in this way:
Code:

./script.sh /mnt/usbmemory/ bash uname nano ...

It will create all directory needed (if I remember right..).

Good Luck :wink:
_________________
Musica che ascolto: http://www.last.fm/user/silian87/

Silian87 FAQs: http://marentax.homelinux.org/~silian87/silian87-faq.txt

GTalk: silian87@gmail.com
Back to top
View user's profile Send private message
kdag
Tux's lil' helper
Tux's lil' helper


Joined: 18 Mar 2004
Posts: 139
Location: Switzerland

PostPosted: Fri Sep 09, 2005 10:27 am    Post subject: Reply with quote

thank you silian87 but, what im looking for is a kind of already minimal gentoo packaged for booting from USB.

like if i say theres a gentoo liveCD minimal ISO.

my hope is to get to the state of having it somewhere to download and phps a way to make it even withouth having a PPC with gentoo installed. i mean that all the steps can be achived using ox's terminal.

so, a good idea will be if someone has done already this packaging plis make it public, with instructions on how to format the USB pendrive from within OS X.

am i dreaming to much?
_________________
http://soup.znerol.ch
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum