This is an old revision of the document!


STM32MP157D-DK1 Discovery kit

stm32mp157d.jpg

STM32 based microprocessor board mostly designed to host embedded Linux generated either by buildroot or yocto.

Build environment

Kali Linux on Windows 10 WSL1. Ryzen 5 4500U ~2.35 GHz

Update host and install required tools for both buildroot and yocto.

apt update
apt full-upgrade
apt install build-essential git libncurses5-dev libssl-dev bc picocom chrpath diffstat gawk zstd

If there are issues upgrading KALI on WSL1 the following postinst scripts may need disabling in /var/lib/dpkg/info

systemd.postinst
polkitd.postinst
systemd-timesyncd.postinst

Adding exit 0 at the start is the solution.

Buildroot

Fetch

mkdir -p src
cd src
git clone git://git.buildroot.net/buildroot
cd buildroot

Buildroot supports the 157A and the only difference to the 157D seems to be only CPU speed, 650 compared to 800 MHz.

Use the pre-built config

make stm32mp157a_dk1_defconfig

This config uses linux 5.13 and may not be what you want. See this page for an alternative configuration.

Customised config can be created using

make config
make menuconfig

Linux kernel customisation can be made with

make linux-menuconfig

Build the system

make

During the above build process it stalled with an uninitialised variable error.

diff -u ./output/build/arm-trusted-firmware-v2.5/drivers/st/io/io_stm32image.c.orig ./output/build/arm-trusted-firmware-v2.5/drivers/st/io/io_stm32image.c
--- ./output/build/arm-trusted-firmware-v2.5/drivers/st/io/io_stm32image.c.orig 2023-08-11 16:27:00.466968900 +0100
+++ ./output/build/arm-trusted-firmware-v2.5/drivers/st/io/io_stm32image.c      2023-08-11 16:27:06.961026600 +0100
@@ -246,7 +246,7 @@
 static int stm32image_partition_read(io_entity_t *entity, uintptr_t buffer,
                                     size_t length, size_t *length_read)
 {
-       int result;
+       int result = 0;
        uint8_t *local_buffer;
        boot_api_image_header_t *header =
                (boot_api_image_header_t *)first_lba_buffer;

This bug appears to have been introduced in more recent versions of this file.

You can utilise in the STLINK debug port prior to powering up the board.

$ lsusb
Bus 001 Device 008: ID 1a40:0101 Terminus Technology Inc. Hub
Bus 001 Device 006: ID 0781:557d SanDisk Corp. Cruzer Force
Bus 001 Device 018: ID 0483:3752 STMicroelectronics ST-LINK/V2.1
Bus 001 Device 005: ID 1a40:0101 Terminus Technology Inc. Hub
Bus 001 Device 004: ID 148f:761a Ralink Technology, Corp. MT7610U ("Archer T2U" 2.4G+5G WLAN Adapter
Bus 001 Device 003: ID 0424:ec00 Microchip Technology, Inc. (formerly SMSC) SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Microchip Technology, Inc. (formerly SMSC) SMC9514 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Open a console

$ picocom -b 115200 /dev/ttyACM0
picocom v3.1

port is        : /dev/ttyACM0
flowcontrol    : none
baudrate is    : 115200
parity is      : none
databits are   : 8
stopbits are   : 1
escape is      : C-a
local echo is  : no
noinit is      : no
noreset is     : no
hangup is      : no
nolock is      : no
send_cmd is    : sz -vv
receive_cmd is : rz -vv -E
imap is        :
omap is        :
emap is        : crcrlf,delbs,
logfile is     : none
initstring     : none
exit_after is  : not set
exit is        : no

Type [C-a] [C-h] to see available commands
Terminal ready

Connect a USB-C PSU (Eg. Pi4 PSU)

NOTICE:  CPU: STM32MP157DAC Rev.Z
NOTICE:  Model: STMicroelectronics STM32MP157A-DK1 Discovery Board
NOTICE:  Board: MB1272 Var3.0 Rev.C-03
NOTICE:  BL2: v2.5(release):2023.08-rc1-68-g27dc493780
NOTICE:  BL2: Built : 16:27:29, Aug 11 2023
NOTICE:  BL2: Booting BL32
NOTICE:  SP_MIN: v2.5(release):2023.08-rc1-68-g27dc493780
NOTICE:  SP_MIN: Built : 16:27:29, Aug 11 2023


U-Boot 2023.04 (Aug 11 2023 - 16:43:02 +0100)

CPU: STM32MP157DAC Rev.Z
Model: STMicroelectronics STM32MP157A-DK1 Discovery Board
Board: stm32mp1 in trusted - stm32image mode (st,stm32mp157a-dk1)
Board: MB1272 Var3.0 Rev.C-03
DRAM:  512 MiB
Clocks:
- MPU : 650 MHz
- MCU : 208.878 MHz
- AXI : 266.500 MHz
- PER : 24 MHz
- DDR : 533 MHz
optee optee: OP-TEE api uid mismatch
Core:  277 devices, 38 uclasses, devicetree: board
WDT:   Started watchdog@5a002000 with servicing every 1000ms (32s timeout)
NAND:  0 MiB
MMC:   STM32 SD/MMC: 0
Loading Environment from MMC... *** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
optee optee: OP-TEE api uid mismatch
invalid MAC address 0 in OTP 00:00:00:00:00:00
Net:
Error: ethernet@5800a000 address not set.
No ethernet found.

Hit any key to stop autoboot:  0
Boot over mmc0!
Saving Environment to MMC... Writing to redundant MMC(0)... OK
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:4...
Found /boot/extlinux/extlinux.conf
Retrieving file: /boot/extlinux/extlinux.conf
1:      stm32mp157a-dk1-buildroot
Retrieving file: /boot/zImage
append: root=/dev/mmcblk0p4 rootwait
Retrieving file: /boot/stm32mp157a-dk1.dtb
Kernel image @ 0xc2000000 [ 0x000000 - 0x432a58 ]
## Flattened Device Tree blob at c4000000
   Booting using the fdt blob at 0xc4000000
Working FDT set to c4000000
   Loading Device Tree to cffee000, end cffff655 ... OK
Working FDT set to cffee000
optee optee: OP-TEE api uid mismatch

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.13.0 (darron@excellent) (arm-buildroot-linux-gnueabihf-gcc.br_real (Buildroot 2023.08-rc1-68-g27dc493780) 12.3.0, GNU ld (GNU Binutils) 2.40) #1 SMP PREEMPT Fri Aug 11 16:47:22 BST 2023
[    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: STMicroelectronics STM32MP157A-DK1 Discovery Board
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] Reserved memory: created DMA memory pool at 0x10000000, size 0 MiB
[    0.000000] OF: reserved mem: initialized node mcuram2@10000000, compatible id shared-dma-pool
[    0.000000] Reserved memory: created DMA memory pool at 0x10040000, size 0 MiB
[    0.000000] OF: reserved mem: initialized node vdev0vring0@10040000, compatible id shared-dma-pool
[    0.000000] Reserved memory: created DMA memory pool at 0x10041000, size 0 MiB
[    0.000000] OF: reserved mem: initialized node vdev0vring1@10041000, compatible id shared-dma-pool
[    0.000000] Reserved memory: created DMA memory pool at 0x10042000, size 0 MiB
[    0.000000] OF: reserved mem: initialized node vdev0buffer@10042000, compatible id shared-dma-pool
[    0.000000] Reserved memory: created DMA memory pool at 0x30000000, size 0 MiB
[    0.000000] OF: reserved mem: initialized node mcuram@30000000, compatible id shared-dma-pool
[    0.000000] Reserved memory: created DMA memory pool at 0x38000000, size 0 MiB
[    0.000000] OF: reserved mem: initialized node retram@38000000, compatible id shared-dma-pool
[    0.000000] cma: Reserved 128 MiB at 0xd8000000
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x00000000c0000000-0x00000000dfffffff]
[    0.000000]   HighMem  empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x00000000c0000000-0x00000000d3ffffff]
[    0.000000]   node   0: [mem 0x00000000d4000000-0x00000000d7ffffff]
[    0.000000]   node   0: [mem 0x00000000d8000000-0x00000000dfffffff]
[    0.000000] Initmem setup node 0 [mem 0x00000000c0000000-0x00000000dfffffff]
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv1.1 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: MIGRATE_INFO_TYPE not supported.
[    0.000000] psci: SMC Calling Convention v1.2
[    0.000000] percpu: Embedded 15 pages/cpu s30668 r8192 d22580 u61440
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 130048
[    0.000000] Kernel command line: root=/dev/mmcblk0p4 rootwait
[    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] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 311700K/524288K available (7168K kernel code, 395K rwdata, 1540K rodata, 1024K init, 171K bss, 81516K reserved, 131072K cma-reserved, 0K highmem)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000]  Trampoline variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] random: get_random_bytes called from start_kernel+0x35c/0x4f0 with crng_init=0
[    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (virt).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000002] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000027] Switching to timer-based delay loop, resolution 41ns
[    0.000953] Console: colour dummy device 80x30
[    0.002106] printk: console [tty0] enabled
[    0.002165] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.002225] pid_max: default: 32768 minimum: 301
[    0.002423] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.002478] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.003308] CPU: Testing write buffer coherency: ok
[    0.003678] CPU0: update cpu_capacity 1024
[    0.003721] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.004547] Setting up static identity map for 0xc0100000 - 0xc0100060
[    0.004760] rcu: Hierarchical SRCU implementation.
[    0.005229] smp: Bringing up secondary CPUs ...
[    0.006121] CPU1: update cpu_capacity 1024
[    0.006140] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.006311] smp: Brought up 1 node, 2 CPUs
[    0.006395] SMP: Total of 2 processors activated (96.00 BogoMIPS).
[    0.006427] CPU: All CPU(s) started in SVC mode.
[    0.007070] devtmpfs: initialized
[    0.026809] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.027164] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.027237] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    0.034658] pinctrl core: initialized pinctrl subsystem
[    0.035765] NET: Registered protocol family 16
[    0.038654] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.056934] /soc/interrupt-controller@5000d000: bank0
[    0.057008] /soc/interrupt-controller@5000d000: bank1
[    0.057047] /soc/interrupt-controller@5000d000: bank2
[    0.064939] stm32mp157-pinctrl soc:pin-controller@50002000: GPIOA bank added
[    0.065452] stm32mp157-pinctrl soc:pin-controller@50002000: GPIOB bank added
[    0.065909] stm32mp157-pinctrl soc:pin-controller@50002000: GPIOC bank added
[    0.066397] stm32mp157-pinctrl soc:pin-controller@50002000: GPIOD bank added
[    0.066831] stm32mp157-pinctrl soc:pin-controller@50002000: GPIOE bank added
[    0.067258] stm32mp157-pinctrl soc:pin-controller@50002000: GPIOF bank added
[    0.067678] stm32mp157-pinctrl soc:pin-controller@50002000: GPIOG bank added
[    0.068085] stm32mp157-pinctrl soc:pin-controller@50002000: GPIOH bank added
[    0.068507] stm32mp157-pinctrl soc:pin-controller@50002000: GPIOI bank added
[    0.068675] stm32mp157-pinctrl soc:pin-controller@50002000: Pinctrl STM32 initialized
[    0.070495] stm32mp157-pinctrl soc:pin-controller-z@54004000: GPIOZ bank added
[    0.070563] stm32mp157-pinctrl soc:pin-controller-z@54004000: Pinctrl STM32 initialized
[    0.081123] wait_for_initramfs() called before rootfs_initcalls
[    0.083778] usbcore: registered new interface driver usbfs
[    0.083898] usbcore: registered new interface driver hub
[    0.083984] usbcore: registered new device driver usb
[    0.084213] pps_core: LinuxPPS API ver. 1 registered
[    0.084243] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.084303] PTP clock support registered
[    0.084631] Advanced Linux Sound Architecture Driver Initialized.
[    0.085806] clocksource: Switched to clocksource arch_sys_counter
[    0.096898] NET: Registered protocol family 2
[    0.097168] IP idents hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.098414] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.098511] TCP established hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    0.098613] TCP bind hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.098734] TCP: Hash tables configured (established 4096 bind 4096)
[    0.098893] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.098966] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.099239] NET: Registered protocol family 1
[    0.100682] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[    0.109064] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    0.109137] io scheduler mq-deadline registered
[    0.109165] io scheduler kyber registered
[    0.176920] STM32 USART driver initialized
[    0.177789] stm32-usart 40010000.serial: rx dma alloc failed
[    0.177842] stm32-usart 40010000.serial: interrupt mode used for rx (no dma)
[    0.177879] stm32-usart 40010000.serial: tx dma alloc failed
[    0.177909] stm32-usart 40010000.serial: interrupt mode used for tx (no dma)
[    0.177962] 40010000.serial: ttySTM0 at MMIO 0x40010000 (irq = 67, base_baud = 4000000) is a stm32-usart
[    0.954673] printk: console [ttySTM0] enabled
[    0.972620] brd: module loaded
[    0.981963] loop: module loaded
[    0.982818] random: fast init done
[    0.985238] libphy: Fixed MDIO Bus: probed
[    0.990403] random: crng init done
[    0.991802] CAN device driver interface
[    0.999545] stm32-dwmac 5800a000.ethernet: IRQ eth_wake_irq not found
[    1.004876] stm32-dwmac 5800a000.ethernet: IRQ eth_lpi not found
[    1.015902] stm32-dwmac 5800a000.ethernet: User ID: 0x40, Synopsys ID: 0x42
[    1.021468] stm32-dwmac 5800a000.ethernet:   DWMAC4/5
[    1.026449] stm32-dwmac 5800a000.ethernet: DMA HW capability register supported
[    1.033753] stm32-dwmac 5800a000.ethernet: RX Checksum Offload Engine supported
[    1.041089] stm32-dwmac 5800a000.ethernet: TX Checksum insertion supported
[    1.047981] stm32-dwmac 5800a000.ethernet: Wake-Up On Lan supported
[    1.054364] stm32-dwmac 5800a000.ethernet: TSO supported
[    1.059586] stm32-dwmac 5800a000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[    1.067443] stm32-dwmac 5800a000.ethernet: device MAC address 42:49:29:73:54:0d
[    1.074740] stm32-dwmac 5800a000.ethernet: Enabled Flow TC (entries=2)
[    1.081311] stm32-dwmac 5800a000.ethernet: TSO feature enabled
[    1.087135] stm32-dwmac 5800a000.ethernet: Using 32 bits DMA width
[    1.094027] libphy: stmmac: probed
[    1.100525] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.105648] ehci-platform: EHCI generic platform driver
[    1.111153] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.117149] ohci-platform: OHCI generic platform driver
[    1.124811] stm32_rtc 5c004000.rtc: IRQ index 1 not found
[    1.128875] stm32_rtc 5c004000.rtc: alarm can't wake up the system: -6
[    1.136064] stm32_rtc 5c004000.rtc: registered as rtc0
[    1.140503] stm32_rtc 5c004000.rtc: setting system clock to 2000-01-01T00:00:04 UTC (946684804)
[    1.149530] stm32_rtc 5c004000.rtc: Date/Time must be initialized
[    1.155330] stm32_rtc 5c004000.rtc: registered rev:1.2
[    1.160681] i2c /dev entries driver
[    1.186306] i2c 0-0039: Fixing up cyclic dependency with 4000b000.audio-controller
[    1.192578] i2c 0-0039: Fixing up cyclic dependency with 5a001000.display-controller
[    1.202053] stm32f7-i2c 40012000.i2c: STM32F7 I2C-0 bus adapter
[    1.234510] stpmic1 1-0033: PMIC Chip Version: 0x21
[    1.241327] vddcore: supplied by vin
[    1.246336] vdd_ddr: supplied by vin
[    1.251269] vdd: supplied by vin
[    1.255956] v3v3: supplied by vin
[    1.260500] v1v8_audio: supplied by v3v3
[    1.266539] v3v3_hdmi: supplied by vin
[    1.272087] vtt_ddr: supplied by vdd_ddr
[    1.277242] vdd_usb: supplied by vin
[    1.279910] vdda: supplied by vin
[    1.285701] v1v2_hdmi: supplied by v3v3
[    1.291047] vref_ddr: supplied by vin
[    1.296085] bst_out: supplied by vin
[    1.298780] vbus_otg: supplied by bst_out
[    1.303002] vbus_sw: supplied by bst_out
[    1.308020] stm32f7-i2c 5c002000.i2c: STM32F7 I2C-1 bus adapter
[    1.317005] mmci-pl18x 58005000.mmc: Got CD GPIO
[    1.320902] mmci-pl18x 58005000.mmc: mmc0: PL180 manf 53 rev2 at 0x58005000 irq 57,0 (pio)
[    1.355675] sdhci: Secure Digital Host Controller Interface driver
[    1.360536] sdhci: Copyright(c) Pierre Ossman
[    1.365886] Synopsys Designware Multimedia Card Interface Driver
[    1.371113] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.378627] SMCCC: SOC_ID: ARCH_SOC_ID not implemented, skipping ....
[    1.384576] usbcore: registered new interface driver usbhid
[    1.389308] usbhid: USB HID core driver
[    1.393947] stm32-ipcc 4c001000.mailbox: ipcc rev:1.0 enabled, 6 chans, proc 0
[    1.402019] stm32-rproc 10000000.m4: wdg irq registered
[    1.406399] stm32-rproc 10000000.m4: mbox_request_channel_byname() could not locate channel named "detach"
[    1.416640] remoteproc remoteproc0: cannot get detach mbox
[    1.421149] remoteproc remoteproc0: m4 is available
[    1.429192] NET: Registered protocol family 10
[    1.433781] Segment Routing with IPv6
[    1.436207] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    1.442961] NET: Registered protocol family 17
[    1.446461] can: controller area network core
[    1.450857] NET: Registered protocol family 29
[    1.455254] can: raw protocol
[    1.458274] can: broadcast manager protocol
[    1.462401] can: netlink gateway - max_hops=1
[    1.467048] ThumbEE CPU extension supported.
[    1.471054] Registering SWP/SWPB emulation handler
[    1.477744] stm32-dma 48000000.dma-controller: STM32 DMA driver registered
[    1.484686] stm32-dma 48001000.dma-controller: STM32 DMA driver registered
[    1.493757] stm32-mdma 58000000.dma-controller: STM32 MDMA driver registered
[    1.500151] vref: supplied by vdd
[    1.503210] reg11: supplied by vdd
[    1.506445] reg18: supplied by vdd
[    1.512700] mmc0: new high speed SD card at address e624
[    1.516890] usb33: supplied by vdd_usb
[    1.517693] mmcblk0: mmc0:e624 SU02G 1.84 GiB
[    1.526228] input: pmic_onkey as /devices/platform/soc/5c002000.i2c/i2c-1/1-0033/5c002000.i2c:stpmic@33:onkey/input/input0
[    1.537823] stm32-usbphyc 5a006000.usbphyc: registered rev:1.0
[    1.543816]  mmcblk0: p1 p2 p3 p4
[    1.546689] ehci-platform 5800d000.usb: EHCI Host Controller
[    1.551525] ehci-platform 5800d000.usb: new USB bus registered, assigned bus number 1
[    1.559773] ehci-platform 5800d000.usb: irq 59, io mem 0x5800d000
[    1.585858] ehci-platform 5800d000.usb: USB 2.0 started, EHCI 1.00
[    1.591647] hub 1-0:1.0: USB hub found
[    1.594421] hub 1-0:1.0: 2 ports detected
[    1.605764] ALSA device list:
[    1.607415]   No soundcards found.
[    1.621196] EXT4-fs (mmcblk0p4): mounted filesystem with ordered data mode. Opts: (null). Quota mode: disabled.
[    1.630134] VFS: Mounted root (ext4 filesystem) readonly on device 179:4.
[    1.637769] devtmpfs: mounted
[    1.641759] Freeing unused kernel memory: 1024K
[    1.656071] Run /sbin/init as init process
[    1.822035] EXT4-fs (mmcblk0p4): re-mounted. Opts: (null). Quota mode: disabled.
[    1.885907] usb 1-1: new high-speed USB device number 2 using ehci-platform
Starting syslogd: OK
Starting klogd: OK
Running sysctl: OK
Saving 2048 bits of creditable seed for next boot
Starting network: [    2.087546] hub 1-1:1.0: USB hub found
[    2.090003] hub 1-1:1.0: 4 ports detected
OK

