SB6120 testing firmware.

SB6XXX,SBV6XXX

Moderators: justsomeguy, Koevoet

Locked
usbbdm
Junior Member
Posts: 8962
Joined: Mon Jul 18, 2005 9:33 pm

SB6120 testing firmware.

Post by usbbdm »

http://www.usbjtag.com/filedownload/imagetool.php

This is how this firmware was made.
1. Use imagetool to unpack firmware SB6120-1.0.2.0-ENG00-SH.NNEMN.bin. This is the only shell firmware I have.
2. Edit etc/scripts/dsdk.pcd
change from

Code: Select all

# INCLUDE = /etc/scripts/vendor.pcd
to

Code: Select all

 INCLUDE = /etc/scripts/vendor.pcd
3. Edit the usr/sbin/runall
At the end change from

Code: Select all

if [ -z "$docsis_auto_run" ]; then

    # Kill the current watchdog, and let PCD start and monitor it
    rtwd=`ps|grep watchdog_rt|grep -v grep|cut -c 1-5`

    if [ -n "$rtwd" ]; then
        kill -9 $rtwd ; \
    fi

    # Spawn PCD, start the system
    /usr/sbin/pcd -f /etc/scripts/dsdk.pcd -v -t 20 -d -e /nvram/pcd_error_log.txt &
fi
To

Code: Select all

#    if [ ! -f /nvram/agent_cm.cnf ]; then
#	cp /etc/agent_cm.cnf.org /nvram/agent_cm.cnf
#    fi
	echo "root:ABW9wzpK6VV4Q:0:0:Root User,,,:/nvram:/bin/sh">/var/tmp/passwd
	echo "root:ABW9wzpK6VV4Q:0:0:Root User,,,:/nvram:/bin/sh">/var/tmp/shadow

    # Spawn PCD, start the system
    /usr/sbin/pcd -f /etc/scripts/dsdk.pcd -v -t 20 -d -e /nvram/pcd_error_log.txt &
fi
4. Add one file called etc/scripts/vendor.pcd

Code: Select all

############################################################################
#
# Vender PCD Script
#
############################################################################

#################################################################

# Index of the rule
RULE = SYSTEM_DROPBEAR

# Condition to start rule, existence of one of the following
START_COND = RULE_COMPLETED,DOCSIS_HALREADY,DOCSIS_DBRIDGEINIT

# Command with parameters
COMMAND = /usr/sbin/dropbear -i lan0 -r /etc/rsa_key.priv -p 22

# Scheduling (priority) of the process
SCHED = NICE,0

# Daemon flag - Process must not end
DAEMON = YES

# Condition to end rule and move to next rule, wait for one of the following:
END_COND = NONE

# Timeout for end condition. Fail if timeout expires
END_COND_TIMEOUT = -1

# Action upon failure, do one of the following actions upon failure
FAILURE_ACTION = NONE

# Active
ACTIVE = YES

#################################################################
5. Since the command

Code: Select all

cli docsis/scan 0
is a little bit long, I added a shell in /usr/sbin/stopscan (Can be another name)

Code: Select all

#!/bin/sh
cli docsis/scan 0
chmod 755 stopscan
Now while bootup on serial port you can type "stop" then hit tab and auto complete as stopscan

SSH is enabled and password is Admin
Have fun.
celular
Junior Member
Posts: 65
Joined: Mon Nov 10, 2008 10:24 am

Post by celular »

sorry... for this is?
dtox69
Junior Member
Posts: 15
Joined: Tue May 20, 2008 9:03 am

Post by dtox69 »

this is to help new users learn how to unpack/repack the firmware in case they want to edit something
celular
Junior Member
Posts: 65
Joined: Mon Nov 10, 2008 10:24 am

Post by celular »

ok, thanks dtox69
d0
Junior Member
Posts: 177
Joined: Thu Feb 26, 2009 9:50 am
Location: S FL
Contact:

Post by d0 »

I am trying to use the tool to unpack DPC3000 firmware image. On step two, i don't have the file etc/scripts/dsdk.pcdin in the unpack directory, can this file be added in and repacked?
d0
Junior Member
Posts: 177
Joined: Thu Feb 26, 2009 9:50 am
Location: S FL
Contact:

Post by d0 »

does the image have to be SH or NOSH will work?
usbbdm
Junior Member
Posts: 8962
Joined: Mon Jul 18, 2005 9:33 pm

Post by usbbdm »

ak4d7 wrote:does the image have to be SH or NOSH will work?
If you follow the step bot will work.
d0
Junior Member
Posts: 177
Joined: Thu Feb 26, 2009 9:50 am
Location: S FL
Contact:

Post by d0 »

Hi
I am using ubuntu 10.04 linux. I downloaded the imagetool and I am trying to unpack this 6120 firmware inside the directory with the imagetool and the firmware i type in

Code: Select all

./imagetool -u  SB612X-1.0.3.0-SCM03-NOSH.NNDMN.p7.csg
and press enter but nothing happens, do i need to remove the header of the firmware before i try to unpack it?
d0
Junior Member
Posts: 177
Joined: Thu Feb 26, 2009 9:50 am
Location: S FL
Contact:

Post by d0 »

Hello USBBDM I have used your imagetool to unpack DPC3000 Firmware but I can't find the scripts directory. I was successfull when i tried to unpack/make 612x_1.0.3.0 firmware using your directions as an easy to follow guide.
usbbdm
Junior Member
Posts: 8962
Joined: Mon Jul 18, 2005 9:33 pm

Post by usbbdm »

ak4d7 wrote:Hello USBBDM I have used your imagetool to unpack DPC3000 Firmware but I can't find the scripts directory. I was successfull when i tried to unpack/make 612x_1.0.3.0 firmware using your directions as an easy to follow guide.
DPC300 has different directory structure. So need to study it first.
d0
Junior Member
Posts: 177
Joined: Thu Feb 26, 2009 9:50 am
Location: S FL
Contact:

Post by d0 »

usbbdm: i followed this guide exactly and I was not able to open a SSH connection. I tried with the new 6120 firm (SB612X-1.0.3.0-SCM03-NOSH.NNDMN) and with the new dpc3000 firm (dpc3000-v303r2391-100514aCMCST).
Locked

Who is online

Users browsing this forum: No registered users and 9 guests