Hi
I am trying to compile a USB driver for MPC8313 Reference Design Board. I do not have the source code to compile the drivers on Linux. They say they have to be extracted from an .iso file (which is non existent). Is there a way to develop the driver without using the Kernel source files (some GCC switches for OS Linux & powerpc as target)? Or can somebody help me find/locate Kernel source files.
If at all the kernel source is present on the CD then under what filename is this hiding?
Kernel Version: 2.6.20
thanks in advance,
Ak
Solved! Go to Solution.
ak79,
The kernel files are in a package file, so you will not find them directly on the CD you get with the board.
To get to the Kernel source files, you have to do an install of the LTIB environment and then request the kernel files to be extracted and built.
When it comes to installing the LTIB environment it can be done fromt the CD or by dowloading the latest .iso file from the Freescale site. I would recommend doing the download as you will get the latest source code that way (if you really want to load from the CD, the instructions are just about the same except you need to mount the CD directly with execute privileges and run the install script from it)
To find the latest BSP for the MPC8313, if you login to the Freescale site and do a keyword search at the Freescale for MPC8313 and BSP you get a link to it:
https://www.freescale.com/webapp/Download?colCode=CWF-MPC8313E-RDB&location=null&fsrch=1
Fill out the form and download the file.
Download that file, put it into a working directory, as root mount the .iso file CD image as an executable directory, and then as your normal Linux login, run install (example):
alan@raptor:~$ ls *.iso
MPC8313E_RDB_K26_20070831-LTIB.iso
alan@raptor:~$ su
Password:
raptor:/home/alan# ls -ld cdmount
drwxrwxrwx 2 alan alan 4096 2007-05-29 11:51 cdmount
raptor:/home/alan# mount -o loop MPC8313E_RDB_K26_20070831-LTIB.iso cdmount
raptor:/home/alan# exit
exit
alan@raptor:~$
alan@raptor:~$ cdmount/install
Once you've done that, you need to change directory to the one you installed it in and run ltib for the first time (example)
alan@raptor:~$ cd ltib-mpc8313erdb-20070824/
alan@raptor:~/ltib-mpc8313erdb-20070824$ ./ltib
Assuming that you've gottent the install and initial build completed, you can now ask for the Linux kernel sources to be extracted and built by;
alan@raptor:~/ltib-mpc8313erdb-20070824$ ./ltib --configure
On the first menu that pops up, select the following two options, then exit
[*] Configure the kernel
[*] Leave the sources after building
When the kernel config menu comes up, you can just select exit.
The kernel sources will then be extracted and built, if you do this with the current version the main Linux kernel source can be found at:
alan@raptor:~/ltib-mpc8313erdb-20070824$ cd rpm/BUILD/linux-2.6.20/
alan@raptor:~/ltib-mpc8313erdb-20070824/rpm/BUILD/linux-2.6.20$
alan@raptor:~/ltib-mpc8313erdb-20070824/rpm/BUILD/linux-2.6.20$ ls
arch CREDITS drivers init kernel Makefile net scripts System.map vmlinux.bin.gz
block crypto fs ipc lib mm README security usr
COPYING Documentation include Kbuild MAINTAINERS Module.symvers REPORTING-BUGS sound vmlinux
The usb drivers are under the drivers directory.
alan@raptor:~/ltib-mpc8313erdb-20070824/rpm/BUILD/linux-2.6.20/drivers/usb$ ls
atm class gadget image Kconfig misc net README storage
built-in.o core host input Makefile mon otg serial usb-skeleton.c
Hope this helps :smileyhappy:
Best regards,
abartky
ak79,
The kernel files are in a package file, so you will not find them directly on the CD you get with the board.
To get to the Kernel source files, you have to do an install of the LTIB environment and then request the kernel files to be extracted and built.
When it comes to installing the LTIB environment it can be done fromt the CD or by dowloading the latest .iso file from the Freescale site. I would recommend doing the download as you will get the latest source code that way (if you really want to load from the CD, the instructions are just about the same except you need to mount the CD directly with execute privileges and run the install script from it)
To find the latest BSP for the MPC8313, if you login to the Freescale site and do a keyword search at the Freescale for MPC8313 and BSP you get a link to it:
https://www.freescale.com/webapp/Download?colCode=CWF-MPC8313E-RDB&location=null&fsrch=1
Fill out the form and download the file.
Download that file, put it into a working directory, as root mount the .iso file CD image as an executable directory, and then as your normal Linux login, run install (example):
alan@raptor:~$ ls *.iso
MPC8313E_RDB_K26_20070831-LTIB.iso
alan@raptor:~$ su
Password:
raptor:/home/alan# ls -ld cdmount
drwxrwxrwx 2 alan alan 4096 2007-05-29 11:51 cdmount
raptor:/home/alan# mount -o loop MPC8313E_RDB_K26_20070831-LTIB.iso cdmount
raptor:/home/alan# exit
exit
alan@raptor:~$
alan@raptor:~$ cdmount/install
Once you've done that, you need to change directory to the one you installed it in and run ltib for the first time (example)
alan@raptor:~$ cd ltib-mpc8313erdb-20070824/
alan@raptor:~/ltib-mpc8313erdb-20070824$ ./ltib
Assuming that you've gottent the install and initial build completed, you can now ask for the Linux kernel sources to be extracted and built by;
alan@raptor:~/ltib-mpc8313erdb-20070824$ ./ltib --configure
On the first menu that pops up, select the following two options, then exit
[*] Configure the kernel
[*] Leave the sources after building
When the kernel config menu comes up, you can just select exit.
The kernel sources will then be extracted and built, if you do this with the current version the main Linux kernel source can be found at:
alan@raptor:~/ltib-mpc8313erdb-20070824$ cd rpm/BUILD/linux-2.6.20/
alan@raptor:~/ltib-mpc8313erdb-20070824/rpm/BUILD/linux-2.6.20$
alan@raptor:~/ltib-mpc8313erdb-20070824/rpm/BUILD/linux-2.6.20$ ls
arch CREDITS drivers init kernel Makefile net scripts System.map vmlinux.bin.gz
block crypto fs ipc lib mm README security usr
COPYING Documentation include Kbuild MAINTAINERS Module.symvers REPORTING-BUGS sound vmlinux
The usb drivers are under the drivers directory.
alan@raptor:~/ltib-mpc8313erdb-20070824/rpm/BUILD/linux-2.6.20/drivers/usb$ ls
atm class gadget image Kconfig misc net README storage
built-in.o core host input Makefile mon otg serial usb-skeleton.c
Hope this helps :smileyhappy:
Best regards,
abartky