Booting PhyTec PCM043/IMX35 from USB/SD-Card
Peter Kuennemann@Crane-Soft
pkue at crane-soft.de
Wed May 23 11:43:52 EDT 2012
Hi all.
I am trying to setup my PCM043/IMX35 board to boot from the
USB MMC card but til now I do have have any clue how to manage.
Searching the net, did not provide any hints regard that board.
I'ld like to have barebox to allow me to use the USB/MMC card
as boot device. Is there a chance to boot from SD-Card at all?
-- barebox configuration data --
I have enabled USB support (USB_EHCI/OHCI and USB_STORAGE ) as well as
CONFIG_UBI=y
CONFIG_DISK=y
CONFIG_DISK_WRITE=y
...
CONFIG_USB=y
CONFIG_USB_EHCI=y
CONFIG_USB_OHCI=y
# CONFIG_USB_ULPI is not set
# CONFIG_USB_TWL4030 is not set
CONFIG_USB_STORAGE=y
# CONFIG_USB_GADGET is not set
# CONFIG_VIDEO is not set
CONFIG_MCI=y
...
CONFIG_MCI_STARTUP=y
CONFIG_MCI_INFO=y
CONFIG_MCI_WRITE=y
CONFIG_MCI_IMX_ESDHC=y
CONFIG_MCI_IMX_ESDHC_PIO=y
Device list in bareBox after boot:
---------
barebox at Phytec phyCORE-i.MX35:/ ls /dev
defaultenv env0 imx_iim_bank0
imx_iim_bank1 imx_iim_bank2 imx_iim_bank3
imx_iim_bank4 imx_iim_bank5 imx_iim_bank6
imx_iim_bank7 mem nand0
nand0.barebox nand0.barebox.bb nand0.bareboxenv
nand0.bareboxenv.bb nand0.kernel nand0.kernel.bb
nand0.root nand0.root.bb nand_oob0
nor0 nor0.barebox nor0.bareboxenv
nor0.kernel nor0.root phy0
ram0 self0 zero
----------
And the environment:
locals:
machine=pcm043
kernel_loc=nor
rootfs_loc=nor
rootfs_type=jffs2
rootfsimage=root.jffs2
kernelimage_type=uimage
kernelimage=uImage-pcm043
nfsroot=192.168.1.161:/tftpboot
autoboot_timeout=3
bootargs=console=ttymxc0,115200
nor_parts=256k(barebox)ro,128k(bareboxenv),2M(kernel),-(root)
rootfs_mtdblock_nor=3
nand_parts=256k(barebox)ro,128k(bareboxenv),2M(kernel),-(root)
rootfs_mtdblock_nand=7
PS1=\e[1;32mbarebox@\e[1;31m\h:\w\e[0m
globals:
barebox_loc=nor
armlinux_architecture=2072
PATH=/env/bin
Any comments will be very much appreciated.
More information about the barebox
mailing list