Installation and setup of Lattice Diamond on Linux

Поділитися
Вставка
  • Опубліковано 7 лип 2024
  • Description on how to install Lattice Diamond 1.4.87 on a Linux other than RHEL/SuSe (Gentoo in this case, but probably works just as well on Ubuntu, etc). Includes download, setup of license file, installation and working around some problems (i.e. "Non-recoverable system error which causes to abort / ERROR default font cannot be found" or unrecognized "unknown" Linux distribution).
    I installed in ~/Lattice and extracted the files in ~/Lattice/bin
    Commands and stuff that I used:
    1:40 ifconfig eth0 | sed 's/://g;'
    2:44 md5sum diamond_1_4-base-87-i386-linux.rpm
    3:15 Cannot display on UA-cam (see link below)
    3:15 dd if=diamond_1_4-base-87-i386-linux.rpm bs=2279224 skip=1 of=diamond_extract.cpio.gz
    3:48 cat ../diamond_extract.cpio.gz | gunzip | cpio -i --make-directories
    5:40 find usr/ -name '*.so' -exec ln -s ../{} lib \;
    5:40 find usr/ -name '*.so.*' -exec ln -s ../{} lib \;
    7:42 VHDL file 4 bit counter: www.asic-world.com/code/vhdl/c...
    9:41 Cannot display on UA-cam (see link below)
    9:41 less x
    10:04 vim ${HOME}/Lattice/bin/usr/local/diamond/1.4/synpbase/bin/config/platform_set
    12:15 cat /usr/share/fonts/misc/fonts.dir | grep -E -- '-adobe-helvetica-medium-r-.*-.*-10-.*-.*-.*-.*-.*-.*-.*'
    12:15 cat /usr/share/fonts/misc/fonts.dir | grep -E -- '-.*-helvetica-medium-r-.*-.*-10-.*-.*-.*-.*-.*-.*-.*'
    12:15 cat /usr/share/fonts/misc/fonts.dir | grep -E -- '-.*-.*-medium-r-.*-.*-10-.*-.*-.*-.*-.*-.*-.*'
    Content of my environment file:
    PATH="${PATH}:${HOME}/Lattice/bin/usr/local/diamond/1.4/bin/lin"
    export LD_LIBRARY_PATH="${HOME}/Lattice/bin/lib"
    xset +fp "${HOME}/Lattice/bin/fonts"
    If this file is garbled/cut off, go to johannes-bauer.com/youtube/lat... for a clean version.
    Music by www.LukHash.com
    Video License: CC BY-SA 3.0
  • Наука та технологія

КОМЕНТАРІ • 9

  • @oucham
    @oucham 11 років тому +1

    Very good tutorial.
    I like that you show how you debug errors step by step (eg. by using 'strace') which is helpful for future use

  • @zirahvi
    @zirahvi 5 місяців тому +1

    Oh jesus I spent hours fighting with Alien to get the goddamn RPM into a DEB form. Obviously required some stabbing, like installing under /opt instead of /usr/local etc. Should have seen this first.

  • @billiumbuck
    @billiumbuck 10 років тому

    Thanks johndoe271828, very helpful.
    Version 3.1 fixes the rpm2tar, unknown, and font errors. So it was much easier for me with your help. Also on Gentoo. Is there time to say this is my first UA-cam comment.

  • @Squantor
    @Squantor 12 років тому

    Thanks for the video. The explanation what you where doing was especially helpful. I am trying to install lattice diamond on ubuntu 12.04.
    I did not have rpmoffset on my machine but after I was toying with alien to convert the rpm to deb I saw the command used to extract the contents of the rpm:
    rpm2cpio diamond_1_4-base-87-i386-linux.rpm | (cd diamond_1_4-base-1.4_extract; cpio --extract --make-directories --no-absolute-filenames --preserve-modification-time) 2>&1

  • @templocal
    @templocal 4 роки тому

    Na so wie du erklärst ist mir alles völlig klar geworden. Sehr selten gibt es jemand, der beim Erklären wirklich gut ist, klar spricht usw. Schade, dass keiner meiner Kollegen so ist, ich bin neu beim Embedded und ich habe lieber Linux als Windows, viel bequemer, leichter und trotzdem viel komplizierter. Hoffentlich schaff ich den Diamond auf ner Linux Mint maschine zu installieren. Sonst muss ich Windows gebrauchen, und die 10 ist echt... nicht gut :) Danke nochmal!

    • @johndoe271828
      @johndoe271828  4 роки тому

      Hey, vielen lieben Dank für das Kompliment. Die Anleitung ist ja jetzt aber auch schon ganz schön in die Jahre gekommen, 8 Jahre alt jetzt, hat sich sicher schon einiges geändert. Ich weiß also leider nicht, wie relevant das noch ist. Vom Prinzip her sicherlich genauso anwendbar, aber die Details sind vermutlich alle leicht anders. Ich kann gut nachvollziehen wie das ist als Linuxfan unter Windowsleuten :-D Ging mir ganz genauso. Habe jetzt das große Glück, dass ich für die Arbeit auch Linux nehmen kann, komme ich auch viel besser mit zurecht und bin flotter beim Erledigen von Aufgaben. Mit FPGAs mache ich schon lange nichts mehr, eher so ab und an MCUs noch. Keine Zeit, seitdem ich Vater geworden bin. Muss aber auch zugeben dass ich nie gescheit VHDL gecheckt habe und immer nur rumgepfuscht und rumgestochert habe, bis etwas rauskam, was in etwa funktioniert hat, hrhr. Drücke dir die Daumen, falls ich dir bei irgendwas weiterhelfen kann schreib mir einfach ne Mail, ich werde mein Bestes versuchen.

    • @templocal
      @templocal 4 роки тому

      @@johndoe271828 Hatte erfolg beim Installieren, eigentlich war es viel leichter als hier im Video, ich glaube man hat einiges mit der Zeit verbessert. Alles läuft prima!

  • @zrebrutibreniti
    @zrebrutibreniti 10 років тому

    will this work on macOS?

  • @wolfgangouille
    @wolfgangouille 4 роки тому

    Installing this on ubuntu is a nightmare.