Welcome to Buildroot
buildroot login: [   31.835861] vdda: disabling
[   31.837406] vref: disabling

Bring up network

ifconfig eth0 inet 192.168.0.206 netmask 255.255.255.0
[  624.461467] stm32-dwmac 5800a000.ethernet eth0: PHY [stmmac-0:00] driver [Generic PHY] (irq=POLL)
[  624.469809] stm32-dwmac 5800a000.ethernet eth0: Register MEM_TYPE_PAGE_POOL RxQ-0
[  624.477884] dwmac4: Master AXI performs any burst length
[  624.481819] stm32-dwmac 5800a000.ethernet eth0: No Safety Features support found
[  624.489461] stm32-dwmac 5800a000.ethernet eth0: IEEE 1588-2008 Advanced Timestamp supported
[  624.498103] stm32-dwmac 5800a000.ethernet eth0: registered PTP clock
[  624.504712] stm32-dwmac 5800a000.ethernet eth0: configuring for phy/rgmii-id link mode
# [  628.639293] stm32-dwmac 5800a000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[  628.646428] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready

Add default route and test

route add default gw 192.168.0.1
ping -c 4 8.8.8.8
PING 8.8.8.8 (8.8.8.8): 56 data bytes
64 bytes from 8.8.8.8: seq=0 ttl=117 time=16.723 ms
64 bytes from 8.8.8.8: seq=1 ttl=117 time=17.250 ms
64 bytes from 8.8.8.8: seq=2 ttl=117 time=12.522 ms
64 bytes from 8.8.8.8: seq=3 ttl=117 time=12.683 ms

--- 8.8.8.8 ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max = 12.522/14.794/17.250 ms

Resources

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies