Re: cbfsdisk not found

2017-03-25 Thread Gailu Singh
Actually we are using bit older version of coreboot (pre fmap implementation) So we took intel help and they provided us base location (in RAM) where coreboot is loaded and then we calculated as follows which is working for me. ptr = *(grub_uint32_t *)(LOADING_BASE + COREBOOT_ROM_SIZE - 4);

Re: cbfsdisk not found

2017-03-25 Thread Vladimir 'phcoder' Serbinenko
On Sat, Mar 25, 2017, 00:40 Andrei Borzenkov wrote: > 25.03.2017 10:22, Vladimir 'phcoder' Serbinenko пишет: > > On Sat, Mar 25, 2017, 00:16 Andrei Borzenkov > wrote: > > > >> 24.03.2017 21:38, Gailu Singh пишет: > >>> This is how it is calculated in coreboot > >>> > >>> > >> > https://review.co

Re: cbfsdisk not found

2017-03-25 Thread Andrei Borzenkov
25.03.2017 10:22, Vladimir 'phcoder' Serbinenko пишет: > On Sat, Mar 25, 2017, 00:16 Andrei Borzenkov wrote: > >> 24.03.2017 21:38, Gailu Singh пишет: >>> This is how it is calculated in coreboot >>> >>> >> https://review.coreboot.org:4430/cgit/coreboot.git/tree/src/lib/cbfs.c?id=refs/heads/maste

Re: cbfsdisk not found

2017-03-25 Thread Vladimir 'phcoder' Serbinenko
On Sat, Mar 25, 2017, 00:16 Andrei Borzenkov wrote: > 24.03.2017 21:38, Gailu Singh пишет: > > This is how it is calculated in coreboot > > > > > https://review.coreboot.org:4430/cgit/coreboot.git/tree/src/lib/cbfs.c?id=refs/heads/master#n268 > > > > ___FMAP__COREBOOT_BASE and ___FMAP__COREBOOT_S

Re: cbfsdisk not found

2017-03-25 Thread Andrei Borzenkov
24.03.2017 21:38, Gailu Singh пишет: > This is how it is calculated in coreboot > > https://review.coreboot.org:4430/cgit/coreboot.git/tree/src/lib/cbfs.c?id=refs/heads/master#n268 > > ___FMAP__COREBOOT_BASE and ___FMAP__COREBOOT_SIZE are based on values > available in fmd files (depending on 8MB

Re: cbfsdisk not found

2017-03-24 Thread Gailu Singh
This is how it is calculated in coreboot https://review.coreboot.org:4430/cgit/coreboot.git/tree/src/lib/cbfs.c?id=refs/heads/master#n268 ___FMAP__COREBOOT_BASE and ___FMAP__COREBOOT_SIZE are based on values available in fmd files (depending on 8MB/16Mb coreboot). #grep -r FMAP__COREBOOT_BASE s

Re: cbfsdisk not found

2017-03-24 Thread Andrei Borzenkov
24.03.2017 20:32, Gailu Singh пишет: >>> Could you please reference the solution for future users with the same > problem? > Sure. Infect I should have detailed it without asking. Sorry for that. > > Solution can be referenced to following thread in coreboot mailing list > that provide details of

Re: cbfsdisk not found

2017-03-24 Thread Gailu Singh
>>Could you please reference the solution for future users with the same problem? Sure. Infect I should have detailed it without asking. Sorry for that. Solution can be referenced to following thread in coreboot mailing list that provide details of memory mapping on the board answered by Adrian h

Re: cbfsdisk not found

2017-03-24 Thread Vladimir 'phcoder' Serbinenko
On Fri, Mar 24, 2017, 10:17 Gailu Singh wrote: > It was indeed the ROM mapping issue. solved now. Thank you so much Andrei. > Could you please reference the solution for future users with the same problem? > > On Fri, Mar 17, 2017 at 7:29 PM, Gailu Singh wrote: > > >>Any chance ROM is mapped so

Re: cbfsdisk not found

2017-03-24 Thread Gailu Singh
It was indeed the ROM mapping issue. solved now. Thank you so much Andrei. On Fri, Mar 17, 2017 at 7:29 PM, Gailu Singh wrote: > >>Any chance ROM is mapped somewhere else in your case? > I need to check, this may be a case. > > On Fri, Mar 17, 2017 at 7:16 PM, Andrei Borzenkov > wrote: > >> On

Re: cbfsdisk not found

2017-03-17 Thread Gailu Singh
>>Any chance ROM is mapped somewhere else in your case? I need to check, this may be a case. On Fri, Mar 17, 2017 at 7:16 PM, Andrei Borzenkov wrote: > On Fri, Mar 17, 2017 at 4:24 PM, Gailu Singh wrote: > > @Vladimir > > I do not have serial console (board has memory mapped uart not support in

Re: cbfsdisk not found

2017-03-17 Thread Andrei Borzenkov
On Fri, Mar 17, 2017 at 4:24 PM, Gailu Singh wrote: > @Vladimir > I do not have serial console (board has memory mapped uart not support in > grub) to capture memory details. Also on graphics console I can not give > commands from usb keyboard to dump memory because USB port on board are 3.0 > an

Re: cbfsdisk not found

2017-03-17 Thread Gailu Singh
@Vladimir I do not have serial console (board has memory mapped uart not support in grub) to capture memory details. Also on graphics console I can not give commands from usb keyboard to dump memory because USB port on board are 3.0 and USB 3.0 is not supported in Grub. Any other thing I could try

Re: cbfsdisk not found

2017-03-17 Thread Vladimir 'phcoder' Serbinenko
On Thu, Mar 16, 2017, 22:30 Gailu Singh wrote: > Please find coreboot image attached. Zipped it to reduce size > This image is actually fine and is read correctly by fstest. Apparently for some reason reading image at the end of 4GiB doesn't work. Can you try dumping last 8M before 4G mark from /

Re: cbfsdisk not found

2017-03-17 Thread Vladimir 'phcoder' Serbinenko
On Fri, Mar 17, 2017, 00:01 Andrei Borzenkov wrote: > On Fri, Mar 17, 2017 at 9:19 AM, Gailu Singh wrote: > >>>What address it prints? > > > > I followed suggested steps and I see following print > > > > fs/cbfs.c:347: head=0x > > > > Then you need to contact coreboot developers and disc

Re: cbfsdisk not found

2017-03-17 Thread Andrei Borzenkov
On Fri, Mar 17, 2017 at 9:19 AM, Gailu Singh wrote: >>>What address it prints? > > I followed suggested steps and I see following print > > fs/cbfs.c:347: head=0x > Then you need to contact coreboot developers and discuss it. GRUB looks at predefined location at address of cbfs. If this l

Re: cbfsdisk not found

2017-03-16 Thread Gailu Singh
>>What address it prints? I followed suggested steps and I see following print fs/cbfs.c:347: head=0x On Fri, Mar 17, 2017 at 8:57 AM, Andrei Borzenkov wrote: > 16.03.2017 22:43, Gailu Singh пишет: > >>> Try insmod cbfs > > > >> > > Trieed, it does not help. BTW cbfs is already inclu

Re: cbfsdisk not found

2017-03-16 Thread Andrei Borzenkov
16.03.2017 22:43, Gailu Singh пишет: >>> Try insmod cbfs > >> > Trieed, it does not help. BTW cbfs is already included in my grub elf image > so I don't think I need to do insmod. > > ./grub-mkstandalone --grub-mkimage=./grub-mkimage -O i386-coreboot -o > default_payload.elf --modules='ls ahci pa

Re: cbfsdisk not found

2017-03-16 Thread Vladimir 'phcoder' Serbinenko
On Thu, Mar 16, 2017, 12:43 Gailu Singh wrote: > >>Try insmod cbfs > > > Trieed, it does not help. BTW cbfs is already included in my grub elf > image so I don't think I need to do insmod. > > ./grub-mkstandalone --grub-mkimage=./grub-mkimage -O i386-coreboot -o > default_payload.elf --modules='l

Re: cbfsdisk not found

2017-03-16 Thread Gailu Singh
>>Try insmod cbfs > Trieed, it does not help. BTW cbfs is already included in my grub elf image so I don't think I need to do insmod. ./grub-mkstandalone --grub-mkimage=./grub-mkimage -O i386-coreboot -o default_payload.elf --modules='ls ahci pata ehci uhci ohci usb_keyboard usbms part_msdos ext2

Re: cbfsdisk not found

2017-03-16 Thread Vladimir 'phcoder' Serbinenko
On Thu, Mar 16, 2017, 12:18 Gailu Singh wrote: > Hi Experts, > > I am using grub2 with coreboot and configured with --with-platform=coreboot. > > > I am able to load grub2 from coreboot. However when I run ls command, I do > not see cbfsdisk. ls only shows > > (memdisk) (ahci0) (ahci0,msdos1) (ah