Re: GSM Firmware Flashed, now UBIFS problem and Kernel Panic
Anyway it could be a problem related to ubifs instability, which is a topic recently discussed in mailing list [1]. You can follow that tread and try to: I don't think it's releated to ubifs stability. It happens to me every time I boot from SD card with a linux kernel different (at least older) then qtmoko/v31/nand one. Who changes root partition (nand) in this case? Qi? The kernel from SD card, even if it doesn't know about ubifs format? And for what? To change a mount counter or last mount time? ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: GSM Firmware Flashed, now UBIFS problem and Kernel Panic
Am 08.05.2011 11:23, schrieb Noel: Anyway it could be a problem related to ubifs instability, which is a topic recently discussed in mailing list [1]. You can follow that tread and try to: It happens to me every time I boot from SD card with a linux kernel different (at least older) then qtmoko/v31/nand one. I can confirm this. My ubifs errors always happened after I started Debian from SD card. PS: I have a nanddump of the faulty images. According the ubifs FAQ one should not bother the developers with errors resulting from using old ubifs code, so I haven't send it to anyone ... Jens ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: GSM Firmware Flashed, now UBIFS problem and Kernel Panic
Hello, If there is a better solution that preserves the FS, I would be happy to learn about it. I wonder if it would be possible to boot into a distro on the sd card and mount the nand partitions. Then you could save /home. Just a thought. Yes, it is: just mount -t jffs2 /dev/mtdblock6 /mountpoint Thank you all for your input.. I put a qtmoko v35 on an SD card.. an on terminal I did: mkdir /home/root/nandfs mount -t ubifs /dev/mtdblock6 /home/root/nandfs but sadly that doesn't work.. dmesg tells me: UBIFS error: ubifs_get_sb: cannot open /dev/mtdblock6, error -22 Any ideas? Cheers, I think you need to attach the ubifs before mounting. See http://openmoko-public-mailinglists.1958.n2.nabble.com/UBI-success-story-td4218730.html for the steps, though unless you want to reformat, you shouldn't follow all of them. Ben Alternatively, you can follow http://wiki.openmoko.org/wiki/UBIFS : # apt-get install mtd-utils # if you are on qtmoko # ubiattach /dev/ubi_ctrl -O 2048 -m 6 # mount -t ubifs ubi0:om-gta02-rootfs /media/om # ls /media/om Anyway it could be a problem related to ubifs instability, which is a topic recently discussed in mailing list [1]. You can follow that tread and try to: Guy who'll have ubifs trubles please try to: 1. disable bulk read in fstab and check if problem will still exist. 2. do nanddump and post it or try to reproduce bug with nandsim. (i guess ubifs guys can fix problem in case if such dump exist quite fast) Regards Giacomo [1] http://www.mail-archive.com/community@lists.openmoko.org/msg62518.html -- ## giacomo 'giotti' mariani gpg --keyserver pool.sks-keyservers.net --recv-key 0x99bfa859 O ASCII ribbon campaign: stop HTML mail www.asciiribbon.org ## ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: GSM Firmware Flashed, now UBIFS problem and Kernel Panic
root@neo:~# cat /proc/mtd dev:size erasesize name mtd0: 0020 0001 physmap-flash.0 mtd1: 0004 0002 qi mtd2: 0004 0002 depr-ub-env mtd3: 0080 0002 kernel mtd4: 000a 0002 depr mtd5: 0004 0002 identity-ext2 mtd6: 0f6a 0002 rootfs root@neo:~# ubiattach /dev/ubi_ctrl -m 6 -d 0 -O 2048 UBI device number 0, total 1972 LEBs (250396672 bytes, 238.8 MiB), available 0 LEBs (0 bytes), LEB size 126976 bytes (124.0 KiB) root@neo:~# mkdir /tmp/qtmoko root@neo:~# mount -t ubifs ubi0_0 /tmp/qtmoko/ You can try: mount -t ubifs /dev/mtdblock6 /tmp/qtmoko/ ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: GSM Firmware Flashed, now UBIFS problem and Kernel Panic
Hi Thomas, On Thu, 14 Apr 2011 11:05:38 +0200, Thomas Franck thomas.fra...@gmx.com wrote: [...] ---88- UBIFS error (pid 1): ubifs_read_node: bad node type (255 but expected 6) UBIFS error (pid 1): ubifs_Read_node: bad node at LEB 0:0 Kernel panic - not syncing: VFS: Unable to mount fs on unknown-block(0,0) ---88- [...] Any ideas on this problem? I there any way to repair that FS? I had the same probem when upgrading QtMoko a few days ago. Regardless of what fs image I flashed, I would get these error messages. Completely erasing the NAND allowed me to re-install without problems. Of course, it means that your data will be gone. I did not find an easier solution, and actually had no important data on the phone. I followed more or less the steps for clearing bad blocks [1] and threw in an erase command somewhere. Unfortunately, I do not remember the details. The NOR bootloader offers a help command, however. If there is a better solution that preserves the FS, I would be happy to learn about it. Raphael [1] http://wiki.openmoko.org/wiki/NAND_bad_blocks#Clearing_BadBlocks ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: GSM Firmware Flashed, now UBIFS problem and Kernel Panic
I wonder if it would be possible to boot into a distro on the sd card and mount the nand partitions. Then you could save /home. Just a thought. On Thu, Apr 14, 2011 at 7:21 PM, Raphael Wimmer raphael.wim...@ifi.lmu.dewrote: Hi Thomas, On Thu, 14 Apr 2011 11:05:38 +0200, Thomas Franck thomas.fra...@gmx.com wrote: [...] ---88- UBIFS error (pid 1): ubifs_read_node: bad node type (255 but expected 6) UBIFS error (pid 1): ubifs_Read_node: bad node at LEB 0:0 Kernel panic - not syncing: VFS: Unable to mount fs on unknown-block(0,0) ---88- [...] Any ideas on this problem? I there any way to repair that FS? I had the same probem when upgrading QtMoko a few days ago. Regardless of what fs image I flashed, I would get these error messages. Completely erasing the NAND allowed me to re-install without problems. Of course, it means that your data will be gone. I did not find an easier solution, and actually had no important data on the phone. I followed more or less the steps for clearing bad blocks [1] and threw in an erase command somewhere. Unfortunately, I do not remember the details. The NOR bootloader offers a help command, however. If there is a better solution that preserves the FS, I would be happy to learn about it. Raphael [1] http://wiki.openmoko.org/wiki/NAND_bad_blocks#Clearing_BadBlocks ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: GSM Firmware Flashed, now UBIFS problem and Kernel Panic
--- On Thu, 4/14/11, Dave dave...@gmail.com wrote: On Thu, Apr 14, 2011 at 7:21 PM, Raphael Wimmer raphael.wim...@ifi.lmu.de wrote: If there is a better solution that preserves the FS, I would be happy to learn about it. I wonder if it would be possible to boot into a distro on the sd card and mount the nand partitions. Then you could save /home. Just a thought. Yes, it is: just mount -t jffs2 /dev/mtdblock6 /mountpoint I haven't used it for ubifs yet though; I just tried on qtmoko 33(?) and got a wrong filesystem error on mounting; not sure which fs I'm using, I tried jffs2 as well which I killed after half a minute. jffs2 can take a while to scan the flash, but when I used it that way before, it would be done in some 7 seconds (on SHR). lsmod | grep ub does not give any results; lsmod | grep jff gives a single result on my currently running system. I hope it helps a bit, Boudewijn ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: GSM Firmware Flashed, now UBIFS problem and Kernel Panic
--- On Thu, 4/14/11, Dave dave...@gmail.com wrote: On Thu, Apr 14, 2011 at 7:21 PM, Raphael Wimmer raphael.wim...@ifi.lmu.de wrote: If there is a better solution that preserves the FS, I would be happy to learn about it. I wonder if it would be possible to boot into a distro on the sd card and mount the nand partitions. Then you could save /home. Just a thought. Yes, it is: just mount -t jffs2 /dev/mtdblock6 /mountpoint Thank you all for your input.. I put a qtmoko v35 on an SD card.. an on terminal I did: mkdir /home/root/nandfs mount -t ubifs /dev/mtdblock6 /home/root/nandfs but sadly that doesn't work.. dmesg tells me: UBIFS error: ubifs_get_sb: cannot open /dev/mtdblock6, error -22 Any ideas? Cheers, -- Thomas -~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ Trying to outsmart a compiler defeats much of the purpose of using one. - Kernighan Plauger, The Elements of Programming Style -~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: GSM Firmware Flashed, now UBIFS problem and Kernel Panic
On 04/14/2011 12:13 PM, Thomas Franck wrote: --- On Thu, 4/14/11, Davedave...@gmail.com wrote: On Thu, Apr 14, 2011 at 7:21 PM, Raphael Wimmer raphael.wim...@ifi.lmu.de wrote: If there is a better solution that preserves the FS, I would be happy to learn about it. I wonder if it would be possible to boot into a distro on the sd card and mount the nand partitions. Then you could save /home. Just a thought. Yes, it is: just mount -t jffs2 /dev/mtdblock6 /mountpoint Thank you all for your input.. I put a qtmoko v35 on an SD card.. an on terminal I did: mkdir /home/root/nandfs mount -t ubifs /dev/mtdblock6 /home/root/nandfs but sadly that doesn't work.. dmesg tells me: UBIFS error: ubifs_get_sb: cannot open /dev/mtdblock6, error -22 Any ideas? Cheers, I think you need to attach the ubifs before mounting. See http://openmoko-public-mailinglists.1958.n2.nabble.com/UBI-success-story-td4218730.html for the steps, though unless you want to reformat, you shouldn't follow all of them. Ben ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: GSM Firmware Flashed, now UBIFS problem and Kernel Panic
Hi, to mount a ubifs you should give another way a try: cat /proc/mtd ubiattach /dev/ubi_ctrl -m 6 -d 0 -O 2048 mkdir /tmp/qtmoko mount -t ubifs ubi0_0 /tmp/qtmoko/ I found this at the ubuntu-wiki, a nice source for all linux-related questions (as far they are not openmoko-specific - of course!) Good luck Sferic At 14 Apr 2011 18:13:37 +0200 Thomas Franck wrote: --- On Thu, 4/14/11, Dave dave...@gmail.com wrote: On Thu, Apr 14, 2011 at 7:21 PM, Raphael Wimmer raphael.wim...@ifi.lmu.de wrote: If there is a better solution that preserves the FS, I would be happy to learn about it. I wonder if it would be possible to boot into a distro on the sd card and mount the nand partitions. Then you could save /home. Just a thought. Yes, it is: just mount -t jffs2 /dev/mtdblock6 /mountpoint Thank you all for your input.. I put a qtmoko v35 on an SD card.. an on terminal I did: mkdir /home/root/nandfs mount -t ubifs /dev/mtdblock6 /home/root/nandfs but sadly that doesn't work.. dmesg tells me: UBIFS error: ubifs_get_sb: cannot open /dev/mtdblock6, error -22 Any ideas? Cheers, -- Thomas -~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ Trying to outsmart a compiler defeats much of the purpose of using one. - Kernighan Plauger, The Elements of Programming Style -~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community