Olimex Support Forum

OLinuXino Android / Linux boards and System On Modules => A13 => Topic started by: Harsimran singh on June 23, 2014, 10:05:16 AM

Title: Debian booting from USB and MMC
Post by: Harsimran singh on June 23, 2014, 10:05:16 AM
Hello,
I want to boot olinuxino A13 wifi from USB and MMC card i.e. The uboot will be in MMC and kernel and root filesystem will be in USB.
As there is not USB support in current uboot for Olinuxino A13 wifi. I have tried to enable USB support in current Uboot by adding following macros in include/sunxi-common.h

#define CONFIG_CMD_USB
#define CONFIG_USB_STORAGE
#define CONFIG_USB_UHCI

But the error is coming "undefined reference to 'usb_lowlevel_stop'"

Does anyone know how can we enable USB support in uboot for Olinuxino A13 wifi so that i can load kernel and root filesystem from USB??

Thanks  :) 
Title: Re: Debian booting from USB and MMC
Post by: JohnS on June 23, 2014, 10:59:31 AM
You may need to load kernel from mmc.

John
Title: Re: Debian booting from USB and MMC
Post by: Harsimran singh on June 23, 2014, 11:25:28 AM
Hello John,
Means I can't enable USB support in uboot for Olinuxino A13 wifi?
Title: Re: Debian booting from USB and MMC
Post by: jlucius on June 23, 2014, 11:44:27 AM
Can you boot everything from USB? Did you have a look at the following page?

http://linux-sunxi.org/FEL/USBBoot
Title: Re: Debian booting from USB and MMC
Post by: JohnS on June 23, 2014, 01:55:50 PM
I think he won't want to use FEL mode every time when booting.

John
Title: Re: Debian booting from USB and MMC
Post by: Harsimran singh on June 23, 2014, 02:46:36 PM
hello jlucius,

As before entering into the FEL mode many checks need to get fail. As during booting sequence if all other booting media gets fail then it would be successfully boot from NAND as due to the android in it . I don't want to clear nand and still want to solve my purpose.
And it would not be possible to go into FEL mode every time by FEL key on the board itself. As i don't have any idea that is there any FEL key on Olinuxino A13 wifi.
   
Title: Re: Debian booting from USB and MMC
Post by: jlucius on June 23, 2014, 05:34:36 PM
Quote from: Harsimran singh on June 23, 2014, 02:46:36 PM
hello jlucius,

As before entering into the FEL mode many checks need to get fail. As during booting sequence if all other booting media gets fail then it would be successfully boot from NAND as due to the android in it . I don't want to clear nand and still want to solve my purpose.
And it would not be possible to go into FEL mode every time by FEL key on the board itself. As i don't have any idea that is there any FEL key on Olinuxino A13 wifi.

As far as the wiki tells there is a SD card image to automatically boot from FEL

http://linux-sunxi.org/FEL#Through_a_special_SD_card_image

As I haven“t tried the FEL Mode I have no idea if this works or if you should use this, just trying to make suggestions. If JohnS has good reasons not to use FEL?
Title: Re: Debian booting from USB and MMC
Post by: JohnS on June 24, 2014, 12:24:28 AM
It's OK to use it just a bit of a hassle normally.

Try it.  It may be what you like.

John
Title: Re: Debian booting from USB and MMC
Post by: Harsimran singh on June 24, 2014, 02:16:34 PM
hello jlucius ,

If i use FEL mode to boot then i need to use usb device for uboot also which i don't want as requirement is something different from user side.
I want to use USB device only for kernel image and root file system to boot normally and Uboot in some other device which user doesn't want to touch every time while updating kernel and root file system.

Thanks
Title: Re: Debian booting from USB and MMC
Post by: JohnS on June 24, 2014, 02:58:55 PM
You're making it hard, why not just boot kernel from mmc and mount usb hdd after that?

John
Title: Re: Debian booting from USB and MMC
Post by: Harsimran singh on June 25, 2014, 09:42:53 AM
Hello John
Whatever you are saying is totally correct but that doesn't solve the end user requirement. User wants to enable the usb support in uboot of olinuxino a13 wifi. Due to this i am trying to find the way out to how should i enable the usb support in uboot. ???
Title: Re: Debian booting from USB and MMC
Post by: JohnS on June 25, 2014, 07:08:00 PM
Has the code even been written?

John