life ideas

December 5, 2006

Simpleshare

Filed under: Uncategorized — manoftoday @ 11:26 pm

http://www.openmss.org/forum/viewtopic.php?t=120&postdays=0&postorder=asc&start=30

Tools Needed
————
1. Root access to a linux PC
Steps
—–
1. Download SimpleShareFirmwareV1_07.trx firmware to linux PC using this link:
http://www.simpleshare.com/downloads/SimpleShareFirmwareV1_07.trx
2. The trx file contains 2 sections: the linux kernel and the filesystem (in cramfs format).
Extract the kernel from the trx file as follows:
# dd if=SimpleShareFirmwareV1_07.trx of=piggy.gz bs=1 skip=28

# gunzip piggy.gz
# gzip -9 piggy
Extract the simpleshare cramfs filesystem from the trx file as follows:
# dd if=SimpleShareFirmwareV1_07.trx of=root_simple.cramfs bs=1 skip=1151696

for firmwware v1.09. the skip is :

dd if=SimpleShareFirmwareV1_09.trx of=root_simple_1_09.cramfs bs=1 skip=1159588 
3. Mount the simpleshare cramfs filesystem (which is read-only) and then create a read-writable copy.
# mount -o loop,ro ./root_simple.cramfs /mnt
# cp -Rp /mnt root
# umount /mnt
# cd root
# mkdir tmp dev mnt proc foreign_shares
4. At this point, you can make whatever changes (e.g., adding support for telnet) to the read-write copy of the simpleshare filesystem (under root/ directory).
To add support for telnet access, copy /bin/utelnetd and /lib/libc.so.6 from the mss122_openmss2.bin file into the simpleshare filesystem.
Retrieve the openmss firmware using this link:
http://www.openmss.org/uploads/Hardware/Mss/Firmware/mss122_openmss2.bin
To copy the 2 files, extract and mount the openmss cramfs filesystem.
# dd if=mss122_openmss2.bin of=root_mss.cramfs bs=1 skip=1618093
# mount -o loop,ro ./root_mss.cramfs /mnt
# cp /mnt/bin/utelnetd root/bin
# cp -f /mnt/lib/libc.so.6 root/lib
Modify the startup script in the simpleshare filesystem to start utelnetd.
# echo “utelnetd &” >> root/usr/sbin/st_startup.sh
5. Convert the read-write copy of the simpleshare filesystem to cramfs.
# mkcramfs root root_simple_mod.cramfs
6. Combine the kernel extracted in step 2 with the modified simpleshare cramfs into a trx firmware package.
# trx -o myfirmware.trx piggy.gz root_simple_mod.cramfs
If you don’t have the trx program, it can be downloaded and extracted using this link:
ftp://ftp.linksys.com/opensourcecode/wrt54gv2/2.02.7/wrt54g.2.02.7.tgz
7. Upload the new firmware and enjoy.

Back to top

View user's profile Send private message

pjigar
Junior Member
Joined: 12 Oct 2006
Posts: 15

PostPosted: 16 Oct 2006 17:39 Post subject:
Reply with quote


For the record, I tried hdparm command (hdparm -S 50 /dev/ide/host0/bus0/target0/lun0/disc) in a telnet window. The command returned good message saying standby time was set to 4 minutes but the drive did not spin down. This was a quick test, I will try again tonight and report back.
Also I upgraded my SimpleShare with 300GB HDD. It was hard work since most of the time SimpleShare did not recognized new HDD. This is what I had to do:
1. Connect new HDD to IDE connector of a spare PC. Set the jumper of new HDD to CS (Cable Select)
2. Use any live linux CD (I used SysRescCd) and boot from the CD
3. Run QTParted (GUI Partition editor) and select the newly connected HDD. If you are not comfortable with Linux then I suggest you disconnect all other existing HDDs from the PC just to be safe). The new HDD will be listed as /dev/hda, /dev/hdb or something like that (hda: Primary master, hdb: Primary slave, hdc: Secondary master, hdd: Secondary slave)
4. Create a primary partition with fat32. Click save. This will create a partition on HDD. This step is sanity step so that we finally come up with really virgin drive without any partitions.
5. Now delete the created partition and again save. This will get you a virgin HDD.
6. Shutdown (shutdown -h now) the PC
7. Connect the new HDD into SimpleShare (For the record, once you open SimpleShare then warranty is void)
8. Connect the power to SimpleShare and wait for about 1 minute. You will notice drive spin up after few seconds. And finally blue LED will come on. If blue LED does not come on then SimpleShare did not recognized the HDD as well as it created hidden-nonfunctional partition on HDD.
9. If you do not see blue LED after 1 minutes then you need to go back to step 1 and start over!! I had to repeat step 1 to 8 for may be five times before I saw blue LED.
10. If you see blue LED light up then the drive is ready to be “claimed”.
11. Open a web browser and type in IP address of SimpleShare. Go to “advanced setup” -> Disk management -> Basic. On this page, you will see new HDD and “Claim” link. Click on the “Claim” link. Next page, enter disk name and consent message and click “Claim”. This will format the HDD and it should take less than a minute. If you see active green LED after 1 minutes then SimpleShare has messed up again. Start over from step 1. For me, it messed up two time on the “claim” step.
12. If the claim process finish successfully then you will get a pop-up message and you are done. Phew!! At this point you can start creating “Pools” and then “Shares” on the “Pools”. If you are interested in mirrored Pool then you need to attach a virgin USB HDD and “Claim” USB HDD before you create the pool.
Hope this helps to someone.
EDIT: Lot of people did not encounter problems faced by me when upgrading HDD. Now that I think about it, it may be my crappy Maxtor drive that had trouble talking to SimpleShare. I hate Maxtor.

Advertisements

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at WordPress.com.

%d bloggers like this: