parallella / parabuntu

Official Ubuntu distro for Parallella
MIT License
123 stars 43 forks source link

No longer possible to download packages for ubuntu vivid #13

Open mschaaf opened 6 years ago

mschaaf commented 6 years ago

Installing tools from the Ubuntu repos seems no longer possible. I get the following error message on "apt update"

W: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/vivid-updates/main/binary-armhf/Packages 404 Not Found [IP: 91.189.88.150 80]

Is there an updated Parabuntu? Or is it possible to upgrade the image myself?

mgrecki commented 6 years ago

It seems that vivid version of Ubuntu is no longer supported. If the parabuntu maintainer does not prepare new version it will stay like that. I have made dirty hack by edit /etc/sources.list file exchanging "vivid" to "xenial". At least for my case it works and I could install few packages I need (e.g. mc, gnuplot). There were no essential errors during update and installation. Maybe that helps you as well?

diveyez commented 6 years ago

I cant even get into the ssh for my board.

diveyez commented 6 years ago

login as: parallella parallella@192.168.56.1's password: Access denied parallella@192.168.56.1's password: (LOCAL ETH DIRECTLY PLUGGED INTO LAPTOP ONLY)

mgrecki commented 6 years ago

can you connect using serial? Anyway, it is almost impossible to not be able to login into standard distribution using standard account and password... check whether you really boot the right image and connect to the right network node, however looking to ssh output you did well.... You can also try to mount the sd card in your laptop directly and remove parallella password from /etc/shadow and then try to log in again.

tslpre commented 6 years ago

I have done the upgrade from "vivid" to "xenial" and had my system working fine. Then I have upgraded to "bionic" two days ago and it worked fine as well. No issues found during the process. Next step should be to update the kernel...

marcofranchimoretti commented 6 years ago

Welcome at all, i think this posts can help. https://askubuntu.com/questions/428698/are-there-alternative-repositories-to-ports-ubuntu-com-for-arm ^_^

agent001 commented 6 years ago

Comment out all existing release links and add below in the file /etc/apt/sources.list

deb http://old-releases.ubuntu.com/ubuntu/ubuntu-ports/ vivid main universe deb-src http://old-releases.ubuntu.com/ubuntu/ubuntu-ports/ vivid main universe deb http://old-releases.ubuntu.com/ubuntu/ubuntu-ports/ vivid-security main universe deb http://old-releases.ubuntu.com/ubuntu/ vivid main restricted deb-src http://old-releases.ubuntu.com/ubuntu/ vivid main restricted deb http://old-releases.ubuntu.com/ubuntu/ vivid-updates main restricted deb-src http://old-releases.ubuntu.com/ubuntu/ vivid-updates main restricted deb http://old-releases.ubuntu.com/ubuntu/ vivid universe deb-src http://old-releases.ubuntu.com/ubuntu/ vivid universe deb http://old-releases.ubuntu.com/ubuntu/ vivid-updates universe deb-src http://old-releases.ubuntu.com/ubuntu/ vivid-updates universe deb http://old-releases.ubuntu.com/ubuntu/ vivid multiverse deb-src http://old-releases.ubuntu.com/ubuntu/ vivid multiverse deb http://old-releases.ubuntu.com/ubuntu/ vivid-updates multiverse deb-src http://old-releases.ubuntu.com/ubuntu/ vivid-updates multiverse deb http://old-releases.ubuntu.com/ubuntu/ vivid-backports main restricted universe multiverse deb-src http://old-releases.ubuntu.com/ubuntu/ vivid-backports main restricted universe multiverse

tslpre commented 6 years ago

After almost four months of Parallella working on Bionic, I can confirm that the upgrade path worked perfectly... what @agent001 mentioned in the previous post (about using the "old-releases.ubuntu.com") is important as it will allow the update from an unsupported version to another unsupported one.

njpacoma commented 6 years ago

tslpre, would you be willing to provide guidance regarding how you upgraded the Parallella to bionic? I would like to do that myself. Do you have the ability to still program for the Epiphany?

tslpre commented 6 years ago

@njpacoma being the current version (Vivid) not supported anymore, you need to update the sources.list manually so you can update to xenial (that is a LTS) and then from there you can update to Bionic (that is the following LTS). Have a look at the answer at: https://askubuntu.com/questions/91815/how-to-install-software-or-upgrade-from-an-old-unsupported-release

That's basically what you should do :)

Let me know if you need more details.

njpacoma commented 6 years ago

Thanks, tslpre, I managed to upgrade to Bionic. There were a bunch of pitfalls along the way and I am not sure I could easily reproduce the steps without working through the process again and working out how I got around those pitfalls. I tried a couple of the parallella examples and they seem to still work. Appreciate the pointer.

agent001 commented 6 years ago

I upgraded to Bionic after

1) partition size increase using https://linuxconfig.org/how-to-resize-ext4-root-partition-live-without-umount 2) From vivid => wily, wily=> xenial following this https://linuxconfig.org/how-to-upgrade-to-ubuntu-18-04-lts-bionic-beaver#h9-how-to-upgrade-ubuntu-the-debian-way 3) xenial => bionic using standard do-release-upgrade

The source list produced by https://repogen.simplylinux.ch/generate.php was useful. And I had to manually update the vivid source list a) sudo sed -i 's/vivid/xenial/g' /etc/apt/sources.list b) for i in find /etc/apt/sources.list.d/ -type f | xargs grep vivid -l;do sudo sed -i 's/vivid/xenial/g' $i;done

boneoh commented 5 years ago

Is there an image file that I can download?

I'm far from a linux guru, this is way out of my pay grade.

njpacoma commented 5 years ago

boneoh, do you have the desktop or the server? do you have more than one?

I am not sure that the kernel after the upgrade is the latest Ubuntu kernel or if it has been kept back because it was a custom build. The uname command shows

Linux parallella-1 4.6.0+ #1 SMP PREEMPT Wed Dec 7 13:27:40 CET 2016 armv7l armv7l armv7l GNU/Linux

This is what is in the /etc/os-release file

NAME="Ubuntu" VERSION="18.04.1 LTS (Bionic Beaver)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 18.04.1 LTS" VERSION_ID="18.04" HOME_URL="https://www.ubuntu.com/" SUPPORT_URL="https://help.ubuntu.com/" BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy" VERSION_CODENAME=bionic UBUNTU_CODENAME=bionic

If you are looking for the latest and greatest kernel, this won't give it to you. I upgraded because some of the software I wanted to install was no longer available.

boneoh commented 5 years ago

Hi, Ted!

Thank you very much for taking the time to help me.

Here is the uname output:

Linux parallella 4.6.0+ #1 SMP PREEMPT Wed Dec 7 13:27:40 CET 2016 armv7l armv7l armv7l GNU/Linux

Here NAME="Ubuntu" VERSION="15.04 (Vivid Vervet)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 15.04" VERSION_ID="15.04" HOME_URL="http://www.ubuntu.com/" SUPPORT_URL="http://help.ubuntu.com/" BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"

So it looks like my output matches your examples.

Please forgive my ignorance. I’m a computer guy, but not much exposure to linux. Mostly as a user for Raspberry Pi. I’m looking at Parallella as a possible fit for an embedded processor. I’d like to use the Parallella for video image processing.

If you have the time, would you mind answering a couple of questions?

Sudo apt-get update, upgrade, etc. seem to fail because of being so out of date. Is the correct approach to install the latest parabuntu? I’m clueless as to what to try next.

I am guessing that the Parallella requires a customized version of linux in order to support the hardware?

I would really like to get this up and going, it seems like such an awesome device. I ran a bunch of the examples, this seems like a good solution for my needs.

Thanks again for your help!

Regards,

Pete

On Feb 13, 2019, at 7:37 PM, Ted Swoyer notifications@github.com wrote:

boneoh, do you have the desktop or the server? do you have more than one?

I am not sure that the kernel after the upgrade is the latest Ubuntu kernel or if it has been kept back because it was a custom build. The uname command shows

Linux parallella-1 4.6.0+ #1 https://github.com/parallella/parabuntu/issues/1 SMP PREEMPT Wed Dec 7 13:27:40 CET 2016 armv7l armv7l armv7l GNU/Linux

This is what is in the /etc/os-release file

NAME="Ubuntu" VERSION="18.04.1 LTS (Bionic Beaver)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 18.04.1 LTS" VERSION_ID="18.04" HOME_URL="https://www.ubuntu.com/ https://www.ubuntu.com/" SUPPORT_URL="https://help.ubuntu.com/ https://help.ubuntu.com/" BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/ https://bugs.launchpad.net/ubuntu/" PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy https://www.ubuntu.com/legal/terms-and-policies/privacy-policy" VERSION_CODENAME=bionic UBUNTU_CODENAME=bionic

If you are looking for the latest and greatest kernel, this won't give it to you. I upgraded because some of the software I wanted to install was no longer available.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/parallella/parabuntu/issues/13#issuecomment-463462912, or mute the thread https://github.com/notifications/unsubscribe-auth/AJnHKfYyLY1bCASGaS3fRRVymUs-2yaQks5vNMvTgaJpZM4RPnLC.

tslpre commented 5 years ago

@boneoh - what @njpacoma said above is correct - when you update to a new Ubuntu version, the old kernel will stay there. This doesn't mean that it won't work, but if you need to do something that requires support for a specific hardware or functionality, you will need a newer one. As I'm playing with docker, I have compiled a new one.

As commented on my post above, compiling the kernel was the last missing piece to have a fully updated ubuntu.

Let me share how I did it, step by step: `mkdir /home/yourprofile/kernel # create a folder somewhere to store the kernel to be compiled

cd kernel git clone git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git # download the kernel sources

cd linux-stable-rc git tag -l | less #this command is optional - it will allow you to see with versions you can choose

git checkout -b stable v4.9.99 #I'm using the version 4.9.99 right now

now you should customize the kernel config - I will attach here the version I'm using - just decompress it in the same folder you are currently: /home/yourprofile/kernel/linux-stable-rc

kernel_config.tar.gz

make -j 4 LOADADDR=0x8000 make -j 4 LOADADDR=0x8000 uImage make -j 4 LOADADDR=0x8000 zynq-parallella-headless-noelink.dtb make CFLAGS_MODULE=-fno-pic -j 4 LOADADDR=0x8000 modules export MODULES_INSTALL_DIR=$PWD/modules export HEADERS_INSTALL_DIR=$PWD/headers make -j 4 LOADADDR=0x8000 INSTALL_MOD_PATH=$MODULES_INSTALL_DIR modules_install make -j 4 LOADADDR=0x8000 INSTALL_HDR_PATH=$HEADERS_INSTALL_DIR headers_install

sudo mount /dev/mmcblk0p1 /mnt #mounting the partition with the current kernel cd /mnt sudo cp uImage uImage.old #create a copy of the original kernel, just in case sudo cp /home/yourprofile/kernel/linux-stable-rc/arch/arm/boot/uImage . #copying the new kernel image cd /lib/modules/ sudo cp -a /home/yourprofile/kernel/linux-stable-rc/modules/lib/modules/4.9.99/ .`

Then you can reboot and you should have the new kernel...

njpacoma commented 5 years ago

@boneoh, please send your email address to tswoyer at gmail.com and I will send you a link to a downloadable image.

boneoh commented 5 years ago

@njpacoma Thank you so much for the image, Ted! I was able to setting up a static IP and a few other things to get going. I've backed up the image so I can experiment!

@tslpre I am in the process of following your recipe above! Thanks for posting that.

After that, I hope to run all of the examples.

boneoh commented 5 years ago

@tslpre I've done the git ok, and downloaded kernel config. I've never built the kernel before, sounds a bit intimidating!

Out of curiosity, I looked at the config file, I didn't realize that there are so many options!

A little background, I am working with parallella at home, but there may be use for this in my work environment. Think of parallella as an embedded processor for medical imaging. So this would need HDMI, Bluetooth, and Wifi (using USB adapters).

So before I build the kernel, I'd like to know how to check the config to make sure the appropriate settings are in there. Is there somewhere I can lookup these?

I was surprised to see config options for Health related stuff like temperature, humidity, heart rate, etc. I'd like to learn more about them as well.

I'm also interested in the Kinect demo, it looks fun. I think we could use this to create maps of rooms to help with object tracking.

boneoh commented 5 years ago

Thanks again for the help.

Mr. Google has found this for me https://help.ubuntu.com/lts/installation-guide/s390x/ch08s06.html

boneoh commented 5 years ago

Looks like I may be missing a file or ?

parallella@master_cylinder:~/kernel/linux-stable-rc$ make -j 4 LOADADDR=0x8000 zynq-parallella-headless-noelink.dtb make[1]: No rule to make target 'arch/arm/boot/dts/zynq-parallella-headless-noelink.dtb'. Stop. arch/arm/Makefile:336: recipe for target 'zynq-parallella-headless-noelink.dtb' failed make: [zynq-parallella-headless-noelink.dtb] Error 2**

Any guidance is greatly appreciated! Thanks,

Pete

tslpre commented 5 years ago

@boneoh the file .dtb is a "Device Tree file - if you mount /dev/mmcblk0p1 to a temporary folder (for example: sudo mount /dev/mmcblk0p1 /mnt) you will see that you will find a file called devicetree.dtb - that is the standard one - please use that one.

The one I was referring to (zynq-parallella-headless-noelink.dtb) it's a custom one - my bad, I should have mentioned the standard one in my post.

With that change in mind, you should be able to build everything properly :)

boneoh commented 5 years ago

@tslpre Thanks again for your help! The device tree change got me passed the problem. I am now up and running with the 4.9.99 kernel!

Regards,

Pete

boneoh commented 5 years ago

It seems like something is missing. I get the "EPIPHANY_DEV file open failure" message when trying to run the eprime example. I'm not sure how to dig further on this.

Welcome to Ubuntu 18.04.2 LTS (GNU/Linux 4.9.99 armv7l)

Last login: Mon Mar 4 00:19:47 2019 from 192.168.0.10 parallella@master_cylinder:~$ cd parallella-examples/eprime parallella@master_cylinder:~/parallella-examples/eprime$ ./build.sh src/prime.c: In function ‘main’: src/prime.c:59:2: warning: implicit declaration of function ‘e_load_group’; did you mean ‘e_start_group’? [-Wimplicit-function-declaration] e_load_group("e_prime.elf", &dev, 0, 0, platform.rows, platform.cols, E_FALSE); ^~~~ e_start_group parallella@master_cylinder:~/parallella-examples/eprime$ ./run.sh prime.elf: e_reset_system(): EPIPHANY_DEV file open failure. prime.elf: e_open(): EPIPHANY_DEV file open failure. ./run.sh: line 8: 2102 Segmentation fault (core dumped) ./prime.elf ${PRIMES_PER_CORE}

Not sure if this is helpful: dmesg.txt

Thanks!

Pete

njpacoma commented 5 years ago

