|
||||||||||
| Cable Modems Gotta start somewhere and here's the place to start :) |
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 (permalink) |
|
Junior Member
Join Date: Oct 2008
Posts: 10
Thanks: 0
Thanked 3 Times in 2 Posts
|
Hi there,
There doesn't seem to be a lot of info about Ambit modding using a linux box and it took me quite some time to gather all the info I needed to do this so I thought I would share my findings on here. I use Ubuntu 8.10 (Intrepid Ibex). This may apply to 8.04 as well and maybe other linux distro's with some tweaking but can't guarantee this. This is the first guide I have written and apologise in advance for any mistakes or inaccuracies. 1.Packages Used: These are packages I use and work for me. Other packages may be available as alternatives and some other packages may be installed along with these for dependency.
These can be installed using Synaptic Package Manager in Ubuntu or by using apt-get as root (e.g. sudo apt-get install xinetd) 2.Setting Up: This is how my system is setup. I leave this permanently setup for convenience, I'm not sure if this is a security risk or not but I haven't run into any problems. Most of this information I have found from either the man files (e.g. man xinetd) or from the community at ubuntuforums.org. The TFTP server has to be defined in xinetd before we can use it. To do this we first need to find out where our tftp server (which is called 'in.tftpd') is: Code:
whereis in.tftpd Code:
in: /usr/sbin/in.tftpd Now we know where it is we'll create a tftp entry for xinetd to allow it to control this server. this file will be created in /etc/xinetd.d/ and we will need root privileges to do this. You can use gedit to create/edit this file by using the command: Code:
gksu gedit /etc/xinetd.d/tftp Code:
sudo vim /etc/xinted.d/tftp Code:
service tftp
{
protocol = udp
port = 69
socket_type = dgram
wait = yes
user = nobody
server = /usr/sbin/in.tftpd
server_args = /tftpboot
disable = no
}
The server_args entry defines the folder that will be used to host our files. This may or may not exist yet. If it doesn't, create it using: Code:
sudo mkdir /tftpboot Code:
sudo cp /path/to/firmware/file /tftpboot We will also have to change the permissions of these files as we stated in the tftp file that only the user nobody can use the tftp server: Code:
sudo chown nobody /tftpboot/* Code:
sudo /etc/init.d/xinetd restart Code:
sudo minicom -s Code:
+-----------------------------------------------------------------------+
| A - Serial Device : /dev/ttyS0 |
| B - Lockfile Location : /var/lock |
| C - Callin Program : |
| D - Callout Program : |
| E - Bps/Par/Bits : 115200 8N1 |
| F - Hardware Flow Control : No |
| G - Software Flow Control : No |
| |
| Change which setting? |
+-----------------------------------------------------------------------+
The last thing we have to do is to give the ethernet port (eth0 on my system, yours maybe different) an IP address on the same network as the modem. There are 2 ways to do this depending on wether you plan to flash one modem or lots. To change the IP temperarily: Code:
sudo ifconfig eth0 192.168.100.10 Code:
sudo vim /etc/network/interfaces Code:
gksu gedit /etc/network/interfaces Code:
# Modem
auto eth0:modem
iface eth0:modem inet static
address 192.168.100.10
netmask 255.255.255.0
3.Changing the Firmware. *** I'm using haxorware11rev30.bin *** Now we go ahead and open up the modem and connect our serial cable to the four pins closest to the ethernet connector (as shown in countless other tutorials), and plug in the ethernet cable. We can then start minicom (I like to use some switches to allow the use of meta keys and use colour but these aren't necessary): Code:
minicom -M -c on If this has been done correctly we should see: Code:
Board IP Address[0.0.0.0]: If all is going well then we should see the main menu: Code:
Main Menu:
==========
d) Download and save to flash
g) Download and run from RAM
c) Store icePROM bootloader to flash
b) Boot from flash
e) Erase flash sector
m) Set mode
s) Store bootloader parameters to flash
i) Re-init ethernet
r) Read memory
w) Write memory
When prompted: Code:
Board TFTP Server IP Address[0.0.0.0]: and at next prompt: Code:
Enter TFTP filename[]: We should now see some dots (......) across the screen to show that file is being transferred. If not and you see a timeout message, check you don't have a firewall running or that the policies are set correctly. We should then see the prompt: Code:
Destination image 0 = bootloader 1/2 = CM image 3 = specify flash sector (0-3)[2]: Then we see this prompt: Code:
Are you sure you want to store an uncompressed image? [n] The new firmware will now be written to flash and when this is done we see the prompt: Code:
Store parameters to flash ? [n] Providing everything has gone to plan the modem should now be flashed and we should be back at the main menu. From here we can either select option b) Boot from flash, to boot the modem or pull out the power and plug it back in again. From this point we should be able to access the webGUI and change settings as needed. There are tutorials that cover these settings so I won't cover them here (try searching the forum, or google). 4. In Closing None of the information I have given here is my own. It is simply my interpretation of the countless forums and tutorials that I have read through during my research. Unfortunately I am unable to recall the names of the authors that have helped me, to give proper credit where it is due. If you feel that I am plagiarizing your original work or that I'm treading on anyones toes then please let me know and I will give proper credits or retract any offensive material. I would advise anyone who has any problems using Ubuntu to visit ubuntuforums.org where I have sourced much of my knowledge from. I hope this helps anyone in the same situation I was once in and if you have any problems following this tutorial or would like to make any suggestions on editing or give some constructive criticism, then please let me know and I will update accordingly. Last edited by rhumor; 26-02-09 at 04:10 PM. Reason: edited under advice |
|
|
|
|
|
#2 (permalink) |
|
Technology Forums
Join Date: Dec 2008
Location: sbhacker.net
Posts: 974
Thanks: 2
Thanked 251 Times in 173 Posts
|
you should edit your post to not use 2mb dumps.
using 2mb dumps is bad, other than that, good stuff. |
|
|
|
|
|
#3 (permalink) |
|
Junior Member
Join Date: Oct 2008
Posts: 10
Thanks: 0
Thanked 3 Times in 2 Posts
|
Thanks for the reply Bad_Ad84, not sure what you're referring to though. Do you mean I should add this to my post or have I got something wrong.
I wasn't aware that using a 2MB dump was bad. Why is this? Scratch that, just saw one of your other posts that says to flash haxorware firmware straight to modem. I take it that the 2MB dump is just a 'dump' from someone else's modem that's already been flashed and the firmware may have been modified. Is this correct? Last edited by rhumor; 26-02-09 at 07:47 AM. Reason: should've searched forum before asking! |
|
|
|
|
|
#4 (permalink) |
|
Technology Forums
Join Date: Dec 2008
Location: sbhacker.net
Posts: 974
Thanks: 2
Thanked 251 Times in 173 Posts
|
it overwrites everything unique about the modem, it also erases the bootloader.
if you screw it up, you have a brick. if you just write firmware, if it messes up you can have another attempt. thing of it this way: Firmware only = changing your OS, you still keep all your documents etc. 2mb dump = imaging your whole hard drive onto another pc |
|
|
|
|
|
#6 (permalink) |
|
Technology Forums
Join Date: Dec 2008
Location: sbhacker.net
Posts: 974
Thanks: 2
Thanked 251 Times in 173 Posts
|
you need to edit the sector to store part.
when you send over a firmware only, it will pick it up the header and give you a menu of locations to flash it to, rather than unknown header and sector to store. id suggest giving it a go on a spare modem so you can copy/paste the info. you want the first firmware bank, which is option 1 |
|
|
|
|
|
#8 (permalink) |
|
Technology Forums
Join Date: Dec 2008
Location: sbhacker.net
Posts: 974
Thanks: 2
Thanked 251 Times in 173 Posts
|
also, ill be linking to this from my tutorial thread once i get some free time to actually post them up.
|
|
|
|
|
|
#9 (permalink) | |
|
Technology Forums
Join Date: Dec 2008
Location: sbhacker.net
Posts: 974
Thanks: 2
Thanked 251 Times in 173 Posts
|
i lifted this from one of my other posts.
Quote:
its slightly different for haxorware 1.1 as it says something about uncompressed image that you need to say yes to. |
|
|
|
|
|
|
#10 (permalink) |
|
Technology Forums
Join Date: Dec 2008
Location: sbhacker.net
Posts: 974
Thanks: 2
Thanked 251 Times in 173 Posts
|
also edit this line
"Be sure to use the firmware only and not a 2MB dump. As I've recently learned from Bad_Ad84, if there are any problems when flashing a 2MB dump this can lead to the modem being bricked, and even if it does flash ok, the modems unique information will be overwritten and the bootloader removed" change to "this can lead to the modem being bricked as everything on the modem is being erased including the bootloader, and even if it does flash ok, the modems unique information will be overwritten" |
|
|
|
![]() |
| Bookmarks |
| Tags |
ambit, firmware, flash, linux, ubuntu ![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Ambit 250/255 Modem Question | blakey_8 | Cable Modems | 5 | 22-02-09 04:22 PM |
| changing a mac on ambit 255 | Tommywasash | Cable Modems | 0 | 04-02-09 01:03 PM |
| ambit 250 firmware problems | jjjjohn | Cable Modems | 3 | 01-08-08 11:42 AM |
| Sigma x2 firmware with ambit 200 - VM screen only?? | nbalmforth | Cable Modems | 1 | 03-06-08 10:17 PM |
| LinkBack |
LinkBack URL |
About LinkBacks |
| Bookmark & Share |
Digg this Thread! |
Add Thread to del.icio.us |
Bookmark in Technorati |
Tweet this thread |
