Re: [2008.X] Flashing the kernel live
Kelvie Wong wrote: [EMAIL PROTECTED] ~] $ flash_eraseall /dev/mtd3 Erasing 128 Kibyte @ 7e -- 98 % complete. [EMAIL PROTECTED] ~] $ cat uImage.bin /dev/mtd3 cat: write error: Invalid argument The problem is that the mtd driver will only accept writes with length equal a multiple of 2048, so the last write operation will always fail (unless you are very lucky with the size). To get past the problem you have to pad the uImage file with some extra 0xff. You can write a program that does this nicely or you can just do the following hack: Run the following command for a while (stop it with ctrl-c) to generate a file containing only 0xff while true ; do echo -n xx | tr 'x' '\377' ff.file; done The size should be at least 2048 bytes, but it does not matter if it is too big. Then pad the kernel cat uImage.bin ff.file uImagePad.bin And now you can download the kernel with cat uImagePad.bin /dev/mtd3 You will still get the error message, but it is after the end of the code so it does not matter. Tore ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [2008.X] Flashing the kernel live
Sarton O'Brien wrote: On Wednesday 24 September 2008 19:05:45 Kelvie Wong wrote: I was just wondering, is there a way to flash the kernel live (i.e. with the software still running)? Is the boot partition (it's on the NAND Flash somewhere) something I can just mount and override a file? Or do I have to use dd? Or is there some trickery I can do with dfu-util? opkg upgrade manages this so I'd say you could ... using a tool like mtd or such, I really don't how, just that it does :) I don't have my phone right here, but you can do a cat /proc/mtd and it will list out which mtd partition that contains the kernel. Then you do flasheraseall /dev/mtdX cat yourUimage.bin /dev/mtdX And thats it Tore ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Using openmoko as a wireless gateway
Kevin wrote: Would the following setup work: A Openmoko freerunner is set to connect to my laptop that is using a master mode capable wireless card and the default gateways is set to the ip of the openmoko freerunner. Does the wifi card support ad-hoc connections? Yes it does. So the commands would be something like this Find your ad-hoc network iwlist eth0 scan Configure your moko iwconfig eth0 mode ad-hoc channel 6 key s: iwconfig eth0 essid Y You should be able to do all on one line, but for some reason you have to specify the essid on a seperate one. /Tore ___ 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: WiFi doesn't work
The problem is not WLAN but the dhcp client, as you see you get a response, but then you send back a DHCPDECLINE. What you can do is to stop the dhcp client and then configure the interface manually. ifconfig eth0 192.168.4.180 netmask 255.255.255.0 /Tore Xavier Bestel wrote: Any hint ? ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: WiFi doesn't work
Hi If you manage to get a DHCP reply it means that the WIFI connection is OK. But my experience is that WIFI can only connect once. So to test out the setup I would reboot. Do the iwconfig then do the ifconfig with a know address and then see if you can ping. Is anyone else have problem to connect WIFI to different access points in one session (I had the same problem when I tried the Debian distribution, but I assume they have the same wifi driver) /Tore Xavier Bestel wrote: Is the GUI thing (in settings from 2008.8) supposed to work with a WEP network ? Thanks, Xav ___ 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: WiFi doesn't work
Now that's impractical, seeing how long the boot time is :( Ok, I'll try that. Or maybe some rmmod+modprobe first. The problem is that it is not a module. ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Suitable USB converter
Do a search on e-bay for USB Female A To USB Mini and you will find several. There where some on Amazone also, but they only shipped to US. Tore Atilla Filiz wrote: Have you found any cheap cables/adapters to connect normal usb peripherals to the usb OTG port? A keyboard will be extremely useful at home. ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: info request about u-boot_env
Nicolas LAURANCE wrote: Hi all, I managed to acces my SD Card (SanDisk SDSDQ-8192-E11M) using a slow 500 clock. My uboot version is 1.3.2-moko12 downloaded 9/6/2008 [1]_ .. [1] http://downloads.openmoko.org/releases/Om2008.8-update/gta02v5_and_up-u-boot.bin but here is more question about u-boot_env Of course during my pilgrimage I borked completely my environment and had to use devirginator I connected to the uboot boot prompt via putty and copied/pasted what I wanted. I witnessed some strange chars on screen, I think my bork came for that reason Question 1 --- I see that devirginator can generate a new boot config and then it's just a matter of loading it with dfu-utils Does anyone have spec of the file? I'd rather have a small python script that can generate a conf from a text or xml file than edit with setenv I understood (maybe wrongly ?) that it's a binary file that requires to be of a certain size, include a CRC32 checksum Couldn't find more info on this list or the wiki It is a text file that starts with a 32 bit crc and then the rest is text where each parameter is separated with a \0 and a double \0\0 after the last. The rest of the partition is filled with 0xff. The crc is calculated over the hole flash partition. You can get the crc code from U-Boot home page. There must be a lot of people that has written a program for updating the U-Boot environment. (I have at my work, but I have to check if I can just publish it). Tore Martin Hagen Question 2 --- When I had errors, the screens almost flashes on the error. I hadn't enough time to read it. Is there a way to slow this ? best regards NiL ___ 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: NjuBee - questions
Abdelrazak Younes wrote: I really don't understand why QTopia was not preloaded instead of this 2007.something... This is a manufacturing issue. They have made a test system and have everything set up for automatic testing. To change this system so they put in a newer image is probably not very high on their priority list. Tore ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community