Unboxing my Freescale board: MPC5125

MPC5125 Product Summary Page:

http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=MPC5125

Product video available here:

http://www.youtube.com/watch?v=rEJmgamfhLI

After connecting via USB to my Ubuntu, and then from the dmesg, found that /dev/ttyACM0 is to be used, so setting “minicom -s” to read from /dev/ttyACM0.

Looking at the command available:

=> help
?       – alias for ‘help’
askenv  – get environment variables from stdin
autoscr – run script from memory
base    – print or set address offset
bdinfo  – print Board Info structure
boot    – boot default, i.e., run ‘bootcmd’
bootd   – boot default, i.e., run ‘bootcmd’
bootm   – boot application image from memory
bootp   – boot image via network using BOOTP/TFTP protocol
checksum- checksum ddr_add data_count
clocks  – print clock configuration
cmp     – memory compare
coninfo – print console devices and information
cp      – memory copy
crc32   – checksum calculation
date    – get/set/reset date & time
dhcp    – boot image via network using DHCP/TFTP protocol
diufb   – Init or Display BMP file
echo    – echo args to console
eeprom  – EEPROM sub-system
erase   – erase FLASH memory
exit    – exit script
fdt     – flattened device tree utility commands
flinfo  – print FLASH memory information
go      – start application at address ‘addr’
help    – print online help
i2c     – I2C sub-system
icrc32  – checksum calculation
iloop   – infinite loop on address range
imd     – i2c memory display
iminfo  – print header information for application image
imm     – i2c memory modify (auto-incrementing)
imw     – memory write (fill)
imxtract- extract a part of a multi-image
inm     – memory modify (constant address)
iprobe  – probe to discover valid I2C chip addresses
itest   – return true/false on integer compare
loadb   – load binary file over serial line (kermit mode)
loads   – load S-Record file over serial line
loady   – load binary file over serial line (ymodem mode)
loop    – infinite loop on address range
md      – memory display
mii     – MII utility commands
mm      – memory modify (auto-incrementing)
mtest   – simple RAM test
mw      – memory write (fill)
nand    – NAND sub-system
nand_e  – erase nand block
nand_loader- Nand loader program
nand_r  – test NAND read
nand_w  – test NAND write
nboot   – boot from NAND device
nfs     – boot image via network using NFS protocol
nm      – memory modify (constant address)
ping    – send ICMP ECHO_REQUEST to network host
printenv- print environment variables
protect – enable or disable FLASH write protection
rarpboot- boot image via network using RARP/TFTP protocol
reginfo – print register information
reset   – Perform RESET of the CPU
run     – run commands in an environment variable
saveenv – save environment variables to persistent storage
setenv  – set environment variables
showvar – print local hushshell variables
sleep   – delay execution for some time
test    – minimal test like /bin/sh
tftpboot- boot image via network using TFTP protocol
ubi     – ubi commands
version – print monitor version
ydump   – YAFFS device struct
yls     – yaffs ls
ymkdir  – YAFFS mkdir
ymount  – mount yaffs
ymv     – YAFFS mv
yrd     – read file from yaffs
yrdm    – read file to memory from yaffs
yrm     – YAFFS rm
yrmdir  – YAFFS rmdir
yumount – unmount yaffs
ywr     – write file to yaffs
ywrm    – write file from memory to yaffs
=> bdinfo
memstart    = 0x00000000
memsize     = 0x00000000
flashstart  = 0x00000000
flashsize   = 0x00000000
flashoffset = 0x00000000
sramstart   = 0x00000000
sramsize    = 0x00000000
bootflags   = 0x00000001
intfreq     = 393.216 MHz
busfreq     = 196.608 MHz
ethaddr     = 00:22:78:00:4A:A1
eth1addr    = 00:00:00:00:00:00
IP addr     = 192.168.10.205
baudrate    = 115200 bps

And environment:

