Parallella Ubuntu 14.04 release

Forum about Parallella boot process, linux kernel, distros, SD-cards, etc.

Re: Parallella Ubuntu 14.04 release

Postby pagro » Wed Jul 23, 2014 11:34 pm

Hi,

I'm writing this post from my parallela running Ubuntu 14.04.
System runs faster then the last unmodified version, but not as smooth as after applying the ubuntu tips.
Some annoying "features" still exists:
Poor video performance, won't play a video on youtube without troubles
No audio!
Can't change my keyboard layout without using the console an searching for the right commands
the clock is showing the wrong time (wrong timezone?) and i don't know how to fix it

planned to use my parallela a little multimedia station but currently that's not even working a little bit
any chances that the will ever change?
pagro
 
Posts: 1
Joined: Mon Dec 17, 2012 3:21 am
Location: Austria

Re: Parallella Ubuntu 14.04 release

Postby 9600 » Thu Jul 24, 2014 9:01 am

pagro wrote:planned to use my parallela a little multimedia station but currently that's not even working a little bit
any chances that the will ever change?


You need to remember that, at present, the Parallella has no GPU and only a simple framebuffer — hence video performance is not going to be on par with a desktop, laptop or even a smartphone with a GPU. However, it would be possible to implement some GPU type functionality in the FPGA and/or on the Epiphany. At this point I'm not aware of any plans to implement something along those lines, but it strikes me as the sort of interesting problem that someone in the community may take on at some point.

Regards,

Andrew
Andrew Back (a.k.a. 9600 / carrierdetect)
User avatar
9600
 
Posts: 997
Joined: Mon Dec 17, 2012 3:25 am

Re: Parallella Ubuntu 14.04 release

Postby maynarde » Sat Jul 26, 2014 12:29 am

so trying the hdmi versions of everything.

connecting to my network using ics in windows 7. the parallella should be 192.168.137.1
Using MobaXterm SSH session I get a connection refused on port 22.

Thoughts?

The hardware to get the keyboard and monitor working arrive next week so I might be able to shed more light on the matter then. Still no blinking LED to indicate getting past the boot sequence. :-(
maynarde
 
Posts: 24
Joined: Sat Jul 19, 2014 8:26 pm

Re: Parallella Ubuntu 14.04 release

Postby maynarde » Sat Jul 26, 2014 12:49 am

So I went back and hooked up to the UART - now it hangs after uncompressing Linux and booting Linux. A backward step from the headless configuration. Is it looking for hdmi?
maynarde
 
Posts: 24
Joined: Sat Jul 19, 2014 8:26 pm

Re: Parallella Ubuntu 14.04 release

Postby ajtravis » Sat Jul 26, 2014 1:13 am

maynarde wrote:So I went back and hooked up to the UART - now it hangs after uncompressing Linux and booting Linux. A backward step from the headless configuration. Is it looking for hdmi?

Hi, maynarde.
It's not hanging, it's redirecting console output to the HDMI display...
If you want to use the UART to display console messages you have to recompile the device tree in the /BOOT partition:
Code: Select all
sudo -i
mount /dev/mmcblk0p1 /mnt
cd /mnt
cp devicetree.dtb devicetree.dtb.bak
dtc -I dtb -O dts -o devicetree.dts devicetree.dtb
vim devicetree.dts
...
bootargs = "console=ttyPS0,115200 root=/dev/mmcblk0p2 rw rootfstype=ext4 rootwait";
...
dtc -I dts -O dtb -o devicetree.dtb devicetree.dts

This will also start a root shell on the serial port after booting the kernel.

HTH,

Tony.

[BTW, I'm posting this message from my Parallella HDMI Desktop with USB working after several reboots]
Minke Informatics Limited, Registered in Scotland - Company No. SC419028
User avatar
ajtravis
 
Posts: 160
Joined: Fri Jul 18, 2014 12:54 pm
Location: Scotland (UK)

Re: Parallella Ubuntu 14.04 release

Postby maynarde » Sat Jul 26, 2014 2:02 am

Thanks ajtravis. I suspected this but I have gotten used to the console always being there (my trusted friend). Looks like I'll just wait until I get my hardware to try again. By the way, did you build your ubuntu image from the directions on Github? I was also going to go down that path rather than the "lazy" windows option I've been using. Thanks for the help!

Ed
maynarde
 
Posts: 24
Joined: Sat Jul 19, 2014 8:26 pm

Re: Parallella Ubuntu 14.04 release

Postby ajtravis » Sun Jul 27, 2014 11:50 pm

maynarde wrote:Thanks ajtravis. I suspected this but I have gotten used to the console always being there (my trusted friend). Looks like I'll just wait until I get my hardware to try again. By the way, did you build your ubuntu image from the directions on Github? I was also going to go down that path rather than the "lazy" windows option I've been using. Thanks for the help!

Hi, Ed.

I did this on my Ubuntu 14.04 LTS laptop "beluga":
Code: Select all
# uncompress filesystem image
root@beluga:~#
cd /home/ajt/Downloads/Paralella
gunzip -k ubuntu-14.04-140611.img.gz

# copy image to SD card
dd bs=64k if=ubuntu-14.04-140611.img of=/dev/mmcblk0

# check partitions
parted /dev/mmcblk0 -- print
Model: SD SU16G (sd/mmc)
Disk /dev/mmcblk0: 15.9GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start   End     Size    Type     File system  Flags
 1      1049kB  135MB   134MB   primary  fat32
 2      135MB   7475MB  7340MB  primary  ext4

# head node - copy HDMI kernel and FPGA boot files to uSD card
mount /dev/mmcblk0p1 /mnt
tar -zxvf kernel-hdmi-140603.tgz -C /mnt
cp parallella_e16_hdmi_gpiose_7010.bit.bin /mnt/parallella.bit.bin

# headless worker nodes - copy kernel and FPGA boot files to uSD card
#tar -zxvf kernel-headless-default.tgz -C /mnt
#cp -a parallella_e16_headless_gpiose_7010.bit.bin /mnt/parallella.bit.bin

# update device tree
aptitude install device-tree-compiler
mount /dev/mmcblk0p1 /mnt
cd /mnt
cp devicetree.dtb devicetree.dtb.bak
dtc -I dtb -O dts -o devicetree.dts devicetree.dtb
vim devicetree.dts
...
bootargs = "console=ttyPS0,115200 root=/dev/mmcblk0p2 rw rootfstype=ext4 rootwait";
...
dtc -I dts -O dtb -o devicetree.dtb devicetree.dts

# unmount and remove uSD card
cd
umount /mnt

Then, insert the uSD card in a Parallella and boot.

This is the patch for my HDMI devicetree dts:
Code: Select all
--- devicetree.dts.bak   2014-07-28 22:01:00.343048608 +0100
+++ devicetree.dts   2014-07-28 21:59:32.051050923 +0100
@@ -302,7 +302,7 @@
    };
 
    chosen {
-      bootargs = "root=/dev/mmcblk0p2 rw rootfstype=ext4";
+      bootargs = "console=ttyPS0,115200 root=/dev/mmcblk0p2 rw rootfstype=ext4 rootwait";
       linux,stdout-path = "/amba@0/uart@E0001000";
    };

This is the patch for my headless devicetree dts:
Code: Select all
--- devicetree.dts.bak   2014-07-28 22:08:48.667036332 +0100
+++ devicetree.dts   2014-07-28 21:57:15.543054501 +0100
@@ -302,7 +302,7 @@
    };
 
    chosen {
-      bootargs = "console=ttyPS0,115200 root=/dev/mmcblk0p2 rw earlyprintk rootfstype=ext4 rootwait devtmpfs.mount=0";
+      bootargs = "console=ttyPS0,115200 root=/dev/mmcblk0p2 rw rootfstype=ext4 rootwait";
       linux,stdout-path = "/amba@0/uart@E0001000";
    };
 };

