Problem! - G1 Android Development

Why can I not do any work in /sys ? it keeps telling me the directory doesn't exist or some similar error....

Related

can't work in /sys directory...

Why is it that I cannot copy a file from my sdcard to /sys and its subfolders?
I have change permissions for every directory to 0777 and I remounted the file system using
mount -o remount,rw /dev/block/mtdblock3 /
What am I missing?
Stericson said:
Why is it that I cannot copy a file from my sdcard to /sys and its subfolders?
I have change permissions for every directory to 0777 and I remounted the file system using
mount -o remount,rw /dev/block/mtdblock3 /
What am I missing?
Click to expand...
Click to collapse
A brain
/sys is a virtual directory built/populated by the kernel. You can only write to existing files in it (and only selected ones).
You probably want to work on /system but then your command is wrong on the mount point which must be /system, not /.
I am not sure the block device is the right one, I can't check my Dream right now.
Sent from my HTC Vision using xda app-developers app
Wait a second... WTF resurrecting a 2008 thread?!?
I'll report it to a mod asking to delete it.
Sent from my HTC Vision using xda app-developers app

/efs not mounted - need help from Linux experts and others rooted i580x users!!!

After a sleepy ODIN flash, using SPICA ops with G3 firmware => STUPID??? NO, not done yet , next ODIN flash segment, accidentally stick clear phone EFS via Debug options (DOUBLE CRAZY!!!) NOW i lost the precious IMEI and /efs partitions corrupted as well.
i've got the fixed nv_data.bin and both stl4.img and bml4.img from [email protected] (attached). Thanks for his kindness and supportive to the community!
But even with those i still can't fix the issue!!!! /efs did not mounted via mount command...
as in a GOOD G3, mount command result will be as below:
Code:
rootfs / rootfs rw 0 0
tmpfs /dev tmpfs rw,mode=755 0 0
devpts /dev/pts devpts rw,mode=600 0 0
proc /proc proc rw 0 0
sysfs /sys sysfs rw 0 0
tmpfs /sqlite_stmt_journals tmpfs rw,size=4096k 0 0
/dev/block/stl6 /system rfs rw,vfat,llw,check=no,gid/uid/rwx,iocharset=cp437 0 0
/dev/block/stl7 /data rfs rw,nosuid,nodev,vfat,llw,check=no,gid/uid/rwx,iocharset=cp437 0 0
/dev/block/stl8 /cache rfs rw,nosuid,nodev,vfat,llw,check=no,gid/uid/rwx,iocharset=cp437 0 0
[B]/dev/block/stl4 /efs rfs rw,nosuid,nodev,vfat,llw,check=no,gid/uid/rwx,iocharset=cp437 0 0[/B]
/dev/block//vold/179:1 /sdcard vfat rw,dirsync,nosuid,nodev,noexec,uid=1000,gid=1015,f mask=0702,dmask=0602,allow_utime=0020,codepage=cp4 37,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
in my case the bold line just missing... so this is must be the problem.
I tried to do the same as SPICA's method as below:
Code:
$su
#dd if=/sdcard/bml4.img of=/dev/block/bml4
#reboot
It's OK then but...
Code:
$su
#dd if=/sdcard/stl4.img of=/dev/block/stl4
/dev/block/stl4: cannot open for write: Invalid agrument
With this error my /efs cannot be mount... and still missing from the mount command. I'm just a linux noob so pls help me out. How can i restore the stl4 partition properly???
My girlfriend now really mad at me due to she don't have her beloved phone this christmas already. OMG!!!!!
and to all rooted i580x user Pls kindly help compare your "good" /efs folder... maybe mine missing something???? due to one time Erase Phone EFS using Odin Debug Options.
Mine /efs now as below:
Code:
/efs/nv_data.bin
/efs/imei/.nvmac.info
/efs/.files/.dm33 (empty folder)
/efs/.files/.dx1 (empty folder)
/efs/.files/.mp301 (empty folder)
And if you can do adb shell, it'll be very kind of you by sharing your good backup stl4 and bml4 - for research purpose (those partitions did not content any of yours personal data - so PLS HELP!!!). Pls do the backup partions as below and share your img here if possible.
Code:
$su
#cat /dev/block/stl4 > /sdcard/efs_dev-block-stl4.img
#cat /dev/block/bml4 > /sdcard/efs_dev-block-bml4.img
TIA and Best Regards
P/S: when do the ls /dev/block/stl* the stl4 is there but cannot restore using the backup img. it's weird...
Code:
#ls /dev/block/stl*
/dev/block/stl1
/dev/block/stl10
/dev/block/stl2
/dev/block/stl3
/dev/block/stl4
/dev/block/stl5
/dev/block/stl6
/dev/block/stl7
/dev/block/stl8
/dev/block/stl9
same for bml4...
I suggest you remove the images.zip
This contains your IMEI, so anyone can clone it.
Szaby59 said:
I suggest you remove the images.zip
This contains your IMEI, so anyone can clone it.
Click to expand...
Click to collapse
This zip only bml4.img and stl4.img, the fixed nv_data.bin still inside the phone @ SAMSUNG SC . Now they still can not redo IMEI yet so i must find someway else.
kenblat said:
This zip only bml4.img and stl4.img, the fixed nv_data.bin still inside the phone @ SAMSUNG SC . Now they still can not redo IMEI yet so i must find someway else.
Click to expand...
Click to collapse
fixed ur phone yet? noob idea: can u try flashing but this time with the right ops?
were you able solve the problem? I am facing exactly same problem.

