Port-arm archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Jetson Nano notes redux



Kia ora koutou,
I have booted my Jetson Nano into multi-user NetBSD. I must be some
sort of genius. I mean, all I did was plug the right things in, but
surely I'm a genius right?

I put in a boot.scr file that set the value of $fdtfile to
${vendor}/${soc}-${board_name}.dtb. 

Then I looked at tegra210-p3450-0000.dts and a quick Google showed me
that the U-Boot 2024.01 sources in the Debian source tree looked
somewhat different than our tegra210-p3450-0000.dts. A quick copy and
paste of the two SDHCI entries that I cared about and the Jetson Nano
was up and running.

The following devices have come online

 * All four CPUs
 * the ethernet
 * the SDHC controller
 * the µSD card 

I haven't been brave enough to poke at the USB subsystem yet. There are
USB error messages on the console.

I'll try and gather up this information into useful PRs.


Here is the dmesg.

------------------->8-----------------
[   1.0000000] NetBSD/evbarm (fdt) booting ...
[   1.0000000] Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002,
2003,
[   1.0000000]     2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011,
2012, 2013,
[   1.0000000]     2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021,
2022, 2023,
[   1.0000000]     2024
[   1.0000000]     The NetBSD Foundation, Inc.  All rights reserved.
[   1.0000000] Copyright (c) 1982, 1986, 1989, 1991, 1993
[   1.0000000]     The Regents of the University of California.  All
rights reserved.

