-
Notifications
You must be signed in to change notification settings - Fork 220
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
tegra210_xusb_firmware needs to be available during early boot #14
Comments
Using a minimal initrd with the firmware in it solves the USB problem, but appears to cause problems with later firmware loads (after the real rootfs has been mounted). So I suspect we'd have to go all-in with a more-complete initrd for that approach. Otherwise, one still needs a udev firmware helper. For now, I'll add in eudev patches to make the firmware helper work, then revisit after some further investigation. |
For #14 Signed-off-by: Matt Madison <matt@madison.systems>
For #14 Signed-off-by: Matt Madison <matt@madison.systems>
@madisongh I did a clean build last night and tried this out this morning and eth0 comes up fine. Thanks for the patch. |
@madisongh noticing today that I need to restart networking after boot in order to get eth0 up
|
Any errors in the boot log about it? Race between the USB coming up and the networking initscript, perhaps? |
I see the firmware get loaded
It looks to me like the networking initscript is being called too early?
Maybe massage the order of the init scripts? |
As another clue it seems that on a fresh install eth0 always comes up. But, upon a reboot eth0 is missing. I'm trying to think of persistent elements that would cause this behavior. I tried disabling the udev-cache but that didn't do the trick. |
Include a minimal initramfs image in the kernel build, so USB devices can come up during early boot. For #14. Signed-off-by: Matt Madison <matt@madison.systems>
Include a minimal initramfs image in the kernel build, so USB devices can come up during early boot. For #14. Signed-off-by: Matt Madison <matt@madison.systems>
Hmm. I haven't seen this on reboots in my testing with the sato image, but there could be a race where eth0 isn't showing up in time for the networking initscript to see it. Which image are you running? |
it's my own based on core-image-minimal with a bit more debugging/network stuff in there so I bet its some issue with something delaying things in an out of order way. When I get a chance I'll try a more standard image. |
I have seen this issue when it takes a long time for the USB controller to probe all of the attached USB peripherals - in my case, this was a custom board with a custom USB device attached that the controller could see but could not complete all of the protocol handshaking. I expect that using some udev rules to trigger bringing the interface up when it becomes visible would help in this situation. |
Having the initrd in place to load the xusb controller's firmware during early boot (which is also done in the stock L4T Ubuntu image) takes care of this for typical use cases. |
As mentioned in #12, the xusb firmware needs to be available during early kernel initialization, particularly if the rootfs is on a USB device.
Possible approaches to resolve this:
The text was updated successfully, but these errors were encountered: