Linux Distros?

Any technical questions about the Epiphany chip and Parallella HW Platform.

Moderator: aolofsson

Linux Distros?

Postby Amiejay » Tue Apr 01, 2014 4:44 am

Hi All...

Has anyone run a Parallella board with a distro from a family other than Debian or Ubuntu?

I'm hoping for CentOS, or something substantially similar.

Thanks...

Amiejay
Amiejay
 
Posts: 28
Joined: Fri Oct 18, 2013 5:10 am
Location: Asheboro, NC

Re: Linux Distros?

Postby 9600 » Tue Apr 01, 2014 9:14 am

Amiejay wrote:Has anyone run a Parallella board with a distro from a family other than Debian or Ubuntu?

I'm hoping for CentOS, or something substantially similar.


Not that I know of, but rolling your own should be straightforward, as creating the Debian one was pretty easy. I don't know much about RPM-based distros but it looks as though RedSleeve could be a good bet.

I'd suggest getting a spare SD card and creating two partitions: a small BOOT partition and then your root partition. Format these. Grab a root filesystem archive for something such as RedSleeve, and untar that to the root filesystem. Get one of the Parallella binary image archives and untar that to the BOOT filesystem.

You don't need to worry about U-boot as that resides in flash storage. But I'd almost certainly want to have a serial console connection, so that you can see if something fails earlier on in the boot process.

Cheers,

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

Re: Linux Distros?

Postby tincman » Tue Apr 01, 2014 3:07 pm

It appears someone is getting the ball rolling on Arch Linux Arm http://github.com/archlinuxarm/PKGBUILDs/blob/master/alarm/parallella-firmware/PKGBUILD

Thanks to device trees and the similarity to the Zedboard, the parallella should boot most modern kernels. I recall Fedora being in favor of this route to support a "one kernel for many boards" approach (not sure how far they've come implementing it though).

After that, I assume it's just getting this firmware and buidling the SDK.

Actually, I just remembered this thread http://forums.parallella.org/viewtopic.php?f=48&t=932&hilit=upstream, and not sure what [minimal] patches are in Adapteva's repo. But their kernel is new enough and should work with Fedora until things get upstreamed.
User avatar
tincman
 
Posts: 8
Joined: Mon Dec 17, 2012 3:30 am
Location: CO, US

Re: Linux Distros?

Postby Amiejay » Wed Apr 02, 2014 3:13 am

Thanks 9600 & tincman.

I'll experiment until I get something working, and I'll summarize on the forums.

Amiejay
Amiejay
 
Posts: 28
Joined: Fri Oct 18, 2013 5:10 am
Location: Asheboro, NC

Re: Linux Distros?

Postby adexmont » Sat Apr 12, 2014 11:22 am

what about freeBSD ?
adexmont
 
Posts: 121
Joined: Thu Oct 24, 2013 12:58 pm

Re: Linux Distros?

Postby CIB » Sat Apr 12, 2014 5:56 pm

Hopefully arch linux arm will work on the parallella by the time I get my board, I use arch on literally all of my systems(including SoCs) and it just makes life so much simpler.
CIB
 
Posts: 108
Joined: Sat Jul 13, 2013 1:57 pm

Re: Linux Distros?

Postby 9600 » Sun Apr 13, 2014 9:41 am

adexmont wrote:what about freeBSD ?


I have a feeling that someone is looking into this.

CIB wrote:Hopefully arch linux arm will work on the parallella by the time I get my board, I use arch on literally all of my systems(including SoCs) and it just makes life so much simpler.


I haven't spent a great deal of time with Arch as yet, but it holds certain appeal. What do you find its benefits are?

Cheers,

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

Re: Linux Distros?

Postby ticso » Fri May 09, 2014 7:13 pm

9600 wrote:
adexmont wrote:what about freeBSD ?


I have a feeling that someone is looking into this.


Thomas Skibo managed to get my Parallella booting FreeBSD.
Just ignore that in some parts it's saying zedboard - I can ensure it's on a Parallella.
It is booting a secondary u-boot from the first, since the Adapteva version has missing features and risking to brick the board by updating the QSPI flash wasn't an options, since I don't have a breakout board to access the boards JTAG.
Unfortunately Thomas still has no board on its own, since he is on the preorder list for a 7010, so it slows down development process.
The Epiphany is not accessible yet.
U-Boot 2012.10-00003-g792c31c (Jan 03 2014 - 12:24:08)

I2C: ready
DRAM: 992 MiB
WARNING: Caches not enabled
MMC: SDHCI: 0
SF: Detected N25Q128 with page size 64 KiB, total 16 MiB
In: serial
Out: serial
Err: serial
Net: zynq_gem
Hit any key to stop autoboot: 0
Configuring PL and Booting Linux...
Device: SDHCI
Manufacturer ID: 89
OEM: 303
Name: NCard
Tran Speed: 50000000
Rd Block Len: 512
SD version 2.0
High Capacity: No
Capacity: 1.9 GiB
Bus Width: 4-bit
reading parallella.bit.bin

4045564 bytes read
reading uImage

144892 bytes read
reading devicetree.dtb

8667 bytes read
## Booting kernel from Legacy Image at 03000000 ...
Image Name: parallella-freebsd
Image Type: ARM Linux Kernel Image (gzip compressed)
Data Size: 144828 Bytes = 141.4 KiB
Load Address: 04000000
Entry Point: 04000000
Verifying Checksum ... OK
## Flattened Device Tree blob at 02a00000
Booting using the fdt blob at 0x02a00000
Uncompressing Kernel Image ... OK
Loading Device Tree to 1fffa000, end 1ffff1da ... OK

S

U-Boot 2014.01-00011-geff024b-dirty (May 08 2014 - 16:44:25)

I2C: ready
Memory: ECC disabled
DRAM: 992 MiB
MMC: zynq_sdhci: 0
Using default environment

In: serial
Out: serial
Err: serial
Net: Gem.e000b000
Hit any key to stop autoboot: 0
Booting FreeBSD from SD...
Device: zynq_sdhci
Manufacturer ID: 89
OEM: 303
Name: NCard
Tran Speed: 50000000
Rd Block Len: 512
SD version 2.0
High Capacity: No
Capacity: 1.9 GiB
Bus Width: 4-bit
reading ubldr
249175 bytes read in 43 ms (5.5 MiB/s)
reading parallella.dtb
2632 bytes read in 13 ms (197.3 KiB/s)
## Starting application at 0x00080054 ...
Consoles: U-Boot console
Compatible U-Boot API signature found @3db4e2f8

FreeBSD/armv6 U-Boot loader, Revision 1.2
(skibo@piedmont, Fri Apr 11 12:34:51 PDT 2014)

DRAM: 992MB
Number of U-Boot devices: 2
U-Boot env: loaderdev not set, will probe all devices.
Found U-Boot device: disk
Probing all disk devices...
Checking unit=0 slice=<auto> partition=<auto>... good.
-
/boot/kernel/kernel data=0x4b6bc8+0x2d438 syms=[0x4+0x793f0+0x4+0x4b06f]
Hit [Enter] to boot immediately, or any other key for command prompt.
Booting [/boot/kernel/kernel]...
Using DTB provided by U-Boot at address 0x0x1000.
Kernel entry at 0x100100...
Kernel args: (null)
KDB: debugger backends: ddb
KDB: current backend: ddb
Copyright (c) 1992-2014 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 11.0-CURRENT #0 r264766M: Tue Apr 22 09:29:31 PDT 2014
skibo@piedmont:/usr/obj/arm.armv6/usr/src/sys/ZEDBOARD arm
FreeBSD clang version 3.4 (tags/RELEASE_34/final 197956) 20140216
CPU: Cortex A9-r3 rev 0 (Cortex-A core)
Supported features: ARM_ISA THUMB2 JAZELLE THUMBEE ARMv4 Security_Ext
WB disabled EABT branch prediction enabled
LoUU:2 LoC:1 LoUIS:2
Cache level 1:
32KB/32B 4-way data cache WB Read-Alloc Write-Alloc
32KB/32B 4-way instruction cache Read-Alloc
real memory = 1072693248 (1023 MB)
avail memory = 1041203200 (992 MB)
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
random device not loaded; using insecure entropy
random: <Software, Yarrow> initialized
ofwbus0: <Open Firmware Device Tree>
simplebus0: <Flattened device tree simple bus> on ofwbus0
zy7_slcr0: <Zynq-7000 slcr block> mem 0-0xfff on simplebus0
gic0: <ARM Generic Interrupt Controller> mem 0xf01000-0xf01fff,0xf00100-0xf001ff on simplebus0
gic0: pn 0x390, arch 0x1, rev 0x2, implementer 0x43b sc->nirqs 96
l2cache0: <PL310 L2 cache controller> mem 0xf02000-0xf02fff irq 34 on simplebus0
l2cache0: Part number: 0x3, release: 0x8
l2cache0: L2 Cache: 512KB/32B 8 ways
l2cache0: L2 Cache enabled
zy7_devcfg0: <Zynq devcfg block> mem 0x7000-0x7fff irq 40 on simplebus0
mp_tmr0: <ARM MPCore Timers> mem 0xf00200-0xf002ff,0xf00600-0xf0061f irq 27,29 on simplebus0
Timecounter "MPCore" frequency 333333333 Hz quality 800
Event timer "MPCore" frequency 333333333 Hz quality 1000
simplebus1: <Flattened device tree simple bus> on ofwbus0
uart0: <Cadence UART> mem 0x1000-0x1fff irq 82 on simplebus1
uart0: console (115200,n,8,1)
zy7_gpio0: <Zynq-7000 GPIO driver> mem 0xa000-0xafff irq 52 on simplebus1
gpioc0: <GPIO controller> on zy7_gpio0
gpiobus0: <GPIO bus> on zy7_gpio0
cgem0: <Cadence CGEM Gigabit Ethernet Interface> mem 0xb000-0xbfff irq 54,55 on simplebus1
miibus0: <MII bus> on cgem0
ukphy0: <Generic IEEE 802.3u media interface> PHY 0 on miibus0
ukphy0: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, auto
cgem0: Ethernet address: 04:4f:8b:00:00:00
sdhci_fdt0: <Zynq-7000 generic fdt SDHCI controller> mem 0x101000-0x101fff irq 79 on simplebus1
sdhci_fdt0: 1 slot(s) allocated
mmc0: <MMC/SD bus> on sdhci_fdt0
ehci0: <Zynq-7000 EHCI USB 2.0 controller> mem 0x2000-0x2fff irq 53 on simplebus1
usbus0: EHCI version 1.0
usbus0: stop timeout
usbus0: set host controller mode
usbus0 on ehci0
ehci1: <Zynq-7000 EHCI USB 2.0 controller> mem 0x3000-0x3fff irq 76 on simplebus1
usbus1: EHCI version 1.0
usbus1: stop timeout
usbus1: set host controller mode
usbus1 on ehci1
Timecounters tick every 10.000 msec
usbus0: 480Mbps High Speed USB v2.0
usbus1: 480Mbps High Speed USB v2.0
ugen1.1: <Xilinx> at usbus1
uhub0: <Xilinx EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus1
ugen0.1: <Xilinx> at usbus0
uhub1: <Xilinx EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus0
mmcsd0: 2GB <SD NCard 1.0 SN 678468291 MFG 11/2010 by 137 0x0303> at mmc0 48.0MHz/4bit/65535-block
random: unblocking device.
Release APs
Root mount waiting for: usbus1 usbus0
uhub1: 1 port with 1 removable, self powered
uhub0: 1 port with 1 removable, self powered
Trying to mount root from ufs:/dev/mmcsd0s2a [rw,noatime]...
warning: no time-of-day clock registered, system time will not be set accurately
Setting hostuuid: 7733595d-ca40-11e3-ac7a-044f8b000000.
Setting hostid: 0xb4feafb9.
No suitable dump device was found.
Entropy harvesting: interrupts ethernet point_to_point swi.
Starting file system checks:
/dev/mmcsd0s2a: FILE SYSTEM CLEAN; SKIPPING CHECKS
/dev/mmcsd0s2a: clean, 32835 free (19 frags, 4102 blocks, 0.0% fragmentation)
Mounting local file systems:.
Writing entropy file:.
Setting hostname: zedboard.
cgem0: link state changed to UP
Starting Network: lo0 cgem0.
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
inet 127.0.0.1 netmask 0xff000000
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
cgem0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=68008b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
ether 04:4f:8b:00:00:00
media: Ethernet autoselect (1000baseT <full-duplex>)
status: active
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
Starting devd.
Starting dhclient.
DHCPDISCOVER on cgem0 to 255.255.255.255 port 67 interval 8
DHCPOFFER from 10.1.1.4
DHCPREQUEST on cgem0 to 255.255.255.255 port 67
DHCPACK from 10.1.1.4
bound to 10.1.1.148 -- renewal in 42184 seconds.
Starting pflogd:
add net fe80::: gateway ::1
add net ff02::: gateway ::1
add net ::ffff:0.0.0.0: gateway ::1
add net ::0.0.0.0: gateway ::1
Creating and/or trimming log files.
Setting date via ntp.
9 May 02:56:43 ntpdate[408]: step time server 98.111.131.98 offset 336.967147 sec
ELF ldconfig path: /lib /usr/lib /usr/lib/compat
Starting casperd.
Clearing /tmp (X related).
Updating motd:.
Mounting late file systems:.
Performing sanity check on sshd configuration.
Starting sshd.
Starting background file system checks in 60 seconds.

Fri May 9 02:56:47 UTC 2014

FreeBSD/arm (zedboard) (ttyu0)

login:
ticso
 
Posts: 41
Joined: Mon Dec 17, 2012 3:22 am
Location: Germany, Moers

Re: Linux Distros?

Postby ZenoArrow » Sat May 17, 2014 11:12 am

9600 wrote:I haven't spent a great deal of time with Arch as yet, but it holds certain appeal. What do you find its benefits are?


I can't speak for CIB, but in my opinion it's probably the easiest distro to use if you want to stay on the cutting edge of Linux development (prompt package releases including community supported repos, good documentation, community that encourages self-learning). However, it's been a few years since I last used Arch so I couldn't say for sure if this is all still true.
ZenoArrow
 
Posts: 38
Joined: Thu Jan 10, 2013 6:10 pm


Return to Epiphany and Parallella Q & A

Who is online

Users browsing this forum: No registered users and 3 guests