Editing Fedora28 kernel hardening, general installation, rpm building

Jump to navigation Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 276: Line 276:
  dnf build-dep kernel
  dnf build-dep kernel


<br />cd ps4-linux
cd ps4-linux
<br />cp -rf .config .                              
cp -rf config                               
optional          @EOF  be sure to adjust embedded initramfs with the kernel as necessary or as a seperate initramfs


* optional          @EOF  be sure to adjust embedded initramfs with the kernel as necessary or as a seperate initramfs          EOF -> .config


cp ps4-custom-kernel.config to .config


make menuconfig
make menuconfig
Line 286: Line 287:
   
   


* pulled from another site for decompressing /  compressing the initramfs.img
pulled from another site for decompressing /  compressing the initramfs.img


* to extract initramfs.img to folder for kernel embedded compile     
to extract initramfs.img to folder for kernel embedded compile     
lsinitrd initramfs.img
lsinitrd initramfs.img
mkdir initramfs-extract         
mkdir initramfs-extract         


* this full path directory is specified in the kernel config, via make menuconfig to embed the initramfs as part of the  
this full path directory is specified in the kernel config, via make menuconfig to embed the initramfs as part of the  
* kernel with make bzImage
kernel with make bzImage


cd initramfs-extract
cd initramfs-extract
Line 303: Line 304:
cd ..
cd ..


* (back in ps4-linux top level folder)
(back in ps4-linux top level folder)


* -j for concurrency of cores


<br />make -j8 bzImage
<br />make -j8 bzImage
Line 313: Line 312:




exit                      (to exit the chroot environment)
exit                      (to exit the chroot environment)


* remove mount points
remove mount points


umount /mnt/ps4/dev
umount /mnt/ps4/dev
Please note that all contributions to PS4 Developer wiki are considered to be released under the GNU Free Documentation License 1.2 (see PS4 Developer wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following hCaptcha:

Cancel Editing help (opens in new window)