10-24-2017, 02:05 PM
Hi lostangel556,
you can't edit init.rc directly, after reboot it restores the version from boot partition. As I wrote on github, there two alternatives (maybe more). You can extract the boot partition, edit the ueventd.rk30board.rc and repack it again. Or you can install SuperUser and add what you need to install-recovery.sh, better to create a install-recovery2.sh as it is written in the file.
I have gone the boot.img way as this:
Instead the 'adb reboot bootloader' you can also put a jumper on the volume+ header aside the hdmi port and reboot with an usb cable to your host pc. If it is used the adb variant, it is needed to power the tinker board via the 40p header and connect an usb cable at boot time. In the unpacked directory you'll find the files to modify.
Put this line ueventd.rk30board.rc: '/dev/ttyACM0 0660 gps gps'
If everything work, you should see NMEA messages in logcat.
you can't edit init.rc directly, after reboot it restores the version from boot partition. As I wrote on github, there two alternatives (maybe more). You can extract the boot partition, edit the ueventd.rk30board.rc and repack it again. Or you can install SuperUser and add what you need to install-recovery.sh, better to create a install-recovery2.sh as it is written in the file.
I have gone the boot.img way as this:
Code:
#read boot.img:
adb reboot bootloader
sudo path/to/rkflashtool r boot >boot.img
#unpack boot.img:
dd if=boot.img of=boot.img.gz skip=8 bs=1 count=100000000000
gunzip boot.img.gz
mkdir unpacked
cd unpacked
cpio -i <../boot.img
#pack boot.img:
cd unpacked
find . | xargs -I file touch -d "1970-01-01 01:00" file
find . | cpio -o -H newc | gzip -n >../newboot.img.gz
cd ..
path/to/rkcrc -k newboot.img.gz newboot.img
#flash boot.img
sudo ./rkflashtool w boot <newboot.imgInstead the 'adb reboot bootloader' you can also put a jumper on the volume+ header aside the hdmi port and reboot with an usb cable to your host pc. If it is used the adb variant, it is needed to power the tinker board via the 40p header and connect an usb cable at boot time. In the unpacked directory you'll find the files to modify.
Put this line ueventd.rk30board.rc: '/dev/ttyACM0 0660 gps gps'
If everything work, you should see NMEA messages in logcat.



![[-]](https://tinkerboarding.co.uk/forum/images/collapse.png)