[PATCH 0/2] allow WLAN module to suspend/resume without reset
Werner Almesberger
werner at openmoko.org
Fri Nov 28 03:08:33 CET 2008
"Marco Trevisan (Trevi?o)" wrote:
> Strange... I neither touched wlan since I'd like to try a suspend/resume
> before. So its status was simply "idle".
>
> I compiled the kernel using the moredrivers config file and I had no
> modules at all in my rootfs...
Hmm, I tried that and it works nicely for me. Of course, my system is
somewhat simple:
ssh:~# pstree
bash-+-dhclient
|-sshd---sshd---bash---pstree
`-udevd
I uploaded a set of images with my setup to
http://people.openmoko.org/werner/wlan-trial/11-27/
wlan-trial-11-27.uImage and wlan-trial-11-27.jffs2 are the usual
kernel and rootfs images.
wlan-trial-11-27.sd_image.bz2 is an SD card image containing kernel
and rootfs that can be booted with u-boot's "Boot from microSD"
option. Copy it to an SD card with
bzcat wlan-trial-11-27.sd_image.bz2 >/dev/sdX
Or, if booting the Neo from NAND, this also works:
ifconfig usb0 192.168.0.200
ssh 192.168.0.202 'umount /dev/mmcblk0p*'
ssh 192.168.0.202 'bzcat >/dev/mmcblk0' <wlan-trial-11-27.sd_image.bz2
Note that this replaces the partition table, so any previous content
of the SD card is lost !
I still need to test a few things before we can start the great trial.
Here are a few items that should work:
- iwconfig (show interfaces, set ESSID, open or WEP)
- iwlist scan
- wlanscan (a wrapper for iwlist scan)
- dhclient eth0
- ping, telnet, ssh
- here's an easy way to suspend for ten seconds:
wkalrm +10s && echo mem >/sys/power/state
Note that there is no GUI. You access the system through SSH or from
the serial console. It starts accepting SSH logins about 45s after
beginning to boot, about one minute after power-on.
- Werner
More information about the openmoko-kernel
mailing list