question on modding firmware to access nfs shares

Here is information about customize your B series firmware..:!:This forum is NOT FOR USER questions or problems but DEVELOPER.
Post Reply

marcelru
Official SamyGO Developer
Posts: 171
Joined: Thu Oct 01, 2009 7:27 am

Re: question on modding firmware to access nfs shares

Post by marcelru »

christian-hh wrote:Hi guys,

... snip ...
Does that mean I have to first flash the TV with a fw modified with ";/etc/telnetd_start.sh&", then telnet into it and create /mtd_rwarea/rc.local and then flashing a second time having a fw modified with ";/mtd_rwarea/rc.local&"?

Is it possible to only flash according to the link above and then do the rest on the command line of the TV without re-modding the fw?
Would it be possible to alter /rc.local on the telnet session and "touch /mtd_rwarea/rc.local, etc, etc" to get the rest done or is the exe.img extracted on every boot cycle overwriting the changes I made to /rc.local and /mtd_rwarea/rc.local?

While trying to find out myself I opened the decrypted exe.img but I could not find any /mtd_rwarea directory so I guess this is on the TV's flash, correct?
Or do I have to put this into exe.img together with /mtd_rwarea/rc.local?

Many thanks in advance!
Cheers,
Christian
Yes, I'm afraid you will have to flash your tv twice (I had to). The first flash is needed to get telnet access. Once you have that, you can write your boot scripts (rc.local and possibly others) in /mtd_rwarea. This is a partition that is indeed not flashed. Then you will need to flash again to run those scripts rather than just the telnet daemon. The rc.local that you edit in exe.img resides on a readonly partition, so you can't edit it on the TV itself.

Happy hacking,

marcelr
User avatar
andbir
SamyGO Project Donor
Posts: 52
Joined: Thu Dec 17, 2009 11:43 am
Location: Lund Sweden Europe
Contact:

Re: question on modding firmware to access nfs shares

Post by andbir »

Hmm? Only one flash is needed.

1 create flash image using the python script, select advanced if you want to be able to mount drives via the network (SAMBA,NFS, whatever)
2 flash your tv
3 download the telnet enabler to your usb stick, Start it from CONTENT menu - other - usb - GAME - SamyGo. Screen goes black, now telnet is enabled.
4 telnet to your tv log in as root
5 create the scripts /mtd_rwarea/SamyGO.sh and /mtd_rwarea/mount.sh
6 change to execute allowed on these files (chmod 755 /mtd_rwarea/SamyGO.sh and mount.sh)
7 edit mount.sh to your liking to mount on virtual usb AND on actual usb
8 create the file /mtd_rwarea/.nfs OR /mtd_rwarea/.nfs-usb depending on wether you want to use usb or go virtual (toch /mtd_rwarea/.nfs-usb)
9 probably edit the mount-path in mount.sh /dtv/usb/sda/media or something this is specified twice in this file, once in the section for .nfs and once in the section for .nfs-usb
10 create the /dtv/usb/sda/media physically on the usb drive (this will be the mounting point)
11 reboot the tv

Post Reply

Return to “[B] Firmware”