DE0 Nano uclinux

6 views
Skip to first unread message

Charles Manning

unread,
Aug 10, 2011, 7:17:23 PM8/10/11
to Christchurch robotics FPGA

They'll be using ucLinux because full-fat Linux requires a MMU.

http://www.ccm.ece.vt.edu/twiki/bin/view/Main/LinuxOnNIOS2InstallationDE0Nano

Michael Field

unread,
Aug 11, 2011, 5:37:14 AM8/11/11
to christchurch-...@googlegroups.com
Wayhoo! Thanks for the inspiration!

If anybody is using Windows, and want to get it up and running real quick using a prebuilt configuration...

Download 'DE0-nano.sof' and 'zImage' from http://www.ccm.ece.vt.edu/usvn/svn/alteraApps/trunk/uClinux/precompiled/DE0-Nano/

Launch "Nios II 11.0sp1 Command Shell" (or equivalent version)

bash-3.1$ nios2-configure-sof /cygdrive/c/Users/<username>/Downloads/DE0_Nano.sof
...

bash-3.1$ nios2-download -g /cygdrive/c/Users/
<username>/Downloads/zImage
...
bash-3.1$ nios2-terminal.sh
nios2-terminal: connected to hardware target using JTAG UART on cable
nios2-terminal: "USB-Blaster [USB-0]", device 1, instance 0
nios2-terminal: (Use the IDE stop button or Ctrl-C to terminate)

Uncompressing Linux... Ok, booting the kernel.
Linux version 2.6.30 (tannous@ccm14) (gcc version 3.4.6) #2 PREEMPT Tue Mar 29 1
3:33:35 EDT 2011


uClinux/Nios II
Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 8128
Kernel command line:
NR_IRQS:32
PID hash table entries: 128 (order: 7, 512 bytes)
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Memory available: 30812k/1659k RAM, 0k/0k ROM (937k kernel code, 722k data)
Calibrating delay loop... 48.94 BogoMIPS (lpj=244736)
Mount-cache hash table entries: 512
init_BSP(): registering device resources
bio: create slab <bio-0> at 0
io scheduler noop registered
io scheduler deadline registered (default)
ttyJ0 at MMIO 0x4001030 (irq = 1) is a Altera JTAG UART
console [ttyJ0] enabled
Freeing unused kernel memory: 576k freed (0x210e000 - 0x219d000)
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: mount -t usbfs none /proc/bus/usb
mount: mounting none on /proc/bus/usb failed: No such file or directory
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
ifconfig: socket: Function not implemented
Command: route add -net 127.0.0.0 netmask 255.0.0.0 lo
route: socket: Function not implemented
Command: cat /etc/motd
Welcome to
          ____ _  _
         /  __| ||_|
    _   _| |  | | _ ____  _   _  _  _
   | | | | |  | || |  _ \| | | |\ \/ /
   | |_| | |__| || | | | | |_| |/    \
   |  ___\____|_||_|_| |_|\____|\_/\_/
   | |
   |_|

For further information check:
http://www.uclinux.org/

Execution Finished, Exiting

Sash command shell (version 1.1.1)
/>

Michael Field

unread,
Sep 22, 2011, 8:28:42 PM9/22/11
to christchurch-...@googlegroups.com
Finally after a full night of pratting around and a lot of Internet
bandwidth I have got the following combination working:

- Quartus 11.0sp1
- Fedora 14 x64
- All running in Virtual Box

I can now build a full set of SPOC hardware and zImage from source. Big
problem was you need 'make-3.81' from Fedora 13 for it to work.

If anybody wants a copy of the VM let me know - it's about 40GB.

Mike

On 11/08/2011 11:17 a.m., Charles Manning wrote:

Michael Field

unread,
Sep 23, 2011, 6:50:19 AM9/23/11
to christchurch-...@googlegroups.com
Hi,

I've finished my write-up on how to get it working at
http://ec2-122-248-210-243.ap-southeast-1.compute.amazonaws.com/mediawiki/index.php/UClinux_for_Terasic_DE0-nano_on_Fedora_14,
if anybody wants to "give it a go".

Be warned, the 'svn' checkout is about 1.8GB....

Mike


>
>

Mark Atherton

unread,
Sep 23, 2011, 1:55:43 PM9/23/11
to christchurch-...@googlegroups.com
That is very impressive !

--- On Fri, 23/9/11, Michael Field <ham...@snap.net.nz> wrote:
Reply all
Reply to author
Forward
0 new messages