Skip to content
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

full path vs basename oddness with "gt load" #71

Open
karlp opened this issue Dec 7, 2022 · 2 comments
Open

full path vs basename oddness with "gt load" #71

karlp opened this issue Dec 7, 2022 · 2 comments

Comments

@karlp
Copy link

karlp commented Dec 7, 2022

if I attempt to use "gt load /mnt/some/full/path/my.schema.file" I get an error, but if I cd to that path and just "gt load my.schema.file" it works happily.

example log output:

root@eg-13E128:~# gt load /mnt/kroot/owrt_private_feeds/remake_master/files/etc/remake.d/eth2-acm.gt 
Error on import gadget     <<<<< note this
Error: USBG_ERROR_NOT_FOUND : Not found (file or directory removed)
root@eg-13E128:~# ls -l /^C
root@eg-13E128:~# cd /mnt/kroot/owrt_private_feeds/remake_master/files/etc/remake.d/
root@eg-13E128:/mnt/kroot/owrt_private_feeds/remake_master/files/etc/remake.d# gt load eth2-acm.gt 
[ 9562.708101] using random self ethernet address
[ 9562.712594] using random host ethernet address
[ 9562.718874] usb0: HOST MAC 7e:ed:2b:ac:61:64
[ 9562.722543] etb: port 1(usb0) entered blocking state
[ 9562.723248] usb0: MAC 0a:d4:88:aa:3c:a1
[ 9562.728256] etb: port 1(usb0) entered disabled state
root@eg-13E128:/mnt/kroot/owrt_private_feeds/remake_master/files[ 9562.737566] device usb0 entered promiscuous mode
/etc/remake.d#

I've tried looking at the code for this, and the "Error on import gadget" is after it's loaded the file, so I'm not sure what's happening here?

@pabs3 pabs3 transferred this issue from linux-usb-gadgets/gt Dec 8, 2022
@pabs3
Copy link
Member

pabs3 commented Dec 8, 2022 via email

@karlp
Copy link
Author

karlp commented Feb 10, 2023

sorry, I gave up trying to make gadgets like this and just used g_ether.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants