Difference between revisions of "Change Media Server Name"
(→Extract the file system) |
Ezra pound (talk | contribs) |
||
Line 8: | Line 8: | ||
humax# | humax# | ||
− | The commands in the following sections show this prompt for context but you should not type it. The command that you need to type will be shown '''in bold''' whereas the prompt and other output that you will see is shown in normal font. | + | The commands in the following sections show this prompt for context but you should not type it. The command that you need to type will be shown <span style="background:#FFFF00"> '''in bold''' </span> whereas the prompt and other output that you will see is shown in normal font. |
== Install the required packages == | == Install the required packages == | ||
Line 20: | Line 20: | ||
Since you're already at the command prompt, you can just install them using the <tt>opkg</tt> command: | Since you're already at the command prompt, you can just install them using the <tt>opkg</tt> command: | ||
− | humax# '''opkg install humidify squashfs-tools bsed''' | + | |
+ | humax# <span style="background:#FFFF00"> '''opkg install humidify squashfs-tools bsed''' </span> | ||
== Insert a USB Flash drive containing the firmware update == | == Insert a USB Flash drive containing the firmware update == | ||
Line 28: | Line 29: | ||
Unless you have any other drives connected, this USB flash drive will now be mounted into the Humax filesystem as ''/media/drive1''. Change into that directory and list the contents: | Unless you have any other drives connected, this USB flash drive will now be mounted into the Humax filesystem as ''/media/drive1''. Change into that directory and list the contents: | ||
− | humax# '''cd /media/drive1''' | + | humax# <span style="background:#FFFF00"> '''cd /media/drive1''' </span> |
− | humax# '''ls''' | + | humax# <span style="background:#FFFF00"> '''ls''' </span> |
HDR_FOX_T2_upgrade.hdf | HDR_FOX_T2_upgrade.hdf | ||
Line 36: | Line 37: | ||
Unpack the firmware bundle using ''humidify''. This takes around 30 seconds. | Unpack the firmware bundle using ''humidify''. This takes around 30 seconds. | ||
− | humax# '''humidify -x HDR_FOX_T2_upgrade.hdf''' | + | humax# <span style="background:#FFFF00"> '''humidify -x HDR_FOX_T2_upgrade.hdf''' </span> |
HDF Tool v1.0.2, by af123, 2011. | HDF Tool v1.0.2, by af123, 2011. | ||
Line 48: | Line 49: | ||
Processed in: 22.97s | Processed in: 22.97s | ||
− | humax# '''ls''' | + | humax# <span style="background:#FFFF00"> '''ls''' </span> |
1.hdfbin-1-000000.raw HDR_FOX_T2_upgrade.hdf | 1.hdfbin-1-000000.raw HDR_FOX_T2_upgrade.hdf | ||
Line 57: | Line 58: | ||
Extract the filesystem using ''unsquashfs''. This takes around 5 seconds. | Extract the filesystem using ''unsquashfs''. This takes around 5 seconds. | ||
− | humax# '''unsquashfs -d /mod/tmp/firmware 1.hdfbin-1-000000.raw''' | + | humax# <span style="background:#FFFF00"> '''unsquashfs -d /mod/tmp/firmware 1.hdfbin-1-000000.raw''' </span> |
created 1383 files | created 1383 files | ||
Line 67: | Line 68: | ||
and change directory to the location of the extracted firmware. | and change directory to the location of the extracted firmware. | ||
− | humax# '''cd /mod/tmp/firmware''' | + | humax# <span style="background:#FFFF00"> '''cd /mod/tmp/firmware''' </span> |
− | humax# '''ls''' | + | humax# <span style="background:#FFFF00"> '''ls''' </span> |
bin etc lib mnt opt root share tmp var | bin etc lib mnt opt root share tmp var | ||
dev home media mod proc sbin sys usr | dev home media mod proc sbin sys usr | ||
Line 76: | Line 77: | ||
Choose a new name for your media server which is exactly 12 characters long (the length of the original ''Media Server''). You can add spaces to the end if you don't need all the characters. Run the ''bsed'' command to modify the Humax binary and replace the standard name with yours. The example here just changes it to ''Media Serve2'' | Choose a new name for your media server which is exactly 12 characters long (the length of the original ''Media Server''). You can add spaces to the end if you don't need all the characters. Run the ''bsed'' command to modify the Humax binary and replace the standard name with yours. The example here just changes it to ''Media Serve2'' | ||
− | humax# '''bsed -v -1 usr/bin/humaxtv "Media Server" "Media Serve2"''' | + | humax# <span style="background:#FFFF00"> '''bsed -v -1 usr/bin/humaxtv "Media Server" "Media Serve2"''' </span> |
== Re-pack the filesystem == | == Re-pack the filesystem == | ||
Line 82: | Line 83: | ||
Change directory back to the flash drive and rebuild the filesystem using squashfs. This takes up to a minute. | Change directory back to the flash drive and rebuild the filesystem using squashfs. This takes up to a minute. | ||
− | humax# '''cd /media/drive1''' | + | humax# <span style="background:#FFFF00"> '''cd /media/drive1''' </span> |
− | humax# '''mksquashfs /mod/tmp/firmware 1.hdfbin-1-000000.raw -le -all-root -noappend''' | + | humax# <span style="background:#FFFF00"> '''mksquashfs /mod/tmp/firmware 1.hdfbin-1-000000.raw -le -all-root -noappend''' </span> |
Parallel mksquashfs: Using 1 processor | Parallel mksquashfs: Using 1 processor | ||
Creating little endian 3.0 filesystem on 1.hdfbin-1-000000.raw, block size 65536. | Creating little endian 3.0 filesystem on 1.hdfbin-1-000000.raw, block size 65536. | ||
Line 109: | Line 110: | ||
== Remove the temporary filesystem == | == Remove the temporary filesystem == | ||
− | humax# '''rm -rf /mod/tmp/firmware''' | + | humax# <span style="background:#FFFF00"> '''rm -rf /mod/tmp/firmware''' </span> |
== Rebuild the firmware bundle == | == Rebuild the firmware bundle == | ||
Line 115: | Line 116: | ||
The last step is to rebuild the firmware bundle using the new filesystem file. This takes just over a minute. | The last step is to rebuild the firmware bundle using the new filesystem file. This takes just over a minute. | ||
− | humax# '''humidify -c HDR_FOX_T2_upgrade.hdf 80bc.7e00 1.hdfbin-1-000000.raw''' | + | humax# <span style="background:#FFFF00"> '''humidify -c HDR_FOX_T2_upgrade.hdf 80bc.7e00 1.hdfbin-1-000000.raw''' </span> |
HDF Tool v1.0.2, by af123, 2011. | HDF Tool v1.0.2, by af123, 2011. | ||
Revision as of 00:04, 28 May 2012
If you have more than one Humax HDR Fox-T2 on the same network and use the Content Sharing (DLNA Server) feature, you may wish to change the name that they use to advertise themselves on the network. The following instructions take you through the process of modifying a customised firmware update file to change the name. The commands are all run on the Humax itself.
Contents
- 1 Gain telnet access to your Humax command prompt
- 2 Install the required packages
- 3 Insert a USB Flash drive containing the firmware update
- 4 Unpacking the firmware bundle
- 5 Extract the file system
- 6 Change the media server name
- 7 Re-pack the filesystem
- 8 Remove the temporary filesystem
- 9 Rebuild the firmware bundle
- 10 Flash the new firmware image
Gain telnet access to your Humax command prompt
Follow the instructions on this page
Once you have connected to the Humax command line then you will see a prompt that looks like
humax#
The commands in the following sections show this prompt for context but you should not type it. The command that you need to type will be shown in bold whereas the prompt and other output that you will see is shown in normal font.
Install the required packages
This process uses several packages which may not already be installed on your Humax:
- humidify
- squashfs-tools
- bsed
Since you're already at the command prompt, you can just install them using the opkg command:
humax# opkg install humidify squashfs-tools bsed
Insert a USB Flash drive containing the firmware update
Put the customised firmware update file onto a USB flash drive, just as you would to apply the update, and plug it into your Humax. Just as with an update, the firmware bundle should be the only thing on the disk. Since the Humax is already turned on, it will not try and apply the update. If your TV is turned on and the Humax input is selected then the screen may show the loading USB and Video/Music/Photo/Copy box. This can be dismissed with the Exit button or just ignored until it times out.
Unless you have any other drives connected, this USB flash drive will now be mounted into the Humax filesystem as /media/drive1. Change into that directory and list the contents:
humax# cd /media/drive1 humax# ls HDR_FOX_T2_upgrade.hdf
Unpacking the firmware bundle
Unpack the firmware bundle using humidify. This takes around 30 seconds.
humax# humidify -x HDR_FOX_T2_upgrade.hdf HDF Tool v1.0.2, by af123, 2011. Opening HDR_FOX_T2_upgrade.hdf, 17176677 bytes. Blocks: 527 Model: 4 System ID: 80bc.7e00 x 1.hdfbin-1-000000.raw (17223680 bytes) Processed in: 22.97s humax# ls 1.hdfbin-1-000000.raw HDR_FOX_T2_upgrade.hdf
There are now two files on the USB drive.
Extract the file system
Extract the filesystem using unsquashfs. This takes around 5 seconds.
humax# unsquashfs -d /mod/tmp/firmware 1.hdfbin-1-000000.raw
created 1383 files
created 124 directories
created 144 symlinks
created 200 devices
created 0 fifos
and change directory to the location of the extracted firmware.
humax# cd /mod/tmp/firmware humax# ls bin etc lib mnt opt root share tmp var dev home media mod proc sbin sys usr
Change the media server name
Choose a new name for your media server which is exactly 12 characters long (the length of the original Media Server). You can add spaces to the end if you don't need all the characters. Run the bsed command to modify the Humax binary and replace the standard name with yours. The example here just changes it to Media Serve2
humax# bsed -v -1 usr/bin/humaxtv "Media Server" "Media Serve2"
Re-pack the filesystem
Change directory back to the flash drive and rebuild the filesystem using squashfs. This takes up to a minute.
humax# cd /media/drive1 humax# mksquashfs /mod/tmp/firmware 1.hdfbin-1-000000.raw -le -all-root -noappend Parallel mksquashfs: Using 1 processor Creating little endian 3.0 filesystem on 1.hdfbin-1-000000.raw, block size 65536. Little endian filesystem, data block size 65536, compressed data, compressed metadata, compressed fragments Filesystem size 16819.80 Kbytes (16.43 Mbytes) 44.73% of uncompressed filesystem size (37602.17 Kbytes) Inode table size 17944 bytes (17.52 Kbytes) 31.14% of uncompressed inode table size (57615 bytes) Directory table size 18381 bytes (17.95 Kbytes) 42.25% of uncompressed directory table size (43501 bytes) Number of duplicate files found 19 Number of inodes 1851 Number of files 1383 Number of fragments 141 Number of symbolic links 144 Number of device nodes 200 Number of fifo nodes 0 Number of socket nodes 0 Number of directories 124 Number of uids 1 root (0) Number of gids 0
Remove the temporary filesystem
humax# rm -rf /mod/tmp/firmware
Rebuild the firmware bundle
The last step is to rebuild the firmware bundle using the new filesystem file. This takes just over a minute.
humax# humidify -c HDR_FOX_T2_upgrade.hdf 80bc.7e00 1.hdfbin-1-000000.raw
HDF Tool v1.0.2, by af123, 2011.
Adding 1.hdfbin-1-000000.raw (17223680 bytes)... 0.31% compression
Processed in: 65.90s
Flash the new firmware image
Install the modified firmware image as normal and your media server should be renamed!