[coreboot] unable to build coreboot with grub

2014-10-12 Thread Vipin Gahlaut
Hi, I have cloned latest coreboot and trying to build with grub2 as payload. in make menuconfig I select grub2 instead of seabios. when I fire make command it checkout latest grub and that fails to build. for 2 reasons. 1. Due to some initialization errors that I managed to fix with below

Re: [coreboot] Coreboot FILO boot from USB

2014-10-12 Thread Vipin Gahlaut
BASH-like line editing is supported. For the first word, TAB lists possible command completions.] filo On Sat, Oct 11, 2014 at 4:39 PM, Vipin Gahlaut gail...@gmail.com wrote: Hi Experts, I am trying to boot Linux from USB using coreboot and FILO and not able to find any documentation

Re: [coreboot] unable to build coreboot with grub

2014-10-12 Thread Vipin Gahlaut
Thanks Vladimir, Can you please let me know how to increase the ROM size? -Original Message- From: Vladimir 'φ-coder/phcoder' Serbinenko [mailto:phco...@gmail.com] Sent: Sunday, October 12, 2014 3:02 PM To: Vipin Gahlaut; coreboot Subject: Re: [coreboot] unable to build coreboot

[coreboot] coreboot/filo hangs when enabled all debug option

2014-10-12 Thread Vipin Gahlaut
Hi, If I enable debug_all option in configuration latest coreboot with filo hangs like below FILO version 0.6.0 (vgahlaut@ubuntu) Sun Oct 12 02:47:44 PDT 2014 boot EAX = 0x0 boot EBX = 0x0 boot arg = 0x0 Current location: 0x101000-0x257fb7 Relocating to 0x7e77000-0x7fcdfb7... Never proceed from

Re: [coreboot] Coreboot FILO boot from USB

2014-10-12 Thread Vipin Gahlaut
Looking at blockdev.c I believe that usb disks are listed as ud so I tried root (ud0) with no luck so far. filo root (ud0) filo kernel /boot/vmlinuz Error 15: File not found filo On Sat, Oct 11, 2014 at 4:39 PM, Vipin Gahlaut gail...@gmail.com wrote: Hi Experts, I am trying to boot Linux

Re: [coreboot] unable to build coreboot with grub

2014-10-12 Thread Vipin Gahlaut
Hi Vladimir, I tried changing under main mainboard - rom chip size but does not seem to be helping. If I look at .config I suspect that the reason is CONFIG_BOARD_ROMSIZE_KB_256=y which doesn't change even if I change ROM size in main board. Relevant portion of .config after changing it to 512

Re: [coreboot] coreboot/filo hangs when enabled all debug option

2014-10-12 Thread Vipin Gahlaut
to ensure use of xgcc if you build FILO manually. //Peter -- On Sun, Oct 12, 2014 at 3:24 PM, Vipin Gahlaut gail...@gmail.com wrote: Hi, If I enable debug_all option in configuration latest coreboot with filo hangs like below FILO version 0.6.0 (vgahlaut

Re: [coreboot] coreboot/filo hangs when enabled all debug option

2014-10-12 Thread Vipin Gahlaut
and I will confirm again. Thanks for your advice. On Sun, Oct 12, 2014 at 4:18 PM, Vipin Gahlaut gail...@gmail.com wrote: Hi Peter, FILO is built with xgcc. Infect if make crossgcc is not done before running make, FILO refuses to build. === Check if FILO is built using

Re: [coreboot] unable to build coreboot with grub

2014-10-12 Thread Vipin Gahlaut
Sure. Missed reply all in excitement. Will take care in future postings. On Sun, Oct 12, 2014 at 5:04 PM, Vladimir 'φ-coder/phcoder' Serbinenko phco...@gmail.com wrote: On 12.10.2014 13:30, Vipin Gahlaut wrote: Thanks a lot Valdimir, After make clean ROM Size config changes kicked

Re: [coreboot] coreboot/filo hangs when enabled all debug option

2014-10-12 Thread Vipin Gahlaut
Hi Himanshu, Commenting suggested line solved the problem. Thanks You very much for your help and support. On Sun, Oct 12, 2014 at 4:38 PM, Chauhan, Himanshu hschau...@nulltrace.org wrote: On Sunday, October 12, 2014, Vipin Gahlaut gail...@gmail.com wrote: Hi Peter, Wait a minute. I may

Re: [coreboot] Coreboot FILO payload build fails when USB support enabled

2014-10-12 Thread Vipin Gahlaut
in libpayload and inform to FILO that yes libpayload really has usb stack support? On Sat, Oct 11, 2014 at 12:14 AM, Vipin Gahlaut gail...@gmail.com wrote: Here is the patch I used to fix build error. diff --git a/drivers/usb.c b/drivers/usb.c index 0da6efa..a959389 100644 --- a/drivers/usb.c

Re: [coreboot] Coreboot FILO payload build fails when USB support enabled

2014-10-12 Thread Vipin Gahlaut
Hi Nico, Thanks for the details. I somehow managed to build filo by defining CONFIG_USB in build/config.h However having problems at run time. Logs are below. Can you please suggest last known commit where USB was working good? Currently it seems to be messed up. I have to boot Linux from USB

Re: [coreboot] Coreboot FILO payload build fails when USB support enabled

2014-10-12 Thread Vipin Gahlaut
Hi Ron, We have to reduce the boot time to minimum possible; hence the preference is FILO/GRUB2. Not sure the status of USB stuff in GRUB2 so trying hard to get FILO to work. On Sun, Oct 12, 2014 at 10:12 PM, ron minnich rminn...@gmail.com wrote: you can try to get filo to work, or you can

Re: [coreboot] Coreboot FILO payload build fails when USB support enabled

2014-10-12 Thread Vipin Gahlaut
No. I am using qemu (version 2.1.2) with -usbdevice option. I run qemu with following command qemu-system-i386 -bios ./coreboot.rom -hda hda.img -usbdevice disk:usb.img -nographic On Sun, Oct 12, 2014 at 11:31 PM, Nico Huber nic...@gmx.de wrote: On 12.10.2014 18:21, Vipin Gahlaut wrote: Logs

[coreboot] Coreboot FILO boot from USB

2014-10-11 Thread Vipin Gahlaut
Hi Experts, I am trying to boot Linux from USB using coreboot and FILO and not able to find any documentation what parameter should I set on FILO prompt. I have enabled USB support while building FILO and libpayload. Booting from hard disk works fine as below. Start qemu with -hda disk.img

[coreboot] Coreboot FILO payload build fails when USB support enabled

2014-10-10 Thread Vipin Gahlaut
Hi, We need USB support in Filo. Our Linux kernel and file system is expected to be on USB thumb driver. We have enabled USB in menuconfig; however build fails with following errors. blockdev.c:(.text+0x18e): undefined reference to `usb_read'

Re: [coreboot] Coreboot FILO payload build fails when USB support enabled

2014-10-10 Thread Vipin Gahlaut
+#ifdef CONFIG_USB_DISK #include fs.h #include usb/usb.h #include usb/usbmsc.h Please let me know if this is correct and I should submit it On Fri, Oct 10, 2014 at 11:41 PM, Vipin Gahlaut gail...@gmail.com wrote: Hi, We need USB support in Filo. Our Linux kernel and file system is expected