Re: [U-Boot] mini-pci wireless driver

I am sorry about the format.
My questions are: How can I support wireless network card on U Boot?
I want to implement a wlan mini-pci driver, But when I see U Boot source tree, there is no codes related to wireless, do you have any suggestion on how to add wireless support on U Boot? Or is there any U Boot branches that have already implemented wireless extension on U boot?
Thanks Lance Zhang
-----Original Message----- From: Wolfgang Denk [mailto:wd@denx.de] Sent: 2008年11月11日 3:57 To: Lance Zhang Subject: Re: [U-Boot] mini-pci wireless driver
Dear "Lance Zhang",
In message 49EF8B38CAABF74C8FFEA1405FDFBE923CD203@suzexch01.taihootech.com you wrote:
SGkgSmVhbiwKCkRvIHlvdSBrbm93IGFueSBjb21tb24gbWV0aG9kcyB0byBwb3J0IGEgTGludXgg
Please do not send base 64 encoded messages.
Please do not send HTML messages.
Please send plain text only.
Message unreadable, ignored. Sorry.

On Wed, Nov 12, 2008 at 11:11:29AM +0800, Lance Zhang wrote:
I am sorry about the format.
My questions are: How can I support wireless network card on U Boot?
I want to implement a wlan mini-pci driver, But when I see U Boot source tree, there is no codes related to wireless, do you have any suggestion on how to add wireless support on U Boot? Or is there any U Boot branches that have already implemented wireless extension on U boot?
It's going to depend on lot on your hardware. Some wireless hardware does all or most of the wireless bits in firmware (e.g. prism2). Drivers for such hardware look a lot like ethernet drivers.
Other hardware expects a lot of help with the wireless bits from the host CPU (e.g. ath5k). For hardware like that, you will need to add something like the mac80211 stack from Linux. That will be a tons of work...
Hth!
John

Dear "Lance Zhang",
In message 49EF8B38CAABF74C8FFEA1405FDFBE923CD361@suzexch01.taihootech.com you wrote:
My questions are: How can I support wireless network card on U Boot?
Correct. And there is no support for TCP/IP einther, nor do we have X11 or Gnome, and there is neither Eclipse nor Firefox available, not even OpenOffice or iSCSI support.
To make the story short: U-Boot is a boot loader, and a pretty powerful one, but there are certain tasks where it makes sense to use an OS.
I want to implement a wlan mini-pci driver, But when I see U Boot source tree, there is no codes related to wireless, do you have any suggestion on how to add wireless support on U Boot? Or is there any U Boot branches that have already implemented wireless extension on U boot?
Don't waste your time. Use U-Boot to boot asmall configuration of Linux with WLAN support included, and use this to do whjat you want to do.
Best regards,
Wolfgang Denk

Hi Wolfgang
Thanks for the reply, I am not really want to support the TCP/IP , Wnat I do is to add the wireless network card to uboot then I can load OS firmware from another computer(maybe through tftp wlan)
wd wrote:
Dear "Lance Zhang",
In message 49EF8B38CAABF74C8FFEA1405FDFBE923CD361@suzexch01.taihootech.com you wrote:
My questions are: How can I support wireless network card on U Boot?
Correct. And there is no support for TCP/IP einther, nor do we have X11 or Gnome, and there is neither Eclipse nor Firefox available, not even OpenOffice or iSCSI support.
To make the story short: U-Boot is a boot loader, and a pretty powerful one, but there are certain tasks where it makes sense to use an OS.
I want to implement a wlan mini-pci driver, But when I see U Boot source tree, there is no codes related to wireless, do you have any suggestion on how to add wireless support on U Boot? Or is there any U Boot branches that have already implemented wireless extension on U boot?
Don't waste your time. Use U-Boot to boot asmall configuration of Linux with WLAN support included, and use this to do whjat you want to do.
Best regards,
Wolfgang Denk

Thanks for the reply, I am not really want to support the TCP/IP , Wnat I do is to add the wireless network card to uboot then I can load OS firmware from another computer(maybe through tftp wlan)
Re-read Wolfgang's response, he gave you the recommended solution:
Don't waste your time. Use U-Boot to boot asmall configuration of Linux with WLAN support included, and use this to do what you want to do.
Boot your board with U-Boot, and have it run a stripped-down version of Linux that understands how to run your wireless card. Then use Linux to tftp your OS and then jump into the tftp'd version, eg. Google kexec.
Cheers, Dave

On 22:56 Wed 12 Nov , Wolfgang Denk wrote:
Dear "Lance Zhang",
In message 49EF8B38CAABF74C8FFEA1405FDFBE923CD361@suzexch01.taihootech.com you wrote:
My questions are: How can I support wireless network card on U Boot?
Correct. And there is no support for TCP/IP einther, nor do we have X11 or Gnome, and there is neither Eclipse nor Firefox available, not even OpenOffice or iSCSI support.
To make the story short: U-Boot is a boot loader, and a pretty powerful one, but there are certain tasks where it makes sense to use an OS.
I want to implement a wlan mini-pci driver, But when I see U Boot source tree, there is no codes related to wireless, do you have any suggestion on how to add wireless support on U Boot? Or is there any U Boot branches that have already implemented wireless extension on U boot?
Don't waste your time. Use U-Boot to boot asmall configuration of Linux with WLAN support included, and use this to do whjat you want to do.
With the Ralink chip it's not too much complicate to add wifi support. You need to upload the firmware and manage the wifi configuration via the firmware. After it will work as ant other ethernet driver.
Best Regards, J.

With the Ralink chip it's not too much complicate to add wifi support. You need to upload the firmware and manage the wifi configuration via
the
firmware. After it will work as ant other ethernet driver.
Thank you, I will ask for the Ralink chip information from manufacturer, then I will try to do it as you say

On 09:56 Thu 13 Nov , Lance Zhang wrote:
With the Ralink chip it's not too much complicate to add wifi support. You need to upload the firmware and manage the wifi configuration via
the
firmware. After it will work as ant other ethernet driver.
Thank you, I will ask for the Ralink chip information from manufacturer, then I will try to do it as you say
Ask also to Ralink.
It will be the best solution.
Best Regards, J.

On Thu, Nov 13, 2008 at 02:58:51AM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote:
On 09:56 Thu 13 Nov , Lance Zhang wrote:
With the Ralink chip it's not too much complicate to add wifi support. You need to upload the firmware and manage the wifi configuration via
the
firmware. After it will work as ant other ethernet driver.
Thank you, I will ask for the Ralink chip information from manufacturer, then I will try to do it as you say
Ask also to Ralink.
It will be the best solution.
YMMV...Ralink devices require lots of 802.11 MAC work at the host CPU.
John

With the Ralink chip it's not too much complicate to add wifi
support.
You need to upload the firmware and manage the wifi configuration
via
the
firmware. After it will work as ant other ethernet driver.
Thank you, I will ask for the Ralink chip information from
manufacturer,
then I will try to do it as you say
Ask also to Ralink.
It will be the best solution.
Thanks you very much for the help, I will get the chipset datasheet in next few days. I just want to know why there are some codes (in the open source codes) related to the mlme?
Thanks
participants (6)
-
David Hawkins
-
Jean-Christophe PLAGNIOL-VILLARD
-
John W. Linville
-
Lance Zhang
-
LanceZ
-
Wolfgang Denk