Forum Discussion
Altera_Forum
Honored Contributor
14 years agoSPI and uClinux
Hi all, I have a design in which I have to use SPI in order to communicate with an external PIC. I find that it is not enough to select SPI driver in uClinux kernel configuration because when I...
Altera_Forum
Honored Contributor
14 years agoHi liunx, thanks for your reply. Attached and below you can find the information you asked for.
--- Quote Start --- Linux version 2.6.30 (marco@uClinux) (gcc version 3.4.6)# 404 PREEMPT Tue Oct 11 17:44:02 CEST 2011 uClinux/Nios II Built 1 zonelists in Zone order, mobility grouping off. Total pages: 32512 Kernel command line: NR_IRQS:32 PID hash table entries: 512 (order: 9, 2048 bytes) Dentry cache hash table entries: 16384 (order: 4, 65536 bytes) Inode-cache hash table entries: 8192 (order: 3, 32768 bytes) Memory available: 126552k/3382k RAM, 0k/0k ROM (1879k kernel code, 1502k data) Calibrating delay loop... 61.64 BogoMIPS (lpj=308224) Mount-cache hash table entries: 512 net_namespace: 264 bytes NET: Registered protocol family 16 init_BSP(): registering device resources bio: create slab <bio-0> at 0 NET: Registered protocol family 2 IP route cache hash table entries: 1024 (order: 0, 4096 bytes) TCP established hash table entries: 4096 (order: 3, 32768 bytes) TCP bind hash table entries: 4096 (order: 2, 16384 bytes) TCP: Hash tables configured (established 4096 bind 4096) TCP reno registered NET: Registered protocol family 1 JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc. JFFS2: default compression mode: priority io scheduler noop registered io scheduler deadline registered (default) ienable reg:100 ienable reg:108 pio_fpga_in - s ttyJ0 at MMIO 0x8004d50 (irq = 1) is a Altera JTAG UART console [ttyJ0] enabled ttyS0 at MMIO 0x8004c80 (irq = 7) is a Altera UART ttyS1 at MMIO 0x8000000 (irq = 6) is a Altera UART SLIP: version 0.8.4-NET3.019-NEWTTY (dynamic channels, max=256). 0 : New Bus ID BUG: No TSE MDIO Reset Altera TSE MII Bus: probed Found phy with ID=0x1410cc2 at address=0x12 Altera TSE MII Bus: MDIO Bus Registered eth0 (): not using net_device_ops yet eth0:Successed to register TSE net device Altera Triple Speed MAC IP Driver(v8.0) developed by SLS,August-2008,--Linux 2.6 .27-rc3 physmap platform flash device: 04000000 at 0c000000 physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank Amd/Fujitsu Extended Query Table at 0x0040 physmap-flash.0: CFI does not contain boot bank location. Assuming top. number of CFI chips: 1 cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness. cmdlinepart partition parsing not available RedBoot partition parsing not available Using physmap partition information Creating 9 MTD partitions on "physmap-flash.0": 0x000000000000-0x000002800000 : "userspace" 0x000002800000-0x000002900000 : "U-Boot" 0x000002900000-0x000002d00000 : "uImage1" 0x000002d00000-0x000003100000 : "uImage2" 0x000003100000-0x000003500000 : "uImage3" 0x000003500000-0x000003880000 : "DEFAULT_MMU" 0x000003880000-0x000003c00000 : "MAXIMUM_MMU" 0x000003c00000-0x000003f80000 : "USER_IMAGE" 0x000003f80000-0x000003fa0000 : "options-bits" TCP cubic registered NET: Registered protocol family 17 RPC: Registered udp transport module. RPC: Registered tcp transport module. Freeing unused kernel memory: 772k freed (0x1028c000 - 0x1034c000) Shell invoked to run file: /etc/rc Command: hostname uClinux Command: mount -t proc proc /proc -o noexec,nosuid,nodev Command: mount -t sysfs sysfs /sys -o noexec,nosuid,nodev Command: mount -t devpts devpts /dev/pts -o noexec,nosuid Command: mkdir /var/tmp Command: mkdir /var/log Command: mkdir /var/run Command: mkdir /var/lock Command: mkdir /var/empty Command: ifconfig lo 127.0.0.1 Command: route add -net 127.0.0.0 netmask 255.0.0.0 lo Command: ifconfig eth0 hw ether 00:07:ED:11:80:c9 Command: ifconfig eth0 192.168.100.229 Command: route add default gw 192.168.100.1 Command: mount -t jffs2 /dev/mtdblock0 /mnt Command: inetd& [28] Command: cat /etc/motd Welcome to ____ _ _ / __| ||_| _ _| | | | _ ____ _ _ _ _ | | | | | | || | _ \| | | |\ \/ / | |_| | |__| || | | | | |_| |/ | ___\____|_||_|_| |_|\____|\_/\_/ | | |_| For further information check: http://www.uclinux.org/ Sash command shell (version 1.1.1) /> --- Quote End ---