PS3 Halp! Dev_flash

@Berion UFS module is Linux is still experimental, especially with write support.
@Iridule Grab here. you must translate it. instead of cloning repo use /usr/src/linux folder. after compilation module unload old module by sudo rmmod ufs
@DUDUŚ
I cannot find any config .gz file in /proc/ ...I am somewhat new to linux and am stuck on this step."
zcat /proc/config.gz >.config" I tried modprobe configs but says there is no module.
cat /boot/config-$(uname -r) | grep -i ikconfig says....
# CONFIG_IKCONFIG is not set


ufserr.png
 
Last edited:
@GuilloteTesla Since I started use Linux it always was rw by default. NTFS is supported by fuse I believe, by ntfs3g.

@Iridule Those instructions are for Ubuntu for WSL2 on Windows. On Mint config is unpacked and placed in /boot. Config is not a module but text file, it is settings file for kernel compiling options.
 
@GuilloteTesla Since I started use Linux it always was rw by default. NTFS is supported by fuse I believe, by ntfs3g.

@Iridule Those instructions are for Ubuntu for WSL2 on Windows. On Mint config is unpacked and placed in /boot. Config is not a module but text file, it is settings file for kernel compiling options.
@Berion @DUDUŚ
I can't seem to find the .config file in boot either. I found a .config under /src/linux and tried to edit but have come across an error. I tried to use make menuconfig and enable .config through /proc/ but got stuck as I can't get the options to reflect any change. :/
err2.png

err.png
 
Evidently simply updating the config file in linux requires rebuilding the entire kernel. :/
I've been trying to figure this out for days. I have found many guides with multiple ways to seemingly do the same things. I have tried getting the proper source for linux 5.4.0.
this seems overly complex just to update a configuration file. This orig.tar.gz file will not work. I had found another linux-5.4.0 called linux-5.4.91...on the plus side I found the balloc.o file needed, i've seen it scroll past 40 times now....:D
Trying to follow this guide https://forums.linuxmint.com/viewtopic.php?t=135530
I have gotten as far as getting grub to show the kernel yet when i try to load it will stay at loading "initramfs" blinking cursor forever and never load which keeps me retrying the same things in so many ways nothing is working. Takes like 45 minutes each time after
make CONFIG_DEBUG_SECTION_MISMATCH=y -j 8
just to see if it's going to work. :/
isn't the command cp /boot/config-`uname -r` ./.config
supposed to retain my current kernel settings? I thought I should be able to run that before menuconfig then make ---> make modules_install ---> install kernel and reboot? But evidently not
I'm doing something wrong...

kernelhell.png
kernelhell2.png
kernelhell3.png
kernelhell4.png
 
Last edited:
@DUDUŚ is it supposed to be this complicated to get this ufs module to work?... I've compiled a new kernel to be able to follow the directions on the page you gave me. Yet when all is done the only successful part seems to be that it shows up in grub because it gets stuck loading initial ramdisk. I thought if I had the .config from /boot in the kernel source directory it would keep all of my current setting? Linux can be so frustrating ... 8 hours straight I've been staring at this... I even found a book on the matter.https://www.oreilly.com/library/view/linux-kernel-in/0596100795/
I don't understand what went wrong during this process.

IMG_20230125_114859187.jpg
 
don't `make install` or `make modules_install`, you simply need compiled ufs.ko.. so now u can reinstall the os or in grub select old official kernel, after successfull compilation do `sudo rmmod ufs&&find /usr/src/linux -name "ufs.ko" |xargs -n 1 sudo insmod&&lsmod ufs`
 
Config in any debian-like os always is enabled through /proc/config.gz or /boot/config-blah-blah-blah w/o dot at start of file name
I am starting to understand more and now that I have spent so much resource and time I may just build a new kernel eventually. So for this UFS module. When I follow the directions on the page it adds some lines of code at the end of the current config file only after i change ".config" to "config.<kernel version> then that I can see in vim adding the few lines of code to the bottom. otherwise it just creates random useless .config files...so After that code is written to the proper .config I can just run make oldconfig then make -j4 M=fs/ufs modules and the ufs module should load with write permissions? Also I don't have a Linux folder under /src only various kernel versions I have been messing with and my generic versions.


ufs1.png
ufs2.png
 
I remember now why I began trying to compile the kernel in the first place. I get this error.
This specific error from last screen, comes from lack of source code. It seems kernel source which You have is not full.

And yeah, it is frustrating as f* for someone who are not familiar with kernel etc. (so me included too). Personally I gave up. :P Maybe I'm near to success because for me modules compile but still I getting not rw permission so my config is ignored for some reason I believe. But since I don't have time for that and making me angry each evening I spend on it, I just letting it go. At least for a while. If You are patient, I will release updated scripts, including PS3 KO Compiller which at least save You half headache. :D
 
This specific error from last screen, comes from lack of source code. It seems kernel source which You have is not full.

And yeah, it is frustrating as f* for someone who are not familiar with kernel etc. (so me included too). Personally I gave up. :P Maybe I'm near to success because for me modules compile but still I getting not rw permission so my config is ignored for some reason I believe. But since I don't have time for that and making me angry each evening I spend on it, I just letting it go. At least for a while. If You are patient, I will release updated scripts, including PS3 KO Compiller which at least save You half headache. :D
I'll be patient I'm always up for any updates. I'm going to figure out how to compile this kernel I think if I can do that properly I can get this module to work I had ufs.ko compiled I think but only in a temporary directory even then it wouldn't let me load it it said it was invalid module format.
Screenshot_20230125-162811.png
 
On screenshot above You trying load this module from:
Code:
/home/iridule/Linux/linux-6.1.8/ufs.ko
I doubt You have it there.

And second try from where it is stored after compilation,
Code:
/home/iridule/Linux/linux-6.1.8/fs/ufs/ufs.ko
but why this error I dunno. Maybe because version of kernel to running kernel don't matching.
You can check it by typing "uname -R" and "modinfo ufs.ko".
 
On screenshot above You trying load this module from:
Code:
/home/iridule/Linux/linux-6.1.8/ufs.ko
I doubt You have it there.

And second try from where it is stored after compilation,
Code:
/home/iridule/Linux/linux-6.1.8/fs/ufs/ufs.ko
but why this error I dunno. Maybe because version of kernel to loaded kernel don't matching.

You can check it by typing "uname -R" and "modinfo ufs.ko".
That was just a temporary directory I was messing with currently I'm on kernel 5.4.0-91-Generic ... It seems I can get other kernels to compile but they all freeze when trying to boot.
Each time I try it takes like 3 hours to compile which I know probably isn't the right way to do it it probably means I'm loading every driver for every possible thing ever but I just want something to boot once then I'll fix it later :chargrined:
 
You don't need to compile entire kernel, just specific module alone. This is indeed overkill and minefield for mistakes as You need set all settings for generic setup (and probably that's why You getting freezes or kernel panics because of some incompatibility introduced with Your i.e CPU).

If You are on 5.4.0-91-generic, You cannot load modules for any other kernel version.
 
You don't need to compile entire kernel, just specific module alone. This is indeed overkill and minefield for mistakes as You need set all settings for generic setup (and probably that's why You getting freezes or kernel panics because some incompatibility with Your i.e CPU).
Yeah ... Also modprobe says ufs.ko not found. I'll figure this out somehow. one day
 
compile modules on your official and booted already linux kernel/core and don't misunderstood kernel versions. this wont load ufs module from 6.1.8 into 5.4.XX
Yeah ... Also modprobe says ufs.ko not found. I'll figure this out somehow. one day
for modprobe always use only name module w/o .ko extension (dot ko) if it's already installed to /lib/modules/`unamre -r` and after using depmod -a
 
compile modules on your official and booted already linux kernel/core and don't misunderstood kernel versions. this wont load ufs module from 6.1.8 into 5.4.XX

for modprobe always use only name module w/o .ko extension (dot ko) if it's already installed to /lib/modules/`unamre -r` and after using depmod -a
When I tried to compile under 5.4.XX it fails during make ... looking for /fs/ufs/balloc.o
 
Because ufs module src is not full.
@Berion Thanks, well in my Linux project I have had some success I finally got the kernel to boot by creating .deb packages with kernel version and headers however the /src/linux-version was missing many files and folders, while I was able to successfully compile ufs module on the new Kernel I could not compile bswap16 I got an error saying kconfig did not exist. I will try to recompile kernel again. 1 step forward 3 back... I am learning so all is not lost. :D
successufs.png
2stepsback.png
 
Back
Top