cubieplayer / Cubian

Debian for Cubieboard
http://cubian.org
271 stars 49 forks source link

Can't boot Cubian from SD card #326

Closed timo-keller closed 9 years ago

timo-keller commented 10 years ago

Hi,

I've downloaded the Cubietruck Desktop Image from the homepage and copied it on a SD card with dd.

If I try to boot from this card the bootup stops at "Waiting for root device /dev/mmcblk0p1". (i've waited a couple of hours)

How can I get Cubian to boot properly?

michalliu commented 10 years ago

You can try a different SD-card and different tools to write the image. I'm sure the image is fine. BTW, did you check the md5?

timo-keller commented 10 years ago

I tried two different SDHC cards and different tools (including dd) to write the image to the card. I don't think the "HC" is a problem. Can you recommend a SD(HC) card?

And of course I did check the MD5.

billryan commented 9 years ago

@t1mer Maybe its the problem of your large microSD card, I found that with small microSD card it is ok with Cubian, but Cubian do not support 32G or bigger microSD card now.

If you want to use 32G or bigger microSD card for Cubian, some workaround you should do as follows:

  1. extract the Cubian.img file to a sd card or some directory.
  2. dd the u-boot file separately as sudo dd if=u-boot-sunxi-with-spl.bin of=/dev/sdX bs=1024 seek=8;sync.
  3. mkdir /boot separately on /dev/sdX1, put the uImage, uEnv, script.fex, script.bin there.
  4. Put other file into /dev/sdX2

This workaround is just a rough idea, it works for me on Cubieboard2-2card, you should do carefully with respect to your microSD card and hardware.

michalliu commented 9 years ago

@billryan Do you mean by repartition the large SD-card to two partitions, one for /boot, another for / ? or just write a new uboot?

BTW: Where i can get u-boot-sunxi-with-spl.bin?

Thanks for sharing the solution, I'm a little confused

billryan commented 9 years ago

@michalliu I am not sure whether just writing a new uboot work. Repartition the large SD-card to two partitions would be safe. the u-boot-sunxi-with-spl.bin I mentioned is from the document wrote in http://dl.cubieboard.org/docs/CN/CB2-2Card/CB2-2Card_debian_installation_guide.pdf

michalliu commented 9 years ago

Yeah, using two partitions will solve the problem, one for /boot one for rootfs

cubieplayer commented 9 years ago

The new cubian will be released recently. The SD-card image is using two partitions layout.