-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Beaglebone Green Compile Error #17
Comments
Yes this kernel doesn't support the new FunctionFS descriptors. make CFLAGS="-DOLD_FUNCTIONFS_DESCRIPTORS" |
Compile is OK. But I could not able to run service. sudo mkdir cfg/usb_gadget/g1 I have used "-p" parameter, but it did not work: Anyway. I will try up to date BBG firmware image. P.S: Possible typo error in S98uMTPrd: UMTPRD_DAEMON_PATH=/usr/bin/umtprd[.sh] Regards |
I have found this link: Do I need to run at least kernel 3.13? Regards. |
yes, according to this pdf this appears to be the case. This may help you : |
Hi Team: Then I have added gadgetfs config lines in umtprd.conf and tried to start umtprd. But last outputs of the umtprd: It seems trying FunctionFS still. |
change the usb_functionfs_mode config line to : usb_functionfs_mode 0x0 |
Now umtprd does not give error. but just says: [uMTPrd - Info] uMTP Responder : Disconnected I have updated libmtp, now latest 1.1.16. mtp-detect command does not show any connected device. |
did you started it with the script ? : |
Yes, I have used umtprd_gfs.sh script. |
try to set loop_on_disconnect to 1 in the config file. |
please also note that you need to change the usb_dev_path, usb_epin_path, usb_epout_path and usb_epint_path paths in the config file according to your system in the config file. |
Nothing changed. usb_dev_path "/dev/gadget/musb-hdrc" Then I deleted "sleep 1" inside loop and run script again. BBG again was stucked. On host computer dmesg showed these lines: [ 4029.501619] usb 1-3: New USB device found, idVendor=1d6b, idProduct=0100 mtp-detect also says "No raw devices found." |
Please rebuild umtprd with the debug outputs (add CFLAGS="-DDEBUG" to the command line) and post here the full log. |
sudo ./umtprd_gfs.sh At this point BBG stoped, did not respond to anything. |
Is the BBG completely blocked ? |
It seams blocked. CPU led is on. I think BBG runing %100 CPU load and it cant respond to any thing. |
More success on the new kernel ? |
Hi Team:
I have BBG running kernel 3.8.13 (default kernel comming with the product). I have checkted that FUNCTIONFS and GADGETFS are compiled as a module in kernel.
When I compile uMTP, I got fallowing errors:
cc -o obj/usb_gadget.o src/usb_gadget.c -c -I./inc -lpthread -Wall -O3
src/usb_gadget.c: In function ‘init_usb_mtp_gadget’:
src/usb_gadget.c:706:36: error: ‘FUNCTIONFS_DESCRIPTORS_MAGIC_V2’ undeclared (first use in this function)
src/usb_gadget.c:706:36: note: each undeclared identifier is reported only once for each function it appears in
src/usb_gadget.c:707:36: error: ‘FUNCTIONFS_HAS_FS_DESC’ undeclared (first use in this function)
src/usb_gadget.c:707:36: error: ‘FUNCTIONFS_HAS_HS_DESC’ undeclared (first use in this function)
make: *** [obj/usb_gadget.o] Error 1
Any idea about this errors.
Best regards.
The text was updated successfully, but these errors were encountered: