The NXT had been already flashed under Windows, the firmware version is 0.9.1.
Environment:
- Code: Select all
pengchengxu@ubuntu:~$ echo $NXJ_HOME
/home/pengchengxu/NXJ/leJOS_NXJ_0.9.1beta-3/
pengchengxu@ubuntu:~$ echo $PATH
/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/pengchengxu/NXJ/leJOS_NXJ_0.9.1beta-3/bin
pengchengxu@ubuntu:~$ echo $LEJOS_NXT_JAVA_HOME
/usr/lib/jvm/java-6-sun
pengchengxu@ubuntu:~$ echo $JAVA_HOME
/usr/lib/jvm/java-6-sun
Failed to find NXT:
- Code: Select all
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 002: ID 0e0f:0003 VMware, Inc. Virtual Mouse
Bus 002 Device 003: ID 0e0f:0002 VMware, Inc. Virtual USB Hub
Bus 002 Device 005: ID 0e0f:0008 VMware, Inc.
Bus 002 Device 007: ID 0694:0002 Lego Group Mindstorms NXT
pengchengxu@ubuntu:~$ nxjbrowse -u
leJOS NXJ> Failed to find any NXTs
No NXT found - is it switched on and plugged in (for USB)?
pengchengxu@ubuntu:~$ sudo chmod a+w /dev/bus/usb/002/007
pengchengxu@ubuntu:~$ nxjbrowse -u
leJOS NXJ> Failed to find any NXTs
No NXT found - is it switched on and plugged in (for USB)?
- Code: Select all
pengchengxu@ubuntu:~$ nxjflash
Building firmware image.
VM file: /home/pengchengxu/NXJ/leJOS_NXJ_0.9.1beta-3/bin/lejos_nxt_rom.bin
Menu file: /home/pengchengxu/NXJ/leJOS_NXJ_0.9.1beta-3/bin/StartUpText.bin
Magic string found at offset 0x40
VM size: 55888 bytes.
Menu size: 47740 bytes.
Total image size 103804/104448 bytes.
Locating device in firmware update mode.
No devices in firmware update mode were found.
Searching for other NXT devices.
No NXT found. Please check that the device is turned on and connected.
not the permission problem, I had done these several times.
- Code: Select all
pengchengxu@ubuntu:~$ cd /etc/udev/rules.d
pengchengxu@ubuntu:/etc/udev/rules.d$ sudo cp '/home/pengchengxu/Desktop/70-lego.rules' .
pengchengxu@ubuntu:/etc/udev/rules.d$ sudo groupadd lego
groupadd: group 'lego' already exists
pengchengxu@ubuntu:/etc/udev/rules.d$ sudo gpasswd -a pengchengxu lego
Adding user pengchengxu to group lego
pengchengxu@ubuntu:/etc/udev/rules.d$ sudo udevadm control --reload-rules
pengchengxu@ubuntu:/etc/udev/rules.d$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 002: ID 0e0f:0003 VMware, Inc. Virtual Mouse
Bus 002 Device 003: ID 0e0f:0002 VMware, Inc. Virtual USB Hub
Bus 002 Device 005: ID 0e0f:0008 VMware, Inc.
Bus 002 Device 008: ID 0694:0002 Lego Group Mindstorms NXT
pengchengxu@ubuntu:/etc/udev/rules.d$ sudo '/home/pengchengxu/NXJ/leJOS_NXJ_0.9.1beta-3/bin/nxjflash'
Building firmware image.
VM file: /home/pengchengxu/NXJ/leJOS_NXJ_0.9.1beta-3/bin/lejos_nxt_rom.bin
Menu file: /home/pengchengxu/NXJ/leJOS_NXJ_0.9.1beta-3/bin/StartUpText.bin
Magic string found at offset 0x40
VM size: 55888 bytes.
Menu size: 47740 bytes.
Total image size 103804/104448 bytes.
Locating device in firmware update mode.
No devices in firmware update mode were found.
Searching for other NXT devices.
No NXT found. Please check that the device is turned on and connected.
In my system the libusb1.0 and 0.1 is both existing, is this the root of the problem?
How can I remove the libusb1.0?
- Code: Select all
pengchengxu@ubuntu:~$ dpkg -l | grep libusb
ii libusb-0.1-4 2:0.1.12-20 userspace USB programming library
ii libusb-1.0-0 2:1.0.9~rc3-2ubuntu1 userspace USB programming library
ii libusb-dev 2:0.1.12-20 userspace USB programming library development files
ii libusbmuxd1 1.0.7-2 USB multiplexor daemon for iPhone and iPod Touch devices - library
This problem confuse me 3days, does anyone can help?