=> printenv
bootcmd=run nandboot
bootdelay=2
baudrate=115200
loads_echo=1
preboot=echo;echo Type \”run flash_nfs\” to mount root filesystem over NFS;echo
rootpath=/opt/eldk/pcc_6xx
hostname=ads5125
bootfile=ads5125/uImage
loadaddr=400000
ramdiskfile=ads5125/uRamdisk
fdtfile=ads5125/ads5125.dtb
u-boot=ads5125/u-boot.bin
netdev=eth0
ipaddr=192.168.10.205
consdev=tty0
serverip=192.168.10.74
fdtaddr=4000000
fdtfile=mpc5125-twr.dtb
kernel_name=vmlinux-twr-5125.bin
consoledev=ttyPSC0
flash_kernel=0x300
flash_dtb=0xb00
nandboot=setenv bootargs root=/dev/mtdblock6 rw rootfstype=yaffs2 console=$consr
fdt_name=mpc5125-twr.dtb
ramdisk_name=rootfs.ext2.gz.uboot-common
ramdisk_flash_addr=0xc00
kernel_loader_addr=0x2000000
fdt_loader_addr=0x2800000
ramdisk_loader_addr=0x3000000
nand_ramboot=setenv bootargs root=/dev/ram rw console=$consoledev,$baudrate;nanr
uboot_name=u-boot-second-usb.bin
uboot_name_first=u-boot-first-usb.bin
uboot_size=0x60000
uboot_update=tftp 0x1000000 u-boot-spl-2k.bin;nand_e 0x00 0x01;nand_loader 0x100
nfsargs=setenv bootargs root=/dev/nfs rw nfsroot=${serverip}:${rootpath}
ramargs=setenv bootargs root=/dev/ram rw
addip=setenv bootargs ${bootargs} ip=${ipaddr}:${serverip}:${gatewayip}:${netma1
addtty=setenv bootargs ${bootargs} console=${consdev},${baudrate}
mqx_name=extram_d.bin
mqx_size=0xa00000
mqx_addr=0x10000
mqx_flash_addr_s=0x80000
mqx_flash_addr_e=0x863ff
kernel_rootfs_update=tftp 0x3000000  $fdt_name;nand_e $flash_dtb 0xb01;nand_w 00
mqx_update=tftp $mqx_addr $mqx_name;nand_e $mqx_flash_addr_s $mqx_flash_addr_e;e
mqxboot=nand_r $mqx_addr $mqx_flash_addr_s $mqx_size;go $mqx_addr
ethact=FEC ETHERNET
ethaddr=00:22:78:00:4A.A1
stdin=serial
stdout=serial
stderr=serial

Environment size: 2451/131067 bytes

After enter “boot” to continue booting up, and doing a “dmesg” and showing some initial output:

http://pastebin.com/pypMSThq

Filesystems:

root@linux:/proc# cat filesystems
nodev   sysfs
nodev   rootfs
nodev   bdev
nodev   proc
nodev   cgroup
nodev   debugfs
nodev   securityfs
nodev   sockfs
nodev   usbfs
nodev   pipefs
nodev   anon_inodefs
nodev   tmpfs
nodev   inotifyfs
nodev   devpts
ext3
ext2
ext4
ext4dev
nodev   ramfs
vfat
msdos
nodev   nfs
nodev   nfs4
ntfs
nodev   autofs
nodev   fuse
fuseblk
nodev   fusectl
yaffs
yaffs2
nodev   mqueue
nodev   rpc_pipefs

List of running processes:

ps -ef
UID        PID  PPID  C STIME TTY          TIME CMD
root         1     0  1 19:09 ?        00:00:12 /sbin/init
root         2     0  0 19:09 ?        00:00:00 [kthreadd]
root         3     2  0 19:09 ?        00:00:00 [ksoftirqd/0]
root         4     2  0 19:09 ?        00:00:00 [events/0]
root         5     2  0 19:09 ?        00:00:00 [khelper]
root         8     2  0 19:09 ?        00:00:00 [netns]
root       158     2  0 19:09 ?        00:00:00 [kintegrityd/0]
root       160     2  0 19:09 ?        00:00:00 [kblockd/0]
root       169     2  0 19:09 ?        00:00:00 [ksuspend_usbd]
root       175     2  0 19:09 ?        00:00:00 [khubd]
root       180     2  4 19:09 ?        00:00:37 [kmmcd]
root       204     2  0 19:09 ?        00:00:00 [pdflush]
root       205     2  0 19:09 ?        00:00:00 [pdflush]
root       206     2  0 19:09 ?        00:00:00 [kswapd0]
root       207     2  0 19:09 ?        00:00:00 [aio/0]
root       208     2  0 19:09 ?        00:00:00 [nfsiod]
root       836     2  0 19:09 ?        00:00:00 [mtdblockd]
root       888     2  0 19:09 ?        00:00:00 [hid_compat]
root       929     2  0 19:09 ?        00:00:00 [rpciod/0]
root      1030     1  0 19:12 ?        00:00:01 /sbin/udevd –daemon
root      2250     1  0 19:12 tty4     00:00:00 /sbin/getty 38400 tty4
root      2251     1  0 19:12 tty5     00:00:00 /sbin/getty 38400 tty5
root      2253     1  0 19:12 ttyPSC0  00:00:00 /bin/login —
root      2256     1  0 19:12 ttyPSC1  00:00:00 /sbin/getty 115200 ttyPSC1
root      2259     1  0 19:12 tty2     00:00:00 /sbin/getty 38400 tty2
root      2262     1  0 19:12 tty3     00:00:00 /sbin/getty 38400 tty3
root      2263     1  0 19:12 tty6     00:00:00 /sbin/getty 38400 tty6
syslog    2306     1  0 19:12 ?        00:00:00 /sbin/syslogd -u syslog
103       2324     1  0 19:12 ?        00:00:00 /bin/dbus-daemon –system
root      2345     1  0 19:12 ?        00:00:00 /usr/sbin/sshd
105       2364     1  0 19:12 ?        00:00:00 /usr/sbin/hald
root      2367     1  0 19:12 ?        00:00:00 /usr/sbin/console-kit-daemon
root      2430  2364  0 19:12 ?        00:00:00 hald-runner
root      2486     1  0 19:12 ?        00:00:00 /usr/sbin/gdm
root      2489  2486  0 19:12 ?        00:00:00 /usr/sbin/gdm
root      2496  2489 20 19:12 ?        00:02:34 /usr/bin/Xfbdev :0 -mouse mouse
root      2513     1  0 19:12 ?        00:00:00 /usr/sbin/NetworkManager –pid-f
root      2528     1  0 19:12 ?        00:00:00 /sbin/wpa_supplicant -u -f /var/
root      2532     1  0 19:12 ?        00:00:00 /usr/sbin/nm-system-settings –c
ntp       2552     1  0 19:12 ?        00:00:00 /usr/sbin/ntpd -p /var/run/ntpd.
root      2558  2552  0 19:12 ?        00:00:00 /usr/sbin/ntpd -p /var/run/ntpd.
root      2569     1  0 19:12 ?        00:00:00 /usr/bin/system-tools-backends
root      2624     1  0 19:12 tty1     00:00:00 /sbin/getty 38400 tty1
root      2644  2253  0 19:12 ttyPSC0  00:00:00 -bash
user      2684  2489  0 19:12 ?        00:00:00 /bin/sh /etc/xdg/xfce4/xinitrc –
user      2792  2684  0 19:12 ?        00:00:00 /usr/bin/ssh-agent /usr/bin/dbus
user      2796     1  0 19:12 ?        00:00:00 /usr/bin/dbus-launch –exit-with
user      2800     1  0 19:12 ?        00:00:00 //bin/dbus-daemon –fork –print
root      2812  2684 50 19:12 ?        00:06:21 /usr/bin/limeplayer -l /home/use
root      2878  2644  0 19:25 ttyPSC0  00:00:00 ps -ef

Operating System:

cat /etc/lsb-release

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=9.04
DISTRIB_CODENAME=jaunty
DISTRIB_DESCRIPTION=”Ubuntu 9.04″

Listing the packages (partially) “apt-cache pkgnames”:   http://pastebin.com/mtjFDdNj

Other info:

http://dev.emcelettronica.com/freescale-mpc5125-mcu-high-resolution-display-and-hmi

http://www.symmetrongroup.ru/suppliers/freescale/towersystem-mpc5125-manual.shtml

http://cache.freescale.com/files/microcontrollers/doc/ref_manual/MPC5125RM.pdf?fpsp=1

https://linuxlink.timesys.com/webshare/2/index.pt/timesys/factory/mpc5125-twr_small_footprint/1/output/

(the last link provide source codes customized for MPC5125).

Advertisements

One response to this post.

  1. The .config file for stock linux kernel (downloadable from http://www.kernel.org) is as follows:

    http://pastebin.com/FMR5ingC

    Reply

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: