bangonkali / quartus-sockit

Quartus 13.1 base reference for sockit.
MIT License
1 stars 0 forks source link

VGA output not working #1

Open acourt opened 10 years ago

acourt commented 10 years ago

I have downloaded and compiled this repository 'as is'. I am able to boot to linux but the VGA is not outputting to the screen. Is there something missing that has to be done?

bangonkali commented 10 years ago

Hello, @acourt I've been working with this image for a while now. And it seems to be working. Perhaps it's best that you add a little more info regarding y our workflow so that I can give some analysis of the problem.

acourt commented 10 years ago

Alright, so I will work every step I took.

Right now my setup is Ubuntu 12.04 64-bit, running Quartus II 13.1.

My first step was to clone this repo.

git clone https://github.com/bangonkali/quartus-sockit.git

I then open it with Quartus 13.1 and open the soc_system.qpf project file as well as the soc_system.qsys with QSys.

In Qsys, I Click Generate > Generate and generate the Synthesis files.

Back in Quartus II, I click on the "Start Analysis and Synthesis" button. Once that is done, I run the HPS pin assignments script.

Tools > TCL Scripts > hps_dsram_p0_pin_assignments.tcl

Once that is done, I run the full compilation to generate the .sof.

I generate the .rbf file from the .sof file File > Convert Programming Files Put the output to soc_system.rbf from the .sof file Click Generate

Now I generate the preloader: I generate the bsp file with

/opt/altera/13.1/embedded/embedded_command_shell.sh
bsp-editor

File > New BSP > Preloader Settings Directory = quartus-sockit/hps_isw_handoff/soc_system_hps_0 > Ok

I then generate the handoff file to generate the preloader by clikcing Generate.

Then, I build the preloader

cd software/spl_bsp
make all
cd uboot-socfpga/
make all -j4

Here are my steps for generating the dtb file.

sopc2dts -i soc_system.sopcinfo -o soc_system.dts   --board soc_system_board_info.xml
dtc -I dts -O dtb -o socfpga.dtb soc_system.dts

To produce my kernel I do the following:

git clone git://git.rocketboards.org/linux-socfpga.git
cd linux-socfpga/
git checkout -b socfpga-3.9-rel origin/socfpga-3.9-rel

export ARCH=arm
export CROSS_COMPILE=arm-linux-gnueabihf-
export LOADADDR=0x8000
make socfpga_defconfig
make uImage

I would speculate that the problem is the kernel or dts I use. Is there any indication on what exactly I should be using?

acourt commented 10 years ago

Correction: It doesn't actually boot, it gets frozen on

"Waiting for /dev/mmcblk0p3"