[LinuxBIOS] new Target ASUS A8NE

Philipp Degler pdegler at rumms.uni-mannheim.de
Wed May 23 11:22:04 CEST 2007


On Saturday 19 May 2007 19:17:18 Uwe Hermann wrote:
> On Sat, May 19, 2007 at 09:55:03AM -0700, yhlu wrote:
> > > > > +                   /* Initialize interrupt mapping */
> > > > > +                   //dword = 0x0000d218;
> > > > > +                   dword = 0x01200000;     //a8ne
> > > > > +                   pci_write_config32(dev, 0x7c, dword);
> > > > > +
> > > > > +                   //dword = 0x12008a00;
> > > > > +                   dword = 0x12008009;     //a8ne
> > > > > +                   pci_write_config32(dev, 0x80, dword);
> > > > > +
> > > > > +                   //dword = 0x0000007d;
> > > > > +                   dword = 0x0002010d;     //a8ne
> > > > > +                   pci_write_config32(dev, 0x84, dword);
> > > >
> > > > What are the commented values? Not for the A8N-E? Then we should
> > > > probably drop them.
> > >
> > > yes they are a remainder of s2891 :). i will drop them.
> >
> > No, you can not. try to see what happen.
>
> Ah, I meant the comments only:
> > > > > +                   //dword = 0x0000d218;
> > > > > +                   //dword = 0x12008a00;
> > > > > +                   //dword = 0x0000007d;
>
> The other code must remain, of course.
modified code as proposed by uwe, see patch

changes were tested on hardware and with abuild. 
(see attached lspci for further info of the hardware that was used for the 
tests)

Did send other 2 patches separately as proposed.

Signed-off-by: Philipp Degler <pdegler at rumms.uni-mannheim.de>

---
phil
-------------- next part --------------
A non-text attachment was scrubbed...
Name: asus_a8n_e.patch
Type: text/x-diff
Size: 52381 bytes
Desc: not available
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20070523/f0a0a01b/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lspci.log
Type: text/x-log
Size: 31333 bytes
Desc: not available
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20070523/f0a0a01b/attachment.log>
-------------- next part --------------

machine restart



INIT detected from  ---- {APICID = 00 NODEID = 00 COREID = 00} --- 

Issuing SOFT_RESET...


LinuxBIOS-2.0.0_Fallback Wed May 23 10:57:24 CEST 2007 starting...
core0 started: 
started ap apicid: 
SBLink=00
NC node|link=00
SMBus controller enabled
Ram1.00
Ram2.00
Ram3
Initializing memory:  done
Ram4
v_esp=000ced60
testx = 5a5a5a5a
Copying data from cache to RAM -- switching to use RAM as stack... Done
testx = 5a5a5a5a
Disabling cache as ram now 
Clearing initial memory region: Done
Copying LinuxBIOS to RAM.
src=fffdf000
dst=00004000
linxbios_ram.nrv2b length = 0000d5eb
linxbios_ram.bin   length = 0002117c
Jumping to LinuxBIOS.
LinuxBIOS-2.0.0_Fallback Wed May 23 10:57:24 CEST 2007 booting...
Enumerating buses...
APIC_CLUSTER: 0 enabled
PCI_DOMAIN: 0000 enabled
  PCI: 00:18.3 siblings=0
	Found Rev E or Rev F later single core
CPU: APIC: 00 enabled
PCI: pci_scan_bus for bus 00
PCI: 00:18.0 [1022/1100] enabled
PCI: 00:18.1 [1022/1101] enabled
PCI: 00:18.2 [1022/1102] enabled
PCI: 00:18.3 [1022/1103] enabled
PCI: 00:00.0 [10de/005e] enabled
PCI: 00:00.0 [10de/005e] enabled next_unitid: 000f
PCI: pci_scan_bus for bus 00
PCI: 00:00.0 [10de/005e] enabled
PCI: 00:01.0 [10de/0050] enabled
PCI: 00:01.1 [10de/0052] enabled
PCI: 00:02.0 [10de/005a] enabled
PCI: 00:02.1 [10de/005b] enabled
PCI: 00:04.0 [10de/0059] disabled
PCI: 00:04.1 [10de/0058] disabled
PCI: 00:06.0 [10de/0053] enabled
PCI: 00:07.0 [10de/0054] enabled
PCI: 00:08.0 [10de/0055] enabled
PCI: 00:09.0 [10de/005c] enabled
PCI: 00:0a.0 [10de/0056] enabled
PCI: 00:0b.0 [10de/005d] enabled
PCI: 00:0c.0 [10de/005d] enabled
PCI: 00:0d.0 [10de/005d] enabled
PCI: 00:0e.0 [10de/005d] enabled
PNP: 002e.0 disabled
PNP: 002e.1 enabled
PNP: 002e.2 disabled
PNP: 002e.3 enabled
PNP: 002e.4 enabled
PNP: 002e.5 enabled
PNP: 002e.6 enabled
PNP: 002e.7 enabled
PNP: 002e.8 disabled
PNP: 002e.9 disabled
PNP: 002e.a disabled
PCI: pci_scan_bus for bus 01
PCI: pci_scan_bus returning with max=001
PCI: pci_scan_bus for bus 02
PCI: pci_scan_bus returning with max=002
PCI: pci_scan_bus for bus 03
PCI: pci_scan_bus returning with max=003
PCI: pci_scan_bus for bus 04
PCI: pci_scan_bus returning with max=004
PCI: pci_scan_bus for bus 05
PCI: pci_scan_bus returning with max=005
PCI: pci_scan_bus returning with max=005
PCI: pci_scan_bus returning with max=005
done
Allocating resources...
Reading resources...
PNP: 002e.3 missing read_resources
PNP: 002e.4 missing read_resources
PNP: 002e.6 missing read_resources
PNP: 002e.7 missing read_resources
PCI: 00:09.0 1c <- [0x000000f000 - 0x000000efff] bus 01 io
PCI: 00:09.0 24 <- [0x00fff00000 - 0x00ffefffff] bus 01 prefmem
PCI: 00:09.0 20 <- [0x00fff00000 - 0x00ffefffff] bus 01 mem
PCI: 00:0b.0 1c <- [0x00fffff000 - 0x00ffffefff] bus 02 io
PCI: 00:0b.0 24 <- [0xfffffffffff00000 - 0xffffffffffefffff] bus 02 prefmem
PCI: 00:0b.0 20 <- [0x00fff00000 - 0x00ffefffff] bus 02 mem
PCI: 00:0c.0 1c <- [0x00fffff000 - 0x00ffffefff] bus 03 io
PCI: 00:0c.0 24 <- [0xfffffffffff00000 - 0xffffffffffefffff] bus 03 prefmem
PCI: 00:0c.0 20 <- [0x00fff00000 - 0x00ffefffff] bus 03 mem
PCI: 00:0d.0 1c <- [0x00fffff000 - 0x00ffffefff] bus 04 io
PCI: 00:0d.0 24 <- [0xfffffffffff00000 - 0xffffffffffefffff] bus 04 prefmem
PCI: 00:0d.0 20 <- [0x00fff00000 - 0x00ffefffff] bus 04 mem
PCI: 00:0e.0 1c <- [0x00fffff000 - 0x00ffffefff] bus 05 io
PCI: 00:0e.0 24 <- [0xfffffffffff00000 - 0xffffffffffefffff] bus 05 prefmem
PCI: 00:0e.0 20 <- [0x00fff00000 - 0x00ffefffff] bus 05 mem
Done reading resources.
Setting resources...
PCI: 00:18.0 1d8 <- [0x0000001000 - 0x0000002fff] io <node 0 link 0>
PCI: 00:18.0 1b8 <- [0x00fc100000 - 0x00fc0fffff] prefmem <node 0 link 0>
PCI: 00:18.0 1b0 <- [0x00fc000000 - 0x00fc0fffff] mem <node 0 link 0>
PCI: 00:01.0 10 <- [0x0000001c00 - 0x0000001c7f] io
PCI: 00:01.0 14 <- [0x00fc000000 - 0x00fc000fff] mem
PCI: 00:01.0 60 <- [0x0000001000 - 0x00000010ff] io
PCI: 00:01.0 64 <- [0x0000001400 - 0x00000014ff] io
PCI: 00:01.0 68 <- [0x0000001800 - 0x00000018ff] io
PNP: 002e.1 60 <- [0x00000003f8 - 0x00000003ff] io
PNP: 002e.1 70 <- [0x0000000004 - 0x0000000004] irq
PNP: 002e.3 missing set_resources
PNP: 002e.4 missing set_resources
PNP: 002e.5 60 <- [0x0000000060 - 0x0000000067] io
PNP: 002e.5 62 <- [0x0000000064 - 0x000000006b] io
PNP: 002e.5 70 <- [0x0000000001 - 0x0000000001] irq
PNP: 002e.5 71 <- [0x0000000002 - 0x0000000001] irq
PNP: 002e.6 missing set_resources
PNP: 002e.7 missing set_resources
PCI: 00:01.1 10 <- [0x0000002000 - 0x000000201f] io
PCI: 00:01.1 20 <- [0x0000001c80 - 0x0000001cbf] io
PCI: 00:01.1 24 <- [0x0000001cc0 - 0x0000001cff] io
PCI: 00:02.0 10 <- [0x00fc001000 - 0x00fc001fff] mem
PCI: 00:02.1 10 <- [0x00fc005000 - 0x00fc0050ff] mem
PCI: 00:06.0 20 <- [0x0000002020 - 0x000000202f] io
PCI: 00:07.0 10 <- [0x0000002050 - 0x0000002057] io
PCI: 00:07.0 14 <- [0x00000020a0 - 0x00000020a3] io
PCI: 00:07.0 18 <- [0x0000002060 - 0x0000002067] io
PCI: 00:07.0 1c <- [0x00000020b0 - 0x00000020b3] io
PCI: 00:07.0 20 <- [0x0000002030 - 0x000000203f] io
PCI: 00:07.0 24 <- [0x00fc002000 - 0x00fc002fff] mem
PCI: 00:08.0 10 <- [0x0000002070 - 0x0000002077] io
PCI: 00:08.0 14 <- [0x00000020c0 - 0x00000020c3] io
PCI: 00:08.0 18 <- [0x0000002080 - 0x0000002087] io
PCI: 00:08.0 1c <- [0x00000020d0 - 0x00000020d3] io
PCI: 00:08.0 20 <- [0x0000002040 - 0x000000204f] io
PCI: 00:08.0 24 <- [0x00fc003000 - 0x00fc003fff] mem
PCI: 00:0a.0 10 <- [0x00fc004000 - 0x00fc004fff] mem
PCI: 00:0a.0 14 <- [0x0000002090 - 0x0000002097] io
PCI: 00:18.3 94 <- [0x00f8000000 - 0x00fbffffff] mem <gart>
Done setting resources.
Done allocating resources.
Enabling resources...
PCI: 00:18.0 cmd <- 140
PCI: 00:00.0 subsystem <- 10f1/2891
PCI: 00:00.0 cmd <- 146
PCI: 00:01.0 subsystem <- 10f1/2891
PCI: 00:01.0 cmd <- 14f
ck804 lpc decode:PNP: 002e.1, base=0x000003f8, end=0x000003ff
PNP: 002e.3 missing enable_resources
PNP: 002e.4 missing enable_resources
ck804 lpc decode:PNP: 002e.5, base=0x00000060, end=0x00000067
ck804 lpc decode:PNP: 002e.5, base=0x00000064, end=0x0000006b
PNP: 002e.6 missing enable_resources
PNP: 002e.7 missing enable_resources
PCI: 00:01.1 subsystem <- 10f1/2891
PCI: 00:01.1 cmd <- 141
PCI: 00:02.0 subsystem <- 10f1/2891
PCI: 00:02.0 cmd <- 142
PCI: 00:02.1 subsystem <- 10f1/2891
PCI: 00:02.1 cmd <- 142
PCI: 00:06.0 subsystem <- 10f1/2891
PCI: 00:06.0 cmd <- 141
PCI: 00:07.0 subsystem <- 10f1/2891
PCI: 00:07.0 cmd <- 143
PCI: 00:08.0 subsystem <- 10f1/2891
PCI: 00:08.0 cmd <- 143
PCI: 00:09.0 bridge ctrl <- 0003
PCI: 00:09.0 cmd <- 140
PCI: 00:0a.0 subsystem <- 10f1/2891
PCI: 00:0a.0 cmd <- 143
PCI: 00:0b.0 bridge ctrl <- 0003
PCI: 00:0b.0 cmd <- 140
PCI: 00:0c.0 bridge ctrl <- 0003
PCI: 00:0c.0 cmd <- 140
PCI: 00:0d.0 bridge ctrl <- 0003
PCI: 00:0d.0 cmd <- 140
PCI: 00:0e.0 bridge ctrl <- 0003
PCI: 00:0e.0 cmd <- 140
PCI: 00:18.1 subsystem <- 10f1/2891
PCI: 00:18.1 cmd <- 140
PCI: 00:18.2 subsystem <- 10f1/2891
PCI: 00:18.2 cmd <- 140
PCI: 00:18.3 cmd <- 140
done.
Initializing devices...
Root Device init
APIC_CLUSTER: 0 init
Initializing CPU #0
CPU: vendor AMD device 20ff0
CPU: family 0f, model 2f, stepping 00
Enabling cache

Setting fixed MTRRs(0-88) type: UC
Setting fixed MTRRs(0-16) Type: WB, RdMEM, WrMEM
Setting fixed MTRRs(24-88) Type: WB, RdMEM, WrMEM
DONE fixed MTRRs
Setting variable MTRR 0, base:    0MB, range: 1024MB, type WB
DONE variable MTRRs
Clear out the extra MTRR's

MTRR check
Fixed MTRRs   : Enabled
Variable MTRRs: Enabled

CPU model AMD Athlon(tm) 64 Processor 3500+
Setting up local apic... apic_id: 0x00 done.
ECC Disabled
CPU #0 Initialized
All AP CPUs stopped
PCI: 00:18.0 init
PCI: 00:01.0 init
set power on after power fail
RTC Init
Invalid CMOS LB checksum
PNP: 002e.1 init
PNP: 002e.5 init
PCI: 00:02.0 init
PCI: 00:02.1 init
PCI: 00:06.0 init
IDE1 	IDE0
PCI: 00:07.0 init
SATA S 	SATA P 
PCI: 00:08.0 init
SATA S 	SATA P 
PCI: 00:09.0 init
dev_root mem base = 0x00f8000000
[0x50] <-- 0xf8000000
PCI: 00:0a.0 init
PCI: 00:0b.0 init
PCI: 00:0c.0 init
PCI: 00:0d.0 init
PCI: 00:0e.0 init
PCI: 00:18.1 init
PCI: 00:18.2 init
PCI: 00:18.3 init
NB: Function 3 Misc Control.. done.
Devices initialized
Writing IRQ routing tables to 0xf0000...done.
Wrote the mp table end at: 00000020 - 00000140
Moving GDT to 0x500...ok
Adjust low_table_end from 0x00000530 to 0x00001000 
Adjust rom_table_end from 0x000f0400 to 0x00100000 
Wrote linuxbios table at: 00000530 - 00000c8c  checksum 4f8a

Welcome to elfboot, the open sourced starter.
January 2002, Eric Biederman.
Version 1.3

rom_stream: 0xfffc0000 - 0xfffdefff
Found ELF candidate at offset 0
header_offset is 0
Try to load at offset 0x0
New segment addr 0x100000 size 0x413c0 offset 0xc0 filesize 0x173a8
(cleaned up) New segment addr 0x100000 size 0x413c0 offset 0xc0 filesize 0x173a8
New segment addr 0x1413c0 size 0x48 offset 0x17480 filesize 0x48
(cleaned up) New segment addr 0x1413c0 size 0x48 offset 0x17480 filesize 0x48
Dropping non PT_LOAD segment
Dropping non PT_LOAD segment
Loading Segment: addr: 0x0000000000100000 memsz: 0x00000000000413c0 filesz: 0x00000000000173a8
Clearing Segment: addr: 0x00000000001173a8 memsz: 0x000000000002a018
Loading Segment: addr: 0x00000000001413c0 memsz: 0x0000000000000048 filesz: 0x0000000000000048
Jumping to boot code at 0x110880
FILO version 0.5 (pdegler at bardeen) Thu May 10 12:43:49 CEST 2007
collect_sys_info: boot eax = 0xe1fb007
collect_sys_info: boot ebx = 0x3fff41c0
collect_sys_info: boot arg = 0x3fff41c0
malloc_diag: alloc: 0 bytes (0 blocks), free: 16376 bytes (1 blocks)
malloc_diag: alloc: 24 bytes (1 blocks), free: 16352 bytes (1 blocks)
collect_elfboot_info: Bootloader: elfboot
collect_elfboot_info: Version: 1.3
malloc_diag: alloc: 40 bytes (2 blocks), free: 16336 bytes (1 blocks)
collect_linuxbios_info: Searching for LinuxBIOS tables...
find_lb_table: Found canidate at: 00000530
find_lb_table: header checksum o.k.
find_lb_table: table checksum o.k.
find_lb_table: record count o.k.
collect_linuxbios_info: Found LinuxBIOS table at: 00000530
convert_memmap: 0x00000000000000 0x00000000001000 16
convert_memmap: 0x00000000001000 0x0000000009f000 1
convert_memmap: 0x000000000c0000 0x00000000030000 1
convert_memmap: 0x000000000f0000 0x00000000010000 16
convert_memmap: 0x00000000100000 0x0000003ff00000 1
collect_sys_info: 0000000000001000-00000000000a0000
collect_sys_info: 00000000000c0000-00000000000f0000
collect_sys_info: 0000000000100000-0000000040000000
collect_sys_info: RAM 1024 MB
relocate: Current location: 0x100000-0x141407
relocate: Relocating to 0x3ffbebf0-0x3ffffff7... ok
setup_timers: CPU 2211 MHz
pci_init: Scanning PCI: found 18 devices
malloc_diag: alloc: 264 bytes (3 blocks), free: 16112 bytes (1 blocks)
pci_init: 00:00.0 10de:005e 0580 00
pci_init: 00:01.0 10de:0050 0601 00
pci_init: 00:01.1 10de:0052 0c05 00
pci_init: 00:02.0 10de:005a 0c03 10
pci_init: 00:02.1 10de:005b 0c03 20
pci_init: 00:06.0 10de:0053 0101 8a
pci_init: 00:07.0 10de:0054 0101 85
pci_init: 00:08.0 10de:0055 0101 85
pci_init: 00:09.0 10de:005c 0604 01
pci_init: 00:0a.0 10de:0056 0200 00
pci_init: 00:0b.0 10de:005d 0604 00
pci_init: 00:0c.0 10de:005d 0604 00
pci_init: 00:0d.0 10de:005d 0604 00
pci_init: 00:0e.0 10de:005d 0604 00
pci_init: 00:18.0 1022:1100 0600 00
pci_init: 00:18.1 1022:1101 0600 00
pci_init: 00:18.2 1022:1102 0600 00
pci_init: 00:18.3 1022:1103 0600 00
Press <Enter> for default menu.lst (hda2:/boot/grub/menu.lst), or <Esc> for prompt... 2 1 timed out
menu: hda2:/boot/grub/menu.lst
malloc_diag: alloc: 280 bytes (4 blocks), free: 16096 bytes (1 blocks)
file_open: dev=hda2, path=/boot/grub/menu.lst
find_ide_controller: found PCI IDE controller 10de:0053 prog_if=0x8a
find_ide_controller: primary channel: compatibility mode
find_ide_controller: cmd_base=0x1f0 ctrl_base=0x3f4
ide_software_reset: Waiting for ide0 to become ready for reset... ok
init_drive: Testing for hda
init_drive: Probing for hda
init_drive: LBA mode, sectors=234441648
init_drive: LBA48 mode, sectors=234441648
init_drive: Init device params... ok
hda: LBA48 120GB: WDC WD1200BB-00DWA0                     
devopen: Partition 2 start 7807590 length 70316505
Mounted ext2fs
malloc_diag: alloc: 264 bytes (3 blocks), free: 16112 bytes (1 blocks)

                                  FILO 0.5
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 481 bytes
Desc: This is a digitally signed message part.
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20070523/f0a0a01b/attachment.sig>


More information about the coreboot mailing list