Hi all,
I had difficulties installing Debian Squeeze on my Sheevaplug, on a 32GB SDHC card, following
http://www.cyrius.com/debian/kirkwood/sheevaplug/install.html .
I found a workaround that I'd like to share. On the other hand, I did not find all the explanations yet.
I'm trying to install Debian Squeeze on a 32GB SDHC card (Kingston SDHC 32GB Class10).
As suggested in the Howto, I upgraded my U-Boot to 3.4.27+pingtoo.
I put the uImage and uInitrd on a USB stick (the versions from ftp.debian.org suggested in the Howto, as of december 2010).
The installation proccess ran normally : I chose the guided partitioning, using the entire disk with no separate partition for /home. But it stopped at 33% of formatting the the second partition : "Creating ext3 file system for / in partition #2 of MMC/SD card #1 (mmcblk0)...". I had no error message, and gave up waiting after a few hours.
I first thought it was the same issue as I had with my first sheevaplug/SDHC (see
http://plugcomputer.org/plugforum/index.php?topic=352.0 ), so I recompiled the 2.6.32.25 kernel of sheeva.with-linux.com with highspeed disabled : not better
I finally was successful with a manual partitioning of the SD card (within the debian installer) instead of the automatic one.
Then I tried with the latest kernel (2.6.36.2, from
http://sheeva.with-linux.com/sheeva/), and without highspeed disabled : it also works with manual partitioning (not automatic).
More precisely :
- 2.6.32 kernel (debian default) + automatic partitionning => fail
- 2.6.32 kernel (debian default) + manual partitionning => fail
- 2.6.32.25 kernel (from
http://sheeva.with-linux.com/sheeva/) + highspeed disabled + automatic partitionning => fail
- 2.6.32.25 kernel (from
http://sheeva.with-linux.com/sheeva/) + highspeed disabled + manual partitionning => success
- 2.6.32.25 kernel (from
http://sheeva.with-linux.com/sheeva/) + automatic partitionning => fail
- 2.6.32.25 kernel (from
http://sheeva.with-linux.com/sheeva/) + manual partitionning => success
- 2.6.36.2 kernel (from
http://sheeva.with-linux.com/sheeva/) + automatic partitionning => fail
- 2.6.36.2 kernel (from
http://sheeva.with-linux.com/sheeva/) + manual partitionning => success
So I think I had two different problems :
-
The standard 2.6.32 debian squeeze kernel does not work with my SDHC card : the patches from sheeva.with-linux.com are definitely neededEven after a successful install, if I boot the standard 2.6.32 kernel, I have I/O errors on the SD card.
If I put the sheeva.with-linux.com 2.6.32.25 kernel instead, it's stable.
I suppose it comes from the mvsdio patches.
-
The automatic partitionning of Debian Installer fails on my configurationThe automatic partitionning gives the following :
│ MMC/SD card #1 (mmcblk0) - 32.3 GB SD SD32G ▒ │
│ > #1 primary 254.8 MB B F ext2 /boot ▒ │
│ > #2 primary 30.6 GB f ext3 / ▒ │
│ > #5 logical 1.4 GB F swap swap ▒ │
... and it fails
If I delete all the partitions (in the debian installer), and try to create the same manual partitionning, it gives me :
│ MMC/SD card #1 (mmcblk0) - 32.3 GB SD SD32G ▒ │
│ > #1 primary 253.8 MB B f ext2 /boot ▒ │
│ > #2 primary 30.6 GB f ext3 / ▒ │
│ > #5 logical 1.4 GB f swap swap ▒ │
... and it works
Note the size of the first partition : I wrote 254.8 MB in the installer, and it gave me 253.8 MB (but that should not be important?)
I did not change any manual options other than the filesystem type, the mount point, the size, and the bootable flag
Could it be a bug in the Debian Installer?
Is there a way to have more details on the reason why the automatic partitionning fails? I tried to set the priority=low parameter (see
http://www.debian.org/releases/stable/arm/ch05s03.html.fr) : the startup was more verbose, but it did not give me the reason of the partitionning failure.
To sum up,
here is the workaround that works on my config :
- follow the instructions of
http://www.cyrius.com/debian/kirkwood/sheevaplug/install.html , with a few exceptions :
- don't use the uImage from debian.org : download one from
http://sheeva.with-linux.com/sheeva/ (I tried 2.6.32.25 and 2.6.36.2)
- there will be warnings during the install about some modules that can not be found : simply ignore them (but note that you won't be able to set up LVM or RAID)
- don't use the automatic partitionning. Instead, through the Debian Installer, delete all the existing partitions, and create them from scratch (see above)
- when the installation is finished, don't boot directly on the SD card : you will need to replace the kernel on the SD card :
- remove the SD card from the sheevaplug and mount it on another computer
- in the first partition (containing a uImage file), replace this uImage file by the one you used for the installation
- put the SD card in the sheevaplug back, and boot on it
- there will be some warnings about some modules that can not be found : ignore them for now
- install properly a kernel from
http://sheeva.with-linux.com/sheeva/ . For example, for 2.6.36.2 :
- wget
http://sheeva.with-linux.com/sheeva/README-2.6.36.2 - sh ./README-2.6.36.2
If you have any suggestion on how to further investigate the automatic partitionning problem...
Hope this helps