Reply
Thread Tools
Posts: 1,928 | Thanked: 7,375 times | Joined on May 2010
#11
Update: /dev/pts must have permissions 755

And here is script which create correct /dev structure:
Code:
#!/bin/sh

mknod /dev/console c 5 1
mknod /dev/fb0 c 29 0
mknod /dev/fb1 c 29 1
mknod /dev/fb2 c 29 2
mknod /dev/full c 1 7
mknod /dev/kmem c 1 2
mknod /dev/mem c 1 1
mknod /dev/mtd0 c 90 0
mknod /dev/mtd0ro c 90 1
mknod /dev/mtd1 c 90 2
mknod /dev/mtd1ro c 90 3
mknod /dev/mtd2 c 90 4
mknod /dev/mtd2ro c 90 5
mknod /dev/mtd3 c 90 6
mknod /dev/mtd3ro c 90 7
mknod /dev/mtd4 c 90 8
mknod /dev/mtd4ro c 90 9
mknod /dev/mtd5 c 90 10
mknod /dev/mtd5ro c 90 11
mknod /dev/null c 1 3
mknod /dev/port c 1 4
mknod /dev/random c 1 8
mknod /dev/tty c 5 0
mknod /dev/ttyS0 c 4 64
mknod /dev/ttyS1 c 4 65
mknod /dev/ttyS2 c 4 66
mknod /dev/tty0 c 4 0
mknod /dev/urandom c 1 9
mknod /dev/zero c 1 5

mknod /dev/loop0 b 7 0
mknod /dev/loop1 b 7 1
mknod /dev/loop2 b 7 2
mknod /dev/loop3 b 7 3
mknod /dev/loop4 b 7 4
mknod /dev/loop5 b 7 5
mknod /dev/loop6 b 7 6
mknod /dev/loop7 b 7 7
mknod /dev/ram0 b 1 0
mknod /dev/ram1 b 1 1
mknod /dev/ram10 b 1 10
mknod /dev/ram11 b 1 11
mknod /dev/ram12 b 1 12
mknod /dev/ram13 b 1 13
mknod /dev/ram14 b 1 14
mknod /dev/ram15 b 1 15
mknod /dev/ram16 b 1 16
mknod /dev/ram2 b 1 2
mknod /dev/ram3 b 1 3
mknod /dev/ram4 b 1 4
mknod /dev/ram5 b 1 5
mknod /dev/ram6 b 1 6
mknod /dev/ram7 b 1 7
mknod /dev/ram8 b 1 8
mknod /dev/ram9 b 1 9

ln -s /proc/kcore /dev/core
ln -s ram1 /dev/ram

mkdir /dev/pts
chmod 755 /dev/pts

chmod 600 /dev/console
chmod 660 /dev/fb0
chmod 660 /dev/fb1
chmod 660 /dev/fb2
chmod 666 /dev/full
chmod 640 /dev/kmem
chmod 660 /dev/loop0
chmod 660 /dev/loop1
chmod 660 /dev/loop2
chmod 660 /dev/loop3
chmod 660 /dev/loop4
chmod 660 /dev/loop5
chmod 660 /dev/loop6
chmod 660 /dev/loop7
chmod 640 /dev/mem
chmod 600 /dev/mtd0
chmod 600 /dev/mtd0ro
chmod 600 /dev/mtd1
chmod 600 /dev/mtd1ro
chmod 600 /dev/mtd2
chmod 600 /dev/mtd2ro
chmod 600 /dev/mtd3
chmod 600 /dev/mtd3ro
chmod 600 /dev/mtd4
chmod 600 /dev/mtd4ro
chmod 600 /dev/mtd5
chmod 600 /dev/mtd5ro
chmod 666 /dev/null
chmod 640 /dev/port
chmod 660 /dev/ram0
chmod 660 /dev/ram1
chmod 660 /dev/ram10
chmod 660 /dev/ram11
chmod 660 /dev/ram12
chmod 660 /dev/ram13
chmod 660 /dev/ram14
chmod 660 /dev/ram15
chmod 660 /dev/ram16
chmod 660 /dev/ram2
chmod 660 /dev/ram3
chmod 660 /dev/ram4
chmod 660 /dev/ram5
chmod 660 /dev/ram6
chmod 660 /dev/ram7
chmod 660 /dev/ram8
chmod 660 /dev/ram9
chmod 666 /dev/random
chmod 666 /dev/tty
chmod 660 /dev/ttyS0
chmod 660 /dev/ttyS1
chmod 660 /dev/ttyS2
chmod 600 /dev/tty0
chmod 444 /dev/urandom
chmod 666 /dev/zero

chown root:tty /dev/console
chown root:video /dev/fb0
chown root:video /dev/fb1
chown root:video /dev/fb2
chown root:root /dev/full
chown root:kmem /dev/kmem
chown root:disk /dev/loop0
chown root:disk /dev/loop1
chown root:disk /dev/loop2
chown root:disk /dev/loop3
chown root:disk /dev/loop4
chown root:disk /dev/loop5
chown root:disk /dev/loop6
chown root:disk /dev/loop7
chown root:kmem /dev/mem
chown root:root /dev/mtd0
chown root:root /dev/mtd0ro
chown root:root /dev/mtd1
chown root:root /dev/mtd1ro
chown root:root /dev/mtd2
chown root:root /dev/mtd2ro
chown root:root /dev/mtd3
chown root:root /dev/mtd3ro
chown root:root /dev/mtd4
chown root:root /dev/mtd4ro
chown root:root /dev/mtd5
chown root:root /dev/mtd5ro
chown root:root /dev/null
chown root:kmem /dev/port
chown root:disk /dev/ram0
chown root:disk /dev/ram1
chown root:disk /dev/ram10
chown root:disk /dev/ram11
chown root:disk /dev/ram12
chown root:disk /dev/ram13
chown root:disk /dev/ram14
chown root:disk /dev/ram15
chown root:disk /dev/ram16
chown root:disk /dev/ram2
chown root:disk /dev/ram3
chown root:disk /dev/ram4
chown root:disk /dev/ram5
chown root:disk /dev/ram6
chown root:disk /dev/ram7
chown root:disk /dev/ram8
chown root:disk /dev/ram9
chown root:root /dev/random
chown root:tty /dev/tty
chown root:dialout /dev/ttyS0
chown root:dialout /dev/ttyS1
chown root:dialout /dev/ttyS2
chown root:tty /dev/tty0
chown root:root /dev/urandom
chown root:root /dev/zero

Last edited by pali; 04-30-2012 at 12:31 PM.
 

The Following 2 Users Say Thank You to pali For This Useful Post:
Posts: 470 | Thanked: 412 times | Joined on May 2010 @ nanaurbusiness
#12
How do I get this script into RescueOS, because that's the only thing that's booting right now
__________________

N900 ~ $ make me a sandwich
-bash: no, make it yourself
N900 ~ $ sudo make me a sandwich
-bash: ok then...
 
Posts: 1,928 | Thanked: 7,375 times | Joined on May 2010
#13
unpack that rescueos initrd image, add script and pack initrd image
 
Posts: 729 | Thanked: 1,363 times | Joined on Feb 2010 @ Gdynia, Poland
#14
J4ZZ, problems with kernel, libxau6, maybe other problems... Maybe a reflash and starting again with a tabula-rasa N900 would be fastest option But if you will make it work eventually without a reflash, you are my hero. My oppinion is, if one has any technical knowledge and has time, (s)he should try to fix a thing instead of replacing it with a new one. Are you an eng of some kind?
 
Posts: 1,928 | Thanked: 7,375 times | Joined on May 2010
#15
I found one *BIG* problem in that my script. /dev/pts MUST have permissions 755 (not 744)!!! If it do not have correct permissions osso-xterm will not start!

Now I updated my post with script.
 

The Following User Says Thank You to pali For This Useful Post:
Posts: 1,928 | Thanked: 7,375 times | Joined on May 2010
#16
Now for creating proper files in /dev/ is script which is included in RescueOS
 

The Following 2 Users Say Thank You to pali For This Useful Post:
Reply

Thread Tools

 
Forum Jump


All times are GMT -4. The time now is 02:39 AM.