今天拿到一块龙芯1C的机器人开发板

尺寸55×61mm,  带32个PWM,485接口,串口,32M RAM   128M  ROM , bootloader是UBOOT,  已经装好linux系统。

使用了2片PCA9685的pwm芯片, 每个PCM9685提供16路PWM,输出精度12位, 频率范围40hz-1000hz,占空比0%-100%,  高速I2C总线

 


cmdline:
console=ttyS2,115200 root=/dev/mtdblock2 noinitrd init=/linuxrc rootfstype=yaffs2 rw

mtd :
[root@Loongson-gz:/]#cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00100000 00020000 "bootloader"
mtd1: 00d00000 00020000 "kernel"
mtd2: 03200000 00020000 "rootfs"
mtd3: 04000000 00020000 "mini_rootfs"
mtd4: 00080000 00001000 "pmon(spi)"

uname -a

Linux Loongson-gz 3.0.101-g3999c8f #1 PREEMPT Thu Mar 10 09:57:02 CST 2016 mips GNU/Linux

 

[root@Loongson-gz:/]#df -h
Filesystem                Size      Used Available Use% Mounted on
/dev/root                50.0M      8.0M     42.0M  16% /
devtmpfs                 64.0K         0     64.0K   0% /dev
tmpfs                    64.0K         0     64.0K   0% /dev
tmpfs                    12.8M    520.0K     12.3M   4% /tmp


dmesg:
[root@Loongson-gz:/]#dmesg
Linux version 3.0.101-g3999c8f (root@dmf-virtual-machine) (gcc version 4.3.6 20101004 (prerelease) (GCC) ) #1 PREEMPT Thu Mar 10 09:57:02 CST 2016
memsize=32MB, highmemsize=0MB
bootconsole [early0] enabled
CPU revision is: 00004220 (Loongson 1C)
FPU revision is: 00330501
Determined physical RAM map:
 memory: 02000000 @ 00000000 (usable)
Initrd not found or empty - disabling initrd
Zone PFN ranges:
  Normal   0x00000000 -> 0x00002000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0: 0x00000000 -> 0x00002000
On node 0 totalpages: 8192
free_area_init_node: node 0, pgdat 805bd720, node_mem_map 81000000
  Normal zone: 64 pages used for memmap
  Normal zone: 0 pages reserved
  Normal zone: 8128 pages, LIFO batch:0
pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
pcpu-alloc: [0] 0
Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 8128
Kernel command line: console=ttyS2,115200 root=/dev/mtdblock2 noinitrd init=/linuxrc rootfstype=yaffs2 rw
PID hash table entries: 128 (order: -3, 512 bytes)
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Primary instruction cache 16kB, VIPT, 4-way, linesize 32 bytes.
Primary data cache 16kB, 4-way, VIPT, no aliases, linesize 32 bytes
Cache parity protection disabled
Memory: 25972k/32768k available (3067k kernel code, 6796k reserved, 764k data, 168k init, 0k highmem)
SLUB: Genslabs=9, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
NR_IRQS:320
cpuclock=252000000Hz
busclock=126000000Hz
Console: colour dummy device 80x25
Calibrating delay loop... 250.62 BogoMIPS (lpj=501248)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
Performance counters: mips/loongson1 PMU enabled, 2 counters available to each CPU, irq -1 (share with timer interrupt)
devtmpfs: initialized
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
Switching to clocksource MIPS
NTFS driver 2.1.30 [Flags: R/W].
yaffs: yaffs built Mar 10 2016 09:56:57 Installing.
msgmni has been set to 50
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
io scheduler noop registered
io scheduler deadline registered (default)
io scheduler cfq registered
Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0x1fe40000 (irq = 8) is a 16550A
serial8250.0: ttyS1 at MMIO 0x1fe44000 (irq = 12) is a 16550A
serial8250.0: ttyS2 at MMIO 0x1fe48000 (irq = 13) is a 16550A
console [ttyS2] enabled, bootconsole disabled
serial8250.0: ttyS3 at MMIO 0x1fe4c000 (irq = 37) is a 16550A
mtdoops: mtd device (mtddev=name/number) must be supplied
NAND device: Manufacturer ID: 0xec, Chip ID: 0xf1 (Samsung NAND 128MiB 3,3V 8-bit)
Scanning device for bad blocks
Creating 4 MTD partitions on "ls1x-nand":
0x000000000000-0x000000100000 : "bootloader"
0x000000100000-0x000000e00000 : "kernel"
0x000000e00000-0x000004000000 : "rootfs"
0x000004000000-0x000008000000 : "mini_rootfs"
m25p80 spi0.0: w25x40 (512 Kbytes)
Creating 1 MTD partitions on "spi-flash":
0x000000000000-0x000000080000 : "pmon(spi)"
spi_ls1x spi_ls1x.0: base bfe80000, irq -1
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci-platform ehci-platform: Generic Platform EHCI Controller
ehci-platform ehci-platform: new USB bus registered, assigned bus number 1
ehci-platform ehci-platform: irq 40, io mem 0x1fe20000
ehci-platform ehci-platform: USB 2.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
ohci-platform ohci-platform: Generic Platform OHCI Controller
ohci-platform ohci-platform: new USB bus registered, assigned bus number 2
ohci-platform ohci-platform: irq 41, io mem 0x1fe28000
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver libusual
Module dwc_common_port init
dwc_otg: version 2.93a 15-MAY-2011
dwc_otg lm-1: dwc_otg_driver_probe(8060ff50)
dwc_otg lm-1: start=0x1fe00000
dwc_otg lm-1: base=0xbfe00000
dwc_otg lm-1: dwc_otg_device=0x81931280
Core Release: 2.93a
Setting default values for core params
WARN::dwc_otg_set_param_host_perio_tx_fifo_size:5505: Wrong value for host_perio_tx_fifo_size

WARN::dwc_otg_set_param_host_perio_tx_fifo_size:5506: host_perio_tx_fifo_size must be 16-32768

Using Buffer DMA mode
Periodic Transfer Interrupt Enhancement - disabled
Multiprocessor Interrupt Enhancement - disabled
OTG VER PARAM: 1, OTG VER FLAG: 1
Dedicated Tx FIFOs mode
dwc_otg lm-1: DWC OTG Controller
dwc_otg lm-1: new USB bus registered, assigned bus number 3
dwc_otg lm-1: irq 42, io mem 0x00000000
hub 3-0:1.0: USB hub found
hub 3-0:1.0: 1 port detected
ls1x-toy ls1x-toy.1: rtc core: registered ls1x-toy as rtc0
i2c /dev entries driver
ls1x-wdt ls1x-wdt: ls1x WDT at 0xbfe5c060, timeout 1375032704 sec (no wayout= 0)
mmc_spi spi0.2: SD/MMC host mmc0, no DMA, no WP, no poweroff, cd polling
ls1x-toy ls1x-toy.1: setting system clock to 2050-01-22 02:34:01 UTC (2526431641)
yaffs: dev is 32505858 name is "mtdblock2" rw
yaffs: passed flags ""
yaffs: yaffs: Attempting MTD mount of 31.2,"mtdblock2"
yaffs: 57 blocks to be sorted...
yaffs: yaffs_read_super: is_checkpointed 0
VFS: Mounted root (yaffs2 filesystem) on device 31:2.
devtmpfs: mounted
Freeing unused kernel memory: 168k freed

[root@Loongson-gz:/]#ls /sbin
acpid              ftpd               mkfs.ext2          setlogcons
adjtimex           getty              mkfs.minix         slattach
arp                halt               mkfs.reiser        start-stop-daemon
blkid              hdparm             mkfs.vfat          sulogin
blockdev           httpd              mkswap             svlogd
bootchartd         hwclock            modinfo            swapoff
brctl              ifconfig           modprobe           swapon
chpasswd           ifdown             nameif             switch_root
chroot             ifenslave          nanddump           sysctl
crond              ifup               nandwrite          syslogd
depmod             inetd              nbd-client         telnetd
devmem             init               ntpd               tunctl
dhcprelay          inotifyd           pivot_root         ubiattach
dnsd               insmod             popmaildir         ubidetach
fakeidentd         klogd              poweroff           ubimkvol
fbset              loadfont           raidautorun        ubirmvol
fbsplash           loadkmap           rdate              ubirsvol
fdisk              logread            rdev               ubiupdatevol
findfs             losetup            readprofile        udhcpc
flash_eraseall     lpd                reboot             udhcpd
flash_lock         lsmod              rmmod              vconfig
flash_unlock       makedevs           route              watchdog
flashcp            man                runlevel           zcip
freeramdisk        mdev               sendmail
fsck               mkdosfs            setconsole
fsck.minix         mke2fs             setfont

