ccases@navista.fr wrote:
On 3/12/07, ccases@navista.fr ccases@navista.fr wrote:
[...]
In the file LinuxBIOSv2/src/mainboard/digitallogic/msm800sev/mainboard.c I don't see the fonction do you speak. And if I use this file like this :
It's in irq_tables.c usually, and usually at the bottom. For most mainboards, this works fine:
unsigned long write_pirq_routing_table(unsigned long addr) { return copy_pirq_routing_table(addr); }
Is there any reason we don't patch up get_pir.c to add this, perhaps with a note that it might need to be fixed up?
-Corey
before any, Thank's for your help, I have use like this the fonction (mainboard.c) :
#include <console/console.h> #include <device/device.h> #include <device/pci.h> #include <device/pci_ids.h> #include <device/pci_ops.h> #include <arch/io.h> #include "chip.h"
unsigned long write_pirq_routing_table(unsigned long addr) { return copy_pirq_routing_table(addr); }
struct chip_operations mainboard_advantech_pcm5823_ops = { CHIP_NAME("ADVANTECH PCM-5823 Mainboard") };
and now the fallback mode is ok, but not the normal mode, I have this error message :
DXIP_ROM_SIZE='0x10000' -DXIP_ROM_BASE='0xfffd0000' -DCONFIG_UDELAY_TSC='1' -DCONFIG_TSC_X86RDTSC_CALIBRATE_WITH_TIMER2='0' -DCONFIG_UDELAY_IO='0' -DUSE_FAILOVER_IMAGE='0' -Os -nostdinc -nostdlib -fno-builtin -Wall -o rom_stream.o /home/ccases/LinuxBIOSv2/src/stream/rom_stream.c /home/ccases/LinuxBIOSv2/src/stream/rom_stream.c:47:90: invalid suffix "x" on integer constant /home/ccases/LinuxBIOSv2/src/stream/rom_stream.c: In function `stream_init': /home/ccases/LinuxBIOSv2/src/stream/rom_stream.c:83: warning: comparison between pointer and integer /home/ccases/LinuxBIOSv2/src/stream/rom_stream.c:83: warning: comparison between pointer and integer /home/ccases/LinuxBIOSv2/src/stream/rom_stream.c:84: warning: assignment makes pointer from integer without a cast make[1]: *** [rom_stream.o] Error 1 make[1]: Leaving directory `/home/ccases/LinuxBIOSv2/targets/advantech/pcm-5823/pcm-5823/normal' make: *** [normal/linuxbios.rom] Error 1
This error is because I haven't any fonction init in the mainboard.c ? or what ?
thank's for all ;)
Regards
Ccases