Hi Pete.

I have not yet tried to build a new kernel so my Ubuntu 18.04 LTS platform still has the old kernel. If I recall correctly, there were some changes between the first parabuntu release and the last parabuntu release that required changes to many of the programs.

That said, make sure that these lines are at the bottom of the .bashrc file in the login directory you are using:

export PATH=/usr/local/browndeer/bin:$PATH export LD_LIBRARY_PATH=/usr/local/browndeer/lib:/usr/local/lib:$LD_LIBRARY_PATH export PATH=/opt/openmpi/bin:$PATH export LD_LIBRARY_PATH=/opt/openmpi/lib:$LD_LIBRARY_PATH export EPIPHANY_HOME=/opt/adapteva/esdk [ -e $EPIPHANY_HOME ] && . $EPIPHANY_HOME/setup.sh || echo Epiphany SDK not installed. export EPYTHONPATH=$EPYTHONPATH:/usr/local/include/epython/modules:/home/parau/epython

These are needed to get all the correct modules, libraries, and includes.

Next, try my working copy of eprime2, attached to this email.

Untar it somewhere under the login directory. Change into the eprime2 directory. There is a build.sh which will build the executable and there is a run.sh which will run the built program -- run.sh takes a number as an argument (not optional) -- start with 1000000 (1 million) and you can try going up from there although there is a limit because of the size of an integer on the parallella.

Best regards, Ted

On Mon, Mar 4, 2019 at 6:44 PM boneoh notifications@github.com wrote:

It seems like something is missing. I get the "EPIPHANY_DEV file open failure" message when trying to run the eprime example. I'm not sure how to dig further on this.

Welcome to Ubuntu 18.04.2 LTS (GNU/Linux 4.9.99 armv7l)

-

Documentation: https://help.ubuntu.com

Management: https://landscape.canonical.com

Support: https://ubuntu.com/advantage

'snap info' now shows the freshness of each channel. Try 'snap info microk8s' for all the latest goodness.

Last login: Mon Mar 4 00:19:47 2019 from 192.168.0.10 parallella@master_cylinder:$ cd parallella-examples/eprime parallella@master_cylinder:/parallella-examples/eprime$ ./build.sh src/prime.c: In function ‘main’: src/prime.c:59:2: warning: implicit declaration of function ‘e_load_group’; did you mean ‘e_start_group’? [-Wimplicit-function-declaration] e_load_group("e_prime.elf", &dev, 0, 0, platform.rows, platform.cols, E_FALSE); ^~~~ e_start_group parallella@master_cylinder:/parallella-examples/eprime$ ./run.sh prime.elf: e_reset_system(): EPIPHANY_DEV file open failure. prime.elf: e_open(): EPIPHANY_DEV file open failure. ./run.sh: line 8: 2102 Segmentation fault (core dumped) ./prime.elf ${PRIMES_PER_CORE} parallella@master_cylinder:/parallella-examples/eprime$

parallella@master_cylinder:/parallella-examples/eprime$ sudo modprobe epiphany nopm modprobe: FATAL: Module epiphany not found in directory /lib/modules/4.9.99 parallella@master_cylinder:/parallella-examples/eprime$ dmesg | tail -n20 [ 1.332036] Freeing unused kernel memory: 288K [ 1.335096] This architecture does not have kernel memory protection. [ 1.838036] systemd[1]: System time before build time, advancing clock. [ 1.910235] ip_tables: (C) 2000-2006 Netfilter Core Team [ 1.920041] cgroup: cgroup2: unknown option "nsdelegate" [ 1.937349] systemd[1]: systemd 237 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN2 +IDN -PCRE2 default-hierarchy=hybrid) [ 1.958085] systemd[1]: Detected architecture arm. [ 2.020865] systemd[1]: Set hostname to . [ 2.385047] random: crng init done [ 2.464140] systemd[1]: File /lib/systemd/system/systemd-udevd.service:34 configures an IP firewall (IPAddressDeny=any), but the local system does not support BPF/cgroup based firewalling. [ 2.479604] systemd[1]: Proceeding WITHOUT firewalling in effect! (This warning is only shown for the first loaded unit using IP firewalling.) [ 2.876615] systemd[1]: Created slice User and Session Slice. [ 2.919949] systemd[1]: Reached target Swap. [ 2.960204] systemd[1]: Started Forward Password Requests to Wall Directory Watch. [ 3.010782] systemd[1]: Created slice System Slice. [ 3.050540] systemd[1]: Listening on Journal Socket (/dev/log). [ 4.734134] systemd-journald[890]: Received request to flush runtime journal from PID 1

