[PATCH v2 0/5] powerpc, mpc83xx: add DM_ETH support

Heiko Schocher hs at denx.de
Wed Sep 30 12:20:36 CEST 2020


Hello Rasmus,

just for your information...

I had the chance to test current next branch on the MPC8360
based kmcoge5ne board ... I hope to get this board into
my automated testsetup soon...

Here the logs:

U-Boot 2020.10-rc4-00088-gc428a44124-dirty (Sep 30 2020 - 12:06:01 +0200)

Reset Status:

CPU:   e300c1, MPC8360A, Rev: 2.1 at 528 MHz, CSB: 264 MHz
Model: kmcoge5ne
Board: ABB kmcoge5ne with PIGGY.
I2C:   ready
DRAM:  512 MiB (DDR2, 64-bit, ECC off, 264 MHz)
POST memory PASSED
Flash: 64 MiB
NAND:  128 MiB
Loading Environment from Flash... OK
In:    serial at 4500
Out:   serial at 4500
Err:   serial at 4500
Net:   eth0: ucc at 3200
Hit <SPACE> key to stop autoboot in  2s
=>

=> setenv serverip 192.168.1.2
=> setenv ipaddr 192.168.1.1
=> bd
boot_params = 0x00000000
DRAM bank   = 0x00000000
-> start    = 0x00000000
-> size     = 0x20000000
flashstart  = 0xf0000000
flashsize   = 0x04000000
flashoffset = 0x00073000
baudrate    = 115200 bps
relocaddr   = 0x1ff83000
reloc off   = 0x2ff83000
Build       = 32-bit
current eth = ucc at 3200
ethaddr     = 00:e0:df:6e:34:80
IP addr     = 192.168.1.1
fdt_blob    = 0x1fb7cea0
new_fdt     = 0x1fb7cea0
fdt_size    = 0x00002000
lmb_dump_all:
     memory.cnt             = 0x1
     memory.size            = 0x0
     memory.reg[0x0].base   = 0x0
                    .size   = 0x20000000

     reserved.cnt           = 0x1
     reserved.size          = 0x0
     reserved.reg[0x0].base = 0x1fb7bb90
                      .size = 0x484470
busfreq     =    264 MHz
bootflags   = 0x00000000
intfreq     =    528 MHz
=> dm tree
  Class     Index  Probed  Driver                Name
-----------------------------------------------------------
  root          0  [ + ]   root_driver           root_driver
  simple_bus    0  [ + ]   simple_bus            |-- soc8360 at e0000000
  serial        0  [ + ]   ns16550_serial        |   |-- serial at 4500
  pinctrl       0  [ + ]   par-io-pinctrl        |   |-- par_io at 1400
  simple_bus    1  [ + ]   simple_bus            |   `-- qe at 100000
  bootcount     0  [ + ]   bootcount-mem         |       |-- bootcount at 0x1bff8
  eth           0  [ + ]   ucc_geth              |       |-- ucc at 3200
  mdio          0  [ + ]   qe_uec_mdio           |       `-- mdio at 3320
  simple_bus    2  [   ]   simple_bus            `-- localbus at e0005000
=> dm
dm - Driver model low level access

Usage:
dm tree          Dump driver model tree ('*' = activated)
dm uclass        Dump list of instances for each uclass
dm devres        Dump list of device resources for each device
dm drivers       Dump list of drivers with uclass and instances
dm compat        Dump list of drivers with compatibility strings
dm static        Dump list of drivers with static platform data
=> dm uclass
uclass 0: root
0   * root_driver @ 1fb7f028, seq 0, (req -1)

uclass 23: bootcount
0   * bootcount at 0x1bff8 @ 1fb7f2b0, seq 0, (req -1)

uclass 33: eth
0   * ucc at 3200 @ 1fb7f338, seq 0, (req 0)

uclass 34: eth_phy_generic
uclass 51: mdio
0   * mdio at 3320 @ 1fb7f3d0, seq 0, (req -1)

uclass 57: nop
uclass 69: pinctrl
0   * par_io at 1400 @ 1fb7f1c0, seq 0, (req -1)

uclass 81: serial
0   * serial at 4500 @ 1fb7f128, seq 0, (req 0)

uclass 82: simple_bus
0   * soc8360 at e0000000 @ 1fb7f0a0, seq 0, (req -1)
1   * qe at 100000 @ 1fb7f228, seq 1, (req -1)
2     localbus at e0005000 @ 1fb7f428

=> dm devres
=> dm drivers
Driver                    uid uclass               Devices
----------------------------------------------------------
bootcount-mem             023 bootcount            bootcount at 0x1bff8
eth_phy_generic_drv       034 eth_phy_generic      <none>
ucc_geth                  033 eth                  ucc at 3200
qe_uec_mdio               051 mdio                 mdio at 3320
ns16550_serial            081 serial               serial at 4500
par-io-pinctrl            069 pinctrl              par_io at 1400
root_driver               000 root                 root_driver
simple_bus                082 simple_bus           soc8360 at e0000000
                                                    qe at 100000
                                                    localbus at e0005000
=> dm compat
Driver                Compatible
--------------------------------
bootcount-mem         u-boot,bootcount
eth_phy_generic_drv
ucc_geth              ucc_geth
qe_uec_mdio           fsl,ucc-mdio
ns16550_serial        ns16550
                       ns16550a
                       ingenic,jz4780-uart
                       nvidia,tegra20-uart
                       snps,dw-apb-uart
par-io-pinctrl        fsl,mpc8360-par_io
root_driver
simple_bus            simple-bus
                       simple-mfd
=> dm static
Driver                    Address
---------------------------------
=> bd
boot_params = 0x00000000
DRAM bank   = 0x00000000
-> start    = 0x00000000
-> size     = 0x20000000
flashstart  = 0xf0000000
flashsize   = 0x04000000
flashoffset = 0x00073000
baudrate    = 115200 bps
relocaddr   = 0x1ff83000
reloc off   = 0x2ff83000
Build       = 32-bit
current eth = ucc at 3200
ethaddr     = 00:e0:df:6e:34:80
IP addr     = 192.168.1.1
fdt_blob    = 0x1fb7cea0
new_fdt     = 0x1fb7cea0
fdt_size    = 0x00002000
lmb_dump_all:
     memory.cnt             = 0x1
     memory.size            = 0x0
     memory.reg[0x0].base   = 0x0
                    .size   = 0x20000000

     reserved.cnt           = 0x1
     reserved.size          = 0x0
     reserved.reg[0x0].base = 0x1fb7bb90
                      .size = 0x484470
busfreq     =    264 MHz
bootflags   = 0x00000000
intfreq     =    528 MHz
=> tftp 100000 kmcoge5ne/20200930/u-boot.bin
Using ucc at 3200 device
TFTP from server 192.168.1.2; our IP address is 192.168.1.1
Filename 'kmcoge5ne/20200930/u-boot.bin'.
Load address: 0x100000
Loading: #################################
          1.9 MiB/s
done
Bytes transferred = 475739 (7425b hex)
=> md 100000
00100000: 04040404 04040404 04040404 04040404    ................
00100010: 00000000 00000000 86868686 86868686    ................
00100020: 00000000 00000000 60606060 60606060    ........````````
00100030: 00000000 00000000 06060606 06060606    ................
00100040: 27051956 552d426f 6f742032 3032302e    '..VU-Boot 2020.
00100050: 31302d72 63342d30 30303838 2d676334    10-rc4-00088-gc4
00100060: 32386134 34313234 2d646972 74792028    28a44124-dirty (
00100070: 53657020 33302032 30323020 2d203132    Sep 30 2020 - 12
00100080: 3a30363a 3031202b 30323030 29000000    :06:01 +0200)...
00100090: 7ca000a6 60a50030 7ca00124 4c00012c    |...`..0|..$L..,
001000a0: 4e800020 7c8802a6 7c6000a6 70600030    N.. |...|`..p`.0
001000b0: 4d820020 7c630078 7c9a03a6 7c7b03a6    M.. |c.x|...|{..
001000c0: 4c000064 00000000 00000000 00000000    L..d............
001000d0: 00000000 00000000 00000000 00000000    ................
001000e0: 00000000 00000000 00000000 00000000    ................
001000f0: 00000000 00000000 00000000 00000000    ................
=>
00100100: 3c80ff40 60000000 7ca000a6 48000005    <..@`...|...H...
00100110: 7ce802a6 3c60e000 60630000 80c40000    |...<`..`c......
00100120: 4c00012c 90640000 80c70000 4c00012c    L..,.d......L..,
00100130: 80c30000 4c00012c 48003041 48003611    ....L..,H.0AH.6.
00100140: 3c80f000 60840000 38a40154 7ca803a6    <...`...8..T|...
00100150: 4e800020 48003645 48003099 7c0004ac    N.. H.6EH.0.|...
00100160: 4bffff31 7c0004ac 4800327d 7c0004ac    K..1|...H.2}|...
00100170: 4800355d 7c0004ac 3c60e600 60630f00    H.5]|...<`..`c..
00100180: 38830100 38000000 3884ffff 98040000    8...8...8.......
00100190: 7c032040 4082fff4 3863fc00 906400ac    |. @@...8c...d..
001001a0: 38000000 9403fffc 9403fffc 7c611b78    8...........|a.x
001001b0: 48000005 7d8802a6 800c3654 7d806214    H...}.....6T}.b.
001001c0: 480686f9 7fc802a6 3c60e000 48003bbd    H.......<`..H.;.
001001d0: 38600000 48015b95 00000000 00000000    8`..H.[.........
001001e0: 00000000 00000000 00000000 00000000    ................
001001f0: 00000000 00000000 00000000 00000000    ................
=>

bye,
Heiko
-- 
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-52   Fax: +49-8142-66989-80   Email: hs at denx.de


More information about the U-Boot mailing list