https://elinux.org/api.php?action=feedcontributions&user=Kiranps&feedformat=atomeLinux.org - User contributions [en]2024-03-28T08:30:31ZUser contributionsMediaWiki 1.31.0https://elinux.org/index.php?title=DaVinci&diff=4135DaVinci2007-09-02T17:14:34Z<p>Kiranps: </p>
<hr />
<div>[[Image:Davincilogo.gif]]<br />
<br />
'''Texas Instruments Davinci line are a range of processors with tightly optimised DSP and peripheral hardware''' <br />
<br />
Despite the marketing hype there are a number of issues users are falling into, a number related to the MontaVista Linux installed with the EVM. This wiki is intended to help reduce the duplication of effort that is currently occuring and suggest some common fixes (or at least highlite the most common mistakes!)<br />
<br />
Anything you find here should be considered highly dubious and it is entirely your own responsibility for breaking your stuff.<br />
<br />
<br />
(Most of these are stubs waiting for some nice user to help pad out)<br />
<br />
==FAQ==<br />
<br />
The [[Davinci FAQ]] can be found here<br />
<br />
==Guides==<br />
<br />
[[Image:Guide.jpeg]] - Das u-boot guide for davinci (using DVFlasher) - [[u-boot 1.0]]<br />
<br />
[[Image:Guide.jpeg]] - Help I have bricked my EVM! - [[EVM Brickage 1.0]]<br />
<br />
[[Image:Guide.jpeg]] - Using the opensource GIT Kernel to work - [[OS GIT 1.0]]<br />
<br />
[[Image:Guide.jpeg]] - Configuring an initrd - [[initrd 1.0]]<br />
<br />
[[Image:Guide.jpeg]] - Setting up USB Host mode - [[DaVinci USBHost 1.0]]<br />
<br />
[[Image:Guide.jpeg]] - Setting up console on framebuffer - [[DaVinci FBcons 1.0]]<br />
<br />
[[Image:Guide.jpeg]] - USB Wlan (DLink DWL G 122 Rev C) - [[Davinci USB Wlan]]<br />
<br />
==Undocumented Findings==<br />
<br />
[[Image:Guide.jpeg]] - RBL: booting from NAND and ECC/Bad blocks - [[DaVinci RBL 1.0]]<br />
<br />
[[Image:Guide.jpeg]] - IRC snippits - [[DaVinci IRC]]<br />
<br />
==Programing==<br />
<br />
[[Image:Example Program.gif]] - Blinking LEDS on the EVM over I2c - [[EVM_LED_Blinking.c]]<br />
<br />
[[Image:Example Program.gif]] - Simple TTY host program to access serial port - [[EVM_comz.c]]<br />
<br />
[[Image:Example Program.gif]] - PWM kernel driver (char driver) - [[PWM.c]] ''Good example for your own device drivers''<br />
<br />
[[Image:Example Program.gif]] - Accessing an I2C temperature sensor - [[temp_sens.c]]<br />
<br />
[[Image:Example Program.gif]] - Useful I2C routines - [[I2Croutines.c]]<br />
<br />
[[Image:Guide.jpeg]] - Overclocking the EVM [[EVMoc]]<br />
<br />
[[Image:Guide.jpeg]] - Using GPIO Interrupts - [[GPIO 1.0]]<br />
<br />
[[Image:Guide.jpeg]] - Configuring correct PINMUX at boot time - [[Pinmux 1.0]]<br />
<br />
==Hardware Hacks==<br />
<br />
[[Image:Hack.jpg]] - Adding a second MMC / SD slot - [[Second MMC / SD]]<br />
<br />
[[Image:Hack.jpg]] - Installing some input buttons - [[Input buttonz]]<br />
<br />
[[Image:Hack.jpg]] - Adding I2C devices (e.g. Temp Sensor) - [[I2C Mods]]<br />
<br />
==Mailing Lists and Useful Links==<br />
<br />
* http://wiki.davincidsp.com/ - Texas Instruments has created a DaVinci specific Wiki<br />
<br />
* http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source or the [http://www.mail-archive.com/davinci-linux-open-source@linux.davincidsp.com/ Searchable archive]<br />
<br />
* http://source.mvista.com/git/ - The montavista GIT repository<br />
<br />
* http://www.applieddata.net/forums/topic.asp?TOPIC_ID=2024 - U-Boot configuration scripts for flash filesystems<br />
<br />
==Chats and Forums==<br />
<br />
Davinci IRC chat can be found in the '''#davinci''' channel on '''irc.freenode.net'''. For more information about Freenode, see [http://www.freenode.net www.freenode.net]<br />
<br />
General IRC help can be found here :- IRC Help [http://www.irchelp.org/]</div>Kiranpshttps://elinux.org/index.php?title=Davinci_USB_Wlan&diff=4134Davinci USB Wlan2007-09-02T17:14:30Z<p>Kiranps: </p>
<hr />
<div>== '''Guide to Compile and use USB WLan Adapter.''' ==<br />
<br />
We are using DLink DWL G 122 Rev C (Available in India).<br />
<br />
If you are using 2.6.10 Kernel then you need ZHENG path. Search the Mail Archive for ZHENG patch<br />
Downlaod the Diff from this message and apply it.<br />
http://www.mail-archive.com/davinci-linux-open-source@linux.davincidsp.com/msg01652.html<br />
<br />
If you are using 2.6.21 Kernel , it works as it is, No patch is required but you need to enable wlan.<br />
I've tested it bu directly connecting to the bpard, Connecting thru a Powered Hub (Tested with USB Flash Drive and WLan connected at the same time).<br />
<br />
<br />
== '''Build Instructions for Kernel.''' ==<br />
<br />
<br />
make menuconfig <br />
<br />
Device Drivers -> Generic Device Options -> Enable Hot plug Firmware loading.<br />
Make sure that usb is enabled in the host mode and jumper on the board is set to host.<br />
Networking -> Enable Generic 802.11 and Enable WEP/Other Schemes you might need.<br />
<br />
Rebuild the kernel<br />
<br />
<br />
== '''Building the RTL Driver''' ==<br />
<br />
<br />
Step 1:<br />
Goto http://rt2x00.serialmonkey.com/wiki/index.php?title=Main_Page<br />
Download and extract the latest rt73 Driver Source.<br />
<br />
Step 2:<br />
Export the KERNDIR Path<br />
export KERNDIR=/workdir/lsp/ti-davinci/<br />
<br />
Step 3:<br />
Export the build Path<br />
export PATH=/opt/mv_pro_4.0/montavista/pro/devkit/arm/v5t_le/bin:/opt/mv_pro_4.0/montavista/pro/bin:$PATH<br />
<br />
Step 4:<br />
cd /home/ralink/rt73-cvs-2007070309/Module<br />
<br />
Step 5:<br />
make ARCH=arm CROSS_COMPILE=arm_v5t_le- arm<br />
<br />
In some cases you might get a compile error in rtusb_data.c:1950 when this happens you need to<br />
fix the code skb->mac_header = skb->data; <br />
<br />
rfmontx_80211_receive:<br />
skb->dev = pAd->net_dev;<br />
memcpy(skb_put(skb, pRxD->DataByteCnt), pHeader, pRxD->DataByteCnt);<br />
//skb_reset_mac_header(skb); //ORIGINAL<br />
skb->mac_header = skb->data; //FIX<br />
skb->pkt_type = PACKET_OTHERHOST;<br />
skb->pkt_type = PACKET_OTHERHOST;<br />
skb->protocol = htons(ETH_P_802_2);<br />
skb->ip_summed = CHECKSUM_NONE;<br />
netif_rx(skb);<br />
<br />
Step 6: Copy the ko to the target<br />
cp ./rt73.ko /dvevm/nfs/home/<br />
<br />
'''Step 7: Important!!!<br />
Copy the rt73.bin from the build directory to /lib/firmware on the target DVEVM.'''<br />
<br />
Once this is done you are all set to use the driver.<br />
<br />
<br />
== '''On the target''' ==<br />
<br />
insmod rt73<br />
<br />
Insert the USB Wlan adapter, this should be detected and the driver loaded. If this does not<br />
just reboot the EVM and insert the Adapter again.<br />
<br />
If you get some Ep0 errors this means that the You did not apply the Zheng Patch.<br />
If you get some firmware error make sure you enabled the hotplug during kernel menuconfig.<br />
<br />
if everything was ok then run the following command.<br />
<br />
ifconfig wlan0 up<br />
iwlist wlan0 scan<br />
<br />
This should list the Accesspoints<br />
<br />
Then you can attach to the AP using<br />
<br />
iwconfig wlan0 essid [APNAME] key [KEY]<br />
<br />
<br />
Using DHCP <br />
dhcpcd -n wlan0<br />
<br />
Using STATIC IP<br />
ifconfig wlan0 192.168.9.50 netmask 255.255.255.0 broadcast 192.168.9.1 up<br />
<br />
Best of Luck.</div>Kiranpshttps://elinux.org/index.php?title=Davinci_USB_Wlan&diff=4132Davinci USB Wlan2007-09-02T17:13:13Z<p>Kiranps: </p>
<hr />
<div>== '''Guide to Compile and use USB WLan Adapter.''' ==<br />
<br />
We are using DLink DWL G 122 Rev C (Available in India).<br />
<br />
If you are using 2.6.10 Kernel then you need ZHENG path. Search the Mail Archive for ZHENG patch<br />
Downlaod the Diff from this message and apply it.<br />
http://www.mail-archive.com/davinci-linux-open-source@linux.davincidsp.com/msg01652.html<br />
<br />
If you are using 2.6.21 Kernel , it works as it is, No patch is required but you need to enable wlan.<br />
I've tested it bu directly connecting to the bpard, Connecting thru a Powered Hub (Tested with USB Flash Drive and WLan connected at the same time).<br />
<br />
<br />
== '''Build Instructions for Kernel.''' ==<br />
<br />
<br />
make menuconfig <br />
<br />
Device Drivers -> Generic Device Options -> Enable Hot plug Firmware loading.<br />
Make sure that usb is enabled in the host mode and jumper on the board is set to host.<br />
Networking -> Enable Generic 802.11 and Enable WEP/Other Schemes you might need.<br />
<br />
Rebuild the kernel<br />
<br />
<br />
== '''Building the RTL Driver''' ==<br />
<br />
<br />
Step 1:<br />
Goto http://rt2x00.serialmonkey.com/wiki/index.php?title=Main_Page<br />
Download and extract the latest rt73 Driver Source.<br />
<br />
Step 2:<br />
#Export the KERNDIR Path<br />
export KERNDIR=/workdir/lsp/ti-davinci/<br />
<br />
Step 3:<br />
#Export the build Path<br />
export PATH=/opt/mv_pro_4.0/montavista/pro/devkit/arm/v5t_le/bin:/opt/mv_pro_4.0/montavista/pro/bin:$PATH<br />
<br />
Step 4:<br />
cd /home/ralink/rt73-cvs-2007070309/Module<br />
<br />
Step 5:<br />
make ARCH=arm CROSS_COMPILE=arm_v5t_le- arm<br />
<br />
In some cases you might get a compile error in rtusb_data.c:1950 when this happens you need to<br />
fix the code skb->mac_header = skb->data; <br />
<br />
rfmontx_80211_receive:<br />
skb->dev = pAd->net_dev;<br />
memcpy(skb_put(skb, pRxD->DataByteCnt), pHeader, pRxD->DataByteCnt);<br />
//skb_reset_mac_header(skb); //ORIGINAL<br />
skb->mac_header = skb->data; //FIX<br />
skb->pkt_type = PACKET_OTHERHOST;<br />
skb->pkt_type = PACKET_OTHERHOST;<br />
skb->protocol = htons(ETH_P_802_2);<br />
skb->ip_summed = CHECKSUM_NONE;<br />
netif_rx(skb);<br />
<br />
Step 6: Copy the ko to the target<br />
cp ./rt73.ko /dvevm/nfs/home/<br />
<br />
Step 7: Important!!!<br />
Copy the rt73.bin from the build directory to /lib/firmware on the target DVEVM.<br />
<br />
Once this is done you are all set to use the driver.<br />
<br />
<br />
== '''On the target''' ==<br />
<br />
<br />
insmod rt73<br />
<br />
Insert the USB Wlan adapter, this should be detected and the driver loaded. If this does not<br />
just reboot the EVM and insert the Adapter again.<br />
<br />
If you get some Ep0 errors this means that the You did not apply the Zheng Patch.<br />
If you get some firmware error make sure you enabled the hotplug during kernel menuconfig.<br />
<br />
if everything was ok then run the following command.<br />
<br />
ifconfig wlan0 up<br />
iwlist wlan0 scan<br />
<br />
This should list the Accesspoints<br />
<br />
Then you can attach to the AP using<br />
<br />
iwconfig wlan0 essid [APNAME] key [KEY]<br />
<br />
<br />
Using DHCP <br />
dhcpcd -n wlan0<br />
<br />
Using STATIC IP<br />
ifconfig wlan0 192.168.9.50 netmask 255.255.255.0 broadcast 192.168.9.1 up<br />
<br />
Best of Luck.</div>Kiranpshttps://elinux.org/index.php?title=Davinci_USB_Wlan&diff=4130Davinci USB Wlan2007-09-02T17:10:59Z<p>Kiranps: </p>
<hr />
<div>== '''Guide to Compile and use USB WLan Adapter.''' ==<br />
<br />
We are using DLink DWL G 122 Rev C (Available in India).<br />
<br />
If you are using 2.6.10 Kernel then you need ZHENG path. Search the Mail Archive for ZHENG patch<br />
Downlaod the Diff from this message and apply it.<br />
http://www.mail-archive.com/davinci-linux-open-source@linux.davincidsp.com/msg01652.html<br />
<br />
If you are using 2.6.21 Kernel , it works as it is, No patch is required but you need to enable wlan.<br />
Ive tested thru a Powered Hub, Tested with USB Flash Drive and WLan connected at the same time.<br />
<br />
<br />
== '''Build Instructions for Kernel.''' ==<br />
<br />
<br />
make menuconfig <br />
<br />
Device Drivers -> Generic Device Options -> Enable Hot plug Firmware loading.<br />
Make sure that usb is enabled in the host mode and jumper on the board is set to host.<br />
Networking -> Enable Generic 802.11 and Enable WEP/Other Schemes you might need.<br />
<br />
Rebuild the kernel<br />
<br />
<br />
== '''Building the RTL Driver''' ==<br />
<br />
<br />
Step 1:<br />
Goto http://rt2x00.serialmonkey.com/wiki/index.php?title=Main_Page<br />
Download and extract the latest rt73 Driver Source.<br />
<br />
Step 2:<br />
#Export the KERNDIR Path<br />
export KERNDIR=/workdir/lsp/ti-davinci/<br />
<br />
Step 3:<br />
#Export the build Path<br />
export PATH=/opt/mv_pro_4.0/montavista/pro/devkit/arm/v5t_le/bin:/opt/mv_pro_4.0/montavista/pro/bin:$PATH<br />
<br />
Step 4:<br />
cd /home/ralink/rt73-cvs-2007070309/Module<br />
<br />
Step 5:<br />
make ARCH=arm CROSS_COMPILE=arm_v5t_le- arm<br />
<br />
In some cases you might get a compile error in rtusb_data.c:1950 when this happens you need to<br />
fix the code skb->mac_header = skb->data; <br />
<br />
rfmontx_80211_receive:<br />
skb->dev = pAd->net_dev;<br />
memcpy(skb_put(skb, pRxD->DataByteCnt), pHeader, pRxD->DataByteCnt);<br />
//skb_reset_mac_header(skb); //ORIGINAL<br />
skb->mac_header = skb->data; //FIX<br />
skb->pkt_type = PACKET_OTHERHOST;<br />
skb->pkt_type = PACKET_OTHERHOST;<br />
skb->protocol = htons(ETH_P_802_2);<br />
skb->ip_summed = CHECKSUM_NONE;<br />
netif_rx(skb);<br />
<br />
Step 6: Copy the ko to the target<br />
cp ./rt73.ko /dvevm/nfs/home/<br />
<br />
Step 7: Important!!!<br />
Copy the rt73.bin from the build directory to /lib/firmware on the target DVEVM.<br />
<br />
Once this is done you are all set to use the driver.<br />
<br />
<br />
== '''On the target''' ==<br />
<br />
<br />
insmod rt73<br />
<br />
Insert the USB Wlan adapter, this should be detected and the driver loaded. If this does not<br />
just reboot the EVM and insert the Adapter again.<br />
<br />
If you get some Ep0 errors this means that the You did not apply the Zheng Patch.<br />
If you get some firmware error make sure you enabled the hotplug during kernel menuconfig.<br />
<br />
if everything was ok then run the following command.<br />
<br />
ifconfig wlan0 up<br />
iwlist wlan0 scan<br />
<br />
This should list the Accesspoints<br />
<br />
Then you can attach to the AP using<br />
<br />
iwconfig wlan0 essid [APNAME] key [KEY]<br />
<br />
<br />
Using DHCP <br />
dhcpcd -n wlan0<br />
<br />
Using STATIC IP<br />
ifconfig wlan0 192.168.9.50 netmask 255.255.255.0 broadcast 192.168.9.1 up<br />
<br />
Best of Luck.</div>Kiranpshttps://elinux.org/index.php?title=Davinci_USB_Wlan&diff=4129Davinci USB Wlan2007-09-02T17:05:27Z<p>Kiranps: </p>
<hr />
<div><br />
== '''Guide to Compile and use USB WLan Adapter.''' ==<br />
<br />
We are using DLink DWL G 122 Rev C (Available in India).<br />
<br />
If you are using 2.6.10 Kernel then you need ZHENG path. Search the Mail Archive for ZHENG patch<br />
Downlaod the Diff from this message and apply it.<br />
http://www.mail-archive.com/davinci-linux-open-source@linux.davincidsp.com/msg01652.html<br />
<br />
If you are using 2.6.21 Kernel , it works as it is, No patch is required but you need to enable wlan.<br />
Ive tested thru a Powered Hub, Tested with USB Flash Drive and WLan connected at the same time.<br />
<br />
<br />
== '''Build Instructions for Kernel.''' ==<br />
<br />
<br />
make menuconfig <br />
<br />
Device Drivers -> Generic Device Options -> Enable Hot plug Firmware loading.<br />
Make sure that usb is enabled in the host mode and jumper on the board is set to host.<br />
Networking -> Enable Generic 802.11 and Enable WEP/Other Schemes you might need.<br />
<br />
Rebuild the kernel<br />
<br />
<br />
== '''Building the RTL Driver''' ==<br />
<br />
<br />
Step 1:<br />
Goto http://rt2x00.serialmonkey.com/wiki/index.php?title=Main_Page<br />
Download and extract the latest rt73 Driver Source.<br />
<br />
Step 2:<br />
#Export the KERNDIR Path<br />
export KERNDIR=/workdir/lsp/ti-davinci/<br />
<br />
Step 3:<br />
#Export the build Path<br />
export PATH=/opt/mv_pro_4.0/montavista/pro/devkit/arm/v5t_le/bin:/opt/mv_pro_4.0/montavista/pro/bin:$PATH<br />
<br />
Step 4:<br />
cd /home/ralink/rt73-cvs-2007070309/Module<br />
<br />
Step 5:<br />
make ARCH=arm CROSS_COMPILE=arm_v5t_le- arm<br />
<br />
In some cases you might get a compile error in rtusb_data.c:1950 when this happens you need to<br />
fix the code skb->mac_header = skb->data; //PSRK<br />
<br />
{<br />
rfmontx_80211_receive:<br />
skb->dev = pAd->net_dev;<br />
memcpy(skb_put(skb, pRxD->DataByteCnt), pHeader, pRxD->DataByteCnt);<br />
//skb_reset_mac_header(skb); //ORIGINAL<br />
skb->mac_header = skb->data; //PSRK<br />
skb->pkt_type = PACKET_OTHERHOST;<br />
skb->pkt_type = PACKET_OTHERHOST;<br />
skb->protocol = htons(ETH_P_802_2);<br />
skb->ip_summed = CHECKSUM_NONE;<br />
netif_rx(skb);<br />
}<br />
<br />
Step 6: Copy the ko to the target<br />
cp ./rt73.ko /dvevm/nfs/home/<br />
<br />
Step 7: Important!!!<br />
Copy the rt73.bin from the build directory to /lib/firmware on the target DVEVM.<br />
<br />
Once this is done you are all set to use the driver.<br />
<br />
<br />
== '''On the target''' ==<br />
<br />
<br />
insmod rt73<br />
<br />
Insert the USB Wlan adapter, this should be detected and the driver loaded. If this does not<br />
just reboot the EVM and insert the Adapter again.<br />
<br />
If you get some Ep0 errors this means that the You did not apply the Zheng Patch.<br />
If you get some firmware error make sure you enabled the hotplug during kernel menuconfig.<br />
<br />
if everything was ok then run the following command.<br />
<br />
ifconfig wlan0 up<br />
iwlist wlan0 scan<br />
<br />
This should list the Accesspoints<br />
<br />
Then you can attach to the AP using<br />
<br />
iwconfig wlan0 essid [APNAME] key [KEY]<br />
<br />
<br />
#DHCP<br />
dhcpcd -n wlan0<br />
<br />
#STATIC IP<br />
ifconfig wlan0 192.168.9.50 netmask 255.255.255.0 broadcast 192.168.9.1 up<br />
<br />
Best of Luck.<br />
Ravi Kiran.</div>Kiranpshttps://elinux.org/index.php?title=Davinci_USB_Wlan&diff=4128Davinci USB Wlan2007-09-02T17:02:38Z<p>Kiranps: </p>
<hr />
<div>'''Guide to Compile and use USB WLan Adapter.'''<br />
We are using DLink DWL G 122 Rev C (Available in India).<br />
<br />
If you are using 2.6.10 Kernel then you need ZHENG path. Search the Mail Archive for ZHENG patch<br />
Downlaod the Diff from this message and apply it.<br />
http://www.mail-archive.com/davinci-linux-open-source@linux.davincidsp.com/msg01652.html<br />
<br />
If you are using 2.6.21 Kernel , it works as it is, No patch is required but you need to enable wlan.<br />
Ive tested thru a Powered Hub, Tested with USB Flash Drive and WLan connected at the same time.<br />
<br />
'''Build Instructions for Kernel.'''<br />
<br />
make menuconfig <br />
<br />
Device Drivers -> Generic Device Options -> Enable Hot plug Firmware loading.<br />
Make sure that usb is enabled in the host mode and jumper on the board is set to host.<br />
Networking -> Enable Generic 802.11 and Enable WEP/Other Schemes you might need.<br />
<br />
Rebuild the kernel<br />
<br />
'''Building the RTL Driver'''<br />
<br />
Step 1:<br />
Goto http://rt2x00.serialmonkey.com/wiki/index.php?title=Main_Page<br />
Download and extract the latest rt73 Driver Source.<br />
<br />
Step 2:<br />
#Export the KERNDIR Path<br />
export KERNDIR=/workdir/lsp/ti-davinci/<br />
<br />
Step 3:<br />
#Export the build Path<br />
export PATH=/opt/mv_pro_4.0/montavista/pro/devkit/arm/v5t_le/bin:/opt/mv_pro_4.0/montavista/pro/bin:$PATH<br />
<br />
Step 4:<br />
cd /home/ralink/rt73-cvs-2007070309/Module<br />
<br />
Step 5:<br />
make ARCH=arm CROSS_COMPILE=arm_v5t_le- arm<br />
<br />
In some cases you might get a compile error in rtusb_data.c:1950 when this happens you need to<br />
fix the code skb->mac_header = skb->data; //PSRK<br />
<br />
rfmontx_80211_receive:<br />
skb->dev = pAd->net_dev;<br />
memcpy(skb_put(skb, pRxD->DataByteCnt), pHeader, pRxD->DataByteCnt);<br />
//skb_reset_mac_header(skb); //ORIGINAL<br />
skb->mac_header = skb->data; //PSRK<br />
skb->pkt_type = PACKET_OTHERHOST;<br />
skb->pkt_type = PACKET_OTHERHOST;<br />
skb->protocol = htons(ETH_P_802_2);<br />
skb->ip_summed = CHECKSUM_NONE;<br />
netif_rx(skb);<br />
}<br />
<br />
Step 6: Copy the ko to the target<br />
cp ./rt73.ko /dvevm/nfs/home/<br />
<br />
Step 7: Important!!!<br />
Copy the rt73.bin from the build directory to /lib/firmware on the target DVEVM.<br />
<br />
Once this is done you are all set to use the driver.<br />
<br />
'''On the target'''<br />
<br />
insmod rt73<br />
<br />
Insert the USB Wlan adapter, this should be detected and the driver loaded. If this does not<br />
just reboot the EVM and insert the Adapter again.<br />
<br />
If you get some Ep0 errors this means that the You did not apply the Zheng Patch.<br />
If you get some firmware error make sure you enabled the hotplug during kernel menuconfig.<br />
<br />
if everything was ok then run the following command.<br />
<br />
ifconfig wlan0 up<br />
iwlist wlan0 scan<br />
<br />
This should list the Accesspoints<br />
<br />
Then you can attach to the AP using<br />
<br />
iwconfig wlan0 essid [APNAME] key [KEY]<br />
<br />
<br />
#DHCP<br />
dhcpcd -n wlan0<br />
<br />
#STATIC IP<br />
ifconfig wlan0 192.168.9.50 netmask 255.255.255.0 broadcast 192.168.9.1 up<br />
<br />
Best of Luck.<br />
Ravi Kiran.</div>Kiranpshttps://elinux.org/index.php?title=Davinci_USB_Wlan&diff=4127Davinci USB Wlan2007-09-02T16:47:02Z<p>Kiranps: </p>
<hr />
<div>'''Guide to Compile and use USB WLan Adapter.'''<br />
We are using DLink DWL G 122 Rev C (Available in India).<br />
<br />
If you are using 2.6.10 Kernel then you need ZHENG path. Search the Mail Archive for ZHENG patch<br />
Downlaod the Diff from this message and apply it.<br />
http://www.mail-archive.com/davinci-linux-open-source@linux.davincidsp.com/msg01652.html<br />
<br />
If you are using 2.6.21 Kernel , it works as it is, No patch is required but you need to enable wlan.<br />
Ive tested thru a Powered Hub, Tested with USB Flash Drive and WLan connected at the same time.<br />
<br />
'''Build Instructions for Kernel.'''<br />
<br />
make menuconfig <br />
<br />
Device Drivers -> Generic Device Options -> Enable Hot plug Firmware loading.<br />
Make sure that usb is enabled in the host mode and jumper on the board is set to host.<br />
Networking -> Enable Generic 802.11 and Enable WEP/Other Schemes you might need.<br />
<br />
Rebuild the kernel<br />
<br />
'''Building the RTL Driver'''<br />
<br />
Step 1:<br />
Goto http://rt2x00.serialmonkey.com/wiki/index.php?title=Main_Page<br />
Download and extract the latest rt73 Driver Source.<br />
<br />
Step 2:<br />
#Export the KERNDIR Path<br />
export KERNDIR=/workdir/lsp/ti-davinci/<br />
<br />
Step 3:<br />
#Export the build Path<br />
export PATH=/opt/mv_pro_4.0/montavista/pro/devkit/arm/v5t_le/bin:/opt/mv_pro_4.0/montavista/pro/bin:$PATH<br />
<br />
Step 4:<br />
cd /home/ralink/rt73-cvs-2007070309/Module<br />
<br />
Step 5:<br />
make ARCH=arm CROSS_COMPILE=arm_v5t_le- arm<br />
<br />
In some cases you might get a compile error in rtusb_data.c:1950 when this happens you need to<br />
fix the code skb->mac_header = skb->data; //PSRK<br />
<br />
rfmontx_80211_receive:<br />
skb->dev = pAd->net_dev;<br />
memcpy(skb_put(skb, pRxD->DataByteCnt), pHeader, pRxD->DataByteCnt);<br />
//skb_reset_mac_header(skb); //ORIGINAL<br />
skb->mac_header = skb->data; //PSRK<br />
skb->pkt_type = PACKET_OTHERHOST;<br />
skb->pkt_type = PACKET_OTHERHOST;<br />
skb->protocol = htons(ETH_P_802_2);<br />
skb->ip_summed = CHECKSUM_NONE;<br />
netif_rx(skb);<br />
}<br />
<br />
<br />
Step 6: Copy the ko to the target<br />
cp ./rt73.ko /dvevm/nfs/home/<br />
<br />
Step 7: Important!!!<br />
Copy the rt73.bin from the build directory to /lib/firmware on the target DVEVM.<br />
<br />
Once this is done you are all set to use the driver.<br />
<br />
'''On the target'''<br />
<br />
insmod rt73<br />
<br />
Insert the USB Wlan adapter, this should be detected and the driver loaded. If this does not<br />
just reboot the EVM and insert the Adapter again.<br />
<br />
If you get some Ep0 errors this means that the You did not apply the Zheng Patch.<br />
If you get some firmware error make sure you enabled the hotplug during kernel menuconfig.<br />
<br />
if everything was ok then run the following command.<br />
<br />
ifconfig wlan0 up<br />
iwlist wlan0 scan<br />
<br />
This should list the Accesspoints<br />
<br />
Then you can attach to the AP using<br />
<br />
iwconfig wlan0 essid [APNAME] key [KEY]<br />
<br />
<br />
#DHCP<br />
dhcpcd -n wlan0<br />
<br />
#STATIC IP<br />
ifconfig wlan0 192.168.9.50 netmask 255.255.255.0 broadcast 192.168.9.1 up<br />
<br />
Best of Luck.<br />
Ravi Kiran.</div>Kiranpshttps://elinux.org/index.php?title=Davinci_USB_Wlan&diff=4126Davinci USB Wlan2007-09-02T16:45:02Z<p>Kiranps: </p>
<hr />
<div>Guide to Compile and use USB WLan Adapter.<br />
We are using DLink DWL G 122 Rev C (Available in India).<br />
<br />
If you are using 2.6.10 Kernel then you need ZHENG path. Search the Mail Archive for ZHENG patch<br />
Downlaod the Diff from this message and apply it.<br />
http://www.mail-archive.com/davinci-linux-open-source@linux.davincidsp.com/msg01652.html<br />
<br />
If you are using 2.6.21 Kernel , it works as it is.<br />
Ive tested thru a Powered Hub, Tested with USB Flash Drive and WLan connected at the same time.<br />
<br />
Build Instructions for Kernel.<br />
<br />
make menuconfig <br />
<br />
Device Drivers -> Generic Device Options -> Enable Hot plug Firmware loading.<br />
Make sure that usb is enabled in the host mode and jumper on the board is set to host.<br />
Networking -> Enable Generic 802.11 and Enable WEP/Other Schemes you might need.<br />
<br />
Rebuild the kernel<br />
<br />
Building the RTL Driver<br />
<br />
Step 1:<br />
Goto http://rt2x00.serialmonkey.com/wiki/index.php?title=Main_Page<br />
Download and extract the latest rt73 Driver Source.<br />
<br />
Step 2:<br />
#Export the KERNDIR Path<br />
export KERNDIR=/workdir/lsp/ti-davinci/<br />
<br />
Step 3:<br />
#Export the build Path<br />
export PATH=/opt/mv_pro_4.0/montavista/pro/devkit/arm/v5t_le/bin:/opt/mv_pro_4.0/montavista/pro/bin:$PATH<br />
<br />
Step 4:<br />
cd /home/ralink/rt73-cvs-2007070309/Module<br />
<br />
Step 5:<br />
make ARCH=arm CROSS_COMPILE=arm_v5t_le- arm<br />
<br />
In some cases you might get a compile error in rtusb_data.c:1950 when this happens you need to<br />
fix the code skb->mac_header = skb->data; //PSRK<br />
<br />
rfmontx_80211_receive:<br />
skb->dev = pAd->net_dev;<br />
memcpy(skb_put(skb, pRxD->DataByteCnt), pHeader, pRxD->DataByteCnt);<br />
//skb_reset_mac_header(skb); //ORIGINAL<br />
skb->mac_header = skb->data; //PSRK<br />
skb->pkt_type = PACKET_OTHERHOST;<br />
skb->pkt_type = PACKET_OTHERHOST;<br />
skb->protocol = htons(ETH_P_802_2);<br />
skb->ip_summed = CHECKSUM_NONE;<br />
netif_rx(skb);<br />
}<br />
<br />
<br />
Step 6: Copy the ko to the target<br />
cp ./rt73.ko /dvevm/nfs/home/<br />
<br />
Step 7: Important!!!<br />
Copy the rt73.bin from the build directory to /lib/firmware on the target DVEVM.<br />
<br />
Once this is done you are all set to use the driver.<br />
<br />
On the target<br />
<br />
insmod rt73<br />
<br />
Insert the USB Wlan adapter, this should be detected and the driver loaded. If this does not<br />
just reboot the EVM and insert the Adapter again.<br />
<br />
If you get some Ep0 errors this means that the You did not apply the Zheng Patch.<br />
If you get some firmware error make sure you enabled the hotplug during kernel menuconfig.<br />
<br />
if everything was ok then run the following command.<br />
<br />
ifconfig wlan0 up<br />
iwlist wlan0 scan<br />
<br />
This should list the Accesspoints<br />
<br />
Then you can attach to the AP using<br />
<br />
iwconfig wlan0 essid [APNAME] key [KEY]<br />
<br />
<br />
#DHCP<br />
dhcpcd -n wlan0<br />
<br />
#STATIC IP<br />
ifconfig wlan0 192.168.9.50 netmask 255.255.255.0 broadcast 192.168.9.1 up<br />
<br />
Best of Luck.<br />
Ravi Kiran.</div>Kiranps