hello,We designed board based on the p1023rds . And the etherent part of it is completely refered to the ethernet part of P1023RDS. But I am confusing about MAC register access.could someone tell me how to read/write dtsec1 mac register by uboot cammand?the CCSR baseaddr=0xff600000
Offset 0x4e_0000 correct for the P5020/P3041/P2041. The P1023 offset is 0x1E_0000.
The P1023RDS MAC address is available using the following command:
=> md ff7e0100
ff7e0100: 00000000 00007215 40605060 00a1f037 ......r.@`P`...7
ff7e0110: 00000800 00000000 00000000 00000000 ................
ff7e0120: 00000000 00000000 00000000 00000000 ................
ff7e0130: 00000000 00000000 01000000 00000008 ................
ff7e0140: 345b009f 04000000 00000000 00000000 4[..............
ff7e0150: 00000000 00000000 00000000 00000000 ................
ff7e0160: 00000000 00000000 00000000 00000000 ................
ff7e0170: 00000000 00000000 00000000 00000000 ................
ff7e0180: 00000000 00000000 00000000 00000000 ................
ff7e0190: 00000000 00000000 00000000 00000000 ................
ff7e01a0: 00000000 00000000 00000000 00000000 ................
ff7e01b0: 00000000 00000000 00000000 00000000 ................
ff7e01c0: 00000000 00000000 00000000 00000000 ................
ff7e01d0: 00000000 00000000 00000000 00000000 ................
ff7e01e0: 00000000 00000000 00000000 00000000 ................
ff7e01f0: 00000000 00000000 00000000 00000000:
MAC address for our board is the following:
ethaddr=00:04:9F:00:5B:34
> printenv
baudrate=115200
bootargs=root=/dev/ram console=ttyS0,115200
bootcmd=nand read 1000000 200000 400000;nand read c00000 100000 4000;nand read 2000000 600000 1A00000;bootm 1000000 2000000 c00000
bootdelay=3
bootfile=uImage
console=,115200
eth1addr=00:04:9F:00:5B:35
eth2addr=00:04:9F:00:5B:36
ethact=FM1@DTSEC1
ethaddr=00:04:9F:00:5B:34
fdtaddr=c00000
fdtfile=p1023rdb.dtb
fman_ucode=0x7f933638
gatewayip=192.168.3.64
hostname=P1023RDB
ipaddr=192.168.2.104
loadaddr=1000000
netdev=eth0
netmask=255.255.254.0
nfsargs=setenv bootargs root=/dev/nfs rw nfsroot=192.168.2.111:/tftpboot/yocto ip=192.168.2.104:192.168.2.111:192.168.2.64:255.255.254.0:P1023RDB:eth0:off
nfsboot=run nfsargs;tftp 1000000 uImage;tftp c00000 p1023rdb.dtb;bootm 1000000 - c00000
rootpath=/tftpboot/yocto
serverip=192.168.3.64
stderr=serial
stdin=serial
stdout=serial
Have a great day,
Pavel Chubakov
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
OK ,thank you! is very useful!
a
body {
font-family: Helvetica, Arial, sans-serif;
-webkit-text-size-adjust: 100%;
}
/* Webkit */
h1, h2, h3, h4, h5, h6, p, hr {
-webkit-margin-before: 0;
-webkit-margin-after: 0;
-webkit-margin-start: 0;
-webkit-margin-end: 0;
}
.button td {
background-image: -moz-linear-gradient(top, #75B7E3 0%, #5498D6 50%, #408BD0
51%, #387AC8 100%) !important;
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(
0%,#75B7E3), color-stop(50%,#5498D6), color-stop(51%,#408BD0), color-stop(100%,#
387AC8)) !important;
-webkit-box-shadow: inset 0 1px 0 #74b9de, 0 1px 3px rgba(0,0,0,.3) !
important;
-moz-box-shadow: inset 0 1px 0 #74b9de, 0 1px 3px rgba(0,0,0,.3) !important;
}
Pavel 写:
NXP Community
Re: uboot access mac register
reply from Pavel Chubakov in QorIQ Processing Platforms - View the full
discussion
Offset 0x4e_0000 correct for the P5020/P3041/P2041. The P1023 offset is
0x1E_0000.The P1023RDS MAC address is available using the following command:=&
gt; md ff7e0100ff7e0100: 00000000 00007215 40605060 00a1f037 ......r.@`P`...
7ff7e0110: 00000800 00000000 00000000 00000000 ................ff7e0120:
00000000 00000000 00000000 00000000 ................ff7e0130: 00000000
00000000 01000000 00000008 ................ff7e0140: 345b009f 04000000
00000000 00000000 4[..............ff7e0150: 00000000 00000000 00000000
00000000 ................ff7e0160: 00000000 00000000 00000000 00000000 ...
.............ff7e0170: 00000000 00000000 00000000 00000000 ................
ff7e0180: 00000000 00000000 00000000 00000000 ................ff7e0190:
00000000 00000000 00000000 00000000 ................ff7e01a0: 00000000
00000000 00000000 00000000 ................ff7e01b0: 00000000 00000000
00000000 00000000 ................ff7e01c0: 00000000 00000000 00000000
00000000 ................ff7e01d0: 00000000 00000000 00000000 00000000 ...
.............ff7e01e0: 00000000 00000000 00000000 00000000 ................
ff7e01f0: 00000000 00000000 00000000 00000000: MAC address for our board is the
following: ethaddr=00:04:9F:00:5B:34 > printenvbaudrate=115200bootargs=root=/
dev/ram console=ttyS0,115200bootcmd=nand read 1000000 200000 400000;nand read
c00000 100000 4000;nand read 2000000 600000 1A00000;bootm 1000000 2000000
c00000bootdelay=3bootfile=uImageconsole=,115200eth1addr=00:04:9F:00:5B:
35eth2addr=00:04:9F:00:5B:36ethact=FM1@DTSEC1ethaddr=00:04:9F:00:5B:34fdtaddr=
c00000fdtfile=p1023rdb.dtbfman_ucode=0x7f933638gatewayip=192.168.3.64hostname=
P1023RDBipaddr=192.168.2.104loadaddr=1000000netdev=eth0netmask=255.255.254.
0nfsargs=setenv bootargs root=/dev/nfs rw nfsroot=192.168.2.111:/tftpboot/yocto
ip=192.168.2.104:192.168.2.111:192.168.2.64:255.255.254.0:P1023RDB:eth0:
offnfsboot=run nfsargs;tftp 1000000 uImage;tftp c00000 p1023rdb.dtb;bootm
1000000 - c00000rootpath=/tftpboot/yoctoserverip=192.168.3.64stderr=serialstdin=
serialstdout=serial
Have a great day,
Pavel Chubakov
Use md - memory display command of the u-boot. See md command description of the u-boot on the following page:http://www.denx.de/wiki/view/DULG/UBootCmdGroupMemory#Section_5.9.2.5.
The P1023 dTSEC1 Block base addresses is 0x4E_0000. See the Section 18.3.3 of the P1023 Reference Manual. Look at the dTSEC Ethernet Module Memory Map in the Table 3-8 of the QorIQ Data Path Acceleration Architecture (DPAA) Reference (REV 2):
Have a great day,
Pavel Chubakov
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
hello, I don't know what's meaning of the DTSEC1 block base addrss (4e_0000),
but I access DTSEC memory-map register by reading and writing an address
consisting of the CCSR(ff600000) plus the fman block(100000), plus the offset
of specific register to be accessed , as below,. So what is the DTSCE1 block
base address 4e0000 used for ? The dtsec1 still not work ,pleaese analyze for
me=> base ff7e0000Base Address: 0xff7e0000=> md 0 3fff7e0000: 08240101
002c0000 02000700 00000000 .$...,..........ff7e0010: 00000000 00000058
00000000 00000008 .......X........ff7e0020: 00000000 00000000 00000000
00000000 ................ff7e0030: 00000000 00000000 00000000 00000000 ...
.............ff7e0040: 00000020 00000000 00000000 00000000 ... ............
ff7e0050: 00000021 00000000 00000000 00000000 ...!............ff7e0060:
00000000 00000000 00000000 00000000 ................ff7e0070: 00000000
00000000 00000000 00000000 ................ff7e0080: 00000000 00000000
00000000 00000000 ................ff7e0090: 00000000 00000000 00000000
00000000 ................ff7e00a0: 00000000 00000000 00000000 00000000 ...
.............ff7e00b0: 00000000 00000000 00000000 00000000 ................
ff7e00c0: 00000000 00000000 00000000 00000000 ................ff7e00d0:
00000000 00000000 00000000 00000000 ................ff7e00e0: 00000000
00000000 00000000 00000000 ................ff7e00f0: 00000000 00000000
00000000 ............=> md 0 2ff7e0000: 08240101 002c0000 .$...,..=>
md 100 44ff7e0100: 00000000 00007115 40605060 00a1f037 ......q.@`P`...
7ff7e0110: 00000800 00000000 00000000 00000000 ................ff7e0120:
00000000 00000000 00000000 00000000 ................ff7e0130: 00000000
00000000 01000000 00000008 ................ff7e0140: 00000000 00000000
00000000 00000000 ................ff7e0150: 00000000 00000000 00000000
00000000 ................ff7e0160: 00000000 00000000 00000000 00000000 ...
.............ff7e0170: 00000000 00000000 00000000 00000000 ................
ff7e0180: 00000000 00000000 00000000 00000000 ................ff7e0190:
00000000 00000000 00000000 00000000 ................ff7e01a0: 00000000
00000000 00000000 00000000 ................ff7e01b0: 00000000 00000000
00000000 00000000 ................ff7e01c0: 00000000 00000000 00000000
00000000 ................ff7e01d0: 00000000 00000000 00000000 00000000 ...
.............ff7e01e0: 00000000 00000000 00000000 00000000 ................
ff7e01f0: 00000000 00000000 00000000 00000000 ................ff7e0200:
00000000 00000000 00000000 00000000 ................=>
a
body {
font-family: Helvetica, Arial, sans-serif;
-webkit-text-size-adjust: 100%;
}
/* Webkit */
h1, h2, h3, h4, h5, h6, p, hr {
-webkit-margin-before: 0;
-webkit-margin-after: 0;
-webkit-margin-start: 0;
-webkit-margin-end: 0;
}
.button td {
background-image: -moz-linear-gradient(top, #75B7E3 0%, #5498D6 50%, #408BD0
51%, #387AC8 100%) !important;
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(
0%,#75B7E3), color-stop(50%,#5498D6), color-stop(51%,#408BD0), color-stop(100%,#
387AC8)) !important;
-webkit-box-shadow: inset 0 1px 0 #74b9de, 0 1px 3px rgba(0,0,0,.3) !
important;
-moz-box-shadow: inset 0 1px 0 #74b9de, 0 1px 3px rgba(0,0,0,.3) !important;
}
Pavel 写:
NXP Community
Re: uboot access mac register
reply from Pavel Chubakov in QorIQ Processing Platforms - View the full
discussion
Use md - memory display command of the u-boot. See md command description of
the u-boot on the following page:http://www.denx.de/wiki/view/DULG/
UBootCmdGroupMemory#Section_5.9.2.5. The P1023 dTSEC1 Block base addresses is
0x4E_0000. See the Section 18.3.3 of the P1023 Reference Manual. Look at the
dTSEC Ethernet Module Memory Map in the Table 3-8 of the QorIQ Data Path
Acceleration Architecture (DPAA) Reference (REV 2):https://www.nxp.com/webapp/
Download?colCode=DPAARM&location=null&fsrch=1&sr=4&pageNum=1&
amp;Parent_nodeId=&Parent_pageType= Have a great day,
Pavel Chubakov