[Q] Turning keypad backlight off patching filesystem

Hi, my phone is a samsung galaxy y PRO. Android 2.3.6 rooted
I am trying to disable the keypad backlights...
In here:
\sys\class\backlight\keypad-led\brightness
when i set it to 0, the lights turn off, and after that i change the file permissons to 444 with chmod.
But when i turn off screen and turn on again (stand by mode) the keypad lights turn on again, and when i go to edit the brightness file again, it shows the value 255.
Any solutions?? Also when i try to remove the file (via terminal with SU) i get a operation not permitted message.
Help please.
Thanks!
BTW, i will donate do the guy that makes it work!
Dumb question, is /system set as r/w?
Sent from my LG-P999 using xda premium
Yes, i tryied with total comander, setting system to r/w
Well, then the alternative is copy it via cwm and set the permissions in the script. I can't do it right now, I about to start work, but if no one has handled this by the time I am off and home, about 9:00pm CA time, I will get it set up.
Sent from my LG-P999 using xda premium
Please do that! I will get in here asap. Cya in a few hours.
Thank you for trying to help!
BTW, i tryed to install ClockworkMod via Rom Manager but it says that there is no support with my samsung galaxy y Pro (GT-B5510)...
Ok, i got a temporary ClockworkMod that i can use when needed...
Ok, did some researching of my own for your phone, check your pm.
Ok, this is sort of simple, the file is called "brightness" and its content must be a zero "0". Thats it. The file must be placed in "/sys/class/backlight/keypad-led/".
I don't know how the script you need should look like, but commands to change the file to disable keypad light should be:
echo 0 > /sys/class/backlight/keypad-led/brightness
And the permission command:
chmod 444 /sys/class/backlight/keypad-led/brightness
I know the basic of how it should look and what is needed for it to work, I have a zip I made for myself for copying over ringtones and notifications from a flashable zip. I need to have what partition it's on and (since I guess it's /sys and not /system) be able to mount /sys so Tue file can be copied. The ROM I found it's for your phone. There seems to be very limited data on your phone. Like I said, I have the zip mostly set up, I just need to make sure my mount command will work and for that I need more info. I think I have it but I can't verify that I do.
Sent from my LG-P999 using xda premium
How can i help? I have sent you some info about partition on private msg...
Here is the file... It is zipped, just extract it...
About the partition, Mount command shows: "sysfs /sys sysfs rw, relatime 0 0 "
BTW, i have been checking and the correct path to the file is: "/sys/devices/platform/keypad-led.0/backlight/keypad-led"
The other path i told you before was a link to this one... Sorry...
Complete result of mount command:
$ mount
rootfs / rootfs rw,relatime 0 0
tmpfs /dev tmpfs rw,relatime,mode=755 0 0
devpts /dev/pts devpts rw,relatime,mode=600 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,relatime 0 0
tmpfs /mnt/asec tmpfs rw,relatime,mode=755,gid=1000 0 0
tmpfs /mnt/obb tmpfs rw,relatime,mode=755,gid=1000 0 0
/dev/stl9 /system rfs rw,relatime,vfat,llw,check=no,gid/uid/rwx,iocharset=cp4370 0
/dev/stl10 /cache rfsrw,nosuid,nodev,relatime,vfat,llw,gid/uid/rwx,iocharset=cp437 0 0
/dev/stl6 /mnt/.lfs j4fs rw,relatime 0 0
/dev/stl12 /efs rfsrw,nosuid,nodev,relatime,vfat,llw,check=no,gid/uid/rwx,iocharset=cp437 0 0
/dev/stl11 /data rfsrw,nosuid,nodev,relatime,vfat,llw,check=no,gid/uid/rwx,iocharset=cp437 0 0
Can you do something with this? I hope so...
hmm, we may have to change our strategy, maybe not. I need to see about a couple of things before I have you try anything.
On an interesting note, I noticed that for /sys the values after realtime are 0 0, I'm mostly familiar with PC's and learn as I go on Android, but if that means what I think it means, that partition can't be modified at all while the system is booted.
On my phone that directory is mounted, but there are no files that I am able to view either via Droid Explorer or Root Explorer.
Do you know anyone else that could join us on this adventure? do you have anything else in mind? I am able to set the file to 0, but there are some events that set it back again to a certain value, like screen off and on, etc...
I dunno why or how, but i set it to 0, i apply chmod 444 but it still changes the file to a certain value...
News?
Yes.
Place the attached script in: /system/etc/init.d/
reboot and you should be good. Found the info here:
http://forum.xda-developers.com/showthread.php?t=1488492&page=4
Some say it works, some say it doesn't.
edit: file attached, just take it out of the zip file.
I don't have the folder /init.d/ in the /system/etc/ folder :|
This means i don't have init.d support...
Ok, i found a way to run it during boot time:
How to run the scripts during the boot using SManager:
Steps to run the scripts during the boot:
1. Test the scripts out completely before start to run on boot.
2. From the SManager tool, select su and boot icon. Exit the application and reboot the phone.
3. If you did not change the SManger config, then you will see the SManager log after the boot. Check if everything is fine. If the scripts run OK many times without any issue, then you can uncheck the option showing SManager log after the boot.
And during boot it writes 0 to the file and it changes its permissions to 444. But even without the permission to write on the file, the system is able to change the value in the file!