These changes enable the serial console and prevent the console getty respawning too fast errors from happening.

HTH,

Tony.
Minke Informatics Limited, Registered in Scotland - Company No. SC419028
User avatar
ajtravis
 
Posts: 160
Joined: Fri Jul 18, 2014 12:54 pm
Location: Scotland (UK)

Re: Parallella Ubuntu 14.04 release

Postby maynarde » Sat Aug 02, 2014 12:15 am

Thanks for the input. Got all the extra hardware for HDMI and it boots to the screen but my keyboard and mouse no bueno. Going to look through the forum to see if anyone has a suggestion. Both devices check out as good so probably on the parallella side. Getting closer!
maynarde
 
Posts: 24
Joined: Sat Jul 19, 2014 8:26 pm

Re: Parallella Ubuntu 14.04 release

Postby maynarde » Sat Aug 02, 2014 2:26 am

we have liftoff! Things learned so far: 1) USB not always boot (see that around the forums), 2) powered hub is probably the least painful way to go - it makes pretty much any mouse and keyboard work, especially if your keyboard is also a USB hub, 3) SSH is already installed as someone told me above, 4) the lack of a gui means that the LDXE screen isn't as responsive as you may be used to so be patient after mouse clicks. I'm off to try headless :lol:
maynarde
 
Posts: 24
Joined: Sat Jul 19, 2014 8:26 pm

Re: Parallella Ubuntu 14.04 release

Postby maynarde » Sat Aug 02, 2014 9:06 pm

Final post. It all works flawlessly in a headless configuration. the trick for a windoze environment is to use AngryIP Scanner to find the ip address of the parallella. Make sure to scan 192.168.xxx.xxx AND 192.168.137.xxx The latter is if you use Internet connection sharing (ICS) through a laptop or something that is attached to your wireless network. The downloads provided already have a vnc server and an ssh server ready to go.

Thanks to everyone who provided help during this process!

Enjoy! :D
maynarde
 
Posts: 24
Joined: Sat Jul 19, 2014 8:26 pm

PreviousNext

Return to Linux/U-Boot

Who is online

Users browsing this forum: No registered users and 1 guest

cron