[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Running Debian from a USB-drive on a Cubox-i 4



On 2015-11-21, Pierre wrote:
> On Thursday 19 November 2015 21:13:34 Vagrant Cascadian wrote:

>> But in general, I'd recommend against using uEnv.txt, as it's not
>> supported in mainline u-boot for the Cubox-i, and not supported in newer
>> versions of u-boot in Debian (e.g. stretch).
>
> So, what is the Debian way of specifying u-boot variable, without having to
> enter them from the u-boot command line? If I have 2 MMC cards, one booting
> with / on the SD carrd, the other one from an external disk. Is there a way to
> keep the kernel parameters and other u-boot commands in a fille on the card?
> Or do I need to rebuild the boot.scr differently for each card?

I would just use a different boot script for each card.  I usually use
flash-kernel, and you can specify a custom bootscript there. I think the
version in sid/stretch/jessie-backports makes this easier by putting the
bootscripts in /etc/flash-kernel/.

Could try and get patches into upstream u-boot to support uEnv.txt
generally, though my last attempt at that didn't pan out.


> I've installed Jessie from the Jessie d-i image, putting /boot on the SD card
> and / on a external USB drive. Installation went smooth but the initial reboot
> did not detect the USB drive.

Ah yes, ran into this recently with the Wandboard and Odroid-XU4:

  https://bugs.debian.org/762634

Basically, manually including the needed modules in
/etc/initramfs-tools/modules, and rebuilding the initramfs worked around
the issue for me.


> Next reboot, I set bootargs from u-boot command line to specify to the kernel
> where is the root file system with:
>
> CuBox-i U-Boot > setenv bootargs root=/dev/sda1 rootfstype=ext4 rootwait rw console=ttymxc0,115200 video=mxcfb0:dev=hdmi,1920x1080M@60,if=RGB24,bpp=32
> CuBox-i U-Boot > boot
...
> Gave up waiting for root device.  Common problems:
>  - Boot args (cat /proc/cmdline)
>    - Check rootdelay= (did the system wait long enough?)
>    - Check root= (did the system wait for the right device?)
>  - Missing modules (cat /proc/modules; ls /dev)
> ALERT!  /dev/sda1 does not exist.  Dropping to a shell!
> modprobe: module i8042 not found in modules.dep
> modprobe: module uhci-hcd not found in modules.dep
>
>
> My USB hard drive is not detected, probably because module uhci-hcd is not
> loaded. I've checked and this module is not available in the initramfs. The
> only reference I've found is in /lib/modprobe.dep/aliases.conf:

I bet you just need to add the modules to /etc/initramfs-tools/modules
and rebuild the initramfs:

  ci_hdrc_imx
  phy_mxs_usb

Those modules are loaded on my Cubox-i4pro, and it worked for a
Wandboard Dual, which is very similar hardware to the Cubox-i.


live well,
  vagrant

Attachment: signature.asc
Description: PGP signature


Reply to: