Copy file to SD card from internal flash.


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Copy file to SD card from internal flash.
# 8  
Old 09-22-2011
There is no worry if I will brick it.
I have full flash copy made with my Wellon VP-990 programmer.
So, I can restore unit.

Can you also download full firmware from link in my first post.
Update.sh is located at the end of firmware file.
There are some values I have no idea what they tells about.
Can you take a look, please.

It looks like this:

Image

Ps. There is no problem with calculating new SHA1 checksum and placing it in bin file.
# 9  
Old 09-22-2011
That's a tape archive! Smilie

Specifically ustar, the modern kind. See tar (file format)

Each file record begins with a header containing, among other things, a filename and 'ustar'. The literal contents of the file follow immediately after, padded to a certain block size.

This is good news. If you can figure out where the file begins and ends, you can dump it and extract it with ordinary tools, and build a new one from scratch. (It'd be best to do so on a UNIX system though, because it contains important file permissions, something a Windows system would botch mercilessly.)

You might also be able to append things without altering the previous content; tar, being originally built for tapes, plays well with that.

Last edited by Corona688; 09-22-2011 at 06:51 PM..
# 10  
Old 09-22-2011
Attached are config.ini files dumped from HDS-5, HDS-7 and HDS-10 unit.
I have no tools to "unpack" them Smilie
# 11  
Old 09-22-2011
I don't suppose you have access to this thing's serial port output? The script shows how to use it, and squirting the file out the serial port may be mounds easier than trying to find, mount, write, unmount, and sync a flash disk upside down and blindfolded.

---------- Post updated at 04:00 PM ---------- Previous update was at 03:59 PM ----------

My system recognizes those as disk images, I may be able to get files out of them. Give me a bit.
# 12  
Old 09-22-2011
Smilie

Here is full NAND flash dump:
www pouchx com/PRV/HDS/K9G8G08U0M-HDS-10-full-NAND_dump.rar

Config.ini at 0x837D0C0 offset.

Here is how HDS reads config.ini values.

My mission is to change AMER to ROW.
It can be represented by values as below:
0 - AMER
1 - EMEA
2 - ROW

Image

Code:
[General]
Brand=0 
INIVersion=2.0 
ScreenType=2

[ApplicationDefaults] 
DefaultCharProvider=Navico 
DefaultDateFormat=MM/dd/yyyy 
DefaultTimeFormat=12hr 
DefaultTimeZone=-06:00 
DefaultUnits=Imperial 
DefaulVideoFormat=N/A

[Mapping]
HaveBackground=True 
HaveLakeInsight=False 
HaveNauticInsight=False 
HaveSonarOnly=False 
HaveUSInsight=False 
HaveWorldBackground=False

[Product]
Description=HDS-7 with US Background 
FinalAssyPartNum=003-8086-00 
ProductId=HDS7 
ProductRegion=AMER


Last edited by Scott; 09-22-2011 at 07:44 PM.. Reason: Please use code tags...
# 13  
Old 09-22-2011
Your attachments don't seem to be full-sized jffs2 filesystems. Trying to read them mostly just failed, and forcing it to mount anyway locked up my system. Hopefully the dump will be more useful...
# 14  
Old 09-22-2011
Full NAND dump link is posted above.
It is 1GB chip.
Code:
#   1GB NAND has 256k ERASESIZE and 2k PAGESIZE OR 256k ERASESIZE and 4k PAGESIZE 


Last edited by Scott; 09-22-2011 at 07:51 PM.. Reason: The time you spend on fonts, colours and wot-not, you could have added code tags in less time!
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

PowerHA; Import flash copy of VG?

Hey guys, wondering if this is possible to accomplish. PowerHA SystemMirror7.1 active/passive cluster. Restored a clustered system in test and upgraded to the latest version of PowerHA. Things are working great. However in the interest of time during cut over to the new system, I was hoping to... (4 Replies)
Discussion started by: j_aix
4 Replies

2. Shell Programming and Scripting

Copy file and evaluate its internal variables

Hi I have been trying to figure a way to copy a file, (a template), that has internal variables. Using the values as defined for those variables in another script. So a file called x - #! /bin/bash D=aa.$X.bb And file y #! /bin/bash X=6 while read line do eval echo... (5 Replies)
Discussion started by: steadyonabix
5 Replies

3. SuSE

In KDE Copy completed not always mean files were copied to USB flash drive - how to fix it?

I have noticed that when I copy files to flash disk and in UI I see message copy completed in notification area on task bar, usually copy is not completed. So, if I eject the media I loose data. It is very serious problem because may cause loss of valuable and even critical data. Moreover, when... (2 Replies)
Discussion started by: netwalker
2 Replies

4. Shell Programming and Scripting

File splitting, naming file according to internal field

Hi All, I have a rather stange set of requirements that I'm hoping someone here could help me with. We receive a file that is actually a concatenation of 4 files (don't believe this would change, but ideally the solution would handle n files). The super-file looks like:... (7 Replies)
Discussion started by: Leedor
7 Replies

5. AIX

Flash Copy Problem, has any one else seen this?

Around a month ago we suffered a prolonged power outage, due to circumstances the servers and storage arrays were still in use when the UPS dropped. One of the servers was running a flash copy on the database while batch processing had commenced. This is the only server that suffered any further... (2 Replies)
Discussion started by: gull04
2 Replies

6. Ubuntu

Format a compact flash card in Ubuntu

I need some assistance formatting a compact flash card in Ubtunu. I connect up the CF card through a USB reader. Ubuntu recognizes the reader usb device, but does not "mount" the CF card as a device. The CF card was formatted in FAT32 format. Any help would be greatly appreciated.... (3 Replies)
Discussion started by: genesis211
3 Replies

7. UNIX for Advanced & Expert Users

Sun internal disks and HBA card

I have a V490 that has couple internal disks attached to the same dual-port HBA card that I'm planning attach to the SAN for additional storage. Would I sacrifice performance if I use the same HBA? Is it better to throw in a new HBA instead? (1 Reply)
Discussion started by: kiem
1 Replies

8. Solaris

Install Solaris 10 with an internal StorageTek SAS HBA Raid card

Hi all i would like to ask some suggests about my next job! I have to install a new Sun Netra T5220, with an additional internal StorageTek SAS HBA Raid. The problem come in if every disk is now controlled by the HBA, how can I install the OS? No disk is being detected by the OS. SAS card... (2 Replies)
Discussion started by: kakabobo
2 Replies

9. UNIX for Advanced & Expert Users

Forwarding internal internet packets to internal webserver using iptables

Hi, I need to redirect internal internet requests to a auth client site siting on the gateway. Currently users that are authenticated to access the internet have there mac address listed in the FORWARD chain. All other users need to be redirected to a internal site for authentication. Can... (1 Reply)
Discussion started by: mshindo
1 Replies

10. Solaris

istall sas raid HBA internal card

I need to install a raid HBA internal card on a T5240. The reason is I have more drives and the current mother board controller does not support more than 4 drives. My question is I have raidctl set up on current drives. If I install new HBA card do I have to delete current raidctl and... (3 Replies)
Discussion started by: photon
3 Replies
Login or Register to Ask a Question