OR perhaps the title should be...
"Twobob once again messes around with something he barely understands"
So anyways. THIS FILE IS FOR A
3. Just to be clear.
Check if we have Kernel Support
root@kindle:root>
zcat /proc/config.gz | grep -i binfmt_misc
Quote:
# CONFIG_BINFMT_MISC is not set
|
Nope.. So we need a module as we can load those...
Get Thing. I will attach the kindle 2.6.26-rt-lab126 3.3 version that I splattered through BuildRoot. Using the 2006q3 CS TC and the right kernel headers in place. (Thanks Niluje, Knc1)
Just some extra info: (notice the MAGIC is revealed here)
Insert module
example:
insmod /path/to/somewhere/onfat/module/binfmt_misc.ko
(mine is on /mnt/us/modules/binfmt_misc.ko) so I go
root@kindle:root>
insmod /mnt/us/modules/binfmt_misc.ko
Check it's loaded
root@kindle:root>
lsmod
Mount it somewhere
mkdir /mnt/us/proc/sys/fs/binfmt_misc
(or wherever you want it, I'm going to try that)
Check it's mounted
Spoiler:
Quote:
root@kindle:root> mount
rootfs on / type rootfs (rw)
/dev/root on / type ext3 (ro,noatime,nodiratime,data=ordered)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
tmpfs on /dev type tmpfs (rw,mode=755)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
shm on /dev/shm type tmpfs (rw)
rwfs on /mnt/rwfs type tmpfs (rw,size=32768k)
rwfs on /var type tmpfs (rw,size=32768k)
/dev/mmcblk0p2 on /var/local type ext3 (rw,sync,errors=continue,data=ordered)
fsp on /mnt/us type fuse.fsp (rw,nosuid,nodev,noatime,user_id=0,group_id=0)
fsp on /opt/amazon/screen_saver/600x800 type fuse.fsp (rw,nosuid,nodev,noatime,user_id=0,group_id=0)
/dev/loop/0 on /mnt/base-us type vfat (rw,noexec,noatime,nodiratime,fmask=0022,dmask=002 2,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8)
usbfs on /proc/bus/usb type usbfs (rw)
none on /mnt/us/proc/sys/fs/binfmt_misc type binfmt_misc (rw)
|
/mnt/us/proc/sys/fs/binfmt_misc should now contain two files:
register and
status
I'll continue this when I have more. We are going to use this to do some loading wangles with a bit of luck and further reading on my part. Thought I would share my experiences so far.
REFS:
http://www.kernel.org/doc/Documentation/binfmt_misc.txt
http://en.wikipedia.org/wiki/Binfmt_misc
And one from Knc1 that I'm still looking for... TBC...