8devices / carambola

Carambola - RT305x/SoC based PCB
http://openwrt.org/
GNU General Public License v2.0
26 stars 12 forks source link

weird files in / after sysupgrading #17

Open wtelaball opened 10 years ago

wtelaball commented 10 years ago

after upgrading with sysupgrade some weird files have appeared in the / directory. We've tried with old images that worked before and the files stayed there, not sure if they have the same names. The only difference is that we are working with brand new carambolas. We also tried flash erase from uboot and reflashing with tftp and still the same. Also tried with another device (also new) with the same results. Those "files" can be erased with rm but they will appear after a reset.

Any ideas? Thanks in advance

root@OpenWrt:/# ls -la drwxr-xr-x 1 root root 0 Sep 8 15:44 . drwxr-xr-x 1 root root 0 Sep 8 15:44 .. -rw-r--r-- 1 root root 0 Jan 1 1970 Ent?r -rw-r--r-- 1 root root 0 Sep 8 15:44 ^m -rw-r--r-- 1 root root 0 Sep 8 15:44 ^nonu-:?K?r????oun -rw-r--r-- 1 root root 0 Sep 8 15:44 ^????r?{? -rw-r--r-- 1 root root 0 Sep 8 15:44 ^????r?ss?0?ot -rw-r--r-- 1 root root 0 Jan 1 1970 ??}}}}?}}?}}??}}}}}}??}}?? drwxr-xr-x 2 root root 665 Feb 12 2014 bin drwxr-xr-x 3 root root 0 Sep 8 15:44 config -rw-r--r-- 1 root root 0 Sep 8 15:44 c}n7v0op?n0vo8a?tiv}?u?0no0susl0filu -rw-r--r-- 1 root root 0 Sep 8 15:44 c}n7v0?req?u drwxr-xr-x 5 root root 860 Sep 8 15:44 dev -rw-r--r-- 1 root root 0 Sep 8 15:44 ent?r -rw-r--r-- 1 root root 0 Sep 8 15:44 error?0u?u drwxr-xr-x 1 root root 0 Sep 8 15:44 etc drwxr-xr-x 1 root root 0 Feb 12 2014 lib drwxr-xr-x 2 root root 3 Feb 12 2014 mnt -rw-r--r-- 1 root root 0 Sep 8 15:44 n7v0cr?q?u -rw-r--r-- 1 root root 0 Sep 8 15:44 n: -rw-r--r-- 1 root root 0 Sep 8 15:44 not -rw-r--r-- 1 root root 0 Sep 8 15:44 ot -rw-r--r-- 1 root root 0 Sep 8 15:44 ot?0not drwxr-xr-x 6 root root 0 Sep 8 15:44 overlay dr-xr-xr-x 51 root root 0 Jan 1 1970 proc drwxr-xr-x 16 root root 223 Feb 12 2014 rom -rw-r--r-- 1 root root 0 Sep 8 15:44 roo -rw-r--r-- 1 root root 0 Sep 8 15:44 roo: drwxr-xr-x 2 root root 3 Feb 12 2014 root -rw-r--r-- 1 root root 0 Sep 8 15:44 root~,n?n?Iz??j -rw-r--r-- 1 root root 0 Sep 8 15:44 root?0not -rw-r--r-- 1 root root 0 Sep 8 15:44 root?0?ot drwxr-xr-x 2 root root 644 Feb 12 2014 sbin drwxr-xr-x 11 root root 0 Jan 1 1970 sys -rw-r--r-- 1 root root 0 Sep 8 15:44 s}n -rw-r--r-- 1 root root 0 Sep 8 15:44 s}nt} -rw-r--r-- 1 root root 0 Sep 8 15:44 s}nt}ms?unt?8?ot drwxrwxrwt 9 root root 260 Sep 8 15:44 tmp drwxr-xr-x 6 root root 74 Dec 30 2012 usr lrwxrwxrwx 1 root root 4 Feb 12 2014 var -> /tmp drwxr-xr-x 4 root root 67 Dec 30 2012 www -rw-r--r-- 1 root root 0 Jan 1 1970 ~_???5 -rw-r--r-- 1 root root 0 Sep 8 15:44 ~?s?u?8r?tmr?s?ion: -rw-r--r-- 1 root root 0 Sep 8 15:44 ?n?root -rw-r--r-- 1 root root 0 Sep 8 15:44 ?}n7v0cr?q?u -rw-r--r-- 1 root root 0 Sep 8 15:44 ?}n7v0op?n0error?0unu?0no???.2ilu -rw-r--r-- 1 root root 0 Sep 8 15:44 ? -rw-r--r-- 1 root root 0 Sep 8 15:44 ?s?}?0?u?mr?{?ion: -rw-r--r-- 1 root root 0 Sep 8 15:44 ?oot -rw-r--r-- 1 root root 0 Sep 8 15:44 ?}nt} -rw-r--r-- 1 root root 0 Sep 8 15:44 ?

valinskas commented 10 years ago

Hmm this really looks weird and it looks like rootfs part is corrupted. Don't know why. Did you compile firmware image ? If yes can you post a link/URL to it so that I can download and take a look ?

wtelaball commented 10 years ago

Thanks vlinskas for your reply. I compile it myself including some packages that I need.

https://www.dropbox.com/sh/3903cq941bnwasa/StNm_aTEio

valinskas commented 10 years ago

Ok. I will try upgrading my devices with your firmware tomorrow.

wtelaball commented 10 years ago

Hi vlinskas, any news on this matter?

valinskas commented 10 years ago

I had extracted 'rootfs' part from your firmware file and decompressed it. I don't see any "magic" symbols in files names. So firmware is Ok.

You can reset device to default settings by running:

# /sbin/firstboot
...

Do you see any weird named files after 'firstboot' ?

wtelaball commented 10 years ago

Hi Zilvinas,

weird files dissapeared after firstboot. BUT.... after the first/second reboot they appeared again. Really weird.

Any idea?