For compiling a C program for P2020RDB-PCA board with use of SDKv1.7, I made a simple_serial.c program at location Documents in my Linux System and went to that location by use of command-
mhnayeem@mhnayeem-ThinkCentre-A58:~$ cd Documents
and then compiled the C program through this command -
mhnayeem@mhnayeem-ThinkCentre-A58:~/Documents$ $CC simple_serial.c --sysroot=/opt/fsl-networking/QorIQ-SDK-V1.7/sysroots/ppce500v2-fsl-linux-gnuspe/ -o simple_serial
I get this error-
simple_serial.c: command not found
Please guide me with proper command and the location of executing it for compilation of a program to P2020RDB-PCA using SDKv1,7
Hello Hammad Nayeem,
Please refer to the following information regarding how to use the standalone Toolchain.
b25805@sun Documents]$ source /opt/fsl-networking/QorIQ-SDK-V1.7/environment-setup-ppce500v2-fsl-linux-gnuspe
[b25805@sun Documents]$ ls
simple_serial.c
[b25805@sun Documents]$ $CC simple_serial.c -o simple_serial
[b25805@sun Documents]$ ls
simple_serial simple_serial.c
[b25805@sun Documents]$ file simple_serial
simple_serial: ELF 32-bit MSB executable, PowerPC or cisco 4500, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.16, BuildID[sha1]=54ab06d0a14f13d01809d816f40bb73b4e8c97ec, not stripped
[b25805@sun Documents]$
Have a great day,
Yiping
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Thanks Yiping
I have installed tftp server to my Linux Computer.
Now I need to load SDK1.7 image onto board.
For that I was reading
in the Freescale Technical Information Center.
Here, I want to know about how to get MAC addresses for the P2020RDB-PCA Board I have.
Please configure MAC addresses in u-boot environment variables.
Here is an example.
baudrate=115200
bdev=sda1
bootargs=root=/dev/ram rw console=ttyS0,115200 ramdisk_size=120000
bootcmd=setenv bootargs root=/dev/$bdev rw rootdelay=30 console=$consoledev,$baudrate $othbootargs;usb start;ext2load usb 0:1 $loadaddr /boot/$bootfile;ext2load usb 0:1 $fdtaddr /boot/$fdtfile;bootm $loadaddr - $fdtaddr
bootdelay=-1
bootfile=/tftpboot/b46610/p1020rdb_fsl-sdk-v1.7/uImage-p1020rdb.bin
consoledev=ttyS0
eth10addr=00:E0:0C:00:2A:0a
eth11addr=00:E0:0C:00:2A:0b
eth12addr=00:E0:0C:00:2A:0c
eth13addr=00:E0:0C:00:2A:0d
eth14addr=00:E0:0C:00:2A:0e
eth15addr=00:E0:0C:00:2A:0f
eth1addr=00:E0:0C:00:2A:01
eth2addr=00:E0:0C:00:2A:02
eth3addr=00:E0:0C:00:2A:03
eth4addr=00:E0:0C:00:2A:04
eth5addr=00:E0:0C:00:2A:05
eth6addr=00:E0:0C:00:2A:06
eth7addr=00:E0:0C:00:2A:07
eth8addr=00:E0:0C:00:2A:08
eth9addr=00:E0:0C:00:2A:09
ethact=eTSEC3
ethaddr=00:E0:0C:00:2A:00
ethprime=eTSEC3
fdtaddr=c00000
fdtfile=/tftpboot/b46610/p1020rdb_fsl-sdk-v1.7/uImage-p1020rdb-pd_32b.dtb
fileaddr=c00000
filesize=4046a8
hostname=unknown
hwconfig=usb1:dr_mode=host,phy_type=ulpi
ipaddr=192.168.2.62
jffs2nand=mtdblock9
jffs2nor=mtdblock3
loadaddr=1000000
map_lowernorbank=i2c dev 1; i2c mw 18 1 02 1; i2c mw 18 3 fd 1
map_uppernorbank=i2c dev 1; i2c mw 18 1 00 1; i2c mw 18 3 fd 1
nandboot=i2c dev 1; i2c mw 18 1 0x44 1; i2c mw 18 3 0x03 1; reset
nandbootaddr=100000
nandfdtaddr=80000
netdev=eth0
nfsboot=setenv bootargs root=/dev/nfs rw nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip:$gatewayip:$netmask:$hostname:$netdev:off console=$consoledev,$baudrate $othbootargs;tftp $loadaddr $bootfile;tftp $fdtaddr $fdtfile;bootm $loadaddr - $fdtaddr
norboot=i2c dev 1; i2c mw 18 1 0x64 1; i2c mw 18 3 0x03 1; reset
norbootaddr=ef080000
norfdtaddr=ef040000
pciboot=i2c dev 1; i2c mw 18 1 0x74 1; i2c mw 18 3 0x03 1; reset
ramboot=setenv bootargs root=/dev/ram rw console=$consoledev,$baudrate $othbootargs ramdisk_size=$ramdisk_size;tftp $ramdiskaddr $ramdiskfile;tftp $loadaddr $bootfile;tftp $fdtaddr $fdtfile;bootm $loadaddr $ramdiskaddr $fdtaddr
ramdisk_size=120000
ramdiskaddr=2000000
ramdiskfile=rootfs.ext2.gz.uboot
rootpath=/opt/nfsroot
sdboot=i2c dev 1; i2c mw 18 1 0x24 1; i2c mw 18 3 0x03 1; reset
serverip=192.168.2.1
spiboot=i2c dev 1; i2c mw 18 1 0x34 1; i2c mw 18 3 0x03 1; reset
stderr=serial
stdin=serial
stdout=serial
tftpflash=tftpboot $loadaddr $uboot; protect off 0xeff40000 +$filesize; erase 0xeff40000 +$filesize; cp.b $loadaddr 0xeff40000 $filesize; protect on 0xeff40000 +$filesize; cmp.b $loadaddr 0xeff40000 $filesize
uboot=u-boot.bin
vscfw_addr=efdc0000
Environment size: 2677/8188 bytes
=>
Have a great day,
Yiping
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
For Ramdisk deployment through TFTP For P2020RDB-PCA Rev E Board , I am using following commands, are these oK...?
=> setenv ethaddr 00:04:9F:02:D8:81
=> setenv eth1addr 00:04:9F:02:D8:82
=> setenv eth2addr 00:04:9F:02:D8:83
=>setenv ethact eTSEC1
=>setenv ipaddr 192.168.1.100
=>setenv serverip 192.168.1.2
=>setenv gatewayip 192.168.1.1
=>setenv netmask 255.255.255.0
=> setenv ramdiskfile fsl-image-core-p2020rdb.ext2.gz.u-boot
=>setenv bootargs ‘root=/dev/ram rw ramdisk_size=10000000 console=ttyS0,115200’
=>saveenv
=>tftp 1000000 uImage-p2020rdb.bin
=>tftp 2000000 fsl-image-core-p2020rdb.ext2.gz.u-boot
=>tftp c00000 uImage-p2020rdb-pc_32b.dtb
=>bootm 1000000 2000000 c00000