How to configurate USB of mpc8247 in u-boot 1.1.3
Hello:
I have done some define in include/configs/MPC8260ADS.h.
#define CONFIG_COMMANDS ( ( CFG_CMD_ALL & ~( \
CFG_CMD_SDRAM | \
CFG_CMD_I2C | \
CFG_EXCLUDE ) ) | \
CFG_CMD_USB | \
CFG_CMD_FAT )
#define CONFIG_USB_OHCI
#define CONFIG_USB_STORAGE
#define CONFIG_MAC_PARTITION
#define CONFIG_DOS_PARTITIONBut the result of compile is error. The print of compile is following:
UNDEF_SYM=`ppc_82xx-objdump -x lib_generic/libgeneric.a board/mpc8260ads/libmpc8260ads.a cpu/mpc8260/libmpc8260.a lib_ppc/libppc.a fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a net/libnet.a disk/libdisk.a rtc/librtc.a dtt/libdtt.a drivers/libdrivers.a drivers/sk98lin/libsk98lin.a post/libpost.a post/cpu/libcpu.a common/libcommon.a |sed -n -e 's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
ppc_82xx-ld -Bstatic -T /user/srp/u-boot-1.1.3/board/mpc8260ads/u-boot.lds -Ttext 0x10000000 -n $UNDEF_SYM cpu/mpc8260/start.o \
--start-group lib_generic/libgeneric.a board/mpc8260ads/libmpc8260ads.a cpu/mpc8260/libmpc8260.a lib_ppc/libppc.a fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a net/libnet.a disk/libdisk.a rtc/librtc.a dtt/libdtt.a drivers/libdrivers.a drivers/sk98lin/libsk98lin.a post/libpost.a post/cpu/libcpu.a common/libcommon.a --end-group -L /opt/eldk/usr/bin/../lib/gcc-lib/ppc-linux/3.3.3/pic -lgcc \
-Map u-boot.map -o u-bootcommon/libcommon.a(usb.o)(.text+0x54): In function `usb_init':
/user/srp/u-boot-1.1.3/common/usb.c:96: undefined reference to usb_lowlevel_init' common/libcommon.a(usb.o)(.text+0xd4): In function usb_stop':
/user/srp/u-boot-1.1.3/common/usb.c:117: undefined reference to usb_lowlevel_stop' common/libcommon.a(usb.o)(.text+0x140): In function usb_submit_int_msg':
/user/srp/u-boot-1.1.3/common/usb.c:141: undefined reference to submit_int_msg' common/libcommon.a(usb.o)(.text+0x1e0): In function usb_control_msg':
/user/srp/u-boot-1.1.3/common/usb.c:170: undefined reference to submit_control_msg' common/libcommon.a(usb.o)(.text+0x27c): In function usb_bulk_msg':
/user/srp/u-boot-1.1.3/common/usb.c:197: undefined reference to submit_bulk_msg' common/libcommon.a(usb_storage.o)(.text+0x8d4): In function usb_stor_CBI_get_status':
/user/srp/u-boot-1.1.3/common/usb_storage.c:527: undefined reference to `submit_int_msg'
make: *** [u-boot] Error 1
How do i?
Best Regards,
lichlin
2006-06-14
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20060614/70503e04/attachment.htm
Quoted 14 lines · lichlin
I have done some define in include/configs/MPC8260ADS.h.
#define CONFIG_COMMANDS ( ( CFG_CMD_ALL & ~( \
CFG_CMD_SDRAM | \
CFG_CMD_I2C | \
CFG_EXCLUDE ) ) | \
CFG_CMD_USB | \
CFG_CMD_FAT )
#define CONFIG_USB_OHCI
#define CONFIG_USB_STORAGE
#define CONFIG_MAC_PARTITION
#define CONFIG_DOS_PARTITIONQuoted 1 line
But the result of compile is error. The print of compile is following:
It seems an appropriate lowlevel usb driver is missing for your board/cpu. Look at the usb_ohci.[ch] / usb_uhci.[ch] drivers for examples. If you have an OHCI controller, consider using the USB-testing branch and use the generic driver. In any case you should use a current version of U-Boot.
And please don't send HTML and BASE64 encoded messages.
Regards
Markus Klotzbuecher
Quoted 8 lines · In message <[email protected]> you wrote:
This is a multi-part message in MIME format.
--===============0728787736==
Content-Type: multipart/alternative; boundary="=====003_Dragon433544062381_====="
Quoted 6 lines
This is a multi-part message in MIME format.
--=====003_Dragon433544062381_=====
Content-Type: text/plain; charset="gb2312"Content-Transfer-Encoding: 7bit
Please don't do that. Please send plain ASCII text only.
Quoted 9 lines
I have done some define in include/configs/MPC8260ADS.h.
#define CONFIG_COMMANDS ( ( CFG_CMD_ALL & ~( \
CFG_CMD_SDRAM | \
CFG_CMD_I2C | \
CFG_EXCLUDE ) ) | \
CFG_CMD_USB | \
CFG_CMD_FAT )
#define CONFIG_USB_OHCI
#define CONFIG_USB_STORAGE...
Quoted 14 lines
common/libcommon.a(usb.o)(.text+0x54): In function `usb_init':
/user/srp/u-boot-1.1.3/common/usb.c:96: undefined reference tousb_lowlevel_init' common/libcommon.a(usb.o)(.text+0xd4): In functionusb_stop':
/user/srp/u-boot-1.1.3/common/usb.c:117: undefined reference tousb_lowlevel_stop' common/libcommon.a(usb.o)(.text+0x140): In functionusb_submit_int_msg':
/user/srp/u-boot-1.1.3/common/usb.c:141: undefined reference tosubmit_int_msg' common/libcommon.a(usb.o)(.text+0x1e0): In functionusb_control_msg':
/user/srp/u-boot-1.1.3/common/usb.c:170: undefined reference tosubmit_control_msg' common/libcommon.a(usb.o)(.text+0x27c): In functionusb_bulk_msg':
/user/srp/u-boot-1.1.3/common/usb.c:197: undefined reference tosubmit_bulk_msg' common/libcommon.a(usb_storage.o)(.text+0x8d4): In functionusb_stor_CBI_get_status':
/user/srp/u-boot-1.1.3/common/usb_storage.c:527: undefined reference to `submit_int_msg'
make: *** [u-boot] Error 1
Quoted 1 line
How do i?
Add a USB driver for the MPC82xx. So far, there is none.
Quoted 8 lines
--=====003_Dragon433544062381_=====
Content-Type: text/html; charset="gb2312"Content-Transfer-Encoding: base64
PCFET0NUWVBFIEhUTUwgUFVCTElDICItLy9XM0MvL0RURCBIVE1MIDQuMCBUcmFuc2l0aW9uYWwv L0VOIj4NCjxIVE1MPjxIRUFEPg0KPE1FVEEgaHR0cC1lcXVpdj1Db250ZW50LVR5cGUgY29udGVu dD0idGV4dC9odG1sOyBjaGFyc2V0PWdiMjMxMiI+DQo8TUVUQSBjb250ZW50PSJNU0hUTUwgNi4w
...
And *never again* post HTMNL here. Never!
Best regards,
Wolfgang Denk
Signature · 5 lines
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
PoB = "Prisoner of Bill" -- those held captive, unwillingly or other-
wise, by the contemptible Microsoft monopoly.
-- Tom Christiansen in <[email protected]>[U-Boot-Users] logistic question
In reply to lichlinHi
Can anybody tell, where is TODO list for uboot?