Not technically openWRT stuff , but I know you guys know what you are doing and might be able to help me
I am trying to alter the flash image on a emprex nsd-100 .
in /dev I have
mtdblock0
mtdblock1
mtdblock2
mtdblock3
in dmesg i have
0x00000000-0x00020000 : "Armboot"
0x00020000-0x007e0000 : "Kernel & Ramdisk"
0x007e0000-0x00800000 : "configure"
0x001a0000-0x007c0000 : "squashfs"
/dev/mtdblock3 is the squashfs
In root i typed
[root@FA520]# dd if=/dev/mtdblock3 of=/mnt/data/public/squash.fs
to create a file that is an image of the block of flash that is the squashfs .
I also did the same for the configure section.
But I am unable to open either file . When I run up either "hexedit 4.2" or "xvi32" in windows they both either refuse to open the file or crash.
How can a hex editor refuse to open the file. its contents is irrelevant!!
Am I using dd wrong? these files are initially saved on a drive that is formatted xsf and I access them via samba. Copying them to the windows drive first makes no difference.
My goal is to open the squashfs alter it slightly so that one of the startup scripts runs a script on the external hard disc then copy it back.
At the moment the only way to get root access is to run preexec in the samba config and get that to start a terminal server , but this only runs if you access the samba share, thus this needs to be done every boot. I would like to get the system to automatically start the apps I have installed in the debian I have bolted on the side of the system. Just running one script on the harddisc at boot is all I need.
Or can I cut the squashfs out of the flash image file used for updating the device. I have this . It is 8 meg long but the device has 16 meg flash. Any idea where the start point would be ie 0x001a0000 ? does the flash update software flash in one contiguous lump.
Thanks
Pale