On 02/25/2015 10:10 AM, Cole Robinson wrote:
On 02/25/2015 09:55 AM, Hans de Goede wrote:
> Hi,
>
> On 25-02-15 15:19, Cole Robinson wrote:
>> Hey all,
>>
>> First time trying to setup my cubietruck/cubieboard3. I used
>> fedora-arm-installer[1] to fill in an 8GB sd card on my host machine, using
>> Fedora-Minimal-armhfp-21-5-sda.raw.xz.
>>
>> Pop it into my cubietruck, connect via serial console, start it up. Machine
>> passes uboot fine and boots the initrd, but eventually fails waiting for the
>> root mount point to show up, and falls back to dracut.
>>
>> Comparing my boot output to kashyap's[2], my machine has all the same
messages
>> referencing 'mmc1', but there's nothing about mmc0. mmcblk0 never
shows up, so
>> the boot fails after a timeout.
>>
>> So I populated a SATA drive in the same way as above, hooked that to the
>> cubietruck, and it boots successfully. But I still can't access the sdcard
>> from fedora. The only thing under /sys/block is sda. Tried removing and
>> re-inserting the sunxi_mmc module, doesn't seem to help. Tried another sd
>> card, didn't make a difference.
>>
>> I updated the kernel on the sdcard (by updating /boot on the sata drive,
>> sticking the sdcard in a USB adapter, rsyncing the contents), booted into the
>> latest lpae kernel, but still the sdcard isn't detected.
>>
>> Anyone have any ideas? Googling didn't turn up anything.
> So there are no mmc0 messages from the kernel at all ? Sounds like there is
> an issue with the card-detect pin on your sdcard slot (u-boot does not
> use this, it assumes the card is there as it is booting from it), you
> could tree cleaning the slot a bit, e.g. blow some air through it.
>
Interesting. I wiggled the card some and blew air in a few places, and some
time during that fedora spit out:
mmc0: host does not support reading read-only switch. assuming write-enable.
I did not know that any microSD cards have the read/write lock switch.
I was at one point pulling out what hair I have on burning a card in an
SD adapter (my notebook has an SD slot), only to see that the lock
switch was set on the SD adapter.
But this might indicate you have a connection problem in your Cubie.
Which I see in kashyap's output as well. However that's all I
got and I can't
reproduce yet, and not sure specifically what I did during that time.
Would there be mmc0 messages in the kernel output even if no sdcard is
inserted? Or is it dependent on a card being present?
With no SD card, it tries to boot of NAND.
>> If not, is it possible to make the cubietruck boot directly
off the sata
>> drive? Doesn't seem to work for me, but if I can make that work I don't
need
>> to worry about the sdcard.
> There is no way to make things boot directly from sata, you always need
> u-boot somewhere else as the bootrom inside the soc does not support sata.
>
> You could leave a tiny sdcard in the slot with just u-boot though, and run
> everything else from sata.
>
Does /boot need to populated on the sdcard as well? Or can I make uboot on the
sdcard use /boot from my sata drive?
No partitions at all on the SD card. All on the sata, per a private
discussion I had with Hans.