Firefox/Tegra/Device Debugging: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 4: Line 4:
* Windows CE Platform Builder (part of the [http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=7e286847-6e06-4a0c-8cac-ca7d4c09cb56 WinCE 6.0 Eval Edition])
* Windows CE Platform Builder (part of the [http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=7e286847-6e06-4a0c-8cac-ca7d4c09cb56 WinCE 6.0 Eval Edition])
** Only the "Platform Builder" part is needed when installing, deselecting "CE 6.0 Operating System" and "Windows Embedded CE 6.0 Test Kit" will save gigabytes.
** Only the "Platform Builder" part is needed when installing, deselecting "CE 6.0 Operating System" and "Windows Embedded CE 6.0 Test Kit" will save gigabytes.
* Tegra OS image


= Device Setup =
= Device Setup =
# Reflash your device, enabling Ethernet KITL. See dolske or vlad for the magic numbers.
# [[Firefox/Tegra/Device_Flashing|Reflash]] your device, enabling Ethernet KITL. You'll need to edit nvflash_oban_nokitl.bat and change the --odmdata flags. See dolske or vlad for the magic numbers.
# Connect the hardware debugger daughterboard to the Tegra module. Note that ribbon cable will physically connect either direction, but it must be connected like this to function: [[File:Omap.png]]
# Connect the hardware debugger daughterboard to the Tegra module. Note that ribbon cable will physically connect either direction, but it must be connected like this to function: [[File:Omap.png]]
# Connect power and ethernet to the debugger board. The ethernet cable should connect to a local hub/switch connected to your PC.
# Connect power and ethernet to the debugger board. The ethernet cable should either connect directly to your PC or via a hub/switch. If you're using VMWare on a MacBook, connect directly to the system and make sure the VMWare Network Adapter setting is in "Bridged" mode for the VM.


= Desktop Setup =
= Desktop Setup =


# ...
# Launch VS2005
# From the menubar, select Target --> Connectivity and edit:
## Kernel Service Map
##* Set "Download" to "Ethernet". Click the Settings button and reboot your device -- you should see "Tegra_0"  as an available target device. Select it and click Ok.
##* Set "Transport" to "Ethernet". Click the Settings button, and ensure "Use device name from bootloader" is checked.
##* Set "Debugger" to "KbStub".
## Core Service Settings
##* Leave "Target Device" as "CE Device"
##* Set "Download Image" to "Never"
##* Leave all three "KITL Settings" boxes checked.
##* '''Click "Apply" now''' (otherwise changes will be lost when you go to the next section!)
## Service Status
##* Select "Kernel Debugger OS Awareness" and click Settings. Change "Module (un)load Notification to Debugger" to "Always Off" (or "Off Until First Halt"). Leaving this set to "Always On" results in slow boot times, and often causes USB connectivity problems.
##* Select "Debug Message" and set to "Asynchronous" (XXX I don't see this option!)
## After rechecking the above settings (sometimes the UI will lose your changes!), click "Close"
# From the menubar, select Target --> Attach Device. If prompted for an image, select NK.NB0 from the OS image dir you used when reflashing the device.
canmove, Confirmed users
432

edits