Thứ Ba, 2 tháng 10, 2012

Notes 20121002


mkdir /tmp/hdd/root/opt
mount -o remount,rw /
ln -sf /tmp/hdd/root/opt /opt
mount -o remount,r /
mkdir /opt/tmp
cd /opt/tmp
wget  http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/uclibc-opt_0.9.28-13_mipsel.ipk
ipkg-cl install uclibc-opt_0.9.28-13_mipsel.ipk
wget  http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/ipkg-opt_0.99.163-10_mipsel.ipk
ipkg-cl install ipkg-opt_0.99.163-10_mipsel.ip
rm *.ipk


OK, I figured it out. Here are the step I took:

1. Download irfake from here
2. untar the file and copy shadow_irrp.dat, irfake4 and venus_ir_new.ko to /usr/local/etc.
3. add the following two line at the beginning of /usr/local/etc/rcS file. Just make sure
they are executed before starting DvdPlayer and then reboot the box.

/sbin/insmod /usr/local/etc/venus_ir_new.ko
/usr/local/etc/irfake4 -R&

It'll automatically create necessary devices under /sys/devices/platform/VenusIR. This was the part that puzzled me earlier.

That's it.

After it is installed, you can run '/usr/local/etc/irfake4 -C' to capture the ir code. The code will be echoed on the terminal. Once you have the ir code, you can use 'echo "replaced_with_real_ir_code" > /sys/devices/platform/VenusIR/fakekey' to control the box without actually pressing a key. For example, I added the following lines to automatically start the box in IMS

sleep 5
echo 'ed12b649' > /sys/devices/platform/VenusIR/fakekey
echo 'f50ab649' > /sys/devices/platform/VenusIR/fakekey
Last edited by vpx; 07-13-2011 at 09:19 PM.

Không có nhận xét nào:

Đăng nhận xét