Re-organized the forum to more cleanly delineate the development section, as the end user support side appears to have taken a life of its own!

Author Topic: Too big romfs.img. What now?  (Read 7659 times)

August 08, 2011, 01:50:13 pm
I modified FI8918W--36 romfs.img and added telnetd. Now I opened it in hex editor and last byte is 0x111BFF. So the size of image is 0x111C00. Now end_address = start_address + size => 0x7F0E0000 + 0x111C00 = 0x7F1F1C00 > 0x7F1F0000
where 0x7F1F0000 is the starting address of settings, which means that romfs.img and settings are overlapping. Can I do anything? I read that you can compress image somehow, but how camera can decompress it.

Actually there is more than 0x416 zeros at the end of modified romfs.img file.
« Last Edit: August 08, 2011, 01:52:15 pm by BlackCam »

  • No avatar
  • *****
August 11, 2011, 12:58:55 am
Remove items from the romfs that you don't need.

Did you compress your telnetd file?

flthdr -z telnetd

Check that all the executable files in the romfs are compressed too

file *

Check that they're all compressed.

August 11, 2011, 04:23:06 pm
I copied telnetd from here and it is compressed. I am worried about that I could remove an item which is needed to startup camera. I guess that dhcpcd or dhcpd is used just to get the ip address of ipcam. Maybe I can remove one of them.