Forum Discussion
Altera_Forum
Honored Contributor
13 years agoRunning uClinux on the DE2-115
Hi all,
Have anyone successfully run the uClinux on a DE2-115? I was able to get the uClinux version 3.1 to run on the NEEK kit and would like to try it on the DE2-115, but run into "Pausing target processor: not responding" problem. Sometime I got it to download, but it always end up "Verify failed between address". I realize the DE2-115 have DDR instead of DDR2 in the NEEK, and the nios.h in uClinux only have DDR2_TOP_BASE for the base address. Do I have to change it to DDR_TOP_BASE? or does it really matter to the uClinux? Any help is greatly appreciated. Thanks.28 Replies
- Altera_Forum
Honored Contributor
i'm currently going through "n0ll4n" tutorial (very informative),
just one thing though... in the kernel configuration, setting the start of the SDRAM would be in my case 0x00000000 right? (btw im using DE2-115) and if that's right how do i calculate the "link address offset" ? sorry i couldn't paste the dts file since i dont have enough posts so i attached the dts file thanks in advanced - Altera_Forum
Honored Contributor
Thank you very much!
I use make version 3.82 and uClinux builds succesfully. Is it critical to use 3.81 or less? - Altera_Forum
Honored Contributor
vdvoznyuk:
It was critical for me, I *had* to use make 3.81, with 3.82 it was a nightmare, lots of "errors" in Makefiles and such. With 3.81 it worked directly. sam3oun: You should use 0x00000000 as start for SDRAM, correct. There is a way of calculating the link address offset, i think it is supposed to be 2/3 of the SDRAM size. However, I used 0x01000000, which worked perfectly. - Altera_Forum
Honored Contributor
Hi!
Thanks for your advices! My problem was easy, as I thought: I just didn't set link address offset. Now I can see starting system, but there is a new error: Unable to handle kernel NULL pointer dereference at virtual address 00000000 ea = c02381dc, ra = c02381dc, cause = 14 Kernel panic - not syncing: Oops - Altera_Forum
Honored Contributor
ok so i tried with the 0x0100000 link offset ... now when booting uclinux it hangs with
" turn off boot console early0 " what does it mean? Edit: ok got it to work by enabling "SERIAL_ALTERA_UART_CONSOLE" in kernel settings, uclinux booted !!! thank you every1 here who helped!!!! EDIT2: u can find more information about linux config for: 1-JTAG UART or Serial UART 2-link offset calculation in the following link: http://www.alterawiki.com/wiki/linux_config - Altera_Forum
Honored Contributor
Hi sam3oun, I believe this error message means it doesn't know where to load the application. I have this error message before but it went away after I correct the memory base address to point to the sdram base address showing in the Qsys. 0x0100000 sounds about right for the link offset address in DE2115 kit.
- Altera_Forum
Honored Contributor
Hi,
I am trying to mount the MMC/SD by following the instruction in http://www.nioswiki.com/operatingsystems/uclinux/mmcsd and using n0114n's document as reference. Nonetheless it doesn't work... I am suppose to see this message in boot up right?? But it doesn't show up... mmc_spi spi2.0: assuming spi bus stays unshared!mmc_spi spi2.0: assuming 3.2-3.4 v slot power
mmc_spi spi2.0: sd/mmc host mmc0, no dma, no wp, no poweroff My next question would be on my pin mapping. Is this correct?? sd_dat[0] --> miso
sd_cmd <-- mosi
sd_clk <-- sclk
sd_dat[3] <-- ss_n I tried to mount it with no luck /> mount -t vfat /dev/mmcblk0p1 /mnt
mount: mounting /dev/mmcblk0p1 on /mnt failed: no such device or address I read post to add the follow lines into the top level design. I tried to add them but compiled with errors, so I am not sure what I have to do, and if anyone know, please kindly let me know. .miso_to_the_mmc_spi (sd_dat),
.mosi_from_the_mmc_spi (sd_cmd),
.sclk_from_the_mmc_spi (sd_clk),
.ss_n_from_the_mmc_spi (sd_dat3), Thanks!
- Altera_Forum
Honored Contributor
sorry this post was accedently deleted: (should be post# 16)
ok so i tried with the 0x0100000 link offset ... now when booting uclinux it hangs with " turn off boot console early0 " what does it mean? Edit: ok got it to work by enabling "SERIAL_ALTERA_UART_CONSOLE" in kernel settings, uclinux booted !!! thank you every1 here who helped!!!! EDIT2: u can find more information about linux config for: 1-JTAG UART or Serial UART 2-link offset calculation in the following link: www . alterawiki . com / wiki / Linux Config - Altera_Forum
Honored Contributor
say i wanted to load uclinux from the flash memory in the de2-115 board
do i point the base address the the beginning of the sdram and point the link offset to the beginning of the flash? or am i getting this wrong? from my understanding the processor starts from the link offset address and extracts the uclinux image to the base address and starts from the base address ... am i correct? - Altera_Forum
Honored Contributor
Hi
Please also check the below link, i record the video about how to boot uclinux on nios with mmu http://www.alteraforum.com/forum/showthread.php?t=39964&p=164765#post164765