Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
13 years ago

uClinux hangs at while booting

Hi all,

I have a zImage that works fine on my development board (3c120 DSP KIT). I'm not using the device tree approach but the older one, at this point we have no enough time to switch to device tree. Now I have to rebuilt this image for another custom board which has the same FPGA, a SDRAM ( 16 MB ), a SPI Flash and some other peripherals. I have compiled again the kernel with the new .ptf file and I've create the new zImage ( 3.4 MB ). The problem is that the board hangs after

"Uncompressing Linux Kernel...ok, booting the kernel"

Why?

I know that there is a compression ratio of about 1:2, so I think that the uncompressed Linux image is large about 7 MB. The link offset I set is 0x00A00000, SDRAM Base address is 0x02000000.

I hope you can help me...thanks in advance

P.S. the sof works fine with a simple auto-generated .elf file (Hello World and Memory Test) without OS

2 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    After some tests on RAM, I figured out that there were problems on RAM phase shift. I was not able to read/write on all the addresses of the RAM. So I changed the phase shift value and now all seems to work fine.

    Furthermore, there is another problem with altera triple speed ethernet driver (SLS). When I select this driver within the kernel uClinux is not able to boot and presents the same problem I've already described (it hangs after "ok, booting the kernel");

    I hope this will be useful for someone