Skip to content

Instantly share code, notes, and snippets.

@CaptChrisD
Created August 26, 2024 19:41
Show Gist options
  • Select an option

  • Save CaptChrisD/17fc6398ad3a2166ad6fa5a619a47c2b to your computer and use it in GitHub Desktop.

Select an option

Save CaptChrisD/17fc6398ad3a2166ad6fa5a619a47c2b to your computer and use it in GitHub Desktop.
████▄▄ ▐███
█▌ ▀▀██▄▄ ▐█
█▌ ▄▄ ▀▀ ▐█ N E R V E S
█▌ ▀▀██▄▄ ▐█
███▌ ▀▀████
hello_live_view 0.1.0 (7a41badd-d728-5f8b-bf4f-e6a908af9598) arm bbb
Serial : 2324SBB03665
Uptime : 33.724 seconds
Clock : 2020-07-25 00:03:09 UTC (unsynchronized)
Firmware : Valid (A) Applications : 64 started
Memory usage : 73 MB (14%) Part usage : 719 MB (1%)
Hostname : nerves-2324sbb03665 Load average : 0.60 0.18 0.06
eth0 : fe80::668c:bbff:feff:c36c/64
usb0 : 172.31.52.5/30, fe80::347e:67ff:fe7e:6766/64
Nerves CLI help: https://hexdocs.pm/nerves/iex-with-nerves.html
iex(2)> ifconfig
lo: flags=[:up, :loopback, :running]
inet 127.0.0.1 netmask 255.0.0.0
inet ::1 netmask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff
hwaddr 00:00:00:00:00:00
eth0: flags=[:up, :broadcast, :running, :multicast]
inet fe80::668c:bbff:feff:c36c netmask ffff:ffff:ffff:ffff::
hwaddr 64:8c:bb:ff:c3:6c
usb0: flags=[:up, :broadcast, :running, :multicast]
inet 172.31.52.5 netmask 255.255.255.252 broadcast 172.31.52.7
inet fe80::347e:67ff:fe7e:6766 netmask ffff:ffff:ffff:ffff::
hwaddr 36:7e:67:7e:67:66
iex(3)> VintageNet.info
VintageNet 0.13.5
All interfaces: ["eth0", "lo", "usb0"]
Available interfaces: []
Interface eth0
Type: VintageNetEthernet
Present: true
State: :configured (32.6 s)
Connection: :lan (17.1 s)
Addresses: fe80::668c:bbff:feff:c36c/64
MAC Address: "64:8c:bb:ff:c3:6c"
Configuration:
%{type: VintageNetEthernet, ipv4: %{method: :dhcp}}
Interface usb0
Type: VintageNetDirect
Present: true
State: :configured (32.5 s)
Connection: :lan (32.5 s)
Addresses: fe80::347e:67ff:fe7e:6766/64, 172.31.52.5/30
MAC Address: "36:7e:67:7e:67:66"
Configuration:
%{type: VintageNetDirect, vintage_net_direct: %{}}
Interface wlan0
Type: VintageNetWiFi
Present: false
Configuration:
%{
type: VintageNetWiFi,
vintage_net_wifi: %{networks: []},
ipv4: %{method: :dhcp}
}
:ok
iex(4)> VintageNet.info
VintageNet 0.13.5
All interfaces: ["eth0", "lo", "usb0"]
Available interfaces: []
Interface eth0
Type: VintageNetEthernet
Present: true
State: :configured (51.3 s)
Connection: :disconnected (12.7 s)
Addresses: fe80::668c:bbff:feff:c36c/64
MAC Address: "64:8c:bb:ff:c3:6c"
Configuration:
%{type: VintageNetEthernet, ipv4: %{method: :dhcp}}
Interface usb0
Type: VintageNetDirect
Present: true
State: :configured (51.1 s)
Connection: :lan (51.1 s)
Addresses: fe80::347e:67ff:fe7e:6766/64, 172.31.52.5/30
MAC Address: "36:7e:67:7e:67:66"
Configuration:
%{type: VintageNetDirect, vintage_net_direct: %{}}
Interface wlan0
Type: VintageNetWiFi
Present: false
Configuration:
%{
type: VintageNetWiFi,
vintage_net_wifi: %{networks: []},
ipv4: %{method: :dhcp}
}
:ok
iex(5)> dmesg
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 6.6.32 (buildroot@buildroot) (armv7-nerves-linux-gnueabihf-gcc (crosstool-NG UNKNOWN) 13.2.0, GNU ld (crosstool-NG UNKNOWN) 2.40) #1 PREEMPT Tue Jul 9 20:48:10 UTC 2024
[ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] OF: fdt: Machine model: TI AM335x BeagleBone Black
[ 0.000000] Memory policy: Data cache writeback
[ 0.000000] cma: Reserved 48 MiB at 0x9c800000 on node -1
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x0000000080000000-0x000000009fefffff]
[ 0.000000] HighMem empty
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000080000000-0x000000009fefffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x000000009fefffff]
[ 0.000000] CPU: All CPU(s) started in SVC mode.
[ 0.000000] AM335X ES2.1 (sgx neon)
[ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[ 0.000000] pcpu-alloc: [0] 0
[ 0.000000] Kernel command line: console=ttyS0,115200n8 coherent_pool=1M bone_capemgr.uboot_capemgr_enabled=1 root=/dev/mmcblk0p2 rootfstype=squashfs rootwait coherent_pool=1M net.ifnames=0 omap_wdt.early_enable=1 omap_wdt.timer_margin=120 quiet
[ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 129666
[ 0.000000] mem auto-init: stack:all(zero), heap alloc:off, heap free:off
[ 0.000000] Memory: 457176K/523264K available (7168K kernel code, 630K rwdata, 1856K rodata, 1024K init, 250K bss, 16936K reserved, 49152K cma-reserved, 0K highmem)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] rcu: Preemptible hierarchical RCU implementation.
[ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[ 0.000000] IRQ: Found an INTC at 0x(ptrval) (revision 5.0) with 128 interrupts
[ 0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[ 0.000000] TI gptimer clocksource: always-on /ocp/interconnect@44c00000/segment@200000/target-module@31000
[ 0.000003] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[ 0.000026] clocksource: dmtimer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[ 0.000412] TI gptimer clockevent: 24000000 Hz at /ocp/interconnect@48000000/segment@0/target-module@40000
[ 0.002232] Console: colour dummy device 80x30
[ 0.002313] Calibrating delay loop... 996.14 BogoMIPS (lpj=4980736)
[ 0.090499] CPU: Testing write buffer coherency: ok
[ 0.090564] CPU0: Spectre v2: using BPIALL workaround
[ 0.090571] pid_max: default: 32768 minimum: 301
[ 0.094716] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.094735] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.099881] Setting up static identity map for 0x80100000 - 0x80100060
[ 0.100073] rcu: Hierarchical SRCU implementation.
[ 0.100081] rcu: Max phase no-delay instances is 1000.
[ 0.100839] devtmpfs: initialized
[ 0.131143] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[ 0.131333] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.131362] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[ 0.137785] pinctrl core: initialized pinctrl subsystem
[ 0.139515] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[ 0.142876] DMA: preallocated 1024 KiB pool for atomic coherent allocations
[ 0.143695] thermal_sys: Registered thermal governor 'fair_share'
[ 0.143708] thermal_sys: Registered thermal governor 'bang_bang'
[ 0.143713] thermal_sys: Registered thermal governor 'step_wise'
[ 0.143827] cpuidle: using governor menu
[ 0.190401] iommu: Default domain type: Translated
[ 0.190424] iommu: DMA domain TLB invalidation policy: strict mode
[ 0.192875] SCSI subsystem initialized
[ 0.193104] usbcore: registered new interface driver usbfs
[ 0.193144] usbcore: registered new interface driver hub
[ 0.193195] usbcore: registered new device driver usb
[ 0.195397] clocksource: Switched to clocksource dmtimer
[ 0.210969] NET: Registered PF_INET protocol family
[ 0.211251] IP idents hash table entries: 8192 (order: 4, 65536 bytes, linear)
[ 0.212580] tcp_listen_portaddr_hash hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.212613] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[ 0.212626] TCP established hash table entries: 4096 (order: 2, 16384 bytes, linear)
[ 0.212666] TCP bind hash table entries: 4096 (order: 3, 32768 bytes, linear)
[ 0.212721] TCP: Hash tables configured (established 4096 bind 4096)
[ 0.212845] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[ 0.212868] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[ 0.213311] NET: Registered PF_UNIX/PF_LOCAL protocol family
[ 0.214291] Initialise system trusted keyrings
[ 0.214541] workingset: timestamp_bits=14 max_order=17 bucket_order=3
[ 0.214991] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.226527] Key type asymmetric registered
[ 0.226542] Asymmetric key parser 'x509' registered
[ 0.226840] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[ 0.227269] io scheduler bfq registered
[ 0.230292] Serial: 8250/16550 driver, 6 ports, IRQ sharing disabled
[ 0.234300] usbcore: registered new interface driver asix
[ 0.234348] usbcore: registered new interface driver ax88179_178a
[ 0.234378] usbcore: registered new interface driver cdc_ether
[ 0.234407] usbcore: registered new interface driver smsc95xx
[ 0.234434] usbcore: registered new interface driver net1080
[ 0.234488] usbcore: registered new interface driver cdc_subset
[ 0.234521] usbcore: registered new interface driver zaurus
[ 0.234567] usbcore: registered new interface driver cdc_ncm
[ 0.234598] usbcore: registered new interface driver r8153_ecm
[ 0.234909] usbcore: registered new interface driver cdc_acm
[ 0.234916] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[ 0.234949] usbcore: registered new interface driver usb-storage
[ 0.235058] usbcore: registered new interface driver ch341
[ 0.235087] usbserial: USB Serial support registered for ch341-uart
[ 0.235115] usbcore: registered new interface driver cp210x
[ 0.235139] usbserial: USB Serial support registered for cp210x
[ 0.235167] usbcore: registered new interface driver ftdi_sio
[ 0.235189] usbserial: USB Serial support registered for FTDI USB Serial Device
[ 0.235672] UDC core: g_ether: couldn't find an available UDC
[ 0.235692] i2c_dev: i2c /dev entries driver
[ 0.236980] cpuidle: enable-method property 'ti,am3352' found operations
[ 0.237518] sdhci: Secure Digital Host Controller Interface driver
[ 0.237527] sdhci: Copyright(c) Pierre Ossman
[ 0.237619] sdhci-pltfm: SDHCI platform and OF driver helper
[ 0.238572] usbcore: registered new interface driver usbhid
[ 0.238583] usbhid: USB HID core driver
[ 0.240153] NET: Registered PF_INET6 protocol family
[ 0.241589] Segment Routing with IPv6
[ 0.241669] In-situ OAM (IOAM) with IPv6
[ 0.241762] NET: Registered PF_PACKET protocol family
[ 0.241864] Registering SWP/SWPB emulation handler
[ 0.241872] omap_voltage_late_init: Voltage driver support not added
[ 0.247985] Loading compiled-in X.509 certificates
[ 0.260288] remoteproc remoteproc0: wkup_m3 is available
[ 0.274936] pinctrl-single 44e10800.pinmux: 142 pins, size 568
[ 0.279696] ti-sysc: probe of 44e31000.target-module failed with error -16
[ 0.283021] watchdog: watchdog0 running and kernel based pre-userspace handler disabled
[ 0.283041] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 120 sec
[ 0.290363] 48022000.serial: ttyS1 at MMIO 0x48022000 (irq = 18, base_baud = 3000000) is a 8250
[ 0.292853] 48024000.serial: ttyS2 at MMIO 0x48024000 (irq = 19, base_baud = 3000000) is a 8250
[ 0.295183] omap_i2c 4802a000.i2c: bus 1 rev0.11 at 100 kHz
[ 0.299476] ti-sysc: probe of 48040000.target-module failed with error -16
[ 0.308705] OMAP GPIO hardware version 0.1
[ 0.312917] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400
[ 0.317671] at24 2-0054: supply vcc not found, using dummy regulator
[ 0.349207] at24 2-0055: supply vcc not found, using dummy regulator
[ 0.378790] at24 2-0056: supply vcc not found, using dummy regulator
[ 0.408719] at24 2-0057: supply vcc not found, using dummy regulator
[ 0.438476] omap_i2c 4819c000.i2c: bus 2 rev0.11 at 100 kHz
[ 0.442061] 481a6000.serial: ttyS3 at MMIO 0x481a6000 (irq = 29, base_baud = 3000000) is a 8250
[ 0.444638] 481a8000.serial: ttyS4 at MMIO 0x481a8000 (irq = 30, base_baud = 3000000) is a 8250
[ 0.447307] 481aa000.serial: ttyS5 at MMIO 0x481aa000 (irq = 31, base_baud = 3000000) is a 8250
[ 0.456737] sdhci-omap 481d8000.mmc: supply pbias not found, using dummy regulator
[ 0.457096] sdhci-omap 481d8000.mmc: supply vqmmc not found, using dummy regulator
[ 0.472875] platform 4830e000.lcdc: Fixed dependency cycle(s) with /ocp/interconnect@44c00000/segment@200000/target-module@b000/i2c@0/tda19988@70
[ 0.475294] random: crng init done
[ 0.475695] omap_rng 48310000.rng: Random Number Generator ver. 20
[ 0.535413] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6, bus freq 1000000
[ 0.556755] SMSC LAN8710/LAN8720: probe of 4a101000.mdio:00 failed with error -5
[ 0.556829] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, driver SMSC LAN8710/LAN8720
[ 0.557653] cpsw-switch 4a100000.switch: initialized cpsw ale version 1.4
[ 0.557676] cpsw-switch 4a100000.switch: ALE Table size 1024
[ 0.557792] cpsw-switch 4a100000.switch: Detected MACID = 64:8c:bb:ff:c3:6c
[ 0.559003] cpsw-switch 4a100000.switch: initialized (regs 0x4a100000, pool size 256) hw_ver:0019010C 1.12 (0)
[ 0.568825] edma 49000000.dma: TI EDMA DMA engine driver
[ 0.574298] am335x-phy-driver 47401300.usb-phy: dummy supplies not allowed for exclusive requests
[ 0.576913] am335x-phy-driver 47401b00.usb-phy: dummy supplies not allowed for exclusive requests
[ 0.579323] musb-hdrc musb-hdrc.1: MUSB HDRC host driver
[ 0.579369] musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 1
[ 0.579625] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.06
[ 0.579643] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 0.579653] usb usb1: Product: MUSB HDRC host driver
[ 0.579660] usb usb1: Manufacturer: Linux 6.6.32 musb-hcd
[ 0.579667] usb usb1: SerialNumber: musb-hdrc.1
[ 0.580359] hub 1-0:1.0: USB hub found
[ 0.580416] hub 1-0:1.0: 1 port detected
[ 0.589645] omap-sham 53100000.sham: hw accel on OMAP rev 4.3
[ 0.589893] omap-sham 53100000.sham: will run requests pump with realtime priority
[ 0.591157] omap-aes 53500000.aes: OMAP AES hw accel rev: 3.2
[ 0.591403] omap-aes 53500000.aes: will run requests pump with realtime priority
[ 0.611599] l3-aon-clkctrl:0000:0: failed to disable
[ 0.616109] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 44, base_baud = 3000000) is a 8250
[ 0.616190] printk: console [ttyS0] enabled
[ 0.629884] platform 4830e000.lcdc: Fixed dependency cycle(s) with /ocp/interconnect@44c00000/segment@200000/target-module@b000/i2c@0/tda19988@70
[ 0.630086] i2c 0-0070: Fixed dependency cycle(s) with /ocp/interconnect@48000000/segment@300000/target-module@e000/lcdc@0
[ 0.655974] tps65217-pmic: Failed to locate of_node [id: -1]
[ 0.656248] tps65217-bl: Failed to locate of_node [id: -1]
[ 0.659999] tps65217 0-0024: TPS65217 ID 0xe version 1.2
[ 0.660719] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
[ 0.663810] remoteproc remoteproc0: powering up wkup_m3
[ 0.663951] remoteproc remoteproc0: Booting fw image am335x-pm-firmware.elf, size 217148
[ 0.664475] remoteproc remoteproc0: remote processor wkup_m3 is now up
[ 0.664504] wkup_m3_ipc 44e11324.wkup_m3_ipc: CM3 Firmware Version = 0x192
[ 0.669075] omap_gpio 44e07000.gpio: Could not set line 6 debounce to 200000 microseconds (-22)
[ 0.669116] sdhci-omap 48060000.mmc: Got CD GPIO
[ 0.669300] sdhci-omap 48060000.mmc: supply pbias not found, using dummy regulator
[ 0.675099] sdhci-omap 48060000.mmc: supply vqmmc not found, using dummy regulator
[ 0.681692] g_ether gadget.0: HOST MAC 36:16:55:7b:ec:f3
[ 0.681732] g_ether gadget.0: MAC 36:7e:67:7e:67:66
[ 0.681852] g_ether gadget.0: Ethernet Gadget, version: Memorial Day 2008
[ 0.681867] g_ether gadget.0: g_ether ready
[ 0.683355] sdhci-omap 481d8000.mmc: supply pbias not found, using dummy regulator
[ 0.683703] sdhci-omap 481d8000.mmc: supply vqmmc not found, using dummy regulator
[ 0.685872] cpu cpu0: _opp_add_static_v2: opp key field not found
[ 0.692353] cpu cpu0: _of_add_opp_table_v2: Failed to add OPP, -19
[ 0.698758] cpu cpu0: OPP table can't be empty
[ 0.704339] at24 0-0050: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
[ 0.705957] clk: Disabling unused clocks
[ 0.711685] mmc0: SDHCI controller on 48060000.mmc [48060000.mmc] using External DMA
[ 0.715508] mmc1: SDHCI controller on 481d8000.mmc [481d8000.mmc] using External DMA
[ 0.715659] Waiting for root device /dev/mmcblk0p2...
[ 0.763847] mmc1: new high speed MMC card at address 0001
[ 0.764876] mmcblk1: mmc1:0001 MK2704 3.53 GiB
[ 0.766461] mmcblk1: p1
[ 0.767248] mmcblk1boot0: mmc1:0001 MK2704 2.00 MiB
[ 0.768107] mmcblk1boot1: mmc1:0001 MK2704 2.00 MiB
[ 0.768762] mmcblk1rpmb: mmc1:0001 MK2704 512 KiB, chardev (250:0)
[ 0.770154] mmc0: new high speed SDXC card at address e624
[ 0.770942] mmcblk0: mmc0:e624 SU64G 59.5 GiB
[ 0.772235] mmcblk0: p1 p2 p3 p4
[ 0.780249] VFS: Mounted root (squashfs filesystem) readonly on device 179:770.
[ 0.783245] devtmpfs: mounted
[ 0.784661] Freeing unused kernel image (initmem) memory: 1024K
[ 0.785023] Run /sbin/init as init process
[ 0.785029] with arguments:
[ 0.785034] /sbin/init
[ 0.785038] with environment:
[ 0.785042] HOME=/
[ 0.785047] TERM=linux
[ 1.081495] F2FS-fs (mmcblk0p4): Found nat_bits in checkpoint
[ 1.853627] F2FS-fs (mmcblk0p4): Mounted with checkpoint version = 398ef913
[ 15.068201] cpsw-switch 4a100000.switch: starting ndev. mode: dual_mac
[ 15.090065] cpsw-switch 4a100000.switch: phy "/ocp/interconnect@4a000000/segment@0/target-module@100000/switch@0/mdio@1000/ethernet-phy@0" not found on slave 0
... A COUPLE MINUTES LATER ...
iex(7)> VintageNet.info
VintageNet 0.13.5
All interfaces: ["eth0", "lo", "usb0"]
Available interfaces: []
Interface eth0
Type: VintageNetEthernet
Present: true
State: :configured (0:03:24)
Connection: :disconnected (19.9 s)
Addresses: fe80::668c:bbff:feff:c36c/64
MAC Address: "64:8c:bb:ff:c3:6c"
Configuration:
%{type: VintageNetEthernet, ipv4: %{method: :dhcp}}
Interface usb0
Type: VintageNetDirect
Present: true
State: :configured (0:03:24)
Connection: :lan (0:03:24)
Addresses: fe80::347e:67ff:fe7e:6766/64, 172.31.52.5/30
MAC Address: "36:7e:67:7e:67:66"
Configuration:
%{type: VintageNetDirect, vintage_net_direct: %{}}
Interface wlan0
Type: VintageNetWiFi
Present: false
Configuration:
%{
type: VintageNetWiFi,
vintage_net_wifi: %{networks: []},
ipv4: %{method: :dhcp}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment