Re: Network over USB flaky ? - Re: Booting OM 2008.08 from SD - Re: Openmoko Om 2008.8 Release
Hi. Just for reference, I filed a ticket about this issue : http://docs.openmoko.org/trac/ticket/1933 Olivier Berger [EMAIL PROTECTED] writes: Andy Green [EMAIL PROTECTED] writes: Somebody in the thread at some point said: | Anyway, it seems it's rather unstable in the first times the system is | brought up, and stabilizes after a while. | If I unplug the USB cable when I lose IP connectivity, and replug | after 1/2 seconds, then it becomes more stable. Well maybe the fact | that I'm running a ping 192.168.0.202 continously helps also at that | stage : it may help maintain connectivity somehow ? Just to confirm that I experienced a similar behaviour with 2008.8 running from flash too :( Maybe I'll be able to provide more diagnostics once I'm more confident with the networking setup in 2008.8. -- Olivier BERGER (OpenPGP: 1024D/B4C5F37F) http://www.olivierberger.com/weblog/ ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Booting OM 2008.08 from SD - Re: Openmoko Om 2008.8 Release
Olivier Berger wrote: Now, I have found a way to boot to OM 2008.8 from SD (actually VFAT + EXT3). But I'm too unable to use network over USB now (works fine if rebooting to 2007.2 in flash). Hi, I've just received my Freerunner yesterday. FYI, I'm able to boot to OM 2008.8 from SD and to use use network over USB with Windows XP ( with VFAT and EXT3 as described here ( http://wiki.openmoko.org/wiki/Qtopia#Preparing_the_SD_card and http://wiki.openmoko.org/wiki/Booting_from_SD#Prepare_the_SD_card ) Today, I try the Raster version of OM 2008.8 ( http://download.enlightenment.org/misc/ ) from SD and I can't use network over USB anymore. Best regards, Yves Mahe ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Network over USB flaky ? - Re: Booting OM 2008.08 from SD - Re: Openmoko Om 2008.8 Release
I guess it's pretty flaky :( But still I see some (slow) progress ;) It really could be related to the USB ports on your PC .. if for some reason your PC is not happy with the power-state changes demanded by the Freerunner, then it will reset the USB hard layer, and this has the effect that your internal USB GUID changes, confusing the usb- ethernet driver, and thus giving you inconsistent services. If its at all possible, try running some sort of USB diagnostic app on your PC while this is all going on or check your log files for USB-related messages in the meantime .. ; -- Jay Vaughan ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Network over USB flaky ? - Re: Booting OM 2008.08 from SD - Re: Openmoko Om 2008.8 Release
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Somebody in the thread at some point said: | I kept trying, rebooted, tested, again, again, unplugged USB, | replugged... and TADA, at some point it magically worked ! | | I've typed-in a few commands, got networking (opkg update completed), | did a few more things... and ... it's now gone :( | | # ping 192.168.0.202 | PING 192.168.0.202 (192.168.0.202) 56(84) bytes of data. | From 192.168.0.200 icmp_seq=1 Destination Host Unreachable | From 192.168.0.200 icmp_seq=2 Destination Host Unreachable | From 192.168.0.200 icmp_seq=3 Destination Host Unreachable | | no kernel message on desktop side : usb not unplugged... | | I guess it's pretty flaky :( But still I see some (slow) progress ;) | | I guess screen will be my friend. I would first guess this is simply the ifconfig to set Freerunner-side IP getting messed with. I really did not see flakiness of Ethernet over USB and I understood there is new scheme for managing IP allocation in this new rootfs. If anyone with a debug board sees this behaviour, just logging in on the debug serial console and doing ifconfig usb0 / route - -n would clear it up if it is that. - -Andy -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org iEYEARECAAYFAkieoFEACgkQOjLpvpq7dMokCgCfQuBWnoEa56g0Qw2O2KZImRrC +K4An3dP5fzVn5kvsELnycT6IDQSBfhZ =R/wR -END PGP SIGNATURE- ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Network over USB flaky ? - Re: Booting OM 2008.08 from SD - Re: Openmoko Om 2008.8 Release
Jay Vaughan [EMAIL PROTECTED] writes: I guess it's pretty flaky :( But still I see some (slow) progress ;) It really could be related to the USB ports on your PC .. if for some reason your PC is not happy with the power-state changes demanded by the Freerunner, then it will reset the USB hard layer, and this has the effect that your internal USB GUID changes, confusing the usb- ethernet driver, and thus giving you inconsistent services. If its at all possible, try running some sort of USB diagnostic app on your PC while this is all going on or check your log files for USB-related messages in the meantime .. I don't believe so, as I've not had these issues with 2007.7, but it would be running from flash, whereas I have the problems with 2008.8 running from SD... maybe that's why ? Thanks anyway. Best regards, -- Olivier BERGER (OpenPGP: 1024D/B4C5F37F) http://www.olivierberger.com/weblog/ ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Network over USB flaky ? - Re: Booting OM 2008.08 from SD - Re: Openmoko Om 2008.8 Release
Andy Green [EMAIL PROTECTED] writes: Somebody in the thread at some point said: | I kept trying, rebooted, tested, again, again, unplugged USB, | replugged... and TADA, at some point it magically worked ! | | I've typed-in a few commands, got networking (opkg update completed), | did a few more things... and ... it's now gone :( | | # ping 192.168.0.202 | PING 192.168.0.202 (192.168.0.202) 56(84) bytes of data. | From 192.168.0.200 icmp_seq=1 Destination Host Unreachable | From 192.168.0.200 icmp_seq=2 Destination Host Unreachable | From 192.168.0.200 icmp_seq=3 Destination Host Unreachable | | no kernel message on desktop side : usb not unplugged... | | I guess it's pretty flaky :( But still I see some (slow) progress ;) | | I guess screen will be my friend. I would first guess this is simply the ifconfig to set Freerunner-side IP getting messed with. I really did not see flakiness of Ethernet over USB and I understood there is new scheme for managing IP allocation in this new rootfs. If anyone with a debug board sees this behaviour, just logging in on the debug serial console and doing ifconfig usb0 / route -n would clear it up if it is that. Thanks for the feedback. Notice that I'm running 2008.8 from SD so that may change some behaviour vs running it from flash, explaining the network problems. Anyway, it seems it's rather unstable in the first times the system is brought up, and stabilizes after a while. If I unplug the USB cable when I lose IP connectivity, and replug after 1/2 seconds, then it becomes more stable. Well maybe the fact that I'm running a ping 192.168.0.202 continously helps also at that stage : it may help maintain connectivity somehow ? Anyway, I guess I'll be able to test 2008.8 from flash soon, and may be able to tell if that's better. In the meantime, 'screen -R -D' is my friend ;) Hope this helps. Best regards, -- Olivier BERGER (OpenPGP: 1024D/B4C5F37F) http://www.olivierberger.com/weblog/ ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Network over USB flaky ? - Re: Booting OM 2008.08 from SD - Re: Openmoko Om 2008.8 Release
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Somebody in the thread at some point said: | Anyway, it seems it's rather unstable in the first times the system is | brought up, and stabilizes after a while. | If I unplug the USB cable when I lose IP connectivity, and replug | after 1/2 seconds, then it becomes more stable. Well maybe the fact | that I'm running a ping 192.168.0.202 continously helps also at that | stage : it may help maintain connectivity somehow ? This is also quite compatible with the idea the issue is around ip allocation on Freerunner side: when you remove and replug you will be doing something radical on the usb0 on Freerunner side (I guess the semantic is link down / link up, and logical usb0 network device stays there the whole while). But still then whatever deals with IP allocation can be triggered to reapply static IP or do DHCP request, etc and make the issue go away. | Anyway, I guess I'll be able to test 2008.8 from flash soon, and may | be able to tell if that's better. | | In the meantime, 'screen -R -D' is my friend ;) | | Hope this helps. Well no doubt your issue is real, I guess it is not underlying link though because I use it heavily with 2008.08 out of the picture here and it is OK. - -Andy -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org iEYEARECAAYFAkifTRsACgkQOjLpvpq7dMpwAQCfa5JNPU+2RzUrVZ4mZteuRw1u G+8An2lD6o5FliOmG58VUOVL4JHceMMu =/u3s -END PGP SIGNATURE- ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Network over USB flaky ? - Re: Booting OM 2008.08 from SD - Re: Openmoko Om 2008.8 Release
Andy Green [EMAIL PROTECTED] writes: Somebody in the thread at some point said: | Anyway, it seems it's rather unstable in the first times the system is | brought up, and stabilizes after a while. | If I unplug the USB cable when I lose IP connectivity, and replug | after 1/2 seconds, then it becomes more stable. Well maybe the fact | that I'm running a ping 192.168.0.202 continously helps also at that | stage : it may help maintain connectivity somehow ? This is also quite compatible with the idea the issue is around ip allocation on Freerunner side: when you remove and replug you will be doing something radical on the usb0 on Freerunner side (I guess the semantic is link down / link up, and logical usb0 network device stays there the whole while). But still then whatever deals with IP allocation can be triggered to reapply static IP or do DHCP request, etc and make the issue go away. | Anyway, I guess I'll be able to test 2008.8 from flash soon, and may | be able to tell if that's better. | | In the meantime, 'screen -R -D' is my friend ;) | | Hope this helps. Well no doubt your issue is real, I guess it is not underlying link though because I use it heavily with 2008.08 out of the picture here and it is OK. -Andy Just to confirm that I experienced a similar behaviour with 2008.8 running from flash too :( Maybe I'll be able to provide more diagnostics once I'm more confident with the networking setup in 2008.8. My 2 cents, -- Olivier BERGER (OpenPGP: 1024D/B4C5F37F) http://www.olivierberger.com/weblog/ ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Booting OM 2008.08 from SD - Re: Openmoko Om 2008.8 Release
Martin Šenkeřík [EMAIL PROTECTED] writes: Maybe can help reflashing your u-boot with some actual version... Thanks for the suggestion. Haven't tried that, but instead, I changed u-boot env to add a new menu entry including init=/sbin/init. It went a bit further this time : kernel boots and I can see the booting splash screen (with boots and progress bar), although the X server wasn't started, I guess : I get a black screen. I updated the http://wiki.openmoko.org/wiki/Booting_from_SD#Add_uboot_boot_entry to show an example menu with the init kernel arg. Anyone succeeded in booting the new image from (micro)SD ? I've just tried and install it like that on the SD's ext3 partition, and copied the kernel to the first partition (VFAT). But after booting, I'm stuck with a : Kernel panic - not syncing: No int found. Try passing init= option to kernel. Too bad :( I'll have to flash ? -- Olivier BERGER (OpenPGP: 1024D/B4C5F37F) http://www.olivierberger.com/weblog/ ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Booting OM 2008.08 from SD - Re: Openmoko Om 2008.8 Release
On Sat, Aug 9, 2008 at 8:11 AM, Olivier Berger [EMAIL PROTECTED] wrote: Anyone succeeded in booting the new image from (micro)SD ? Yes, I do. Initially, I had a running Qtopia on the said microsd (small vfat partition with uImage.bin, big ext2 one with rootfs expanded on it, the normal way if I guess). And it was booting fine. Then I just replaced the uImage by the one in yesterday's announcement, and I cleaned the rootfs and expanded the .tar.gz provided by I-don't-remember-who on the ML a few hours later. The first boot was somewhat messy, but it might be from my lack of experience with ASU (I started with suspending instead of closing apps, to give an example). From there, it worked fine for the hour or of testing I submited it to. I guess it won't help much, but hell... good luck with it. -- Olivier M. ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Booting OM 2008.08 from SD - Re: Openmoko Om 2008.8 Release
On Sat, Aug 9, 2008 at 8:11 AM, Olivier Berger [EMAIL PROTECTED] wrote: Anyone succeeded in booting the new image from (micro)SD ? I did too. I replaced my ASU image on a third ext3 partition on my SD card. (format partition, copy tar file in /tmp, untar 2008.8 rootfs into partition) uImage.bin is on a first FAT partition (didn't try yet to use kernel on ext3 partition, maybe it works now that I had uboot updated). Or I even boot using uImage kernel from SDRAM and then rootfs on /mmcblk0p3 But the first few boots I could not have USB networking working -at all-. Now it works, but I don't really know what was wrong. ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Booting OM 2008.08 from SD - Re: Openmoko Om 2008.8 Release
Olivier Berger [EMAIL PROTECTED] writes: I changed u-boot env to add a new menu entry including init=/sbin/init. It went a bit further this time : kernel boots and I can see the booting splash screen (with boots and progress bar), although the X server wasn't started, I guess : I get a black screen. I updated the http://wiki.openmoko.org/wiki/Booting_from_SD#Add_uboot_boot_entry to show an example menu with the init kernel arg. Anyone succeeded in booting the new image from (micro)SD ? To follow-up on that issue. It seems that after having failed initially, I tried again (nothing changed), and this time, the X server started allright. I even was able to input the pin (hard with that strange keyboard), and place/receive calls. Success, I declare ! Now, I'll have to update http://wiki.openmoko.org/wiki/Om_2008.8#Download to update details on how to boot it from SD. Thanks for the feedbacks received. It helped me keep on trying ;-) Best regards, -- Olivier BERGER (OpenPGP: 1024D/B4C5F37F) http://www.olivierberger.com/weblog/ ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Booting OM 2008.08 from SD - Re: Openmoko Om 2008.8 Release
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Somebody in the thread at some point said: | On Sat, Aug 9, 2008 at 8:11 AM, Olivier Berger [EMAIL PROTECTED] wrote: | | Anyone succeeded in booting the new image from (micro)SD ? | | I did too. I replaced my ASU image on a third ext3 partition on my SD card. | (format partition, copy tar file in /tmp, untar 2008.8 rootfs into partition) | | uImage.bin is on a first FAT partition (didn't try yet to use kernel | on ext3 partition, maybe it works now that I had uboot updated). | Or I even boot using uImage kernel from SDRAM and then rootfs on /mmcblk0p3 | | But the first few boots I could not have USB networking working -at | all-. Now it works, but I don't really know what was wrong. Yes current U-Boot is OK with ext3 parsing to bring the kernel in. If you updated your U-Boot partway through your testing, for a while we put out a U-Boot version that had 50% chance per boot to break USB functionality for the whole session. So I you updated it a few weeks ago and then today, it can be that. - -Andy -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org iEYEARECAAYFAkid/GkACgkQOjLpvpq7dMqioQCfQpoCdE4RHhVL4KVjCawMleTR 9F0AoIXXQD6bSd2USJLYfXhBis5Ho5P7 =dyxz -END PGP SIGNATURE- ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Booting OM 2008.08 from SD - Re: Openmoko Om 2008.8 Release
Andy Green [EMAIL PROTECTED] writes: Somebody in the thread at some point said: | | But the first few boots I could not have USB networking working -at | all-. Now it works, but I don't really know what was wrong. If you updated your U-Boot partway through your testing, for a while we put out a U-Boot version that had 50% chance per boot to break USB functionality for the whole session. So I you updated it a few weeks ago and then today, it can be that. Well, I'm afraid there could be something else. Now, I have found a way to boot to OM 2008.8 from SD (actually VFAT + EXT3). But I'm too unable to use network over USB now (works fine if rebooting to 2007.2 in flash). lsusb reports : Bus 002 Device 105: ID 1457:5122 First International Computer, Inc. OpenMoko Neo1973 kernel cdc_ether USB network which is fine. Network on desktop side is correct, but no ping nor ssh find valid route to destination (192.168.0.202) :( Still my u-boot is pretty recent : U-Boot 1.3.2+gitr18+64eb10cab8055084ae25ea4e73b66dd03cc1a0cb (Aug 4 2008 - 02:33:52) I'm booting with the following env : bootargs_base=rootfstype=jffs2 root=/dev/mtdblock6 console=ttySAC2,115200 console=tty0 loglevel=8 regular_boot bootcmd=setenv bootargs ${bootargs_base} ${mtdparts}; nand read.e 0x3200 kernel 0x20; bootm 0x3200 bootdelay=1 menu_1=Boot from microSD (FAT+ext2): setenv bootargs ${bootargs_base} rootfstype=ext2 root=/dev/mmcblk0p2 rootdelay=5 ${mtdparts} ro; mmcinit; fatload mmc 1 0x3200 ${sd_image_name}; bootm 0x3200 menu_2=Set console to USB: setenv stdin usbtty; setenv stdout usbtty; setenv stderr usbtty menu_3=Set console to serial: setenv stdin serial; setenv stdout serial; setenv stderr serial menu_4=Set console to USB: setenv stdin usbtty; setenv stdout usbtty; setenv stderr usbtty menu_5=Set console to serial: setenv stdin serial; setenv stdout serial; setenv stderr serial menu_6=Reboot: reset menu_8=Power off: neo1973 power-off mtdids=nor0=physmap-flash,nand0=neo1973-nand mtdparts=mtdparts=physmap-flash:-(nor);neo1973-nand:0x0004(u-boot),0x0004(u-boot_env),0x0080(kernel),0x000a(splash),0x0004(factory),0x0f6a(rootfs) quiet=1 sd_image_name=uImage.bin splashimage=nand read.e 0x3200 splash 0x5000; unzip 0x3200 0x880 0x96000 stderr=usbtty stdin=usbtty stdout=usbtty usbtty=cdc_acm menu_9=Boot 200808 from microSD (FAT+ext2): setenv bootargs ${bootargs_base} rootfstype=ext2 root=/dev/mmcblk0p2 rootdelay=5 ${mtdparts} init=/sbin/init ro; mmcinit; fatload mmc 1 0x3200 ${sd_image_name}; bootm 0x3200 boot_menu_timeout=9 bootargs=roofstype=ext2 root=/dev/mmcblk0p2 console=tty0 console=ttySAC2,115200 loglevel=8 mtdparts=physmap-flash:-(nor);neo1973-nand:0x0004(u-boot),0x0004(u-boot_env),0x0080(kernel),0x000a(splash),0x0004(factory),0x0f6a(rootfs) init=/etc/startup partition=nor0,0 mtddevnum=0 mtddevname=nor pcb_rev=0x000 pcf50633_int1=0x80 pcf50633_int2=0x02 Environment size: 1871/262140 bytes with menu_9 (which only adds init=/sbin/init, as you can see)... Any idea why USB may still be broken ? Maybe since it's running from SD instead of from flash ? Don't tell me we need another hadware fix because of SD access ? ;-) I actually have no other ideas for diagnostic (no terminal nor other network connection ;( ). Best regards, -- Olivier BERGER (OpenPGP: 1024D/B4C5F37F) http://www.olivierberger.com/weblog/ ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Booting OM 2008.08 from SD - Re: Openmoko Om 2008.8 Release
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Somebody in the thread at some point said: | Now, I have found a way to boot to OM 2008.8 from SD (actually VFAT + | EXT3). | | But I'm too unable to use network over USB now (works fine if | rebooting to 2007.2 in flash). | | lsusb reports : | Bus 002 Device 105: ID 1457:5122 First International Computer, Inc. OpenMoko Neo1973 kernel cdc_ether USB network | which is fine. Yes if you get that far, it is not the U-Boot problem and no missing modules issue either, so as you say something else. Other people mentioned it after update to 2008.8 but for them it went away. | Network on desktop side is correct, but no ping nor ssh find valid | route to destination (192.168.0.202) :( What does it say for ifconfig usb0 route -n on your host? Also any dmesg that involves USB connection action. | Any idea why USB may still be broken ? Maybe since it's running from | SD instead of from flash ? | | Don't tell me we need another hadware fix because of SD access ? ;-) Oooh no I don't see that one coming :-) USB is not broken since the enumeration action is good, the Ethernet over USB stuff has been stable for a good while: something else is broken for example allocation of IP address on Freerunner side will make this kind of trouble. I recall they were talking about Conman or similar for IP allocation of interfaces maybe it involves that somehow (--- pure guess) | I actually have no other ideas for diagnostic (no terminal nor other | network connection ;( ). A debug board gets you out of that but otherwise... :-/ - -Andy -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org iEYEARECAAYFAkieDj8ACgkQOjLpvpq7dMp5fwCaAxVS8Qr5gk3oCuJCS4itidtU PnUAnAt87sEcheXkR0RARcaiuTWzY+xl =9pih -END PGP SIGNATURE- ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Network over USB flaky ? - Re: Booting OM 2008.08 from SD - Re: Openmoko Om 2008.8 Release
Olivier Berger [EMAIL PROTECTED] writes: Andy Green [EMAIL PROTECTED] writes: Somebody in the thread at some point said: | | But the first few boots I could not have USB networking working -at | all-. Now it works, but I don't really know what was wrong. If you updated your U-Boot partway through your testing, for a while we put out a U-Boot version that had 50% chance per boot to break USB functionality for the whole session. So I you updated it a few weeks ago and then today, it can be that. Well, I'm afraid there could be something else. Now, I have found a way to boot to OM 2008.8 from SD (actually VFAT + EXT3). But I'm too unable to use network over USB now (works fine if rebooting to 2007.2 in flash). Still my u-boot is pretty recent : U-Boot 1.3.2+gitr18+64eb10cab8055084ae25ea4e73b66dd03cc1a0cb (Aug 4 2008 - 02:33:52) Any idea why USB may still be broken ? Maybe since it's running from SD instead of from flash ? I kept trying, rebooted, tested, again, again, unplugged USB, replugged... and TADA, at some point it magically worked ! I've typed-in a few commands, got networking (opkg update completed), did a few more things... and ... it's now gone :( # ping 192.168.0.202 PING 192.168.0.202 (192.168.0.202) 56(84) bytes of data. From 192.168.0.200 icmp_seq=1 Destination Host Unreachable From 192.168.0.200 icmp_seq=2 Destination Host Unreachable From 192.168.0.200 icmp_seq=3 Destination Host Unreachable no kernel message on desktop side : usb not unplugged... I guess it's pretty flaky :( But still I see some (slow) progress ;) I guess screen will be my friend. Regards, -- Olivier BERGER (OpenPGP: 1024D/B4C5F37F) http://www.olivierberger.com/weblog/ ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community