Comments (10)
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.
@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.
@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.
Any errors in the boot log about it? Race between the USB coming up and the networking initscript, perhaps?
from meta-tegra.
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.
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.
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.
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.
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.
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)
- Avoid dummy0 interface being created HOT 6
- "isolcpus=" to enable offline cores Orin NX
- Issue adding a custom `.dtb` for custom carrier (A603) HOT 1
- `p3509-a02-p3767-0000` fails compiling due to tegra-minimal-initramfs' do_image_cpio (kirkstone) HOT 2
- How to modify MB1 & MB2 BCTs and how to sign and store with keys HOT 1
- Orin NX won't boot scarthgap build HOT 3
- nvidia-kernel-oot: Conflicts with intree kernel modules of the same name HOT 7
- Cannot compile kernel on kirkstone HOT 5
- scarthgap: gtk-4.14.1 build failed, dependency "libdrm" not found HOT 6
- Xavier AGX fails to switch partitions after swupdate HOT 2
- tegra-uefi-capsules-36.3.0/bup-payload/signed/flash.idx is not found when building SWUpdate image HOT 3
- Question: Are there any plans for updating kirkstone-l4t-r32.7.x to the latest L4T32.7.5? HOT 2
- Wifi hiccups with tegra-kernel oe4t-patches-l4t-r32.7.4 HOT 1
- nsight-systems license md5 HOT 1
- tegra-uefi-capsules/36.3.0/tegra-uefi-capsules-36.3.0/bup-payload/signed/flash.idx is not found HOT 1
- Crash in nvgpu module with 5.15 kernel 5.15.136-l4t-r36.3 HOT 49
- Device bricked, stopped at EFI console HOT 3
- NVS compilation error, kirkstone HOT 4
- Issues Flashing to Jetson Orin nano devkit with secure boot HOT 9
- Spidev loop back test is not working on L4T 35.4.1 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from meta-tegra.