[flashrom] flashrom: Can't mmap memory
Pádraig Brady
P at draigBrady.com
Thu Sep 30 12:15:50 CEST 2010
On 30/09/10 07:47, Pádraig Brady wrote:
> On 30/09/10 00:50, Carl-Daniel Hailfinger wrote:
>>
>> Mh. Could you please compare the following for both kernels?
>
>> /proc/iomem
>> The first 100 lines of dmesg
>
>> I believe there should be a clue somewhere.
Attached is dmesg and iomem from the working kernel
(I just booted a Fedora 14 live key on the same system
and flashrom works fine).
Nothing obvious from the iomem diff:
(02:00.0 is the ethernet controller BTW)
$ diff broken.iomem working.iomem
11,13c11,13
< 00400000-0079856f : Kernel code
< 00798570-009d970f : Kernel data
< 00a6a000-00b318d7 : Kernel bss
---
> 00400000-007d8801 : Kernel code
> 007d8802-00a6213f : Kernel data
> 00c31000-0130a14b : Kernel bss
19c19
< e0000000-efffffff : PCI MMCONFIG 0 [00-ff]
---
> e0000000-efffffff : PCI MMCONFIG 0000 [bus 00-ff]
27d26
< fdc00000-fdc1ffff : 0000:02:00.0
30a30
> fddc0000-fdddffff : 0000:02:00.0
42c42
< fec00000-fec00fff : IOAPIC 0
---
> fec00000-fec003ff : IOAPIC 0
dmesg shows some differences in the memory maps
but I'll need to do further investigation to
be able to interpret these differences:
$ diff broken.dmesg working.dmesg
3,12c3
< Linux version 2.6.32.10-90.fc12.i686 (p4 at f12.labs.lincor.com) (gcc version 4.4.4 20100630 (Red Hat 4.4.4-10) (GCC) ) #1 SMP Fri Aug 13 11:59:33 IST 2010
---
> Linux version 2.6.35.4-28.fc14.i686 (mockbuild at x86-19.phx2.fedoraproject.org) (gcc version 4.5.1 20100907 (Red Hat 4.5.1-3) (GCC) ) #1 SMP Wed Sep 15 02:03:44 UTC 2010
22a14
> Notice: NX (Execute Disable) protection cannot be enabled: non-PAE kernel!
25a18,19
> e820 update range: 0000000000000000 - 0000000000001000 (usable) ==> (reserved)
> e820 remove range: 00000000000a0000 - 0000000000100000 (usable)
55c49,50
< initial memory mapped : 0 - 01000000
---
> initial memory mapped : 0 - 01800000
> found SMP MP-table at [c00f3860] f3860
57d51
< Using x86 segment limits to approximate NX protection
61,62c55,56
< kernel direct mapping tables up to 1f6e0000 @ 10000-16000
< RAMDISK: 1e6b6000 - 1f6bf3e3
---
> kernel direct mapping tables up to 1f6e0000 @ 15000-1b000
> RAMDISK: 1ef22000 - 1f6df000
79,90c73,87
< node 0 bootmap 00013000 - 00016edc
< (9 early reservations) ==> bootmem [0000000000 - 001f6e0000]
< #0 [0000000000 - 0000001000] BIOS data page ==> [0000000000 - 0000001000]
< #1 [0000001000 - 0000002000] EX TRAMPOLINE ==> [0000001000 - 0000002000]
< #2 [0000006000 - 0000007000] TRAMPOLINE ==> [0000006000 - 0000007000]
< #3 [0000400000 - 0000b318d8] TEXT DATA BSS ==> [0000400000 - 0000b318d8]
< #4 [001e6b6000 - 001f6bf3e3] RAMDISK ==> [001e6b6000 - 001f6bf3e3]
< #5 [000009dc00 - 0000100000] BIOS reserved ==> [000009dc00 - 0000100000]
< #6 [0000b32000 - 0000b3606a] BRK ==> [0000b32000 - 0000b3606a]
< #7 [0000010000 - 0000013000] PGTABLE ==> [0000010000 - 0000013000]
< #8 [0000013000 - 0000017000] BOOTMAP ==> [0000013000 - 0000017000]
< found SMP MP-table at [c00f3860] f3860
---
> node 0 bootmap 00018000 - 0001bedc
> (13/32 early reservations) ==> bootmem [0000000000 - 001f6e0000]
> #0 [0000001000 - 0000002000] EX TRAMPOLINE ==> [0000001000 - 0000002000]
> #1 [0000400000 - 000130a14c] TEXT DATA BSS ==> [0000400000 - 000130a14c]
> #2 [001ef22000 - 001f6df000] RAMDISK ==> [001ef22000 - 001f6df000]
> #3 [000130b000 - 000131106a] BRK ==> [000130b000 - 000131106a]
> #4 [00000f3870 - 0000100000] BIOS reserved ==> [00000f3870 - 0000100000]
> #5 [00000f3860 - 00000f3870] MP-table mpf ==> [00000f3860 - 00000f3870]
> #6 [000009f000 - 00000f1e34] BIOS reserved ==> [000009f000 - 00000f1e34]
> #7 [00000f1f74 - 00000f3860] BIOS reserved ==> [00000f1f74 - 00000f3860]
> #8 [00000f1e34 - 00000f1f74] MP-table mpc ==> [00000f1e34 - 00000f1f74]
> #9 [0000010000 - 0000011000] TRAMPOLINE ==> [0000010000 - 0000011000]
> #10 [0000011000 - 0000015000] ACPI WAKEUP ==> [0000011000 - 0000015000]
> #11 [0000015000 - 0000018000] PGTABLE ==> [0000015000 - 0000018000]
> #12 [0000018000 - 000001c000] BOOTMAP ==> [0000018000 - 000001c000]
94c91
< HighMem 0x0001f6e0 -> 0x0001f6e0
---
> HighMem empty
100c97,100
< free_area_init_node: node 0, pgdat c09b9260, node_mem_map c1001200
---
> free_area_init_node: node 0, pgdat c0a42ec0, node_mem_map c1313200
> DMA zone: 32 pages used for memmap
> DMA zone: 0 pages reserved
> DMA zone: 3951 pages, LIFO batch:0
cheers,
Pádraig.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: working.dmesg
URL: <http://www.flashrom.org/pipermail/flashrom/attachments/20100930/14afe498/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: working.iomem
URL: <http://www.flashrom.org/pipermail/flashrom/attachments/20100930/14afe498/attachment-0001.ksh>
More information about the flashrom
mailing list