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

faster boot time #117

Open
Frijol opened this issue Oct 26, 2015 · 11 comments
Open

faster boot time #117

Frijol opened this issue Oct 26, 2015 · 11 comments

Comments

@Frijol
Copy link
Member

Frijol commented Oct 26, 2015

It currently takes ~30 seconds for Tessel 2 to boot up. Are there optimizations we can do to make this faster?

cc @kevinmehall for probably having good ideas

@kevinmehall
Copy link
Member

There's a list somewhere of things I was going to do to optimize this. I don't see an issue on openwrt-tessel (firmware boots in milliseconds), so I don't remember where that went. I got the low-hanging fruit, like removing the artificial delays waiting for user input in the bootloader and openwrt failsafe.

The bottleneck is mostly reading data from the SPI flash. Not sure if it will work or will help to just increase the SPI clock speed, but that's a simple tweak worth a try. That's in the devicetree (.dts) in the openwrt repo.

If you implemented DMA support for the mt7620 SPI controller in the Linux kernel, that would probably cut boot time in half, but would be rather involved and the mediatek documentation is a little lacking there. Right now the CPU does nothing useful while waiting to read data from flash.

@flaki
Copy link
Contributor

flaki commented Apr 15, 2016

Whoah linking this in the tessel.io/start is 💯💯!! Transparency FTW! (also, sorry for the off 😊 )

@ujjwalt
Copy link

ujjwalt commented Nov 25, 2016

Has there been an update on this yet?

@Frijol
Copy link
Member Author

Frijol commented Nov 26, 2016

@ujjwalt unfortunately not, but we would love your help! Would you be able to try either of @kevinmehall's suggestions above? Feedback on any attempts (successful or failed) is useful

@ujjwalt
Copy link

ujjwalt commented Nov 26, 2016 via email

@Frijol
Copy link
Member Author

Frijol commented Nov 26, 2016

That's something we're working on at the moment– join me on tessel.io/slack --> #learning-wg - I'm happy to discuss

@danawoodman
Copy link

Any updates on this?

@JasonKleban
Copy link

JasonKleban commented May 3, 2020

Could something like Yocto Project be used to gen out a custom distro that is faster? I am completely uninformed on all relevant topics, but since it's quiet in here I don't mind asking.

@kevinmehall
Copy link
Member

@JasonKleban it's mostly a bootloader / kernel driver issue, not anything distro-specific.

@mattbasta
Copy link

Is there a link to a page with more technical information about what's going on here?

@andrew-luhring
Copy link

andrew-luhring commented Apr 12, 2022

@kevinmehall @mattbasta any update? i've been trying to get the tessel to work with WSL (windows subsystem for linux) and it hasn't been going super well. i had to install usbipd to connect the subsystems' usb stuff to the actual hardware usb stuff and usbipd is running correctly on the non-tessel device but when i try to mount the tessel it disconnects and reconnects but with an error. i have a feeling it might have something to do with this.

Details: https://github.com/dorssel/usbipd-win/wiki/WSL-support

after attaching the device, it turns it from

busid device state
2-2 Tessel 2 Shared
to
2-2 Unknown USB Device (Device Descriptor Request Failed) Shared

after disconnecting/reconnecting. super weird

i thought about making a new issue but idk if this is even still in active development. doesn't seem like it which sucks because i just bought it

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

No branches or pull requests

8 participants