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

Pocket Beagle Generic Boot script #80

Open
tesorrells opened this issue Mar 30, 2018 · 7 comments
Open

Pocket Beagle Generic Boot script #80

tesorrells opened this issue Mar 30, 2018 · 7 comments

Comments

@tesorrells
Copy link

I'm trying to minimize the boot time on the pocket beagle while still retaining ssh capabilities. Generic boot script (and dev-mmcblk0p1, but that is the SD card, correct?) takes a ton of time, 35 seconds on average. I was reading on another post that you can get rid of the am335x_evm.sh call in generic-startup.sh, but to keep the serial capabilities you were referencing an .conf file that doesn't exist on the pocket beagle. What would be the best way to resolve this?

@RobertCNelson
Copy link
Owner

@tesorrells most of that delay is:

modprobe libcomposite

and then the configfs routine..

https://github.com/RobertCNelson/boot-scripts/blob/master/boot/am335x_evm.sh#L593-L603

Regards,

@tesorrells
Copy link
Author

Would disabling this have any adverse effects?

@RobertCNelson
Copy link
Owner

nothing, unless you utilize the usb-gadget driver.. (usb flash/usb serial/usb networking)

@tesorrells
Copy link
Author

Well I use USB to SSH into it, so I just need to retain that.

@RobertCNelson
Copy link
Owner

Well then your using something that cause 95% of the delay.. ;)

@tesorrells
Copy link
Author

Ah, so I can't pick and choose the usb gadgets then. That makes sense. I already disabled the network and the mass storage but that didn't really effect it.

@RobertCNelson
Copy link
Owner

RobertCNelson commented Mar 30, 2018

Well, there is a way to fix the delay. Move libcomposite as built-in..

You can see where i tried this here: (commented out section)

https://github.com/RobertCNelson/boot-scripts/blob/master/boot/am335x_evm.sh#L589-L608

But when built-in, the /sys/class/udc didn't populate:

https://github.com/RobertCNelson/boot-scripts/blob/master/boot/am335x_evm.sh#L533-L542

So i couldn't link the bus to the configfs setup..

Regards,

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