Coder Social home page Coder Social logo

Comments (10)

powellnorma avatar powellnorma commented on September 26, 2024 1

Ok, I used https://github.com/FerryAr/e2fsprogs-arm/blob/master/system/bin/mke2fs - I saved it to /data/adb/ksu/bin/mkfs.ext4 - Now flashing the module works fine!

from kernelsu.

tiann avatar tiann commented on September 26, 2024

upload full log

from kernelsu.

powellnorma avatar powellnorma commented on September 26, 2024

Ok, attached is the full log (tar.gz), after fresh reboot + failed attempt to flash the module.

Btw, I was unable to directly safe/share the log, because of:

[   76.590362] [pid:367,cpu2,logd.auditd]type=1400 audit(1714983679.109:209): avc: denied { open } for pid=3397 comm="Binder:3397_3" path="/data/data/me.weishu.kernelsu/cache/KernelSU_bugreport_2024-05-06_10_21.tar.gz" dev="mmcblk0p56" ino=16258 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:app_data_file:s0 tclass=file permissive=0

Any idea why this might be happening? I am using the stock image, so the selinux config should be normal(?)

KernelSU_bugreport_2024-05-06_10_21.tar.gz

from kernelsu.

tiann avatar tiann commented on September 26, 2024

Your kernel doesn't work normally:

[   16.928131] [pid:433,cpu4,init]init: cannot execve('/data/adb/ksud'): Permission denied

Check #943 first.

from kernelsu.

powellnorma avatar powellnorma commented on September 26, 2024

Probably relevant: #270 (comment)

from kernelsu.

powellnorma avatar powellnorma commented on September 26, 2024

@tiann

cannot execve('/data/adb/ksud'): Permission denied

Fixed that, the issue still persists though, see new attachment:

KernelSU_bugreport_2024-05-07_11_39.tar.gz

from kernelsu.

tiann avatar tiann commented on September 26, 2024

Sorry, I don't have time to play with this old kernel; there must be something wrong somewhere else, like an ext4 mount failure, or the file doesn't have permission to create; please add your own logs to see where the problem is.

from kernelsu.

powellnorma avatar powellnorma commented on September 26, 2024

I don't have time to play with this old kernel

I see, no problem. I too think there is something wrong in general, because the "file not found" issue appears in other apps too. I might later try to disable selinux / set it to permissive.

please add your own logs to see where the problem is

Ah, you mean recompile ksud to increase the logging level, so one can see exactly what fails? Will maybe try that later, too

from kernelsu.

powellnorma avatar powellnorma commented on September 26, 2024

05-04 23:00:27.289 16887 16887 E KernelSU: ksud::cli: Error: No such file or directory (os error 2)

I think it is due to missing mkfs.ext4:

HWPRA-H:/ # mkfs.ext4                                                                                                                                                                         
/system/bin/sh: mkfs.ext4: not found

When placing mkfs.ext4 from https://github.com/kmarshal/android-rom/blob/master/Galaxy%20ACE%20GT-5830/build/res/blackhawk-kitchen/mkfs.ext4 to /data/adb/ksu/bin/mkfs.ext4, the error becomes:

- Preparing image
                                                                   
- Module size: 240.07 kB
                                                                   
- Error: Failed to format ext4 image: mke2fs 1.41.12 (17-May-2010)
                                                                   
Error: exit code = 1.
Please save and check the log.

I wonder what the problem is.. Maybe unsupported options?

https://github.com/tiann/KernelSU/blob/57b96da9dbeec9c881c2fe81842d07ddb16e6e49/userspace/ksud/src/module.rs#L292C32-L292C41

Anyone has an idea?

from kernelsu.

powellnorma avatar powellnorma commented on September 26, 2024

Hm, maybe its because that mkfs.ext4 asks for confirmation.. ?

HWPRA-H:/data/adb # mkfs.ext4 test1                                                                                                                                                           
mke2fs 1.41.12 (17-May-2010)
test1 is not a block special device.
Proceed anyway? (y,n) 

from kernelsu.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.