root@Loongson-gz:/]#ls /bin
[              dumpleases     killall5       pmap           sync
[[             echo           last           powertop       tac
add-shell      ed             less           printenv       tail
addgroup       egrep          linux32        printf         tar
adduser        eject          linux64        ps             taskset
arping         env            ln             pscan          tcpsvd
ash            envdir         logger         pstree         tee
awk            envuidgid      login          pwd            telnet
base64         ether-wake     logname        pwdx           test
basename       expand         lpq            readahead      tftp
bbconfig       expr           lpr            readlink       tftpd
beep           false          ls             realpath       time
bunzip2        fdflush        lsattr         reformime      timeout
busybox        fdformat       lsof           remove-shell   top
bzcat          fgconsole      lspci          renice         touch
bzip2          fgrep          lsusb          reset          tr
cal            find           lzcat          resize         traceroute
cat            flock          lzma           rev            traceroute6
catv           fold           lzop           rm             true
chat           free           lzopcat        rmdir          tty
chattr         fsync          makemime       rpm            ttysize
chgrp          ftpget         md5sum         rpm2cpio       udpsvd
chmod          ftpput         mesg           rtcwake        umount
chown          fuser          microcom       run-parts      uname
chpst          getopt         mkdir          runsv          unexpand
chrt           grep           mkfifo         runsvdir       uniq
chvt           groups         mknod          rx             unix2dos
cksum          gunzip         mkpasswd       script         unlzma
clear          gzip           mktemp         scriptreplay   unlzop
cmp            hd             more           sed            unxz
comm           head           mount          seq            unzip
conspy         hexdump        mountpoint     setarch        uptime
cp             hostid         mpstat         setkeycodes    users
cpio           hostname       msh            setserial      usleep
crontab        hush           mt             setsid         uudecode
cryptpw        id             mv             setuidgid      uuencode
cttyhack       ifplugd        nc             sh             vi
cut            install        netstat        sha1sum        vlock
date           ionice         nice           sha256sum      volname
dc             iostat         nmeter         sha512sum      wall
dd             ip             nohup          showkey        watch
deallocvt      ipaddr         nslookup       sleep          wc
delgroup       ipcalc         od             smemcap        wget
deluser        ipcrm          openvt         softlimit      which
df             ipcs           passwd         sort           who
diff           iplink         patch          split          whoami
dirname        iproute        pgrep          stat           whois
dmesg          iprule         pidof          strings        xargs
dnsdomainname  iptunnel       ping           stty           xz
dos2unix       kbd_mode       ping6          su             xzcat
du             kill           pipe_progress  sum            yes
dumpkmap       killall        pkill          sv             zcat

 

[root@Loongson-gz:/]#/lib/libc.so.6
GNU C Library stable release version 2.7, by Roland McGrath et al.
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 4.3.0.
Compiled on a Linux >>2.6.32-5-686<< system on 2011-12-09.
Available extensions:
        crypt add-on version 2.1 by Michael Glad and others
        Native POSIX Threads Library by Ulrich Drepper et al
        Support for some architectures added on, not maintained in glibc core.
        BIND-8.2.3-T5B
For bug reporting instructions, please see:
<http://www.gnu.org/software/libc/bugs.html>.

IMG_20160331_100305.jpg
附件大小
-1dc2b1615c15c17c.png32.83 千字节
IMG20160330162133.jpg607.8 千字节
IMG_20160330_160823.jpg469.59 千字节