Re: My first try installing

Lloyd Parkes <[email protected]>
Newsgroups gmane.os.netbsd.ports.arm
Message-ID <3d25b46a3789531d014d07592b5ecbdc638ccd93.camel@must-have-coffee.gen.nz>
Kia ora koutou,
I almost got my Jetson Nano to boot.

I have an early mode Jetson Nano with a revision A02 carrier board. I
may well have upgraded the onboard firmware at some distant time in the
past. I used a serial to USB cable. I am not "correctly" powering my
Jetson, others may have more luck than me.

If I boot my Jetson Nano with no SD Card in it then I eventually get a
U-Boot 2020.04 banner, a "Hit any key to stop autoboot:" prompt and
when the prompt times out it tries to boot from the ethernet. This is
good because we need U-Boot to boot NetBSD.

I then copied the Nvidia Linux image to a µSD and mounted that card on
a Linux laptop. I copied the file boot/kernel_tegra210-p3448-0000-
p3449-0000-b00.dtb onto my laptop. This is the devicetree file I talked
about earlier. There are a huge pile of .dtbo files that are devicetree
overlay files which are only needed to describe optional extra hardware
and I ignored them. I then copied kernel_tegra210-p3448-0000-p3449-
0000-b00.dtb into the dtb directory on the MS-DOS partition of a µSD
card with NetBSD on it.

When I booted the system with the modified µSD card I got a kernel
panic while attaching a PCI bus. The traceback is appended to this
email. I tried again and I halted the NetBSD boot at the NetBSD EFI
boot screen and ran the following four commands.

	userconf disable tegrapcie0
	userconf disable tegrapcie?
	userconf disable tegrapcie*
	boot

NetBSD then booted far enough to ask me

	[   1.7549993] boot device: <unknown>
	[   1.7549993] root device: ld1a
	[   3.4621742] use one of: ddb halt reboot

Neither ld0a or ld1a worked as a root device and I don't know why the
µSD card wasn't detected. I did notice that the devicetree only lists
one SDHCI device.

I also noted this in the boot log

	[   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: disabled (unresponsive)
	[   1.0000000] cpu2 at cpus0: disabled (unresponsive)
	[   1.0000000] cpu3 at cpus0: disabled (unresponsive)

someone smarter than me will need to look at the unresponsive CPUs.

I'll at least try and come up with a better devicetree tomorrow.

Ngā-mihi,
Lloyd

-------------->8-----------------
7582752+3367920+4178656+1742704 [595981+949152+708890]=0x13cca30
[   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.0 (GENERIC64) #0: Thu Mar 28 08:33:33 UTC 2024
[   1.0000000] 
[email protected]:/usr/src/sys/arch/evbarm/compile/GENERIC64
[   1.0000000] total memory = 4043 MB
[   1.0000000] avail memory = 3897 MB
[   1.0000000] armfdt0 (root)
[   1.0000000] simplebus0 at armfdt0: NVIDIA Jetson Nano Developer Kit
...
[   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] /regulators/regulator@9 at simplebus2 not configured
[   1.0000040] /soft_watchdog 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] panic: trap_el1h_error
[   1.0000040] cpu0: Begin traceback...
[   1.0000040] trace fp ffffc000010041d0
[   1.0000040] fp ffffc00001004200 vpanic() at ffffc000004ef228
netbsd:vpanic+0x178
[   1.0000040] fp ffffc00001004260 panic() at ffffc000004ef334
netbsd:panic+0x44
[   1.0000040] fp ffffc000010042f0 trap_el1h_error() at
ffffc000000a9260 netbsd:trap_el1h_error+0xac
[   1.0000040] tf ffffc00001004300 el1_trap() at ffffc000000aaf84
netbsd:el1_vectors+0x784
[   1.0000040] ---- SError Interrupt: trapframe 0xffffc00001004300 (304
bytes) ----
[   1.0000040]     pc=ffffc000000c75c8,   spsr=0000000080000005
[   1.0000040]    esr=00000000bf000000,    far=0000000000000000
[   1.0000040]     x0=000000000000ffff,     x1=0000000000010000
[   1.0000040]     x2=000000000000000c,     x3=ffffc00040b76038
[   1.0000040]     x4=000000000000002a,     x5=0000000000000000
[   1.0000040]     x6=0000000000000000,     x7=0000010000000000
[   1.0000040]     x8=0000000000000000,     x9=0000000000000006
[   1.0000040]    x10=0000000000000040,    x11=000000000000003f
[   1.0000040]    x12=ffffff00010000c0,    x13=ffffff0001000157
[   1.0000040]    x14=0000000000000000,    x15=ffffc000400055e8
[   1.0000040]    x16=ffffc0000009e0c8,    x17=c46cf087dc66bc65
[   1.0000040]    x18=ffffc00001004638,    x19=0000000000010000
[   1.0000040]    x20=0000000000000000,    x21=ffffc00040006000
[   1.0000040]    x22=ffffc00040004660,    x23=0000000000000000
[   1.0000040]    x24=0000000000000006,    x25=0000000000000000
[   1.0000040]    x26=ffffc00000d0b510,    x27=0000000000000008
[   1.0000040]    x28=ffffc00040003000, fp=x29=ffffc00001004630
[   1.0000040] lr=x30=ffffc000000c7598,     sp=ffffc00001004630
[   1.0000040] ------------------------------------------------
[   1.0000040] fp ffffc00001004630 probe_bus() at ffffc000000c75c8
netbsd:probe_bus+0x108
[   1.0000040] fp ffffc00001004710 probe_bus() at ffffc000000c8384
netbsd:probe_bus+0xec4
[   1.0000040] fp ffffc000010047f0 pci_configure_bus() at
ffffc000000c9a7c netbsd:pci_configure_bus+0xec
[   1.0000040] fp ffffc00001004830 tegra_pcie_attach() at
ffffc000000330f8 netbsd:tegra_pcie_attach+0x708
[   1.0000040] fp ffffc000010049c0 config_attach_internal() at
ffffc000004d4a88 netbsd:config_attach_internal+0x1f8
[   1.0000040] fp ffffc00001004a20 config_found() at ffffc000004d4c60
netbsd:config_found+0xf0
[   1.0000040] fp ffffc00001004a80 fdt_scan() at ffffc000005d2330
netbsd:fdt_scan+0x250
[   1.0000040] fp ffffc00001004c10 fdt_rescan() at ffffc000005d2760
netbsd:fdt_rescan+0x50
[   1.0000040] fp ffffc00001004c40 config_attach_internal() at
ffffc000004d4a88 netbsd:config_attach_internal+0x1f8
[   1.0000040] fp ffffc00001004ca0 config_found() at ffffc000004d4c60
netbsd:config_found+0xf0
[   1.0000040] fp ffffc00001004d00 arm_fdt_attach() at ffffc0000006b258
netbsd:arm_fdt_attach+0x94
[   1.0000040] fp ffffc00001004d60 config_attach_internal() at
ffffc000004d4a88 netbsd:config_attach_internal+0x1f8
[   1.0000040] fp ffffc00001004dc0 config_rootfound() at
ffffc000004d4d8c netbsd:config_rootfound+0x58
[   1.0000040] fp ffffc00001004e20 cpu_configure() at ffffc00000066d1c
netbsd:cpu_configure+0x4c
[   1.0000040] fp ffffc00001004e50 main() at ffffc0000073aff0
netbsd:main+0x260
[   1.0000040] fp 0000000000000000 aarch64_start() at ffffc0000000189c
netbsd:aarch64_start+0x109c
[   1.0000040] cpu0: End traceback...
Stopped in pid 0.0 (system) at  netbsd:cpu_Debugger+0xc:        ldp   
x29, x30
, [sp],#16
db{0}>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.