You must mount the ps3dd1 partition first:
I'm going to the bed. It occurs any problem, I will help you tomorrow :).Code:mkdir /mnt/ubuntu
mount /dev/ps3dd1 /mnt/ubuntu
Regards
Printable View
Hi. I almost finished copying of Kernel, but I got stuck.
So here what I did:
Started Petitboot and exited to Shell:
Here what I type:
umount /dev/ps3dd1
mkdir /mnt/ubuntu
mount /dev/ps3dd1 /mnt/ubuntu
Now I am connecting USB-Stick to ps3 and wait 5 seconds until it Automatically mounts USB-Stick to /tmp/petitboot/mnt/sda1 ...
Now I type:
cd /tmp/petitboot/mnt/sda1
ls
It shows my file on USB-Stick ;
Now I am trying to copy Kernel:
cp linux-3.6.4-build/boot/vmlinux-3.6.4 /mnt/ubuntu/boot/
cp linux-3.6.4-build/boot/System.map-3.6.4 /mnt/ubuntu/boot/
cp -r linux-3.6.4-build/lib/modules/3.6.4 /mnt/ubuntu/lib/modules/
All goes well I copied those files...
But when I type:
depmod -a 3.6.4
It says--- /bin/ash: depmod: not found
So what do I do next?
Looks that it worked.
chroot it is command to change root directory? Looks that we changed root dir from sda1 to Ubuntu dir?
Actually it is ASH---which does not have dpmod? Dpmod is present on Ubuntu according to guide?
Ok , it all worked..
So what do we do next according to guide ?
Now we have to edit kboot.conf ???
Cool...:)
So this is what left to do:
Code:- Creating kboot.conf
1. ls /boot/
(After running ls /boot/, look for vmlinux... in this directory, and user it's fiel name in the next commmand.)
2. edit kboot.conf and replace what you see for > vmlinux-2.6.* from below (example. vmlinux-2.6.38-gf77c53d)
File /etc/kboot.conf
---------------------
Ubuntu=/boot/vmlinux-2.6.* root=/dev/ps3dd2
Ubuntu_hugepages=/boot/vmlinux-2.6.* root=/dev/ps3dd2 hugepages=1
- Creating /dev/ps3flash device (needed for ps3-utils)
File /etc/udev/rules.d/70-persistent-ps3flash.rules
----------------------------------------------------
KERNEL=="ps3vflashf", SYMLINK+="ps3flash"
How do I find similar number---- vmlinux-2.6.38-gf77c53d in my Kernel?
If I type chroot /mnt/ubuntu ls /boot/
It says System.map-3.6.4 vmlinux-3.6.4
The kboot.conf file must contain this:
Edited:Code:Ubuntu=/boot/vmlinux-3.6.4 root=/dev/ps3dd1
Ubuntu_hugepages=/boot/vmlinux-3.6.4 root=/dev/ps3dd1 hugepages=1
Ummm I don't remember if this kernel has a initrd.img-3.6.4 file on /boot...
If this file exists, you must copy it to /mnt/Ubuntu/boot/
and the kboot.conf file must contain this:Code:cp linux-3.6.4-build/boot/initrd.img-3.6.4 /mnt/ubuntu/boot/
If the initrd.img-3.6.4 doesn't exist you don't need to do this edited last steps.Code:Ubuntu=/boot/vmlinux-3.6.4 initrd=/boot/initrd.img-3.6.4 root=/dev/ps3dd1
Ubuntu_hugepages=/boot/vmlinux-3.6.4 initrd=/boot/initrd.img-3.6.4 root=/dev/ps3dd1 hugepages=1
So then I type from Petitboot this:
chroot /mnt/ubuntu nano /etc/kboot.conf
and add those lines:
Ubuntu=/boot/vmlinux-3.6.4 root=/dev/ps3dd1
Ubuntu_hugepages=/boot/vmlinux-3.6.4 root=/dev/ps3dd1 hugepages=1
????????
Actually what means Ubuntu hugepages? Why we need it here?
Ok created kboot.
Now this one :
Creating /dev/ps3flash device (needed for ps3-utils)
So I have to type
chroot /mnt/ubuntu nano /etc/udev/rules.d/70-persistent-ps3flash.rules
and add those lines:
KERNEL=="ps3vflashf", SYMLINK+="ps3flash"
????????????????????????????????????????????
I did not find in extracted folder on my PC in folder /boot any initrd.... But can kernel work without initrd?????
there are only such files in boot foldr:
vmlinux-3.6.4
System.map-3.6.4
config-3.6.4