Git Product home page Git Product logo

Comments (10)

madisongh avatar madisongh commented on August 26, 2024

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.

from meta-tegra.

rectoyon avatar rectoyon commented on August 26, 2024

@madisongh I did a clean build last night and tried this out this morning and eth0 comes up fine. Thanks for the patch.

from meta-tegra.

rectoyon avatar rectoyon commented on August 26, 2024

@madisongh noticing today that I need to restart networking after boot in order to get eth0 up

/etc/init.d/networking restart

from meta-tegra.

madisongh avatar madisongh commented on August 26, 2024

Any errors in the boot log about it? Race between the USB coming up and the networking initscript, perhaps?

from meta-tegra.

rectoyon avatar rectoyon commented on August 26, 2024

I see the firmware get loaded

root@jetson-tx1:~# dmesg | grep firmware
[    0.000000] psci: PSCIv0.2 detected in firmware.
[    7.691201] udevd[177]: writing '/lib/firmware/tegra21x_xusb_firmware' (124416) to '/sys/devices/platform/tegra-xhci/firmware/tegra21x_xusb_firmware/data'
[    7.712337] tegra-xhci tegra-xhci: Firmware File: tegra21x_xusb_firmware (124416 Bytes)

It looks to me like the networking initscript is being called too early?

 6.352108] ipip: IPv4 over IPv4 tunneling driver
[    6.357232] ip_tables: (C) 2000-2006 Netfilter Core Team
[    6.362706] arp_tables: (C) 2002 David S. Miller
[    6.367352] TCP: cubic registered
[    6.370663] Initializing XFRM netlink socket
[    6.375075] NET: Registered protocol family 10
[    6.380359] mip6: Mobile IPv6
[    6.383377] ip6_tables: (C) 2000-2006 Netfilter Core Team
...

Maybe massage the order of the init scripts?

from meta-tegra.

rectoyon avatar rectoyon commented on August 26, 2024

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.

from meta-tegra.

madisongh avatar madisongh commented on August 26, 2024

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?

from meta-tegra.

rectoyon avatar rectoyon commented on August 26, 2024

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.

from meta-tegra.

madisongh avatar madisongh commented on August 26, 2024

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.

from meta-tegra.

madisongh avatar madisongh commented on August 26, 2024

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.

from meta-tegra.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.