I apologize in advance for this post being slightly off topic because it is about the Foxsat HD, but I am convinced that the people who can answer my question read this section of the forum and probably don't read the foxsat hd section.
I am interested in learning how to create customised versions of firmware but I only have a foxsat-hd I can experiment with. When I feel more confident I might branch out onto a box with more capabilities (such as the foxsat hdr downstairs)
I am making an assumption that the initial steps of setting up a dev env for these boxes would would be more or less the same (and very simiilar to the T2's)
I very quickly discovered that not all the tools work reliably in Windows so I use an Ubuntu 12.04 virtual machine with humidify 1.0.2, mksquashfs and unsquashfs 4.2 (2011/02/28)
My problem is I cant make an HDF file that works.
Test 1 Create a working HDF with Humax provided raw file
a) Extract .raw files for a standard firmware upgrade file supplied by humax
b) For the HD, the raw file '2.hdfbin-1-300000.raw' appears to contain the root file system (discovered during play) so use this.
c) Create a new HDF file containing just this raw file
sudo ./humidify-linux-i386 -c FOXSAT-HD_upgrade.hdf 35f1.0000 2.hdfbin-1-300000.raw
d) put it on a USB stick
e) Upload to the hummy
The firmware updates as expected, reboot box and everything is honky dory.
Test passed.
Test 2 Create HDF file with raw file I create
a) unsquash the raw file used in test 1 (you have to be superuser)
sudo ./unsquashfs 2.hdfbin-1-300000.raw
This succcesfully creates a directory squashfs-root containing, at least what looks like to the non-expert eye , the important linux files.
b) Create a new raw file from the *unchanged* files in squashfs-root directory
sudo ./mksquashfs squashfs-root new.raw -all-root -noappend
First sign of trouble: the new raw file is not the same size as the original one.
c) rename the raw file to 2.hdfbin-1-300000.raw and create a new HDF file as in test 1
sudo ./humidify-linux-i386 -c new.hdf 35f1.0000 2.hdfbin-1-300000.raw
d) rename the HDF file FOXSAT-HD_upgrade.hdf and put it on a USB stick
e) Upload to the hummy
The firmware uploads successfully but when the box is rebooted it hangs.
Test failed.
(restore the box to working order by uploading the humax supplied firmware)
Conclusion: I am not (un)squashing properly. Can anyone point out what I am doing wrong? Or is the '2' in the filename significant? Should it be '1' (just occurred to me as I write this - but it cant be because test 1 worked.)
thanks
(If someone can help me, I promise not to post off-topic again!)
I am interested in learning how to create customised versions of firmware but I only have a foxsat-hd I can experiment with. When I feel more confident I might branch out onto a box with more capabilities (such as the foxsat hdr downstairs)
I am making an assumption that the initial steps of setting up a dev env for these boxes would would be more or less the same (and very simiilar to the T2's)
I very quickly discovered that not all the tools work reliably in Windows so I use an Ubuntu 12.04 virtual machine with humidify 1.0.2, mksquashfs and unsquashfs 4.2 (2011/02/28)
My problem is I cant make an HDF file that works.
Test 1 Create a working HDF with Humax provided raw file
a) Extract .raw files for a standard firmware upgrade file supplied by humax
b) For the HD, the raw file '2.hdfbin-1-300000.raw' appears to contain the root file system (discovered during play) so use this.
c) Create a new HDF file containing just this raw file
sudo ./humidify-linux-i386 -c FOXSAT-HD_upgrade.hdf 35f1.0000 2.hdfbin-1-300000.raw
d) put it on a USB stick
e) Upload to the hummy
The firmware updates as expected, reboot box and everything is honky dory.
Test passed.
Test 2 Create HDF file with raw file I create
a) unsquash the raw file used in test 1 (you have to be superuser)
sudo ./unsquashfs 2.hdfbin-1-300000.raw
This succcesfully creates a directory squashfs-root containing, at least what looks like to the non-expert eye , the important linux files.
b) Create a new raw file from the *unchanged* files in squashfs-root directory
sudo ./mksquashfs squashfs-root new.raw -all-root -noappend
First sign of trouble: the new raw file is not the same size as the original one.
c) rename the raw file to 2.hdfbin-1-300000.raw and create a new HDF file as in test 1
sudo ./humidify-linux-i386 -c new.hdf 35f1.0000 2.hdfbin-1-300000.raw
d) rename the HDF file FOXSAT-HD_upgrade.hdf and put it on a USB stick
e) Upload to the hummy
The firmware uploads successfully but when the box is rebooted it hangs.
Test failed.
(restore the box to working order by uploading the humax supplied firmware)
Conclusion: I am not (un)squashing properly. Can anyone point out what I am doing wrong? Or is the '2' in the filename significant? Should it be '1' (just occurred to me as I write this - but it cant be because test 1 worked.)
thanks
(If someone can help me, I promise not to post off-topic again!)