[   1.0000000] NetBSD 10.99.10 (GENERIC64) #0: Mon Jun 24 16:30:27 NZST
2024
[   1.0000000] 
lloyd%ceph4.must-have-coffee.gen.nz@localhost:/vol/build/trunk/objdir.evbarm64/sy
s/arch/evbarm/compile/GENERIC64
[   1.0000000] total memory = 4044 MB
[   1.0000000] avail memory = 3897 MB
[   1.0000000] armfdt0 (root)
[   1.0000000] simplebus0 at armfdt0: NVIDIA Jetson Nano Developer Kit
[   1.0000000] cpus0 at simplebus0
[   1.0000000] simplebus1 at simplebus0
[   1.0000000] psci0 at simplebus0: PSCI 1.0
[   1.0000000] cpu0 at cpus0: Arm Cortex-A57 r1p1 (v8-A), id 0x0
[   1.0000000] cpu0: package 0, core 0, smt 0
[   1.0000000] cpu1 at cpus0: Arm Cortex-A57 r1p1 (v8-A), id 0x1
[   1.0000000] cpu1: package 0, core 1, smt 0
[   1.0000000] cpu2 at cpus0: Arm Cortex-A57 r1p1 (v8-A), id 0x2
[   1.0000000] cpu2: package 0, core 2, smt 0
[   1.0000000] cpu3 at cpus0: Arm Cortex-A57 r1p1 (v8-A), id 0x3
[   1.0000000] cpu3: package 0, core 3, smt 0
[   1.0000000] tegralic0 at simplebus0: LIC
[   1.0000000] gic0 at simplebus0: GIC
[   1.0000000] armgic0 at gic0: Generic Interrupt Controller, 224
sources (212 valid)
[   1.0000000] armgic0: 16 Priorities, 191 SPIs, 6 PPIs, 15 SGIs
[   1.0000000] fclock0 at simplebus0: 32768 Hz fixed clock (clock@0)
[   1.0000000] tegragpio0 at simplebus0: GPIO
[   1.0000000] gpio0 at tegragpio0 (A): 8 pins
[   1.0000000] gpio1 at tegragpio0 (B): 8 pins
[   1.0000000] gpio2 at tegragpio0 (C): 8 pins
[   1.0000000] gpio3 at tegragpio0 (D): 8 pins
[   1.0000000] gpio4 at tegragpio0 (E): 8 pins
[   1.0000000] gpio5 at tegragpio0 (F): 8 pins
[   1.0000000] gpio6 at tegragpio0 (G): 8 pins
[   1.0000000] gpio7 at tegragpio0 (H): 8 pins
[   1.0000000] gpio8 at tegragpio0 (I): 8 pins
[   1.0000000] gpio9 at tegragpio0 (J): 8 pins
[   1.0000000] gpio10 at tegragpio0 (K): 8 pins
[   1.0000000] gpio11 at tegragpio0 (L): 8 pins
[   1.0000000] gpio12 at tegragpio0 (M): 8 pins
[   1.0000000] gpio13 at tegragpio0 (N): 8 pins
[   1.0000000] gpio14 at tegragpio0 (O): 8 pins
[   1.0000000] gpio15 at tegragpio0 (P): 8 pins
[   1.0000000] gpio16 at tegragpio0 (Q): 8 pins
[   1.0000000] gpio17 at tegragpio0 (R): 8 pins
[   1.0000000] gpio18 at tegragpio0 (S): 8 pins
[   1.0000000] gpio19 at tegragpio0 (T): 8 pins
[   1.0000000] gpio20 at tegragpio0 (U): 8 pins
[   1.0000000] gpio21 at tegragpio0 (V): 8 pins
[   1.0000000] gpio22 at tegragpio0 (W): 8 pins
[   1.0000000] gpio23 at tegragpio0 (X): 8 pins
[   1.0000000] gpio24 at tegragpio0 (Y): 8 pins
[   1.0000000] gpio25 at tegragpio0 (Z): 8 pins
[   1.0000000] gpio26 at tegragpio0 (AA): 8 pins
[   1.0000000] gpio27 at tegragpio0 (BB): 8 pins
[   1.0000000] gpio28 at tegragpio0 (CC): 8 pins
[   1.0000000] gpio29 at tegragpio0 (DD): 8 pins
[   1.0000000] gpio30 at tegragpio0 (EE): 8 pins
[   1.0000000] gtmr0 at simplebus0: Generic Timer
[   1.0000000] gtmr0: interrupting on GIC irq 27
[   1.0000000] armgtmr0 at gtmr0: Generic Timer (19200 kHz, virtual)
[   1.0000040] tegra210car0 at simplebus0: CAR
[   1.0000040] tegrapmc0 at simplebus0: PMC
[   1.0000040] tegrai2c0 at simplebus0: I2C
[   1.0000040] tegrai2c0: interrupting on irq 85
[   1.0000040] iic0 at tegrai2c0: I2C bus
[   1.0000040] max77620pmic0 at iic0 addr 0x3c: MAX77620 Power
Management IC
[   1.0000040] fregulator0 at simplebus0: AVDD_IO_EDP_1V05
[   1.0000040] fregulator1 at simplebus0: VDD_HDMI_5V0
[   1.0000040] tegrai2c1 at simplebus0: I2C
[   1.0000040] tegrai2c1: interrupting on irq 152
[   1.0000040] iic1 at tegrai2c1: I2C bus
[   1.0000040] pregulator0 at simplebus0: VDD_GPU
[   1.0000040] tegraapbdma0 at simplebus0: APBDMA
[   1.0000040] fregulator2 at simplebus0: VDD_3V3_SYS
[   1.0000040] fregulator3 at simplebus0: VDD_5V0_SYS
[   1.0000040] fregulator4 at simplebus0: VDD_5V_USB
[   1.0000040] fregulator5 at simplebus0: VDD_HUB_3V3
[   1.0000040] com0 at simplebus0: Tegra UART, 8-byte FIFO
[   1.0000040] com0: console
[   1.0000040] com0: interrupting on irq 68
[   1.0000040] fregulator6 at simplebus0: VDD_3V3_SD
[   1.0000040] fregulator7 at simplebus0: VDD_CPU
[   1.0000040] tegrai2c2 at simplebus0: I2C
[   1.0000040] tegrai2c2: interrupting on irq 124
[   1.0000040] iic2 at tegrai2c2: I2C bus
[   1.0000040] seeprom0 at iic2 addr 0x50: eeprom: size 256
[   1.0000040] seeprom1 at iic2 addr 0x57: eeprom: size 256
[   1.0000040] tegrafuse0 at simplebus0: FUSE
[   1.0000040] tegra210xpad0 at simplebus0: XUSB PADCTL
[   1.0000040] tegra210xphy0 at tegra210xpad0: usb2-0
[   1.0000040] tegra210xphy1 at tegra210xpad0: usb2-1
[   1.0000040] tegra210xphy2 at tegra210xpad0: usb2-2
[   1.0000040] tegra210xphy3 at tegra210xpad0: pcie-0
[   1.0000040] tegra210xphy4 at tegra210xpad0: pcie-1
[   1.0000040] tegra210xphy5 at tegra210xpad0: pcie-2
[   1.0000040] tegra210xphy6 at tegra210xpad0: pcie-3
[   1.0000040] tegra210xphy7 at tegra210xpad0: pcie-4
[   1.0000040] tegra210xphy8 at tegra210xpad0: pcie-5
[   1.0000040] tegra210xphy9 at tegra210xpad0: pcie-6
[   1.0000040] tegra210xpad0: unsupported mode 'peripheral' on port
usb2-0
[   1.0000040] tegra210xpad0: port usb2-1: set mode host, external
[   1.0000040] tegra210xpad0: port usb2-2: set mode host, external
[   1.0000040] tegra210xpad0: port usb3-0: set companion usb2-1,
external
[   1.0000040] /memory-controller@70019000 at simplebus0 not configured
[   1.0000040] /host1x@50000000 at simplebus0 not configured
[   1.0000040] /mipi@700e3000 at simplebus0 not configured
[   1.0000040] tegrapinmux0 at simplebus0: Pinmux
[   1.0000040] /aconnect@702c0000 at simplebus0 not configured
[   1.0000040] /clock@70110000 at simplebus0 not configured
[   1.0000040] /thermal-sensor@700e2000 at simplebus0 not configured
[   1.0000040] pwmfan0 at simplebus0: couldn't acquire pwm
[   1.0000040] /external-memory-controller@7001b000 at simplebus0 not
configured
[   1.0000040] /pwm@7000a000 at simplebus0 not configured
[   1.0000040] tegrapcie0 at simplebus0: PCIE
[   1.0000040] tegrapcie0: interrupting on irq 130
[   1.0000040] tegrapcie0: lane config: x4 x1
[   1.0000040] tegra210xpad0: lane pcie-1: set func pcie-x4
[   1.0000040] tegra210xpad0: lane pcie-2: set func pcie-x4
[   1.0000040] tegra210xpad0: lane pcie-3: set func pcie-x4
[   1.0000040] tegra210xpad0: lane pcie-4: set func pcie-x4
[   1.0000040] tegra210xpad0: lane pcie-0: set func pcie-x1
[   1.0000040] pci0 at tegrapcie0 bus 0
[   1.0000040] ppb0 at pci0 dev 0 function 0: vendor 10de product 0fae
(rev. 0xa1)
[   1.0000040] ppb0: PCI Express capability version 2 <Root Port of
PCI-E Root Complex> x4 @ 5.0GT/s
[   1.0000040] pci1 at ppb0 bus 1
[   1.0000040] ppb1 at pci0 dev 1 function 0: vendor 10de product 0faf
(rev. 0xa1)
[   1.0000040] ppb1: PCI Express capability version 2 <Root Port of
PCI-E Root Complex> x1 @ 5.0GT/s
[   1.0000040] ppb1: link is x1 @ 2.5GT/s
[   1.0000040] pci2 at ppb1 bus 2
[   1.0000040] re0 at pci2 dev 0 function 0: RealTek 8168/8111 PCIe
Gigabit Ethernet (rev. 0x15)
[   1.0000040] re0: interrupting at irq 130
[   1.0000040] re0: RTL8168H/8111H (0x5400)
[   1.0000040] re0: Ethernet address 00:04:4b:e4:41:00
[   1.0000040] rgephy0 at re0 phy 7: RTL8251 1000BASE-T media
interface, rev. 0
[   1.0000040] rgephy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX,
1000baseT-FDX, auto
[   1.0000040] /gpu@57000000 at simplebus0 not configured
[   1.0000040] tegratimer0 at simplebus0: Timers
[   1.0000040] tegratimer0: default watchdog period is 10 seconds
[   1.0000040] /flow-controller@60007000 at simplebus0 not configured
[   1.0000040] /apbmisc@70000800 at simplebus0 not configured
[   1.0000040] tegrartc0 at simplebus0: RTC
[   1.0000040] tegrartc0: disabled
[   1.0000040] hdaudio0 at simplebus0: HDA
[   1.0000040] hdaudio0: interrupting on irq 113
[   1.0000040] hdaudio0: HDA ver. 1.0, OSS 2, ISS 4, BSS 0, SDO 2, 64-
bit
[   1.0000040] hdafg0 at hdaudio0: NVIDIA product 0029
[   1.0000040] hdafg0: HDMI00 8ch: Digital Out [Jack]
[   1.0000040] hdafg0: 8ch/0ch 48000Hz PCM16*
[   1.0000040] audio0 at hdafg0: playback, capture, full duplex,
independent
[   1.0000040] audio0: slinear_le:16 2ch 48000Hz, blk 1920 bytes (10ms)
for playback
[   1.0000040] audio0: slinear_le:16 2ch 48000Hz, blk 1920 bytes (10ms)
for recording
[   1.0000040] spkr0 at audio0: PC Speaker (synthesized)
[   1.0000040] wsbell at spkr0 not configured
[   1.0000040] xhci0 at simplebus0: XUSB
[   1.0000040] xhci0: interrupting on irq 71
[   1.0000040] xhci0: interrupting on irq 72
[   1.0000040] tegra210xpad0: lane usb2-0: set func xusb
[   1.0000040] tegra210xpad0: lane usb2-1: set func xusb
[   1.0000040] tegra210xpad0: lane usb2-2: set func xusb
[   1.0000040] tegra210xpad0: lane pcie-6: set func usb3-ss
[   1.0000040] sdhc0 at simplebus0: SDMMC (81600 kHz)
[   1.0000040] sdhc0: interrupting on irq 46
[   1.0000040] sdhc0: SDHC 4.0, rev 3, 32-bit ADMA2, 81600 kHz, HS 1.8V
3.0V 3.3V, re-tuning mode 1, 512 byte blocks
[   1.0000040] sdmmc0 at sdhc0 slot 0
[   1.0000040] sdhc1 at simplebus0: SDMMC (81600 kHz)
[   1.0000040] sdhc1: interrupting on irq 63
[   1.0000040] sdhc1: SDHC 4.0, rev 3, 32-bit ADMA2, 81600 kHz, HS 1.8V
3.0V 3.3V, re-tuning mode 1, 512 byte blocks
[   1.0000040] sdmmc1 at sdhc1 slot 0
[   1.0000040] /usb@700d0000 at simplebus0 not configured
[   1.0000040] /spi@70410000 at simplebus0 not configured
[   1.0000040] armpmu0 at simplebus0: Performance Monitor Unit
[   1.0000040] /sound at simplebus0 not configured
[   1.0000040] gpiokeys0 at simplebus0: Power, Force Recovery
[   1.6768537] armpmu0: interrupting on irq 176
[   1.6768537] armpmu0: interrupting on irq 177
[   1.6868601] armpmu0: interrupting on irq 178
[   1.6868601] armpmu0: interrupting on irq 179
[   1.7068546] WARNING: system needs entropy for security; see
entropy(7)
[   1.7768579] sdmmc1: couldn't enable card: 60
[   1.7868588] sdmmc0: SD card status: 4-bit, C10, U3, V10, A1
[   1.7968589] ld0 at sdmmc0: <0x74:0x4a60:USDU1:0x20:0x41e15809:0x136>
[   1.7968589] ld0: 30560 MB, 7761 cyl, 128 head, 63 sec, 512
bytes/sect x 62586880 sectors
[   1.8113819] dk0 at ld0: "EFI", 163840 blocks at 32768, type: msdos
[   1.8179677] dk1 at ld0: "netbsd-root", 62382080 blocks at 196608,
type: ffs
[   1.8179677] ld0: 4-bit width, High-Speed/SDR25, 50.000 MHz
[   1.8292309] swwdog0: software watchdog initialized
[   1.8379689] WARNING: 3 errors while detecting hardware; check system
log.
[   1.8379689] boot device: dk1
[   1.8479693] root on dk1
[   1.8479693] root file system type: ffs
[   1.8579684] kern.module.path=/stand/evbarm/10.99.10/modules
[   1.8579684] WARNING: no TOD clock present
[   1.8579684] WARNING: using filesystem time
[   1.8719810] WARNING: CHECK AND RESET THE DATE!
[   1.9179710] usb0 at xhci0: USB revision 3.0
[   1.9179710] uhub0 at usb0: NetBSD (0x0000) xHCI root hub (0x0000),
class 9/0, rev 3.00/1.00, addr 0
[   1.9298235] usb1 at xhci0: USB revision 2.0
[   1.9298235] uhub1 at usb1: NetBSD (0x0000) xHCI root hub (0x0000),
class 9/0, rev 2.00/1.00, addr 0
Mon Jun 24 04:34:57 UTC 2024
[   2.4198475] uhub2 at uhub1 port 2: Generic (0x0bda) 4-Port USB 2.1
Hub (0x5411), class 9/0, rev 2.10/1.20, addr 1
[   2.4302137] uhub2: multiple transaction translators
Starting root file system check:



Home | Main Index | Thread Index | Old Index