[Completed] Infinix x551 boot loop and cant mount /cache on recovery

Please help me,
First of all my infinix x551 16gb 2gb ram is running on kitkat, then i have successly upgrade to lolipop via flashtool. (my infinix ealry product is only support kitkat)
after while i realized my phone is slower with lolipop then i tried to downgrade to kitkat using stok rom and flashtool.
But my phone is now bootloop (after infinix logo then black screen)
tried to enter rec mode and it load rua1 autoCWM v5.5.0.4 but there is error e:cant mount /cache......
i have tried MTK Droid tools but i dont understand how to flash with it.
i have tried adb shell command :
~ # mount
rootfs on / type rootfs (rw)
tmpfs on /dev type tmpfs (rw,nosuid,relatime,mode=755)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
/dev/block/mmcblk0p5 on /system type ext4 (ro,relatime,data=ordered)
~ # rm - r /data/dalvik-cache
rm: can't remove '-': No such file or directory
rm: can't remove 'r': No such file or directory
rm: can't remove '/data/dalvik-cache': No such file or directory
~ # rm - r /cache/dalvik-cache
rm: can't remove '-': No such file or directory
rm: can't remove 'r': No such file or directory
rm: can't remove '/cache/dalvik-cache': No such file or directory
~ #
/sbin/sh: --wipe_data: not found
~ # recovery --wipe_data
sh: /sbin/postrecoveryboot.sh: not found
^Z[1]+ Stopped recovery --wipe_data
~ # recovery --wipe_cache
sh: /sbin/postrecoveryboot.sh: not found
^C
for information i tried install any stok rom i can find for my infinix with flashtool (download only or format and download) it is succed (after flashing) but it still blackscreen when i tried to boot.
I though the problem is from my stok rom that i tried to downgrade that corrupt my partition table.
i check with adb shell i found ext2fs is exist but ext4fs is not and my cwm is read only on ext4fs so there is mistmacth boot partition format. however i dont know how to change the partition and clean install my infinix.
any suggest are welcom...
i need help as fast as posible.
Thank you for any of you that help me.
any help its welcome....
or did i post in wrong section.......
anyway, i tried enter fastboot with adb fastboot,
then i tried fastboot oem unlock and there is confirm notification on phone.
but i cant choose with my volume key (no response) although in recovery is normal.
Is there anyway to unlock oem and confirm with out volume key?
Hi and welcome to XDA,
Sorry for late response but there's no dedicated forum for your device. Try posting your query in:
> Android Development and Hacking > Android Q&A,Help and Troubleshooting.
Good luck
Razvan
Razvan said:
Hi and welcome to XDA,
Sorry for late response but there's no dedicated forum for your device. Try posting your query in:
> Android Development and Hacking > Android Q&A,Help and Troubleshooting.
Good luck
Razvan
Click to expand...
Click to collapse
thank you for your reply
Ok, I'll give a try...
My phone still stuck at logo and recovery mode

failed to mount /dev/block/mmcblk0p60 - port

Hello, I would like you to help me with a small problem, I am trying to adapt (port) from one device to another ... and copying everything again.
When I want to install it, an error appears:
Detected filesystem ext4 for /dev/block/mmcblk0p60
mount: failed to mount /dev/block/mmcblk0p60 at /system: device or resource busy
detected filesystem ext4 for /dev/block/mmcblk0p60
I tried modifying the update-script but it still shows up, I guess it's that file.
and I have not found any similar post ..
If anyone can correct me, I would really appreciate it. :angel:
(I'm sorry, my english is bad)

Categories

Resources