ok.
I did as you said. Created the irq_tables.c file and added it.
I even created some more files.
./src/mainboard/jetway/ | -> j7bxan | ->chip.h ->devicetree.cb ->irq_tables.c ->Kconfig ->mainboard.c ->romstage.c
I did the changes in the respective Kconfig files too.
I know I could have made some patches too but I don't know how to make them. :P
But the keyb and all other Input devices are not working. I checked the IRQ tables of my mobo and they seem to be fine. Once the PC boot into the Linux Kernel on the HDD the Keyb starts working. Without the Keyb I can't boot into windows(dual boot).
I have attached the mobo manual also. It has the memory, I/O maps and IRQ tables.
And yes It is using the correct SuperIO Winbond W3977TF. Although on the Mobo it is EF, technically it should work since the vendor BIOS was using TF driver.
Thanx for all the help
Abhinav
Hi, nice to hear it boots :)
I believe you have git installed, and downloaded tree with git clone command. So in directory src/mainboard/jetway/j7bxan run: "git add ." this will start tracking j7bxan dir files. Use git add to any other files if you have created them.
then in the root coreboot directory: "git add -u" this will add file modifications you have done to tree
also in root: "git diff --find-copies-harder --cached > j7bxan.diff" this will prepare an initial patch.
Thanks, Tadas
Dear Tadas, dear Abhinav,
Am Samstag, den 20.08.2011, 12:37 +0300 schrieb Tadas Slotkus:
nice to hear it boots :)
it really is! Good work both of you.
I believe you have git installed, and downloaded tree with git clone command. So in directory src/mainboard/jetway/j7bxan run: "git add ." this will start tracking j7bxan dir files. Use git add to any other files if you have created them.
then in the root coreboot directory: "git add -u" this will add file modifications you have done to tree
also in root: "git diff --find-copies-harder --cached > j7bxan.diff" this will prepare an initial patch.
In my opinion if would be better to commit each change [1]
git diff --check git commit -s -a
and document the change in the commit message. Then send them in using Gerrit [1][2] or use
git format-patch -2 # number can be
and use `git send-email` to send them in for review to the list.
Thanks,
Paul
[1] http://www.coreboot.org/Git [2] http://review.coreboot.org/
On 20.08.2011 12:10, Paul Menzel wrote:
Then send them in using Gerrit [1][2] or use
git format-patch -2 # number can be
and use `git send-email` to send them in for review to the list.
Mails posted to the list don't end up on Gerrit. Given that Gerrit is the gatekeeper, you better push patches directly to it, patch submissions by mail likely get lost.
I made some changes in the POST source code. As Tadas said, I added "post_code(0xii);" where ii=20,21,22....to various files. Should I revert those back? I think we should keep them and use ii=E0,E1,E2,E3.....as errors. But then it would restrict it to only 10 numbers. What do you think?
Abhinav
I made some changes in the POST source code. As Tadas said, I added "post_code(0xii);" where ii=20,21,22....to various files. Should I revert those back? I think we should keep them and use ii=E0,E1,E2,E3.....as errors. But then it would restrict it to only 10 numbers. What do you think?
Abhinav
That's for a different patch ;)
Ok. This is the first time I have ever sent a patch. So please to send in suggestions. Thanx
From f9f0e4f28e9849943d2f21dcef9468a2eab54079 Mon Sep 17 00:00:00 2001 From: Abhinav Hardikar ahardyx@gmail.com Date: Wed, 24 Aug 2011 19:01:24 +0530 Subject: [PATCH] Coreboot port and added more CPUs to Slot 1 Category
Successfully ran coreboot on Jetway J7BXAN. Although there are still some problems with IRQs. According to Ubuntu Kernel log, its not able to set IRQ 0 to any of the devices, namely eth0 (ethernet card). Also added Pentium 3 processors with CPU ID 68x (Coppermine) to Slot 1 category. Check http://en.wikipedia.org/wiki/List_of_Intel_Pentium_III_microprocessors for more details.
Signed-off-by: Abhinav Hardikar ahardyx@gmail.com --- src/arch/x86/init/crt0_romcc_epilogue.inc | 3 +- src/arch/x86/lib/c_start.S | 3 +- src/boot/hardwaremain.c | 1 + src/cpu/intel/car/cache_as_ram.inc | 3 +- src/cpu/intel/model_106cx/cache_as_ram.inc | 3 +- src/cpu/intel/model_68x/model_68x_init.c | 8 ++-- src/cpu/intel/model_6ex/cache_as_ram.inc | 3 +- src/cpu/intel/model_6fx/cache_as_ram.inc | 3 +- src/cpu/intel/slot_1/Makefile.inc | 1 + src/mainboard/jetway/Kconfig | 3 + src/mainboard/jetway/j7bxan/Kconfig | 44 +++++++++++++++++++++ src/mainboard/jetway/j7bxan/Kconfig~ | 44 +++++++++++++++++++++ src/mainboard/jetway/j7bxan/chip.h | 22 ++++++++++ src/mainboard/jetway/j7bxan/devicetree.cb | 59 ++++++++++++++++++++++++++++ src/mainboard/jetway/j7bxan/irq_tables.c | 57 +++++++++++++++++++++++++++ src/mainboard/jetway/j7bxan/mainboard.c | 26 ++++++++++++ src/mainboard/jetway/j7bxan/mainboard.c~ | 26 ++++++++++++ src/mainboard/jetway/j7bxan/romstage.c | 58 +++++++++++++++++++++++++++ 18 files changed, 357 insertions(+), 10 deletions(-) create mode 100644 src/mainboard/jetway/j7bxan/Kconfig create mode 100644 src/mainboard/jetway/j7bxan/Kconfig~ create mode 100644 src/mainboard/jetway/j7bxan/chip.h create mode 100644 src/mainboard/jetway/j7bxan/devicetree.cb create mode 100755 src/mainboard/jetway/j7bxan/irq_tables.c create mode 100644 src/mainboard/jetway/j7bxan/mainboard.c create mode 100644 src/mainboard/jetway/j7bxan/mainboard.c~ create mode 100755 src/mainboard/jetway/j7bxan/romstage.c
diff --git a/src/arch/x86/init/crt0_romcc_epilogue.inc b/src/arch/x86/init/crt0_romcc_epilogue.inc index b19f968..293809a 100644 --- a/src/arch/x86/init/crt0_romcc_epilogue.inc +++ b/src/arch/x86/init/crt0_romcc_epilogue.inc @@ -21,7 +21,8 @@ __main: call copy_and_run .Lhlt: -post_code(POST_DEAD_CODE) +/*post_code(POST_DEAD_CODE)*/ +post_code(0x20) hlt jmp.Lhlt diff --git a/src/arch/x86/lib/c_start.S b/src/arch/x86/lib/c_start.S index 005ac33..b9c996f 100644 --- a/src/arch/x86/lib/c_start.S +++ b/src/arch/x86/lib/c_start.S @@ -82,7 +82,8 @@ _start: callhardwaremain /* NOTREACHED */ .Lhlt: -post_code(POST_DEAD_CODE)/* post ee */ +/*post_code(POST_DEAD_CODE)*//* post ee */ +/*post_code(0x21)*/ hlt jmp.Lhlt diff --git a/src/boot/hardwaremain.c b/src/boot/hardwaremain.c index 3d15b55..a0c3d3d 100644 --- a/src/boot/hardwaremain.c +++ b/src/boot/hardwaremain.c @@ -102,6 +102,7 @@ void hardwaremain(int boot_complete) * write our configuration tables. */ lb_mem = write_tables(); +post_code(0x26); cbfs_load_payload(lb_mem, CONFIG_CBFS_PREFIX "/payload"); printk(BIOS_ERR, "Boot failed.\n"); } diff --git a/src/cpu/intel/car/cache_as_ram.inc b/src/cpu/intel/car/cache_as_ram.inc index 2310d7d..7556162 100644 --- a/src/cpu/intel/car/cache_as_ram.inc +++ b/src/cpu/intel/car/cache_as_ram.inc @@ -376,7 +376,8 @@ __main: callcopy_and_run .Lhlt: -post_code(POST_DEAD_CODE) +/*post_code(POST_DEAD_CODE)*/ +post_code(0x23) hlt jmp.Lhlt diff --git a/src/cpu/intel/model_106cx/cache_as_ram.inc b/src/cpu/intel/model_106cx/cache_as_ram.inc index da14db2..ec3980a 100644 --- a/src/cpu/intel/model_106cx/cache_as_ram.inc +++ b/src/cpu/intel/model_106cx/cache_as_ram.inc @@ -241,7 +241,8 @@ __main: callcopy_and_run .Lhlt: -post_code(POST_DEAD_CODE) +/*post_code(POST_DEAD_CODE)*/ +post_code(0x25) hlt jmp.Lhlt diff --git a/src/cpu/intel/model_68x/model_68x_init.c b/src/cpu/intel/model_68x/model_68x_init.c index 7244693..c95f5bc 100644 --- a/src/cpu/intel/model_68x/model_68x_init.c +++ b/src/cpu/intel/model_68x/model_68x_init.c @@ -34,13 +34,13 @@ #include <usbdebug.h> static const uint32_t microcode_updates[] = { -#include "microcode-534-MU16810d.h" +/*#include "microcode-534-MU16810d.h" #include "microcode-535-MU16810e.h" #include "microcode-536-MU16810f.h" #include "microcode-537-MU268110.h" -#include "microcode-538-MU168111.h" +#include "microcode-538-MU168111.h"*/ #include "microcode-550-MU168307.h" -#include "microcode-551-MU168308.h" +/*#include "microcode-551-MU168308.h" #include "microcode-727-MU168313.h" #include "microcode-728-MU168314.h" #include "microcode-729-MU268310.h" @@ -51,7 +51,7 @@ static const uint32_t microcode_updates[] = { #include "microcode-618-MU268602.h" #include "microcode-662-MU168a01.h" #include "microcode-691-MU168a04.h" -#include "microcode-692-MU168a05.h" +#include "microcode-692-MU168a05.h"*/ /* Dummy terminator */ 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, diff --git a/src/cpu/intel/model_6ex/cache_as_ram.inc b/src/cpu/intel/model_6ex/cache_as_ram.inc index 02de5ab..8921275 100644 --- a/src/cpu/intel/model_6ex/cache_as_ram.inc +++ b/src/cpu/intel/model_6ex/cache_as_ram.inc @@ -251,7 +251,8 @@ __main: callcopy_and_run .Lhlt: -post_code(POST_DEAD_CODE) +/*post_code(POST_DEAD_CODE)*/ +post_code(0x24) hlt jmp.Lhlt diff --git a/src/cpu/intel/model_6fx/cache_as_ram.inc b/src/cpu/intel/model_6fx/cache_as_ram.inc index 2f13d35..c1a43fa 100644 --- a/src/cpu/intel/model_6fx/cache_as_ram.inc +++ b/src/cpu/intel/model_6fx/cache_as_ram.inc @@ -255,7 +255,8 @@ __main: callcopy_and_run .Lhlt: -post_code(POST_DEAD_CODE) +/*post_code(POST_DEAD_CODE)*/ +post_code(0x22) hlt jmp.Lhlt diff --git a/src/cpu/intel/slot_1/Makefile.inc b/src/cpu/intel/slot_1/Makefile.inc index 297ef18..7d999e3 100644 --- a/src/cpu/intel/slot_1/Makefile.inc +++ b/src/cpu/intel/slot_1/Makefile.inc @@ -23,6 +23,7 @@ subdirs-y += ../model_6xx subdirs-y += ../model_65x subdirs-y += ../model_67x subdirs-y += ../model_6bx +subdirs-y += ../model_68x subdirs-y += ../../x86/tsc subdirs-y += ../../x86/mtrr subdirs-y += ../../x86/lapic diff --git a/src/mainboard/jetway/Kconfig b/src/mainboard/jetway/Kconfig index 8023665..f7b2314 100644 --- a/src/mainboard/jetway/Kconfig +++ b/src/mainboard/jetway/Kconfig @@ -3,6 +3,8 @@ if VENDOR_JETWAY choice prompt "Mainboard model" +config BOARD_JETWAY_J7BXAN +bool "J7BXAN" config BOARD_JETWAY_J7F24 bool "J7F24" config BOARD_JETWAY_PA78VM5 @@ -10,6 +12,7 @@ config BOARD_JETWAY_PA78VM5 endchoice +source "src/mainboard/jetway/j7bxan/Kconfig" source "src/mainboard/jetway/j7f24/Kconfig" source "src/mainboard/jetway/pa78vm5/Kconfig" diff --git a/src/mainboard/jetway/j7bxan/Kconfig b/src/mainboard/jetway/j7bxan/Kconfig new file mode 100644 index 0000000..ff748b5 --- /dev/null +++ b/src/mainboard/jetway/j7bxan/Kconfig @@ -0,0 +1,44 @@ +## +## This file is part of the coreboot project. +## +## Copyright (C) 2009 Uwe Hermann uwe@hermann-uwe.de +## +## This program is free software; you can redistribute it and/or modify +## it under the terms of the GNU General Public License as published by +## the Free Software Foundation; version 2 of the License. +## +## This program is distributed in the hope that it will be useful, +## but WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +## GNU General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with this program; if not, write to the Free Software +## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +## +if BOARD_JETWAY_J7BXAN + +config BOARD_SPECIFIC_OPTIONS # dummy +def_bool y +select ARCH_X86 +select CPU_INTEL_SLOT_1 +select NORTHBRIDGE_INTEL_I440BX +select SOUTHBRIDGE_INTEL_I82371EB +select SUPERIO_WINBOND_W83977TF +select HAVE_PIRQ_TABLE +select UDELAY_TSC +select BOARD_ROMSIZE_KB_128 + +config MAINBOARD_DIR +string +default jetway/j7bxan + +config MAINBOARD_PART_NUMBER +string +default "J7BXAN" + +config IRQ_SLOT_COUNT +int +default 7 + +endif # BOARD_JETWAY_J7BXAN diff --git a/src/mainboard/jetway/j7bxan/Kconfig~ b/src/mainboard/jetway/j7bxan/Kconfig~ new file mode 100644 index 0000000..9c6293d --- /dev/null +++ b/src/mainboard/jetway/j7bxan/Kconfig~ @@ -0,0 +1,44 @@ +## +## This file is part of the coreboot project. +## +## Copyright (C) 2009 Uwe Hermann uwe@hermann-uwe.de +## +## This program is free software; you can redistribute it and/or modify +## it under the terms of the GNU General Public License as published by +## the Free Software Foundation; version 2 of the License. +## +## This program is distributed in the hope that it will be useful, +## but WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +## GNU General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with this program; if not, write to the Free Software +## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +## +if BOARD_JETWAY_J7BXAN/AS + +config BOARD_SPECIFIC_OPTIONS # dummy +def_bool y +select ARCH_X86 +select CPU_INTEL_SLOT_1 +select NORTHBRIDGE_INTEL_I440BX +select SOUTHBRIDGE_INTEL_I82371EB +select SUPERIO_WINBOND_W83977TF +select HAVE_PIRQ_TABLE +select UDELAY_TSC +select BOARD_ROMSIZE_KB_128 + +config MAINBOARD_DIR +string +default jetway/j7bxan + +config MAINBOARD_PART_NUMBER +string +default "J7BXAN" + +config IRQ_SLOT_COUNT +int +default 9 + +endif # BOARD_JETWAY_J7BXAN/AS diff --git a/src/mainboard/jetway/j7bxan/chip.h b/src/mainboard/jetway/j7bxan/chip.h new file mode 100644 index 0000000..dc9bed3 --- /dev/null +++ b/src/mainboard/jetway/j7bxan/chip.h @@ -0,0 +1,22 @@ +/* + * This file is part of the coreboot project. + * + * Copyright (C) 2007 Uwe Hermann uwe@hermann-uwe.de + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + +extern struct chip_operations mainboard_ops; +struct mainboard_config {}; diff --git a/src/mainboard/jetway/j7bxan/devicetree.cb b/src/mainboard/jetway/j7bxan/devicetree.cb new file mode 100644 index 0000000..9c7cf56 --- /dev/null +++ b/src/mainboard/jetway/j7bxan/devicetree.cb @@ -0,0 +1,59 @@ +chip northbridge/intel/i440bx# Northbridge + device lapic_cluster 0 on# APIC cluster + chip cpu/intel/slot_1# CPU + device lapic 0 on end# APIC + end + end + device pci_domain 0 on# PCI domain + device pci 0.0 on end# Host bridge + device pci 1.0 on end# PCI/AGP bridge + chip southbridge/intel/i82371eb# Southbridge + device pci 7.0 on# ISA bridge + chip superio/winbond/w83977tf# Super I/O (FIXME: It's W83977EF!) + device pnp 3f0.0 on# Floppy + io 0x60 = 0x3f0 + irq 0x70 = 6 + drq 0x74 = 2 + end + device pnp 3f0.1 on# Parallel port + io 0x60 = 0x378 + irq 0x70 = 7 + end + device pnp 3f0.2 on# COM1 + io 0x60 = 0x3f8 + irq 0x70 = 4 + end + device pnp 3f0.3 on# COM2 / IR + io 0x60 = 0x2f8 + irq 0x70 = 3 + end + device pnp 3f0.5 on# PS/2 keyboard + io 0x60 = 0x60 + io 0x62 = 0x64 + irq 0x70 = 1# PS/2 keyboard interrupt + irq 0x72 = 12# PS/2 mouse interrupt + end + device pnp 3f0.6 on# Consumer IR + end + device pnp 3f0.7 on# GPIO 1 + end + device pnp 3f0.8 on# GPIO 2 + end + device pnp 3f0.a on# ACPI + end + end + end + device pci 7.1 onend# IDE, UDMA/33 (part of 82371EB) + device pci 7.2 onend# USB + device pci 7.3 on end# ACPI + device pci 13.0 on end# IDE, UDMA/66 (HPT366 controller) + register "ide0_enable" = "1" + register "ide1_enable" = "1" + register "ide_legacy_enable" = "1" + register "ide0_drive0_udma33_enable" = "1" + register "ide0_drive1_udma33_enable" = "1" + register "ide1_drive0_udma33_enable" = "1" + register "ide1_drive1_udma33_enable" = "1" + end + end +end diff --git a/src/mainboard/jetway/j7bxan/irq_tables.c b/src/mainboard/jetway/j7bxan/irq_tables.c new file mode 100755 index 0000000..8473c00 --- /dev/null +++ b/src/mainboard/jetway/j7bxan/irq_tables.c @@ -0,0 +1,57 @@ +/* + * This file is part of the coreboot project. + * + * Copyright (C) 200x TODO TODO@TODO + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#ifdef GETPIR/* TODO: Drop this when copying to coreboot. */ +#include "pirq_routing.h"/* TODO: Drop this when copying to coreboot. */ +#else/* TODO: Drop this when copying to coreboot. */ +#include <arch/pirq_routing.h> +#endif/* TODO: Drop this when copying to coreboot. */ + +const struct irq_routing_table intel_irq_routing_table = { +PIRQ_SIGNATURE,/* u32 signature */ +PIRQ_VERSION,/* u16 version */ +32 + 16 * 7,/* Max. number of devices on the bus */ +0x00,/* Interrupt router bus */ +(0x07 << 3) | 0x0,/* Interrupt router dev */ +0xc00,/* IRQs devoted exclusively to PCI usage */ +0x8086,/* Vendor */ +0x7000,/* Device */ +0,/* Miniport */ +{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, /* u8 rfu[11] */ +0x3c,/* Checksum (has to be set to some value that + * would give 0 after the sum of all bytes + * for this structure (including checksum). + */ +{ +/* bus, dev | fn, {link, bitmap}, {link, bitmap}, {link, bitmap}, {link, bitmap}, slot, rfu */ +{0x00, (0x09 << 3) | 0x0, {{0x60, 0xdeb8}, {0x61, 0xdeb8}, {0x62, 0xdeb8}, {0x63, 0xdeb8}}, 0x1, 0x0}, +{0x00, (0x0b << 3) | 0x0, {{0x61, 0xdeb8}, {0x62, 0xdeb8}, {0x63, 0xdeb8}, {0x60, 0xdeb8}}, 0x2, 0x0}, +{0x00, (0x0d << 3) | 0x0, {{0x62, 0xdeb8}, {0x63, 0xdeb8}, {0x60, 0xdeb8}, {0x61, 0xdeb8}}, 0x3, 0x0}, +{0x00, (0x11 << 3) | 0x0, {{0x60, 0xdeb8}, {0x61, 0xdeb8}, {0x62, 0xdeb8}, {0x63, 0xdeb8}}, 0x4, 0x0}, +{0x00, (0x0f << 3) | 0x0, {{0x63, 0xdeb8}, {0x60, 0xdeb8}, {0x61, 0xdeb8}, {0x62, 0xdeb8}}, 0x5, 0x0}, +{0x00, (0x07 << 3) | 0x1, {{0x60, 0xdeb8}, {0x61, 0xdeb8}, {0x62, 0xdeb8}, {0x63, 0xdeb8}}, 0x0, 0x0}, +{0x00, (0x01 << 3) | 0x0, {{0x60, 0xdeb8}, {0x61, 0xdeb8}, {0x62, 0xdeb8}, {0x63, 0xdeb8}}, 0x0, 0x0}, +} +}; + +unsigned long write_pirq_routing_table(unsigned long addr) +{ +return copy_pirq_routing_table(addr); +} diff --git a/src/mainboard/jetway/j7bxan/mainboard.c b/src/mainboard/jetway/j7bxan/mainboard.c new file mode 100644 index 0000000..466278c --- /dev/null +++ b/src/mainboard/jetway/j7bxan/mainboard.c @@ -0,0 +1,26 @@ +/* + * This file is part of the coreboot project. + * + * Copyright (C) 2007 Uwe Hermann uwe@hermann-uwe.de + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#include <device/device.h> +#include "chip.h" + +struct chip_operations mainboard_ops = { +CHIP_NAME("Jetway J7BXAN Mainboard") +}; diff --git a/src/mainboard/jetway/j7bxan/mainboard.c~ b/src/mainboard/jetway/j7bxan/mainboard.c~ new file mode 100644 index 0000000..6fc23ec --- /dev/null +++ b/src/mainboard/jetway/j7bxan/mainboard.c~ @@ -0,0 +1,26 @@ +/* + * This file is part of the coreboot project. + * + * Copyright (C) 2007 Uwe Hermann uwe@hermann-uwe.de + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#include <device/device.h> +#include "chip.h" + +struct chip_operations mainboard_ops = { +CHIP_NAME("Abit BE6-II V2.0 Mainboard") +}; diff --git a/src/mainboard/jetway/j7bxan/romstage.c b/src/mainboard/jetway/j7bxan/romstage.c new file mode 100755 index 0000000..3135592 --- /dev/null +++ b/src/mainboard/jetway/j7bxan/romstage.c @@ -0,0 +1,58 @@ +/* + * This file is part of the coreboot project. + * + * Copyright (C) 2007 Uwe Hermann uwe@hermann-uwe.de + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#include <stdint.h> +#include <stdlib.h> +#include <device/pci_def.h> +#include <arch/io.h> +#include <device/pnp_def.h> +#include <arch/romcc_io.h> +#include <arch/hlt.h> +#include <console/console.h> +#include "southbridge/intel/i82371eb/i82371eb.h" +#include "northbridge/intel/i440bx/raminit.h" +#include "pc80/udelay_io.c" +#include "lib/delay.c" +#include "cpu/x86/bist.h" +/* FIXME: It's a Winbond W83977EF, actually. */ +#include "superio/winbond/w83977tf/early_serial.c" +#include <lib.h> + +/* FIXME: It's a Winbond W83977EF, actually. */ +#define SERIAL_DEV PNP_DEV(0x3f0, W83977TF_SP1) + +int spd_read_byte(unsigned int device, unsigned int address) +{ +return smbus_read_byte(device, address); +} + +void main(unsigned long bist) +{ +/* FIXME: It's a Winbond W83977EF, actually. */ +w83977tf_enable_serial(SERIAL_DEV, CONFIG_TTYS0_BASE); +console_init(); +report_bist_failure(bist); + +enable_smbus(); +dump_spd_registers(); +sdram_set_registers(); +sdram_set_spd_registers(); +sdram_enable(); +} -- 1.7.5.4
Good start for learning git :) Now drop backup files that name ends with tilde symbol like this: src/mainboard/jetway/j7bxan/Kconfig~ Then, try to rebase to current tree commit, as I can't apply the patch to freshly cloned tree.
P.S. try that copies detection, so less text to review.
Thanks, Tadas
Hi there.
I am still working on the patch. So I thought why not release a video of Coreboot working on the mobo lol
http://www.youtube.com/watch?v=uCW3nljgVUk
Anyway thanx for your help everyone!
Abhinav
Ok sorry for the late reply!
I have posted the video of coreboot working on the mobo. Now I am sending this working patch. I have tested it.
I just want you people to recheck if it is working. :)
Thanx for everything!
On Mon, 5 Sep 2011 20:16:09 +0530 (IST), Abhinav Hardikar wrote:
I have posted the video of coreboot working on the mobo. Now I am sending this working patch. I have tested it.
Could you please submit it to our Gerrit instance?
See http://www.coreboot.org/Git for instructions.
Thanks, Patrick