Code Monkey home page Code Monkey logo

Comments (12)

enjoy-digital avatar enjoy-digital commented on July 18, 2024 1

Hi @SanadaShinken,

great you manage to make it work yourself, that's the better way to learn :) (I was going to look at it). Feel free to create a PR with support for this board if it's working. Even if not perfect, I could review and clean it up.

from litex-boards.

enjoy-digital avatar enjoy-digital commented on July 18, 2024

Thanks @SanadaShinken for the initial support. I will look at it very soon. For now I transfered the issue to LiteX-Boards.

from litex-boards.

SanadaShinken avatar SanadaShinken commented on July 18, 2024

Thanks @SanadaShinken for the initial support. I will look at it very soon. For now I transfered the issue to LiteX-Boards.

Hi Sir:

Many Thanks LiteX Project, and You!!!!!

I'd made a workable version Linux + VexRiscV running on qmtech wukong board.
But I still need your help to clearing some settings. I'll upload the setting file when I done some tests.

BR, Sanada

from litex-boards.

Chgavilana avatar Chgavilana commented on July 18, 2024

Hi:
You can try with my files over same board (I will load support maybe next year to official repository but more hands could be great). It's tested with Vexriscv linux, linux-smp up to 16 cores (first version without DMA and some additional configuration over image build), Ethernet (with some doubts about its max baudrate), spisdcard boot (with a pmod) and terminal over usb onboard. Now I'm working to activate HDMI in/out port and a 5Mpix cmos camera (litevideo is under study) but first I will test new repository version first.

Check it out and tell us your feedback
@enjoy-digital take a quick look at it. I hope this helps.

BR. Carlos.

qmtech.txt
QMTECH_platform.txt
QMTECH_target.txt

from litex-boards.

SanadaShinken avatar SanadaShinken commented on July 18, 2024

Hi @SanadaShinken,

great you manage to make it work yourself, that's the better way to learn :) (I was going to look at it). Feel free to create a PR with support for this board if it's working. Even if not perfect, I could review and clean it up.

Hello @enjoy-digital :

Thank you very much. the setting board setting files are in the work.zip file. this setting files could boot up with https://github.com/litex-hub/linux-on-litex-vexriscv/files/5281217/kc705_2020_09_25.zip, but will fail with 2020-1215 prebuilt bit-stream after I update litex related repositories.

work.zip

BR, Sanada

from litex-boards.

SanadaShinken avatar SanadaShinken commented on July 18, 2024

Hi:
You can try with my files over same board (I will load support maybe next year to official repository but more hands could be great). It's tested with Vexriscv linux, linux-smp up to 16 cores (first version without DMA and some additional configuration over image build), Ethernet (with some doubts about its max baudrate), spisdcard boot (with a pmod) and terminal over usb onboard. Now I'm working to activate HDMI in/out port and a 5Mpix cmos camera (litevideo is under study) but first I will test new repository version first.

Check it out and tell us your feedback
@enjoy-digital take a quick look at it. I hope this helps.

BR. Carlos.

qmtech.txt
QMTECH_platform.txt
QMTECH_target.txt

Hi, @Chgavilana :

Very thanks for your sharing. I did some tests based on your spi sd card setting, but still failed. the linux kernel will crash after spi sd card initialized. Could you do me some favor to give me some hint about how to debug this error?

below is my environments:

  1. Vivado : 2020.1
  2. Litex : update to 2020-1218
  3. Linux-on-litex-vexriscv : update to 2020-1218

BR, Sanada

from litex-boards.

Chgavilana avatar Chgavilana commented on July 18, 2024

Hi @SanadaShinken
Well, for me works fine, and with last version, kernel recognize sd card and mount over /dev directory. I recommend first check your hardware connection (I don't know what pmod you use, mine is a little rustic but with all signal with pull-up and 3.3V power from connector), next, copy files again over SD (and check your sd memory), and finally, check your make.py file adding Qmtech board (short way to generate all).

class Qmtech(Board):
#    SPIFLASH_PAGE_SIZE    = 256
#    SPIFLASH_SECTOR_SIZE  = 64*kB
#    SPIFLASH_DUMMY_CYCLES = 11
    def __init__(self):
        from litex_boards.targets import QMTECH
        Board.__init__(self, QMTECH.BaseSoC, soc_capabilities={
            # Communication
            "serial",
            "ethernet",
            # Storage
#            "spiflash",
#            "sdcard",
            "spisdcard",
            # GPIOs
            "leds",
            # Video
#            "framebuffer",
            # Monitoring
            #"xadc",
        }, bitstream_ext=".bit")

Send a screen of your error and I can check what other problem could be.
Carlos.

from litex-boards.

SanadaShinken avatar SanadaShinken commented on July 18, 2024

Hello, @Chgavilana :

Thank you very much. the attachment file is what i use for wukong board.
work.zip

the following message is the fail log after linux kernel boot up.

mmc_spi spi0.0: setup: unsupported mode bits 4
mmc_spi spi0.0: can't change chip-select polarity
mmc_spi spi0.0: SD/MMC host mmc0, no WP, no poweroff, cd polling
Unable to handle kernel NULL pointer dereference at virtual address 00000000
Oops [#1]
CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.0.0 #1
sepc: c00fa820 ra : c00fa7c8 sp : cf82dc40
gp : c05a36e8 tp : cf828000 t0 : cfdf8148
t1 : 00000002 t2 : 000000c0 s0 : cf82dc60
s1 : cf801cc0 a0 : 00000000 a1 : 006000c0
a2 : c05cce58 a3 : cfdf6890 a4 : ffffffff
a5 : ffffffff a6 : 000007cb a7 : cf8a4700
s2 : 006000c0 s3 : c00c7e64 s4 : 00000013
s5 : 00000000 s6 : 00000000 s7 : cf8a4640
s8 : 00000001 s9 : 000041ed s10: 00080000
s11: cf8a4620 t3 : ffffffff t4 : fffffffe
t5 : 00000400 t6 : cf8a4713
sstatus: 00000120 sbadaddr: 00000000 scause: 0000000d
---[ end trace e4985d40f850f455 ]---
Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b ]---

Many Thanks.

BR, Sanada

from litex-boards.

SanadaShinken avatar SanadaShinken commented on July 18, 2024

Hi All:

Many Thanks for Greate Litex Project!!! @enjoy-digital , @Chgavilana, many thanks!!

After update all related projects, the final gateware could bring up linux OS successfully!

the following devices is ok for the attachment setting files.
backup.zip

DDR3
SPI SD Card
ethernet
serial

the boot log file is setting vexriscv CPU running at 100MHz and 150MHz.
bootup_ok.txt
bootup_ok_150MHz.txt

If @enjoy-digital want to add to litex, it is very ok to me. this issues could be closed.

Best Regards,
BR, Sanada

from litex-boards.

enjoy-digital avatar enjoy-digital commented on July 18, 2024

Hi @SanadaShinken,

thanks for the feedback. I can add the board support to LiteX-Boards ye, if you don't want to create a PR yourself can you provide me a name and email I can use for the copyright?

from litex-boards.

SanadaShinken avatar SanadaShinken commented on July 18, 2024

Hi @SanadaShinken,

thanks for the feedback. I can add the board support to LiteX-Boards ye, if you don't want to create a PR yourself can you provide me a name and email I can use for the copyright?

@enjoy-digital :

name : Shinken Sanada
email : [email protected]

Many Thanks.

BR, Sanada

from litex-boards.

enjoy-digital avatar enjoy-digital commented on July 18, 2024

@SanadaShinken: This has been integrated. I also did some review/cleanup on the Platform file in b67b18c.

from litex-boards.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.