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
INSTALL: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
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
the new kernel should show up in boot menu of bootos now.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
reboot and check it out.
another goodie, dmpatch.sh:
needed on kmeaw's cfw to gain syscon access
get it from graf's git


LinkBack URL
About LinkBacks