/var/log/journal/ae092d1542834589bdc261bdcdc83553/system.journal corrupted or uncleanly shut down, renaming and replacing. [ 10.480028] macb e000b000.ethernet eth0: link up (1000/Full) [ 10.844321] IPVS: Creating netns size=1304 id=1 parallella@master_cylinder:/parallella-examples/eprime$ parallella@master_cylinder:/parallella-examples/eprime$ dmesg [ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 4.9.99 (parallella@master_cylinder) (gcc version 7.3.0 (Ubuntu/Linaro 7.3.0-27ubuntu118.04) ) #1 https://github.com/parallella/parabuntu/issues/1 SMP PREEMPT Sat Mar 2 18:08:07 UTC 2019 [ 0.000000] CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=18c5387d [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache [ 0.000000] OF: fdt:Machine model: Adapteva Parallella Board with headless bitstream [ 0.000000] bootconsole [earlycon0] enabled [ 0.000000] cma: Reserved 128 MiB at 0x36000000 [ 0.000000] Memory policy: Data cache writealloc [ 0.000000] On node 0 totalpages: 253952 [ 0.000000] free_area_init_node: node 0, pgdat c08fd680, node_mem_map ef73f000 [ 0.000000] Normal zone: 1728 pages used for memmap [ 0.000000] Normal zone: 0 pages reserved [ 0.000000] Normal zone: 196608 pages, LIFO batch:31 [ 0.000000] HighMem zone: 57344 pages, LIFO batch:15 [ 0.000000] percpu: Embedded 13 pages/cpu @ef718000 s23820 r8192 d21236 u53248 [ 0.000000] pcpu-alloc: s23820 r8192 d21236 u53248 alloc=13*4096 [ 0.000000] pcpu-alloc: [0] 0 [0] 1 [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 252224 [ 0.000000] Kernel command line: console=ttyPS0,115200 earlyprintk root=/dev/mmcblk0p2 rootfstype=ext4 rw rootwait [ 0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes) [ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes) [ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes) [ 0.000000] Memory: 865420K/1015808K available (6645K kernel code, 281K rwdata, 1760K rodata, 288K init, 179K bss, 19316K reserved, 131072K cma-reserved, 98304K highmem) [ 0.000000] Virtual kernel memory layout: vector : 0xffff0000 - 0xffff1000 ( 4 kB) fixmap : 0xffc00000 - 0xfff00000 (3072 kB) vmalloc : 0xf0800000 - 0xff800000 ( 240 MB) lowmem : 0xc0000000 - 0xf0000000 ( 768 MB) pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB) modules : 0xbf000000 - 0xbfe00000 ( 14 MB) .text : 0xc0008000 - 0xc068577c (6646 kB) .init : 0xc0870000 - 0xc08b8000 ( 288 kB) .data : 0xc08b8000 - 0xc08fe5c0 ( 282 kB) .bss : 0xc08fe5c0 - 0xc092b354 ( 180 kB) [ 0.000000] Preemptible hierarchical RCU implementation. [ 0.000000] Build-time adjustment of leaf fanout to 32. [ 0.000000] RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2. [ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=32, nr_cpu_ids=2 [ 0.000000] NR_IRQS:16 nr_irqs:16 16 [ 0.000000] slcr mapped to f0802000 [ 0.000000] L2C: platform modifies aux control register: 0x72360000 -> 0x72760000 [ 0.000000] L2C: DT/platform modifies aux control register: 0x72360000 -> 0x72760000 [ 0.000000] L2C-310 erratum 769419 enabled [ 0.000000] L2C-310 enabling early BRESP for Cortex-A9 [ 0.000000] L2C-310 full line of zeros enabled for Cortex-A9 [ 0.000000] L2C-310 ID prefetch enabled, offset 1 lines [ 0.000000] L2C-310 dynamic clock gating enabled, standby mode enabled [ 0.000000] L2C-310 cache controller enabled, 8 ways, 512 kB [ 0.000000] L2C-310: CACHE_ID 0x410000c8, AUX_CTRL 0x76760001 [ 0.000000] zynq_clock_init: clkc starts at f0802100 [ 0.000000] Zynq clock init [ 0.000000] clocksource: ttc_clocksource: mask: 0xffff max_cycles: 0xffff, max_idle_ns: 537538477 ns [ 0.000000] sched_clock: 16 bits at 54kHz, resolution 18432ns, wraps every 603975816ns [ 0.006635] timer #0 at f080a000, irq=16 [ 0.009603] Console: colour dummy device 80x30 [ 0.012644] Calibrating delay loop... 1332.01 BogoMIPS (lpj=6660096) [ 0.102058] pid_max: default: 32768 minimum: 301 [ 0.105597] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes) [ 0.110777] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes) [ 0.117228] CPU: Testing write buffer coherency: ok [ 0.120914] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000 [ 0.125154] Setting up static identity map for 0x82c0 - 0x8318 [ 0.389397] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001 [ 0.389508] Brought up 2 CPUs [ 0.395462] SMP: Total of 2 processors activated (2664.03 BogoMIPS). [ 0.400549] CPU: All CPU(s) started in SVC mode. [ 0.404880] devtmpfs: initialized [ 0.410797] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4 [ 0.417267] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [ 0.425653] futex hash table entries: 512 (order: 3, 32768 bytes) [ 0.438243] pinctrl core: initialized pinctrl subsystem [ 0.443330] NET: Registered protocol family 16 [ 0.448362] DMA: preallocated 256 KiB pool for atomic coherent allocations [ 0.489834] cpuidle: using governor ladder [ 0.494018] zynq-gpio e000a000.gpio: could not find pctldev for node /amba/slcr@f8000000/pinctrl@700/gpio0-default, deferring probe [ 0.510294] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers. [ 0.516856] hw-breakpoint: maximum watchpoint size is 4 bytes. [ 0.521648] zynq-pinctrl 700.pinctrl: zynq pinctrl initialized [ 0.550697] SCSI subsystem initialized [ 0.553591] usbcore: registered new interface driver usbfs [ 0.557720] usbcore: registered new interface driver hub [ 0.563120] usbcore: registered new device driver usb [ 0.567120] media: Linux media interface: v0.10 [ 0.570364] Linux video capture interface: v2.00 [ 0.573719] pps_core: LinuxPPS API ver. 1 registered [ 0.577295] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti giometti@linux.it [ 0.585184] PTP clock support registered [ 0.587838] EDAC MC: Ver: 3.0.0 [ 0.599966] Advanced Linux Sound Architecture Driver Initialized. [ 0.605349] Bluetooth: Core ver 2.22 [ 0.607560] NET: Registered protocol family 31 [ 0.610878] Bluetooth: HCI device and connection manager initialized [ 0.615800] Bluetooth: HCI socket layer initialized [ 0.619431] Bluetooth: L2CAP socket layer initialized [ 0.623209] Bluetooth: SCO socket layer initialized [ 0.629661] clocksource: Switched to clocksource ttc_clocksource [ 0.645862] NET: Registered protocol family 2 [ 0.649475] TCP established hash table entries: 8192 (order: 3, 32768 bytes) [ 0.655226] TCP bind hash table entries: 8192 (order: 4, 65536 bytes) [ 0.660405] TCP: Hash tables configured (established 8192 bind 8192) [ 0.665400] UDP hash table entries: 512 (order: 2, 16384 bytes) [ 0.670064] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes) [ 0.675262] NET: Registered protocol family 1 [ 0.678653] RPC: Registered named UNIX socket transport module. [ 0.683188] RPC: Registered udp transport module. [ 0.686579] RPC: Registered tcp transport module. [ 0.690044] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 0.695740] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available [ 0.704274] workingset: timestamp_bits=14 max_order=18 bucket_order=4 [ 0.710025] NFS: Registering the id_resolver key type [ 0.713674] Key type id_resolver registered [ 0.716568] Key type id_legacy registered [ 0.719333] Installing knfsd (copyright (C) 1996 okir@monad.swb.de). [ 0.724863] fuse init (API version 7.26) [ 0.729084] bounce: pool size: 64 pages [ 0.731756] io scheduler noop registered [ 0.734263] io scheduler deadline registered [ 0.737378] io scheduler cfq registered (default) [ 0.742742] dma-pl330 f8003000.dmac: Loaded driver for PL330 DMAC-241330 [ 0.748013] dma-pl330 f8003000.dmac: DBUFF-128x8bytes Num_Chans-8 Num_Peri-4 Num_Events-16 [ 0.755958] e0001000.serial: ttyPS0 at MMIO 0xe0001000 (irq = 25, base_baud = 3125000) is a xuartps [ 0.763718] console [ttyPS0] enabled [ 0.768160] bootconsole [earlycon0] disabled [ 0.774722] [drm] Initialized [ 0.798518] brd: module loaded [ 0.807162] loop: module loaded [ 0.809835] zram: Added device: zram0 [ 0.813872] libphy: Fixed MDIO Bus: probed [ 0.817411] libphy: mdio_driver_register: xgmiitorgmii [ 0.821668] tun: Universal TUN/TAP device driver, 1.6 [ 0.825318] tun: (C) 1999-2004 Max Krasnyansky maxk@qualcomm.com [ 0.831216] libphy: MACB_mii_bus: probed [ 0.930713] Marvell 88E1318S e000b000.ethernet-ffffffff:00: attached PHY driver [Marvell 88E1318S] (mii_bus:phy_addr=e000b000.ethernet-ffffffff:00, irq=-1) [ 0.943284] macb e000b000.ethernet eth0: Cadence GEM rev 0x00020118 at 0xe000b000 irq 27 (04:4f:8b:00:36:d9) [ 0.952113] usbcore: registered new interface driver asix [ 0.956205] usbcore: registered new interface driver ax88179_178a [ 0.960997] usbcore: registered new interface driver cdc_ether [ 0.965476] usbcore: registered new interface driver net1080 [ 0.969844] usbcore: registered new interface driver cdc_subset [ 0.974416] usbcore: registered new interface driver zaurus [ 0.978692] usbcore: registered new interface driver cdc_ncm [ 0.984295] aoe: AoE v85 initialised. [ 0.986581] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 0.991926] usbcore: registered new interface driver usb-storage [ 0.996682] usbcore: registered new interface driver usbserial [ 1.001253] usbcore: registered new interface driver usbserial_generic [ 1.006432] usbserial: USB Serial support registered for generic [ 1.011151] usbcore: registered new interface driver ftdi_sio [ 1.015556] usbserial: USB Serial support registered for FTDI USB Serial Device [ 1.022063] e0002000.usb supply vbus not found, using dummy regulator [ 1.029012] mousedev: PS/2 mouse device common for all mice [ 1.033620] i2c /dev entries driver [ 1.039850] cdns-i2c e0004000.i2c: 100 kHz mmio e0004000 irq 22 [ 1.046043] Xilinx Zynq CpuIdle Driver started [ 1.049693] sdhci: Secure Digital Host Controller Interface driver [ 1.054485] sdhci: Copyright(c) Pierre Ossman [ 1.057508] sdhci-pltfm: SDHCI platform and OF driver helper [ 1.119698] mmc0: SDHCI controller on e0101000.sdhci [e0101000.sdhci] using ADMA [ 1.128232] ledtrig-cpu: registered to indicate activity on CPUs [ 1.133080] hidraw: raw HID events driver (C) Jiri Kosina [ 1.148931] usbcore: registered new interface driver usbhid [ 1.153189] usbhid: USB HID core driver [ 1.159917] usbcore: registered new interface driver snd-usb-audio [ 1.165705] Netfilter messages via NETLINK v0.30. [ 1.169041] nfnl_acct: registering with nfnetlink. [ 1.172709] nf_conntrack version 0.5.0 (16384 buckets, 65536 max) [ 1.177575] nf_tables: (c) 2007-2009 Patrick McHardy kaber@trash.net [ 1.183049] xt_time: kernel timezone is -0000 [ 1.186017] ip_set: protocol 6 [ 1.187749] IPVS: Registered protocols (TCP, UDP, SCTP, AH, ESP) [ 1.192560] IPVS: Connection hash table configured (size=4096, memory=32Kbytes) [ 1.198624] IPVS: Creating netns size=1304 id=0 [ 1.201869] IPVS: ipvs loaded. [ 1.203730] NET: Registered protocol family 17 [ 1.206827] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this. [ 1.218605] Bluetooth: RFCOMM TTY layer initialized [ 1.222144] Bluetooth: RFCOMM socket layer initialized [ 1.225941] Bluetooth: RFCOMM ver 1.11 [ 1.228356] Bluetooth: BNEP (Ethernet Emulation) ver 1.3 [ 1.232374] Bluetooth: BNEP filters: protocol multicast [ 1.236263] Bluetooth: BNEP socket layer initialized [ 1.239912] Bluetooth: HIDP (Human Interface Emulation) ver 1.2 [ 1.244502] Bluetooth: HIDP socket layer initialized [ 1.244539] mmc0: new high speed SDHC card at address 0001 [ 1.252391] Key type dns_resolver registered [ 1.255469] mmcblk0: mmc0:0001 EB1QT 29.8 GiB [ 1.255506] Registering SWP/SWPB emulation handler [ 1.263856] mmcblk0: p1 p2 [ 1.266934] hctosys: unable to open rtc device (rtc0) [ 1.271026] VDD_DSP: disabling [ 1.273035] ALSA device list: [ 1.274602] No soundcards found. [ 1.289495] random: fast init done [ 1.310618] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null) [ 1.317364] VFS: Mounted root (ext4 filesystem) on device 179:2. [ 1.330175] devtmpfs: mounted [ 1.332036] Freeing unused kernel memory: 288K [ 1.335096] This architecture does not have kernel memory protection. [ 1.838036] systemd[1]: System time before build time, advancing clock. [ 1.910235] ip_tables: (C) 2000-2006 Netfilter Core Team [ 1.920041] cgroup: cgroup2: unknown option "nsdelegate" [ 1.937349] systemd[1]: systemd 237 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN2 +IDN -PCRE2 default-hierarchy=hybrid) [ 1.958085] systemd[1]: Detected architecture arm. [ 2.020865] systemd[1]: Set hostname to . [ 2.385047] random: crng init done [ 2.464140] systemd[1]: File /lib/systemd/system/systemd-udevd.service:34 configures an IP firewall (IPAddressDeny=any), but the local system does not support BPF/cgroup based firewalling. [ 2.479604] systemd[1]: Proceeding WITHOUT firewalling in effect! (This warning is only shown for the first loaded unit using IP firewalling.) [ 2.876615] systemd[1]: Created slice User and Session Slice. [ 2.919949] systemd[1]: Reached target Swap. [ 2.960204] systemd[1]: Started Forward Password Requests to Wall Directory Watch. [ 3.010782] systemd[1]: Created slice System Slice. [ 3.050540] systemd[1]: Listening on Journal Socket (/dev/log). [ 4.734134] systemd-journald[890]: Received request to flush runtime journal from PID 1

/var/log/journal/ae092d1542834589bdc261bdcdc83553/system.journal corrupted or uncleanly shut down, renaming and replacing. [ 10.480028] macb e000b000.ethernet eth0: link up (1000/Full) [ 10.844321] IPVS: Creating netns size=1304 id=1 parallella@master_cylinder:/parallella-examples/eprime$

Thanks!

Pete

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/parallella/parabuntu/issues/13#issuecomment-469473414, or mute the thread https://github.com/notifications/unsubscribe-auth/AKQOxv7lKX-B9a5d1kNyMogUyePg3VM_ks5vTa_bgaJpZM4RPnLC .

peteappleby commented 5 years ago

Hi, Ted!

Thanks a bunch for helping me out. This is definitely a learning experience. But actually, its has been good. I’m learning a little at a time as I go.

Regards,

Pete

On Mar 6, 2019, at 6:40 PM, Ted Swoyer notifications@github.com wrote:

Hi Pete.

I have not yet tried to build a new kernel so my Ubuntu 18.04 LTS platform still has the old kernel. If I recall correctly, there were some changes between the first parabuntu release and the last parabuntu release that required changes to many of the programs.

That said, make sure that these lines are at the bottom of the .bashrc file in the login directory you are using:

export PATH=/usr/local/browndeer/bin:$PATH export LD_LIBRARY_PATH=/usr/local/browndeer/lib:/usr/local/lib:$LD_LIBRARY_PATH export PATH=/opt/openmpi/bin:$PATH export LD_LIBRARY_PATH=/opt/openmpi/lib:$LD_LIBRARY_PATH export EPIPHANY_HOME=/opt/adapteva/esdk [ -e $EPIPHANY_HOME ] && . $EPIPHANY_HOME/setup.sh || echo Epiphany SDK not installed. export EPYTHONPATH=$EPYTHONPATH:/usr/local/include/epython/modules:/home/parau/epython

These are needed to get all the correct modules, libraries, and includes.

Next, try my working copy of eprime2, attached to this email.

Untar it somewhere under the login directory. Change into the eprime2 directory. There is a build.sh which will build the executable and there is a run.sh which will run the built program -- run.sh takes a number as an argument (not optional) -- start with 1000000 (1 million) and you can try going up from there although there is a limit because of the size of an integer on the parallella.

Best regards, Ted

On Mon, Mar 4, 2019 at 6:44 PM boneoh notifications@github.com wrote:

It seems like something is missing. I get the "EPIPHANY_DEV file open failure" message when trying to run the eprime example. I'm not sure how to dig further on this.

Welcome to Ubuntu 18.04.2 LTS (GNU/Linux 4.9.99 armv7l)

-

Documentation: https://help.ubuntu.com

Management: https://landscape.canonical.com

Support: https://ubuntu.com/advantage

'snap info' now shows the freshness of each channel. Try 'snap info microk8s' for all the latest goodness.

Last login: Mon Mar 4 00:19:47 2019 from 192.168.0.10 parallella@master_cylinder:$ cd parallella-examples/eprime parallella@master_cylinder:/parallella-examples/eprime$ ./build.sh src/prime.c: In function ‘main’: src/prime.c:59:2: warning: implicit declaration of function ‘e_load_group’; did you mean ‘e_start_group’? [-Wimplicit-function-declaration] e_load_group("e_prime.elf", &dev, 0, 0, platform.rows, platform.cols, E_FALSE); ^~~~ e_start_group parallella@master_cylinder:/parallella-examples/eprime$ ./run.sh prime.elf: e_reset_system(): EPIPHANY_DEV file open failure. prime.elf: e_open(): EPIPHANY_DEV file open failure. ./run.sh: line 8: 2102 Segmentation fault (core dumped) ./prime.elf ${PRIMES_PER_CORE} parallella@master_cylinder:/parallella-examples/eprime$

parallella@master_cylinder:/parallella-examples/eprime$ sudo modprobe epiphany nopm modprobe: FATAL: Module epiphany not found in directory /lib/modules/4.9.99 parallella@master_cylinder:/parallella-examples/eprime$ dmesg | tail -n20 [ 1.332036] Freeing unused kernel memory: 288K [ 1.335096] This architecture does not have kernel memory protection. [ 1.838036] systemd[1]: System time before build time, advancing clock. [ 1.910235] ip_tables: (C) 2000-2006 Netfilter Core Team [ 1.920041] cgroup: cgroup2: unknown option "nsdelegate" [ 1.937349] systemd[1]: systemd 237 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN2 +IDN -PCRE2 default-hierarchy=hybrid) [ 1.958085] systemd[1]: Detected architecture arm. [ 2.020865] systemd[1]: Set hostname to . [ 2.385047] random: crng init done [ 2.464140] systemd[1]: File /lib/systemd/system/systemd-udevd.service:34 configures an IP firewall (IPAddressDeny=any), but the local system does not support BPF/cgroup based firewalling. [ 2.479604] systemd[1]: Proceeding WITHOUT firewalling in effect! (This warning is only shown for the first loaded unit using IP firewalling.) [ 2.876615] systemd[1]: Created slice User and Session Slice. [ 2.919949] systemd[1]: Reached target Swap. [ 2.960204] systemd[1]: Started Forward Password Requests to Wall Directory Watch. [ 3.010782] systemd[1]: Created slice System Slice. [ 3.050540] systemd[1]: Listening on Journal Socket (/dev/log). [ 4.734134] systemd-journald[890]: Received request to flush runtime journal from PID 1

/var/log/journal/ae092d1542834589bdc261bdcdc83553/system.journal corrupted or uncleanly shut down, renaming and replacing. [ 10.480028] macb e000b000.ethernet eth0: link up (1000/Full) [ 10.844321] IPVS: Creating netns size=1304 id=1 parallella@master_cylinder:/parallella-examples/eprime$ parallella@master_cylinder:/parallella-examples/eprime$ dmesg [ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 4.9.99 (parallella@master_cylinder) (gcc version 7.3.0 (Ubuntu/Linaro 7.3.0-27ubuntu118.04) ) #1 https://github.com/parallella/parabuntu/issues/1 SMP PREEMPT Sat Mar 2 18:08:07 UTC 2019 [ 0.000000] CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=18c5387d [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache [ 0.000000] OF: fdt:Machine model: Adapteva Parallella Board with headless bitstream [ 0.000000] bootconsole [earlycon0] enabled [ 0.000000] cma: Reserved 128 MiB at 0x36000000 [ 0.000000] Memory policy: Data cache writealloc [ 0.000000] On node 0 totalpages: 253952 [ 0.000000] free_area_init_node: node 0, pgdat c08fd680, node_mem_map ef73f000 [ 0.000000] Normal zone: 1728 pages used for memmap [ 0.000000] Normal zone: 0 pages reserved [ 0.000000] Normal zone: 196608 pages, LIFO batch:31 [ 0.000000] HighMem zone: 57344 pages, LIFO batch:15 [ 0.000000] percpu: Embedded 13 pages/cpu @ef718000 s23820 r8192 d21236 u53248 [ 0.000000] pcpu-alloc: s23820 r8192 d21236 u53248 alloc=13*4096 [ 0.000000] pcpu-alloc: [0] 0 [0] 1 [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 252224 [ 0.000000] Kernel command line: console=ttyPS0,115200 earlyprintk root=/dev/mmcblk0p2 rootfstype=ext4 rw rootwait [ 0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes) [ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes) [ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes) [ 0.000000] Memory: 865420K/1015808K available (6645K kernel code, 281K rwdata, 1760K rodata, 288K init, 179K bss, 19316K reserved, 131072K cma-reserved, 98304K highmem) [ 0.000000] Virtual kernel memory layout: vector : 0xffff0000 - 0xffff1000 ( 4 kB) fixmap : 0xffc00000 - 0xfff00000 (3072 kB) vmalloc : 0xf0800000 - 0xff800000 ( 240 MB) lowmem : 0xc0000000 - 0xf0000000 ( 768 MB) pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB) modules : 0xbf000000 - 0xbfe00000 ( 14 MB) .text : 0xc0008000 - 0xc068577c (6646 kB) .init : 0xc0870000 - 0xc08b8000 ( 288 kB) .data : 0xc08b8000 - 0xc08fe5c0 ( 282 kB) .bss : 0xc08fe5c0 - 0xc092b354 ( 180 kB) [ 0.000000] Preemptible hierarchical RCU implementation. [ 0.000000] Build-time adjustment of leaf fanout to 32. [ 0.000000] RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2. [ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=32, nr_cpu_ids=2 [ 0.000000] NR_IRQS:16 nr_irqs:16 16 [ 0.000000] slcr mapped to f0802000 [ 0.000000] L2C: platform modifies aux control register: 0x72360000 -> 0x72760000 [ 0.000000] L2C: DT/platform modifies aux control register: 0x72360000 -> 0x72760000 [ 0.000000] L2C-310 erratum 769419 enabled [ 0.000000] L2C-310 enabling early BRESP for Cortex-A9 [ 0.000000] L2C-310 full line of zeros enabled for Cortex-A9 [ 0.000000] L2C-310 ID prefetch enabled, offset 1 lines [ 0.000000] L2C-310 dynamic clock gating enabled, standby mode enabled [ 0.000000] L2C-310 cache controller enabled, 8 ways, 512 kB [ 0.000000] L2C-310: CACHE_ID 0x410000c8, AUX_CTRL 0x76760001 [ 0.000000] zynq_clock_init: clkc starts at f0802100 [ 0.000000] Zynq clock init [ 0.000000] clocksource: ttc_clocksource: mask: 0xffff max_cycles: 0xffff, max_idle_ns: 537538477 ns [ 0.000000] sched_clock: 16 bits at 54kHz, resolution 18432ns, wraps every 603975816ns [ 0.006635] timer #0 at f080a000, irq=16 [ 0.009603] Console: colour dummy device 80x30 [ 0.012644] Calibrating delay loop... 1332.01 BogoMIPS (lpj=6660096) [ 0.102058] pid_max: default: 32768 minimum: 301 [ 0.105597] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes) [ 0.110777] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes) [ 0.117228] CPU: Testing write buffer coherency: ok [ 0.120914] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000 [ 0.125154] Setting up static identity map for 0x82c0 - 0x8318 [ 0.389397] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001 [ 0.389508] Brought up 2 CPUs [ 0.395462] SMP: Total of 2 processors activated (2664.03 BogoMIPS). [ 0.400549] CPU: All CPU(s) started in SVC mode. [ 0.404880] devtmpfs: initialized [ 0.410797] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4 [ 0.417267] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [ 0.425653] futex hash table entries: 512 (order: 3, 32768 bytes) [ 0.438243] pinctrl core: initialized pinctrl subsystem [ 0.443330] NET: Registered protocol family 16 [ 0.448362] DMA: preallocated 256 KiB pool for atomic coherent allocations [ 0.489834] cpuidle: using governor ladder [ 0.494018] zynq-gpio e000a000.gpio: could not find pctldev for node /amba/slcr@f8000000/pinctrl@700/gpio0-default, deferring probe [ 0.510294] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers. [ 0.516856] hw-breakpoint: maximum watchpoint size is 4 bytes. [ 0.521648] zynq-pinctrl 700.pinctrl: zynq pinctrl initialized [ 0.550697] SCSI subsystem initialized [ 0.553591] usbcore: registered new interface driver usbfs [ 0.557720] usbcore: registered new interface driver hub [ 0.563120] usbcore: registered new device driver usb [ 0.567120] media: Linux media interface: v0.10 [ 0.570364] Linux video capture interface: v2.00 [ 0.573719] pps_core: LinuxPPS API ver. 1 registered [ 0.577295] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti giometti@linux.it [ 0.585184] PTP clock support registered [ 0.587838] EDAC MC: Ver: 3.0.0 [ 0.599966] Advanced Linux Sound Architecture Driver Initialized. [ 0.605349] Bluetooth: Core ver 2.22 [ 0.607560] NET: Registered protocol family 31 [ 0.610878] Bluetooth: HCI device and connection manager initialized [ 0.615800] Bluetooth: HCI socket layer initialized [ 0.619431] Bluetooth: L2CAP socket layer initialized [ 0.623209] Bluetooth: SCO socket layer initialized [ 0.629661] clocksource: Switched to clocksource ttc_clocksource [ 0.645862] NET: Registered protocol family 2 [ 0.649475] TCP established hash table entries: 8192 (order: 3, 32768 bytes) [ 0.655226] TCP bind hash table entries: 8192 (order: 4, 65536 bytes) [ 0.660405] TCP: Hash tables configured (established 8192 bind 8192) [ 0.665400] UDP hash table entries: 512 (order: 2, 16384 bytes) [ 0.670064] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes) [ 0.675262] NET: Registered protocol family 1 [ 0.678653] RPC: Registered named UNIX socket transport module. [ 0.683188] RPC: Registered udp transport module. [ 0.686579] RPC: Registered tcp transport module. [ 0.690044] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 0.695740] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available [ 0.704274] workingset: timestamp_bits=14 max_order=18 bucket_order=4 [ 0.710025] NFS: Registering the id_resolver key type [ 0.713674] Key type id_resolver registered [ 0.716568] Key type id_legacy registered [ 0.719333] Installing knfsd (copyright (C) 1996 okir@monad.swb.de). [ 0.724863] fuse init (API version 7.26) [ 0.729084] bounce: pool size: 64 pages [ 0.731756] io scheduler noop registered [ 0.734263] io scheduler deadline registered [ 0.737378] io scheduler cfq registered (default) [ 0.742742] dma-pl330 f8003000.dmac: Loaded driver for PL330 DMAC-241330 [ 0.748013] dma-pl330 f8003000.dmac: DBUFF-128x8bytes Num_Chans-8 Num_Peri-4 Num_Events-16 [ 0.755958] e0001000.serial: ttyPS0 at MMIO 0xe0001000 (irq = 25, base_baud = 3125000) is a xuartps [ 0.763718] console [ttyPS0] enabled [ 0.768160] bootconsole [earlycon0] disabled [ 0.774722] [drm] Initialized [ 0.798518] brd: module loaded [ 0.807162] loop: module loaded [ 0.809835] zram: Added device: zram0 [ 0.813872] libphy: Fixed MDIO Bus: probed [ 0.817411] libphy: mdio_driver_register: xgmiitorgmii [ 0.821668] tun: Universal TUN/TAP device driver, 1.6 [ 0.825318] tun: (C) 1999-2004 Max Krasnyansky maxk@qualcomm.com [ 0.831216] libphy: MACB_mii_bus: probed [ 0.930713] Marvell 88E1318S e000b000.ethernet-ffffffff:00: attached PHY driver [Marvell 88E1318S] (mii_bus:phy_addr=e000b000.ethernet-ffffffff:00, irq=-1) [ 0.943284] macb e000b000.ethernet eth0: Cadence GEM rev 0x00020118 at 0xe000b000 irq 27 (04:4f:8b:00:36:d9) [ 0.952113] usbcore: registered new interface driver asix [ 0.956205] usbcore: registered new interface driver ax88179_178a [ 0.960997] usbcore: registered new interface driver cdc_ether [ 0.965476] usbcore: registered new interface driver net1080 [ 0.969844] usbcore: registered new interface driver cdc_subset [ 0.974416] usbcore: registered new interface driver zaurus [ 0.978692] usbcore: registered new interface driver cdc_ncm [ 0.984295] aoe: AoE v85 initialised. [ 0.986581] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 0.991926] usbcore: registered new interface driver usb-storage [ 0.996682] usbcore: registered new interface driver usbserial [ 1.001253] usbcore: registered new interface driver usbserial_generic [ 1.006432] usbserial: USB Serial support registered for generic [ 1.011151] usbcore: registered new interface driver ftdi_sio [ 1.015556] usbserial: USB Serial support registered for FTDI USB Serial Device [ 1.022063] e0002000.usb supply vbus not found, using dummy regulator [ 1.029012] mousedev: PS/2 mouse device common for all mice [ 1.033620] i2c /dev entries driver [ 1.039850] cdns-i2c e0004000.i2c: 100 kHz mmio e0004000 irq 22 [ 1.046043] Xilinx Zynq CpuIdle Driver started [ 1.049693] sdhci: Secure Digital Host Controller Interface driver [ 1.054485] sdhci: Copyright(c) Pierre Ossman [ 1.057508] sdhci-pltfm: SDHCI platform and OF driver helper [ 1.119698] mmc0: SDHCI controller on e0101000.sdhci [e0101000.sdhci] using ADMA [ 1.128232] ledtrig-cpu: registered to indicate activity on CPUs [ 1.133080] hidraw: raw HID events driver (C) Jiri Kosina [ 1.148931] usbcore: registered new interface driver usbhid [ 1.153189] usbhid: USB HID core driver [ 1.159917] usbcore: registered new interface driver snd-usb-audio [ 1.165705] Netfilter messages via NETLINK v0.30. [ 1.169041] nfnl_acct: registering with nfnetlink. [ 1.172709] nf_conntrack version 0.5.0 (16384 buckets, 65536 max) [ 1.177575] nf_tables: (c) 2007-2009 Patrick McHardy kaber@trash.net [ 1.183049] xt_time: kernel timezone is -0000 [ 1.186017] ip_set: protocol 6 [ 1.187749] IPVS: Registered protocols (TCP, UDP, SCTP, AH, ESP) [ 1.192560] IPVS: Connection hash table configured (size=4096, memory=32Kbytes) [ 1.198624] IPVS: Creating netns size=1304 id=0 [ 1.201869] IPVS: ipvs loaded. [ 1.203730] NET: Registered protocol family 17 [ 1.206827] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this. [ 1.218605] Bluetooth: RFCOMM TTY layer initialized [ 1.222144] Bluetooth: RFCOMM socket layer initialized [ 1.225941] Bluetooth: RFCOMM ver 1.11 [ 1.228356] Bluetooth: BNEP (Ethernet Emulation) ver 1.3 [ 1.232374] Bluetooth: BNEP filters: protocol multicast [ 1.236263] Bluetooth: BNEP socket layer initialized [ 1.239912] Bluetooth: HIDP (Human Interface Emulation) ver 1.2 [ 1.244502] Bluetooth: HIDP socket layer initialized [ 1.244539] mmc0: new high speed SDHC card at address 0001 [ 1.252391] Key type dns_resolver registered [ 1.255469] mmcblk0: mmc0:0001 EB1QT 29.8 GiB [ 1.255506] Registering SWP/SWPB emulation handler [ 1.263856] mmcblk0: p1 p2 [ 1.266934] hctosys: unable to open rtc device (rtc0) [ 1.271026] VDD_DSP: disabling [ 1.273035] ALSA device list: [ 1.274602] No soundcards found. [ 1.289495] random: fast init done [ 1.310618] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null) [ 1.317364] VFS: Mounted root (ext4 filesystem) on device 179:2. [ 1.330175] devtmpfs: mounted [ 1.332036] Freeing unused kernel memory: 288K [ 1.335096] This architecture does not have kernel memory protection. [ 1.838036] systemd[1]: System time before build time, advancing clock. [ 1.910235] ip_tables: (C) 2000-2006 Netfilter Core Team [ 1.920041] cgroup: cgroup2: unknown option "nsdelegate" [ 1.937349] systemd[1]: systemd 237 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN2 +IDN -PCRE2 default-hierarchy=hybrid) [ 1.958085] systemd[1]: Detected architecture arm. [ 2.020865] systemd[1]: Set hostname to . [ 2.385047] random: crng init done [ 2.464140] systemd[1]: File /lib/systemd/system/systemd-udevd.service:34 configures an IP firewall (IPAddressDeny=any), but the local system does not support BPF/cgroup based firewalling. [ 2.479604] systemd[1]: Proceeding WITHOUT firewalling in effect! (This warning is only shown for the first loaded unit using IP firewalling.) [ 2.876615] systemd[1]: Created slice User and Session Slice. [ 2.919949] systemd[1]: Reached target Swap. [ 2.960204] systemd[1]: Started Forward Password Requests to Wall Directory Watch. [ 3.010782] systemd[1]: Created slice System Slice. [ 3.050540] systemd[1]: Listening on Journal Socket (/dev/log). [ 4.734134] systemd-journald[890]: Received request to flush runtime journal from PID 1

/var/log/journal/ae092d1542834589bdc261bdcdc83553/system.journal corrupted or uncleanly shut down, renaming and replacing. [ 10.480028] macb e000b000.ethernet eth0: link up (1000/Full) [ 10.844321] IPVS: Creating netns size=1304 id=1 parallella@master_cylinder:/parallella-examples/eprime$

Thanks!

Pete

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/parallella/parabuntu/issues/13#issuecomment-469473414, or mute the thread https://github.com/notifications/unsubscribe-auth/AKQOxv7lKX-B9a5d1kNyMogUyePg3VM_ks5vTa_bgaJpZM4RPnLC .

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/parallella/parabuntu/issues/13#issuecomment-470348270, or mute the thread https://github.com/notifications/unsubscribe-auth/AKcFF8FqOe8x-3l8M27B7d12NgHPOx_Sks5vUG37gaJpZM4RPnLC.

boneoh commented 5 years ago

@njpacoma Hi, Ted. I updated the .bashrc, the line you have for EPYTHONPATH has added /home/parau/epython, which was missing.

I could not save the attachment for some reason. Would you please send it to me again? My email is boneoh at yahoo dot com. I tried several times, but the file never got saved from the email app. Very strange.

I really appreciate the help!

Regards,

Pete

ghost commented 5 years ago

Hello everyone!

As it appears, I'm a very late newcomer to the Parallella board. I have a microserver which I purchased recently intending to try it out for OCR work.

While trying to upgrade the latest "official" parabuntu image, I am struggling to get past Wily. On my first attempt I went the way described in https://linuxconfig.org/how-to-upgrade-to-ubuntu-18-04-lts-bionic-beaver#h9-how-to-upgrade-ubuntu-the-debian-way , but ended up with something that wasn't very functional so I started again.

Is there no way to do it the "ubuntu way"? Seems that Xenial and Bionic are missing the armhf packages or at least I have not been successful at finding them anywhere in the ubuntu repos. I am wondering whether something has changed in the time since previous solutions to this problem have been posted that's preventing me from success with this. If anyone is able to shine a light or possibly point me to a download link of a fully functional Xenial or Bionic image (Xenial would be ideal), I would appreciate it.

Thanks! guuberholtz

ypwangnexus commented 5 years ago

@guuberholtz Just a quick update on this one. I applied the method that @agent001 stated above by directly replace 'vivid' to 'xenial' (15.04 -> 16.04) and successfully upgraded to 16.04.

a) sudo sed -i 's/vivid/xenial/g' /etc/apt/sources.list b)for i in `find /etc/apt/sources.list.d/ -type f | xargs grep vivid -l`;do sudo sed -i 's/vivid/xenial/g' $i;done c) sudo apt-get update d) sudo apt-get dist-upgrade

One important note is that I ssh into the board and in the last step, I got disconnected during the 'dist-upgrade' then I just leave the board there without touching it for the whole night. it turned out to be fine. I know that it might be risky so take it for your own risk. ( in case of interrupted during dist-upgrade, the following 2 command will finally complete. In case of lost connection again, just use 'screen -r' to retrieve) e) sudo dpkg --configure -a f) sudo screen apt-get dist-upgrade -f

Run a quick test and it seems ok.

parallella@parallella: /parallella-examples/eprime2$ ./build.sh parallella@parallella: /parallella-examples/eprime2$ ./run.sh Usage: ./run.sh numberic-value parallella@parallella:~/parallella-examples/eprime2$ ./run.sh 126 Core (00,00) Tests: 4 Primes: 2 Core (00,01) Tests: 4 Primes: 3 Core (00,02) Tests: 4 Primes: 3 Core (00,03) Tests: 4 Primes: 2 Core (01,00) Tests: 4 Primes: 3 Core (01,01) Tests: 4 Primes: 2 Core (01,02) Tests: 4 Primes: 2 Core (01,03) Tests: 4 Primes: 2 Core (02,00) Tests: 4 Primes: 2 Core (02,01) Tests: 4 Primes: 1 Core (02,02) Tests: 4 Primes: 1 Core (02,03) Tests: 4 Primes: 1 Core (03,00) Tests: 4 Primes: 1 Core (03,01) Tests: 4 Primes: 2 Core (03,02) Tests: 3 Primes: 1 Core (03,03) Tests: 3 Primes: 1

Total tests: 62 Found primes: 30

real 0m0.181s user 0m0.010s sys 0m0.010s parallella@parallella: /parallella-examples/eprime2$ uname -a Linux parallella 4.6.0+ #1 SMP PREEMPT Wed Dec 7 13:27:40 CET 2016 armv7l armv7l armv7l GNU/Linux parallella@parallella: /parallella-examples/eprime2$ cat /etc/issue Ubuntu 16.04.6 LTS \n \l

parallella@parallella: /parallella-examples/eprime2$

Once upgrade from 15.04 to 16.04, then doing the following will eventually upgrade to 18.04 g) sudo do-release-upgrade