root@slitaz:/usr# cd /usr/src/linux
root@slitaz:/usr/src/linux-2.6.30.6-slitaz# make oldconfig && make prepare
make: *** No rule to make target `oldconfig'. Stop.
root@slitaz:/usr/src/linux-2.6.30.6-slitaz#
root@slitaz:~# tazpkg get-install linux-source
tazwok cook linux
# CONFIG_USB_SERIAL_TI is not set
root@slitaz:/home/sbigler# cd /usr/src/linux-2.6.33.2-slitaz/
root@slitaz:/usr/src/linux-2.6.33.2-slitaz#
root@slitaz:/usr/src/linux-2.6.33.2-slitaz# vi .config
# CONFIG_USB_SERIAL_TI is not set <== remplace this line<br />CONFIG_USB_SERIAL_TI=m <== with this one<br />
root@slitaz:/usr/src/linux-2.6.33.2-slitaz# make CONFIG_USB_SERIAL_TI=m M=drivers/usb/serial
LD drivers/usb/serial/built-in.o
CC [M] drivers/usb/serial/usb-serial.o
CC [M] drivers/usb/serial/generic.o
CC [M] drivers/usb/serial/bus.o
LD [M] drivers/usb/serial/usbserial.o
CC [M] drivers/usb/serial/ch341.o
CC [M] drivers/usb/serial/option.o
CC [M] drivers/usb/serial/pl2303.o
CC [M] drivers/usb/serial/ti_usb_3410_5052.o
Building modules, stage 2.
MODPOST 5 modules
CC drivers/usb/serial/ch341.mod.o
LD [M] drivers/usb/serial/ch341.ko
CC drivers/usb/serial/option.mod.o
LD [M] drivers/usb/serial/option.ko
CC drivers/usb/serial/pl2303.mod.o
LD [M] drivers/usb/serial/pl2303.ko
CC drivers/usb/serial/ti_usb_3410_5052.mod.o
LD [M] drivers/usb/serial/ti_usb_3410_5052.ko
CC drivers/usb/serial/usbserial.mod.o
LD [M] drivers/usb/serial/usbserial.ko
root@slitaz:/usr/src/linux-2.6.33.2-slitaz#
root@slitaz:/usr/src/linux-2.6.33.2-slitaz# mkdir -p /lib/modules/2.6.33.2-slitaz/kernel/drivers/usb/serial
root@slitaz:/usr/src/linux-2.6.33.2-slitaz# cp drivers/usb/serial/*.ko /lib/modules/2.6.33.2-slitaz/kerne
l/drivers/usb/serial/
root@slitaz:/usr/src/linux-2.6.33.2-slitaz# ls /lib/modules/2.6.33.2-slitaz/kernel/drivers/usb/serial/
ch341.ko option.ko pl2303.ko ti_usb_3410_5052.ko usbserial.ko
root@slitaz:/usr/src/linux-2.6.33.2-slitaz#
root@slitaz:~# cd /usr/src/linux-2.6.30.6-slitaz/
root@slitaz:/usr/src/linux-2.6.30.6-slitaz# make firmware_install
root@slitaz:/usr/src/linux-2.6.30.6-slitaz# ls /lib/firmware/ti_*
/lib/firmware/ti_3410.fw /lib/firmware/ti_5052.fw
root@slitaz:~#
root@slitaz:~# cd /usr/src/linux-2.6.30.6-slitaz/ depmod -a
root@slitaz:~# cd /usr/src/linux-2.6.30.6-slitaz/ modprobe ti_usb_3410_5052
root@slitaz:/usr/src/linux-2.6.33.2-slitaz# lsmod | grep ti_usb
ti_usb_3410_5052 16567 0
usbserial 22032 1 ti_usb_3410_5052
root@slitaz:/usr/src/linux-2.6.33.2-slitaz#
root@slitaz:/usr/src/linux-2.6.33.2-slitaz# cat /etc/rcS.conf | grep LOAD_MODULES
LOAD_MODULES="lp parport parport_pc ti_usb_3410_5052"
root@slitaz:/usr/src/linux-2.6.33.2-slitaz#
root@slitaz:/usr/src/linux-2.6.33.2-slitaz# dmesg | tail
usb 1-2.2: device firmware changed
ti_usb_3410_5052: probe of 1-2.2:1.0 failed with error -5
usb 1-2.2: USB disconnect, address 5
usbcore: registered new interface driver ti_usb_3410_5052
ti_usb_3410_5052: v0.9:TI USB 3410/5052 Serial Driver
usb 1-2.2: new full speed USB device using uhci_hcd and address 6
ti_usb_3410_5052 1-2.2:1.0: TI USB 3410 1 port adapter converter detected
ti_usb_3410_5052: probe of 1-2.2:1.0 failed with error -5
ti_usb_3410_5052 1-2.2:2.0: TI USB 3410 1 port adapter converter detected
usb 1-2.2: TI USB 3410 1 port adapter converter now attached to ttyUSB0
root@slitaz:/usr/src/linux-2.6.33.2-slitaz#
root@slitaz:/usr/src/linux-2.6.33.2-slitaz# ls /dev/ttyUSB0
/dev/ttyUSB0
root@slitaz:/usr/src/linux-2.6.33.2-slitaz#
root@slitaz:~# tazpkg get-install slitaz-toolchain
root@slitaz:~# tazpkg get-install ncurses-dev
root@slitaz:~# tazpkg get-install perl
root@slitaz:~# tazpkg get-install zlib-dev
root@slitaz:~# tazpkg get-install mercurial
root@slitaz:~# cat /etc/tazwok.conf
...
# Wok directory/tree to find receipts and build packages.
# By default on SliTaz the directory is /home/slitaz/wok.
#WOK="/home/slitaz/wok"
WOK="/my_wok/slitaz/wok"
# The path to the sources tarballs of the binaries packages.
#SOURCES_REPOSITORY="/home/slitaz/src"
SOURCES_REPOSITORY="/my_wok/slitaz/src"
# This path set the binaries packages repository. It's where all
# the gen *.tazpkg will be stored when using gen-repository command.
#PACKAGES_REPOSITORY="/home/slitaz/packages"
PACKAGES_REPOSITORY="/my_wok/slitaz/packages"
...
root@slitaz:~# hg clone http://hg.slitaz.org/wok/ /my_wok/slitaz/wok
requesting all changes
adding changesets
adding manifests
adding file changes
added 5203 changesets with 12638 changes to 3838 files
updating working directory
3339 files updated, 0 files merged, 0 files removed, 0 files unresolved
root@slitaz:~#
root@slitaz:~# vi /my_wok/slitaz/wok/linux/receipt
...
EOT
make mrproper
cd Documentation/lguest
make lguest || return 1
cd ../..
cp ../stuff/$PACKAGE-$VERSION-slitaz.config .config
make oldconfig
ln .config slitaz/config
make menuconfig &&
make bzImage &&
make modules &&
make INSTALL_MOD_PATH=$PWD/_pkg modules_install &&
make INSTALL_HDR_PATH=$PWD/_pkg/usr headers_install &&
[ -s arch/x86/boot/bzImage ]
}
...
root@slitaz:~# tazwok cook linux
Checking for build dependencies...
Starting to cook linux...
=============================================Checking for source tarball...
...
root@slitaz:~#
root@slitaz:~# vi /my_wok/slitaz/wok/linux/linux-2.6.30.6/drivers/usb/serial/ti_usb_3410_5052.c
/* 3410 must be reset, 5052 resets itself */
if (tdev->td_is_3410) {
msleep_interruptible(100);
usb_reset_device(dev);
}
/*here is the required change.*/
//status = -ENODEV;
status = 0x01E;
goto free_tdev;
/* the second configuration must be set */
if (dev->actconfig->desc.bConfigurationValue == TI_BOOT_CONFIG) {
status = usb_driver_set_configuration(dev, TI_ACTIVE_CONFIG);
/*here is the required change.*/
//status = status ? status : -ENODEV;
status = 0xA1B;
goto free_tdev;
}
root@slitaz:~# tazwok cook linux
Checking for build dependencies...
Starting to cook linux...
=============================================Checking for source tarball...
...
...
root@slitaz:~#mv /boot/vmlinuz-2.6.30.6-slitaz /boot/vmlinuz-2.6.30.6-slitaz_original
root@slitaz:~# tazpkg install /my_wok/slitaz/packages/linux-2.6.30.6.tazpkg --forced
Installation of : linux-2.6.30.6
=============================================Copying linux-2.6.30.6... [ OK ]
Extracting linux-2.6.30.6... 6369 blocks
Extracting the pseudo fs... (lzma) 9148 blocks
Saving configuration files for linux... [ OK ]
Installing linux... [ OK ]
Removing all tmp files... [ OK ]
Processing post-install commands...
----
GRUB is installed, these tree lines must be in your /boot/grub/menu.lst:
title SliTaz GNU/Linux (Kernel 2.6.30.6-slitaz)
root (hd0,1)
kernel /boot/vmlinuz-2.6.30.6-slitaz root=/dev/hda2
----
=============================================linux (2.6.30.6) is installed.
root@slitaz:~#
root@slitaz:~# cat /boot/grub/menu.lst
default 0
timeout 8
color yellow/brown light-green/black
# For booting SliTaz from : /dev/hda2
title SliTaz GNU/Linux (Kernel 2.6.30.6-slitaz with driver ti_usb_3410_3052)
root (hd0,1)
kernel /boot/vmlinuz-2.6.30.6-slitaz root=/dev/hda2
title SliTaz GNU/Linux (Kernel 2.6.30.6-slitaz)
root (hd0,1)
kernel /boot/vmlinuz-2.6.30.6-slitaz_original root=/dev/hda2
root@slitaz:~#
root@slitaz:~# modprobe -l | grep ti_usb
It looks like you're new here. If you want to get involved, click one of these buttons!