Forum: PS3 Linux Discussion - The PS3 Linux Discussion forum contains all the information you are looking for on using Linux on the PS3.


The above video goes away if you are a member and logged in, so log in now!




 
Would you like to get all the new info from
PSX-Scene in your email each day?




Want to learn more about the team keeping you up to date with the latest scene news?

Read about them now!

Check out our Developer bios, too!

 


User Tag List

Thread: Script: auto build and package graf's latest kernel for debian/bootos
  

Page 1 of 4 1 2 3 ... LastLast
Results 1 to 10 of 40
  1. #1 Script: auto build and package graf's latest kernel for debian/bootos 
    user is offline account deleted
    Join Date
    Oct 2010
    Posts
    268
    Downloads
    1
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    1
    Likes Received
    33
    after running this script you should have two deb packages containing binaries of graf's latest kernel. i've tested it on debian (bootos 2.01), ubuntu may work as well.


    make_grafs_kernel.sh
    Code:
    #!/bin/bash
    #
    #	make_grafs_kernel.sh
    #
    #	
    #	download graf chokolo's latest kernel,
    #	compile and create deb packages
    #
    #
    #	Tested on:
    #	PS3 running debian (installed with bootos installer 2.01)
    #
    #	Required packages:
    #	kernel-package libncurses5-dev fakeroot wget bzip2 build-essential
    #	
    #	How to install req. packages:
    #	apt-get install kernel-package libncurses5-dev fakeroot wget bzip2 build-essential
    #
    #	WARNING:
    #	PROVIDED WITHOUT ANY WARRENTY
    
    
    # clean-up
    rm -r linux-2.6-HEAD-*
    
    # get kernel and unpack
    wget -O linux-2.6.tar.gz http://git.dukio.com/gitweb.cgi?p=linux-2.6\;a=snapshot\;h=HEAD\;sf=tgz
    tar xfvz linux-2.6.tar.gz
    rm linux-2.6.tar.gz
    
    # get asbestos patches
    wget -O patch1 http://git.marcansoft.com/?p=ps3-linux.git\;a=patch\;h=09dea663d36503b172cfcf2335cc629b3b90b5e3
    wget -O patch2 http://git.marcansoft.com/?p=ps3-linux.git\;a=patch\;h=4fa7c83d30bb4848416e6dcf7dc991450249527c
    
    # get commit
    TEMP_VER=`ls -l | egrep -n -i 'linux-2.6-head-'`
    COMMIT=${TEMP_VER:(-7)}
    
    # patch
    cd linux-2.6*
    patch -p1 < ../patch1
    patch -p1 < ../patch2
    
    
    # enable ps3dmproxy debugging by hand
    # line to add: CFLAGS_ps3dmproxy.o := -DDEBUG
    #vi drivers/char/Makefile
    
    # clean
    make clean
    make-kpkg clean
    
    # config
    cp /boot/config-`uname -r` ./.config
    make oldconfig
    
    # compile
    fakeroot make-kpkg --initrd --append-to-version=-graf-$COMMIT kernel_image kernel_headers
    INSTALL:

    dpkg -i linux*.deb

    EITHER:
    edit /kboot.conf and reboot if you know what you're doing,
    but don't forget to pass hugepages="1" to your kernel.

    OR use another script:
    make_kboot.sh
    Code:
    #!/bin/bash
    #
    #	WARNING:
    #	ABSOLUTELY NO WARRENTY OR WHATEVER
    #
    
    DEFAULT_BOOT=$(head -1 /kboot.conf)
    DEFAULT_UUID=${DEFAULT_BOOT##*=}
    
    
    IFS="
    "
    for LINE in `cat /kboot.conf`
    do
      if [ "${LINE##*=}" != "$DEFAULT_UUID" ]
      then
      	echo "##### ERROR: MORE THEN ONE UUID IN /kboot.conf"
      	echo "support for one device only, sorry"
      	exit 1
      fi
    done
    
    
    VMLINUX=(`ls /boot/vmlinux* | sort`)
    INITRD=(`ls /boot/initrd.img* | sort`)
    
    CNT=0
    rm kboot.conf
    
    echo "
    ################# MAKE_KBOOT ###################"
    
    while [ "$CNT" -lt "${#VMLINUX[*]}" ]
    do
      VM=${VMLINUX["$CNT"]}
      RD=${VM/\/boot\/vmlinux/initrd.img}
      if [ `echo $VM | egrep -i graf` ]
      then
      	VER=${VM/graf-/}
            VER=${VER/\/boot\/vmlinux/graf}
            echo "$VER=$VM hugepages=\"1\" initrd=$RD root=UUID=$DEFAULT_UUID" >> kboot.conf
            echo "[hugepages]: $VER" 
      else
      	VER=${VM/\/boot\/vmlinux/debian}
            echo "$VER=$VM initrd=$RD root=UUID=$DEFAULT_UUID" >> kboot.conf
            echo "[ default ]: $VER"
      fi
      CNT=`expr $CNT + 1`
    done
    
    if [ "0" -lt "$CNT" ]
    then
    	mv kboot.conf /kboot.conf
    	echo "################################################"
    	echo "[   end   ]: $CNT Kernels written to /kboot.conf
    	     if you want to run another Kernel,
    	     reboot now.
    	     "
    else
    	echo "##### ERROR: KERNEL NOT FOUND"
    	echo "didn't find any kernels in /boot."
    fi
    the new kernel should show up in boot menu of bootos now.

    reboot and check it out.

    another goodie, dmpatch.sh:
    needed on kmeaw's cfw to gain syscon access

    get it from graf's git
    Last edited by user; 03-15-2011 at 09:58 AM. Reason: another make_kboot fix
    Reply With Quote  

  2. #2  
    serag's Avatar
    serag is offline Member
    Join Date
    Nov 2010
    Location
    Canuckistan
    Posts
    45
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    6
    Likes Received
    0
    Thanks for the script user
    Reply With Quote  

  3. #3  
    user is offline account deleted
    Join Date
    Oct 2010
    Posts
    268
    Downloads
    1
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    1
    Likes Received
    33
    @ubuntu/asbestos users:
    could you please test if it works on ubuntu, too?
    Reply With Quote  

  4. #4  
    j4m3s is offline Member
    Join Date
    Dec 2009
    Posts
    113
    Downloads
    1
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    0
    where can i find graf's linux install for 3.41 ofw jb ??
    Reply With Quote  

  5. #5  
    user is offline account deleted
    Join Date
    Oct 2010
    Posts
    268
    Downloads
    1
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    1
    Likes Received
    33
    Quote Originally Posted by j4m3s View Post
    where can i find graf's linux install for 3.41 ofw jb ??
    you can try marcan's asbestos hex. unfortunately it supports netboot only.
    Last edited by user; 03-09-2011 at 11:30 AM.
    Reply With Quote  

  6. #6  
    dingoo is offline Member
    Join Date
    Oct 2010
    Posts
    73
    Downloads
    1
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    6
    Likes Received
    0
    so i make a script file and run it (copying and pasting the 1st box) then do the install command after?
    Reply With Quote  

  7. #7  
    user is offline account deleted
    Join Date
    Oct 2010
    Posts
    268
    Downloads
    1
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    1
    Likes Received
    33
    Quote Originally Posted by dingoo View Post
    so i make a script file and run it (copying and pasting the 1st box) then do the install command after?
    yes you can, if you have the following packages installed:
    kernel-package libncurses5-dev fakeroot wget bzip2 build-essential
    Reply With Quote  

  8. #8  
    dingoo is offline Member
    Join Date
    Oct 2010
    Posts
    73
    Downloads
    1
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    6
    Likes Received
    0
    ok cheers got ya
    Reply With Quote  

  9. #9  
    barnhilltrckn is offline Member
    Join Date
    Sep 2009
    Posts
    268
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    5
    Likes Received
    11
    OK well i finally got around to installing bootos2.01 last night but i have a problem now. When i go back to run linux i see no other option under the lv2 patcher other than the one to install.

    I installed it on my 500gb usb hdd but it will not let me boot from it, it only wants to install again.

    I know it is installed because i can access the drive through windows using Diskinternals linux reader and everything is there as it should be.

    I dont know it there is something i am missing but i really would rather not re-install because my internet is kinda slow. Thanks.
    Reply With Quote  

  10. #10  
    user is offline account deleted
    Join Date
    Oct 2010
    Posts
    268
    Downloads
    1
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    1
    Likes Received
    33
    Quote Originally Posted by barnhilltrckn View Post
    OK well i finally got around to installing bootos2.01 last night but i have a problem now. When i go back to run linux i see no other option under the lv2 patcher other than the one to install.

    I installed it on my 500gb usb hdd but it will not let me boot from it, it only wants to install again.

    I know it is installed because i can access the drive through windows using Diskinternals linux reader and everything is there as it should be.

    I dont know it there is something i am missing but i really would rather not re-install because my internet is kinda slow. Thanks.
    please post your /kboot.conf
    Reply With Quote  

Page 1 of 4 1 2 3 ... LastLast
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •