[U-Boot] Building u-boot.rom for Minnowboard

Simon Glass sjg at chromium.org
Mon Jun 1 17:48:24 CEST 2015


Hi Saket,

On 31 May 2015 at 22:55, Saket Sinha <saket.sinha89 at gmail.com> wrote:
>
> Hi Bin,
>
> Please find my response inline.
>
> >> >> root at saket-HP-PC:# /u-boot-x86/tools/ifdtool -x BayleyBay/SPI.bin
> >> >>   Flash Region 0 (Flash Descriptor): 00000000 - 00000fff
> >> >>   Flash Region 1 (BIOS): 00500000 - 007fffff
> >> >>   Flash Region 2 (Intel ME): 00001000 - 004fffff
> >> >>   Flash Region 3 (GbE): 00fff000 - 00000fff (unused)
> >> >> Error while writing: Bad address
> >> >>   Flash Region 4 (Platform Data): 00fff000 - 00000fff (unused)
> >> >> Error while writing: Bad address
> >> >>
> >> >>
> >> >> a)./tools/ifdtool -x MNW2MAX1.X64.0073.R02.1409160934.bin
> >> >> From the generted files, copying flashregion_0_flashdescriptor.bin  as
> >> >> board/intel/minnowmax/descriptor.bin
> >> >>
> >> >> Though the o/p files are generated, I get the following error  after
> >> >> this command -
> >> >> root at saket-PC:# /u-boot-x86/tools/ifdtool -x
> >> >> MNW2MAX1.X64.0073.R02.1409160934.bin
> >> >>   Flash Region 0 (Flash Descriptor): 00000000 - 00000fff
> >> >>   Flash Region 1 (BIOS): 00500000 - 007fffff
> >> >>   Flash Region 2 (Intel ME): 00001000 - 004fffff
> >> >>   Flash Region 3 (GbE): 00000000 - 00000fff
> >> >>   Flash Region 4 (Platform Data): 00fff000 - 00000fff (unused)
> >> >> Error while writing: Bad address
> >> >>
> >>
> >> I've seen this error before. It is a bug of the ifdtool, but I think
> >> it can be ignored. I have a patch sent out. Please check
> >> http://patchwork.ozlabs.org/patch/478590/
> >>
>
> Your patch fixes the Error message but still I do not  get any o/p on
> serial with the resulting u-boot.rom
>
>
>
> >> >> 4. Flashing u-boot.rom to Minnowmax by desiprog sf100
> >> >>  ./flashrom -p dediprog -w u-boot.rom
> >> >>
> >>
> >> Can you confirm that you have setup the flashrom tool correctly? I
> >> don't use flashrom on Linux as I normally do the SPI flash programming
> >> on a Windows machine. Can you dump the whole SPI flash image back
> >> after you program the u-boot.rom and compare the dumped file with the
> >> u-boot.rom you generated to see whether they are exactly the same?
> >>
>
> I only way I have dumped SPI flash has been through flashrom only.
> How else can I do it on Linux?
>
> As of now I am trying to burn u-boot.rom with SPI programmer/software
> on Windows to check the sanity of my flashrom setup.
>
>
> >> >> 5. Now when I am powering Minnowmax and collecting the output on serial
> >> >> -
> >> >> Nothing appears.
> >> >>
> >> >> Kindly let me know, if I am missing something here.
> >> >>
> >>
> >> Sorry but I don't have a MinnowMax board here, so cannot try it on my
> >> side.
> >
> > I'm on holiday but should be able to try this on Monday or Tuesday.
> >
>
> Thanks Simon.

It seems to boot OK for me. See details and download link below:

md5sum board/intel/minnowmax/*.bin
ffda9a3b94df5b74323afb328d51e6b4  board/intel/minnowmax/descriptor.bin
69f65b9a580246291d20d08cbef9d7c5  board/intel/minnowmax/fsp.bin
894a97d371544ec21de9c3e8e1716c4b  board/intel/minnowmax/me.bin
a2588537da387da592a27219d56e9962  board/intel/minnowmax/vga.bin

md5sum b/minnowmax/u-boot.rom
a0e48653fd7e5e91dda6064e7b5ddacb  b/minnowmax/u-boot.rom

Download u-boot.rom from:

https://drive.google.com/file/d/0B7WYZbZ9zd-3eDFaNHpFN2JrcUE/view?usp=sharing

(I use em100pro to download the image)
sudo em100 -s -p LOW -d b/minnowmax/u-boot.rom -c W25Q64DW -r


U-Boot 2015.07-rc1-00408-g012681b (Jun 01 2015 - 09:20:06 -0600)

CPU: x86_64, vendor Intel, device 30673h
DRAM:  2 GiB
MMC:   ValleyView SDHCI: 0, ValleyView SDHCI: 1
Using default environment

Video: 1280x1024x16
Model: Intel Minnowboard Max
SCSI:  SATA link 0 timeout.
Target spinup took 0 ms.
AHCI 0001.0300 32 slots 2 ports 3 Gbps 0x3 impl SATA mode
flags: 64bit ncq stag pm led clo pio slum part sxs
scanning bus for devices...
 Device 0: (1:0) Vendor: ATA Prod.: ADATA SP310 Rev: 5.2
           Type: Hard Disk
           Capacity: 30533.8 MB = 29.8 GB (62533296 x 512)
Found 1 device(s).
Net:   RTL8169#0
Warning: RTL8169#0 using MAC address from net device


Please can you check your binary blobs and send md5 sums?

Regards,
Simon


More information about the U-Boot mailing list