使用的uboot在打开SPL / TPL—>Support USB host drivers后编译报错,看了dts文件里是有usb的配置信息的。就是看不懂这报错到底什么意思。
IIC也打不开,真尴尬
common/built-in.o: In function `usb_stor_BBB_reset':
/home/ff/Documents/V3s/u-boot/common/usb_storage.c:480: undefined reference to `usb_control_msg'
/home/ff/Documents/V3s/u-boot/common/usb_storage.c:495: undefined reference to `usb_clear_halt'
/home/ff/Documents/V3s/u-boot/common/usb_storage.c:502: undefined reference to `usb_clear_halt'
common/built-in.o: In function `usb_stor_CB_reset':
/home/ff/Documents/V3s/u-boot/common/usb_storage.c:523: undefined reference to `usb_control_msg'
/home/ff/Documents/V3s/u-boot/common/usb_storage.c:533: undefined reference to `usb_clear_halt'
/home/ff/Documents/V3s/u-boot/common/usb_storage.c:534: undefined reference to `usb_clear_halt'
common/built-in.o: In function `usb_stor_BBB_clear_endpt_stall':
/home/ff/Documents/V3s/u-boot/common/usb_storage.c:712: undefined reference to `usb_control_msg'
common/built-in.o: In function `usb_stor_BBB_comdat':
/home/ff/Documents/V3s/u-boot/common/usb_storage.c:583: undefined reference to `usb_bulk_msg'
common/built-in.o: In function `usb_stor_BBB_transport':
/home/ff/Documents/V3s/u-boot/common/usb_storage.c:783: undefined reference to `usb_bulk_msg'
/home/ff/Documents/V3s/u-boot/common/usb_storage.c:783: undefined reference to `usb_bulk_msg'
/home/ff/Documents/V3s/u-boot/common/usb_storage.c:755: undefined reference to `usb_bulk_msg'
common/built-in.o: In function `us_one_transfer':
/home/ff/Documents/V3s/u-boot/common/usb_storage.c:387: undefined reference to `usb_maxpacket'
/home/ff/Documents/V3s/u-boot/common/usb_storage.c:405: undefined reference to `usb_bulk_msg'
/home/ff/Documents/V3s/u-boot/common/usb_storage.c:421: undefined reference to `usb_clear_halt'
common/built-in.o: In function `usb_stor_CB_comdat':
/home/ff/Documents/V3s/u-boot/common/usb_storage.c:614: undefined reference to `usb_control_msg'
/home/ff/Documents/V3s/u-boot/common/usb_storage.c:629: undefined reference to `usb_clear_halt'
common/built-in.o: In function `usb_storage_probe':
/home/ff/Documents/V3s/u-boot/common/usb_storage.c:1362: undefined reference to `usb_set_interface'
/home/ff/Documents/V3s/u-boot/common/usb_storage.c:1384: undefined reference to `usb_maxpacket'
common/built-in.o: In function `usb_mass_storage_probe':
/home/ff/Documents/V3s/u-boot/common/usb_storage.c:1483: undefined reference to `dev_get_parent_priv'
common/built-in.o: In function `usb_get_max_lun':
/home/ff/Documents/V3s/u-boot/common/usb_storage.c:186: undefined reference to `usb_control_msg'
drivers/built-in.o: In function `usb_child_post_bind':
/home/ff/Documents/V3s/u-boot/drivers/usb/host/usb-uclass.c:685: undefined reference to `dev_get_parent_platdata'
/home/ff/Documents/V3s/u-boot/drivers/usb/host/usb-uclass.c:693: undefined reference to `fdtdec_get_int'
/home/ff/Documents/V3s/u-boot/drivers/usb/host/usb-uclass.c:698: undefined reference to `fdtdec_get_int'
drivers/built-in.o: In function `usb_get_bus':
/home/ff/Documents/V3s/u-boot/drivers/usb/host/usb-uclass.c:711: undefined reference to `device_get_uclass_id'
drivers/built-in.o: In function `usb_child_pre_probe':
/home/ff/Documents/V3s/u-boot/drivers/usb/host/usb-uclass.c:724: undefined reference to `dev_get_parent_priv'
/home/ff/Documents/V3s/u-boot/drivers/usb/host/usb-uclass.c:725: undefined reference to `dev_get_parent_platdata'
/home/ff/Documents/V3s/u-boot/drivers/usb/host/usb-uclass.c:752: undefined reference to `usb_select_config'
drivers/built-in.o: In function `ohci_destroy_int_queue':
/home/ff/Documents/V3s/u-boot/drivers/usb/host/ohci-hcd.c:2191: undefined reference to `dev_get_priv'
drivers/built-in.o: In function `ohci_poll_int_queue':
/home/ff/Documents/V3s/u-boot/drivers/usb/host/ohci-hcd.c:2183: undefined reference to `dev_get_priv'
drivers/built-in.o: In function `ep_add_ed':
/home/ff/Documents/V3s/u-boot/drivers/usb/host/ohci-hcd.c:873: undefined reference to `usb_maxpacket'
drivers/built-in.o: In function `ohci_create_int_queue':
/home/ff/Documents/V3s/u-boot/drivers/usb/host/ohci-hcd.c:2174: undefined reference to `dev_get_priv'
drivers/built-in.o: In function `submit_common_msg':
/home/ff/Documents/V3s/u-boot/drivers/usb/host/ohci-hcd.c:1525: undefined reference to `usb_maxpacket'
drivers/built-in.o: In function `ohci_submit_int_msg':
/home/ff/Documents/V3s/u-boot/drivers/usb/host/ohci-hcd.c:2164: undefined reference to `dev_get_priv'
drivers/built-in.o: In function `ohci_submit_bulk_msg':
/home/ff/Documents/V3s/u-boot/drivers/usb/host/ohci-hcd.c:2155: undefined reference to `dev_get_priv'
drivers/built-in.o: In function `ohci_submit_control_msg':
/home/ff/Documents/V3s/u-boot/drivers/usb/host/ohci-hcd.c:2146: undefined reference to `dev_get_priv'
drivers/built-in.o: In function `_ohci_submit_control_msg':
/home/ff/Documents/V3s/u-boot/drivers/usb/host/ohci-hcd.c:1743: undefined reference to `usb_maxpacket'
drivers/built-in.o: In function `ohci_register':
/home/ff/Documents/V3s/u-boot/drivers/usb/host/ohci-hcd.c:2198: undefined reference to `dev_get_uclass_priv'
/home/ff/Documents/V3s/u-boot/drivers/usb/host/ohci-hcd.c:2199: undefined reference to `dev_get_priv'
drivers/built-in.o: In function `ohci_deregister':
/home/ff/Documents/V3s/u-boot/drivers/usb/host/ohci-hcd.c:2225: undefined reference to `dev_get_priv'
drivers/built-in.o: In function `ohci_usb_remove':
/home/ff/Documents/V3s/u-boot/drivers/usb/host/ohci-sunxi.c:77: undefined reference to `dev_get_priv'
drivers/built-in.o: In function `ohci_usb_probe':
/home/ff/Documents/V3s/u-boot/drivers/usb/host/ohci-sunxi.c:38: undefined reference to `dev_get_uclass_priv'
/home/ff/Documents/V3s/u-boot/drivers/usb/host/ohci-sunxi.c:39: undefined reference to `dev_get_priv'
/home/ff/Documents/V3s/u-boot/drivers/usb/host/ohci-sunxi.c:40: undefined reference to `dev_get_addr'
drivers/built-in.o: In function `ehci_get_ctrl':
/home/ff/Documents/V3s/u-boot/drivers/usb/host/ehci-hcd.c:116: undefined reference to `dev_get_priv'
drivers/built-in.o: In function `ehci_update_endpt2_dev_n_port':
/home/ff/Documents/V3s/u-boot/drivers/usb/host/ehci-hcd.c:293: undefined reference to `usb_find_usb2_hub_address_port'
drivers/built-in.o: In function `ehci_submit_async':
/home/ff/Documents/V3s/u-boot/drivers/usb/host/ehci-hcd.c:408: undefined reference to `usb_maxpacket'
drivers/built-in.o: In function `_ehci_create_int_queue':
/home/ff/Documents/V3s/u-boot/drivers/usb/host/ehci-hcd.c:1238: undefined reference to `usb_maxpacket'
/home/ff/Documents/V3s/u-boot/drivers/usb/host/ehci-hcd.c:1297: undefined reference to `usb_maxpacket'
drivers/built-in.o: In function `ehci_register':
/home/ff/Documents/V3s/u-boot/drivers/usb/host/ehci-hcd.c:1599: undefined reference to `dev_get_uclass_priv'
/home/ff/Documents/V3s/u-boot/drivers/usb/host/ehci-hcd.c:1600: undefined reference to `dev_get_priv'
drivers/built-in.o: In function `ehci_deregister':
/home/ff/Documents/V3s/u-boot/drivers/usb/host/ehci-hcd.c:1640: undefined reference to `dev_get_priv'
drivers/built-in.o: In function `ehci_usb_remove':
/home/ff/Documents/V3s/u-boot/drivers/usb/host/ehci-sunxi.c:75: undefined reference to `dev_get_priv'
drivers/built-in.o: In function `ehci_usb_probe':
/home/ff/Documents/V3s/u-boot/drivers/usb/host/ehci-sunxi.c:37: undefined reference to `dev_get_platdata'
/home/ff/Documents/V3s/u-boot/drivers/usb/host/ehci-sunxi.c:38: undefined reference to `dev_get_priv'
/home/ff/Documents/V3s/u-boot/drivers/usb/host/ehci-sunxi.c:39: undefined reference to `dev_get_addr'
drivers/built-in.o:(.u_boot_list_2_uclass_2_usb+0x8): undefined reference to `dm_scan_fdt_dev'
scripts/Makefile.spl:288: recipe for target 'spl/u-boot-spl' failed
make[1]: *** [spl/u-boot-spl] Error 1
Makefile:1319: recipe for target 'spl/u-boot-spl' failed
make: *** [spl/u-boot-spl] Error 2
离线
uboot还没有试过 usb呢
IIC一开也报错 ,我编译好的现在只是eth能识别到,勉强能启动
DRAM:408MHz
CPU:1200MHz
离线
http://linux-sunxi.org/Mainline_U-Boot
看起来 u-boot 还没有 适配 V3s 的 usb
我也是这么想的
应该试试新版本
2017 的dtsi文件里usbotg是给H3用的
离线