yep ca compile merci !
Seulement la j'ai ajouté le support du port PCI, et il ne trouve pas la définition de certaines fonctions associées :
m68k-elf-ld -g -T arch/m68knommu/platform/5407/MOTOROLA/ram.ld arch/m68knommu/platform/5407/MOTOROLA/crt0_ram.o init/main.o init/version.o \
arch/m68knommu/kernel/kernel.o arch/m68knommu/mm/mm.o arch/m68knommu/platform/5407/platform.o kernel/kernel.o fs/fs.o ipc/ipc.o net/network.a mmnommu/mm.o \
fs/filesystems.a \
drivers/block/block.a drivers/char/char.a drivers/net/net.a drivers/pci/pci.a \
/home/francois/uClinux-dist/linux-2.0.x/lib/lib.a arch/m68knommu/lib/lib.a /usr/local/lib/gcc-lib/m68k-elf/2.95.3/./m5200/libgcc.a -o linux
kernel/kernel.o: In function `process_timeout':
/home/francois/uClinux-dist/linux-2.0.x/kernel/sched.c:125: undefined reference to `pcibios_present'
/home/francois/uClinux-dist/linux-2.0.x/kernel/sched.c:126: undefined reference to `pcibios_find_class'
/home/francois/uClinux-dist/linux-2.0.x/kernel/sched.c:129: undefined reference to `pcibios_find_device'
/home/francois/uClinux-dist/linux-2.0.x/kernel/sched.c:129: undefined reference to `pcibios_read_config_byte'
/home/francois/uClinux-dist/linux-2.0.x/kernel/sched.c:129: undefined reference to `pcibios_read_config_word'
/home/francois/uClinux-dist/linux-2.0.x/kernel/sched.c:130: undefined reference to `pcibios_read_config_dword'
/home/francois/uClinux-dist/linux-2.0.x/kernel/sched.c:131: undefined reference to `pcibios_strerror'
/home/francois/uClinux-dist/linux-2.0.x/kernel/sched.c:132: undefined reference to `pcibios_write_config_byte'
/home/francois/uClinux-dist/linux-2.0.x/kernel/sched.c:133: undefined reference to `pcibios_write_config_word'
/home/francois/uClinux-dist/linux-2.0.x/kernel/sched.c:133: undefined reference to `pcibios_write_config_dword'
drivers/net/net.a(ne.o): In function `ne_probe_pci':
/home/francois/uClinux-dist/linux-2.0.x/drivers/net/ne.c:259: undefined reference to `pcibios_read_config_dword'
/home/francois/uClinux-dist/linux-2.0.x/drivers/net/ne.c:255: undefined reference to `pcibios_find_device'
/home/francois/uClinux-dist/linux-2.0.x/drivers/net/ne.c:274: undefined reference to `pcibios_read_config_word'
/home/francois/uClinux-dist/linux-2.0.x/drivers/net/ne.c:283: undefined reference to `pcibios_write_config_word'
/home/francois/uClinux-dist/linux-2.0.x/drivers/net/ne.c:266: undefined reference to `pcibios_read_config_byte'
drivers/pci/pci.a(pci.o): In function `sprint_dev_config':
/home/francois/uClinux-dist/linux-2.0.x/drivers/pci/pci.c:971: undefined reference to `pcibios_read_config_byte'
/home/francois/uClinux-dist/linux-2.0.x/drivers/pci/pci.c:972: undefined reference to `pcibios_read_config_dword'
/home/francois/uClinux-dist/linux-2.0.x/drivers/pci/pci.c:973: undefined reference to `pcibios_read_config_word'
/home/francois/uClinux-dist/linux-2.0.x/drivers/pci/pci.c:1064: undefined reference to `pcibios_read_config_dword'
/home/francois/uClinux-dist/linux-2.0.x/drivers/pci/pci.c:1091: undefined reference to `pcibios_read_config_dword'
drivers/pci/pci.a(pci.o): In function `scan_bus':
/home/francois/uClinux-dist/linux-2.0.x/drivers/pci/pci.c:1168: undefined reference to `pcibios_read_config_byte'
/home/francois/uClinux-dist/linux-2.0.x/drivers/pci/pci.c:1172: undefined reference to `pcibios_read_config_dword'
/home/francois/uClinux-dist/linux-2.0.x/drivers/pci/pci.c:1174: undefined reference to `pcibios_read_config_dword'
/home/francois/uClinux-dist/linux-2.0.x/drivers/pci/pci.c:1205: undefined reference to `pcibios_read_config_byte'
/home/francois/uClinux-dist/linux-2.0.x/drivers/pci/pci.c:1207: undefined reference to `pcibios_write_config_byte'
/home/francois/uClinux-dist/linux-2.0.x/drivers/pci/pci.c:1209: undefined reference to `pcibios_read_config_byte'
/home/francois/uClinux-dist/linux-2.0.x/drivers/pci/pci.c:1212: undefined reference to `pcibios_write_config_byte'
/home/francois/uClinux-dist/linux-2.0.x/drivers/pci/pci.c:1216: undefined reference to `pcibios_read_config_byte'
/home/francois/uClinux-dist/linux-2.0.x/drivers/pci/pci.c:1284: undefined reference to `pcibios_read_config_word'
/home/francois/uClinux-dist/linux-2.0.x/drivers/pci/pci.c:1286: undefined reference to `pcibios_write_config_word'
/home/francois/uClinux-dist/linux-2.0.x/drivers/pci/pci.c:1316: undefined reference to `pcibios_write_config_dword'
/home/francois/uClinux-dist/linux-2.0.x/drivers/pci/pci.c:1329: undefined reference to `pcibios_write_config_dword'
drivers/pci/pci.a(pci.o): In function `pci_init':
/home/francois/uClinux-dist/linux-2.0.x/drivers/pci/pci.c:1349: undefined reference to `pcibios_init'
/home/francois/uClinux-dist/linux-2.0.x/drivers/pci/pci.c:1351: undefined reference to `pcibios_present'
/home/francois/uClinux-dist/linux-2.0.x/drivers/pci/pci.c:1362: undefined reference to `pcibios_fixup'
make[1]: *** [linux] Erreur 1
make[1]: quittant le répertoire « /home/francois/uClinux-dist/linux-2.0.x »
make: *** [linux] Erreur 1
pourtant si je prends le cas de cette ligne : /home/francois/uClinux-dist/linux-2.0.x/drivers/pci/pci.c:1168: undefined reference to `pcibios_read_config_byte'
l'include <linux/bios32.h> , qui contient l'entete de la fonction pcibios_read_config_byte, est bien présent dans le fichier pci.c, donc comment il ne trouve pas la définition ?
# support du PCI
Posté par fr4ncois . En réponse au message Problème de compilation de uClinux. Évalué à 1.
Seulement la j'ai ajouté le support du port PCI, et il ne trouve pas la définition de certaines fonctions associées :
m68k-elf-ld -g -T arch/m68knommu/platform/5407/MOTOROLA/ram.ld arch/m68knommu/platform/5407/MOTOROLA/crt0_ram.o init/main.o init/version.o \
arch/m68knommu/kernel/kernel.o arch/m68knommu/mm/mm.o arch/m68knommu/platform/5407/platform.o kernel/kernel.o fs/fs.o ipc/ipc.o net/network.a mmnommu/mm.o \
fs/filesystems.a \
drivers/block/block.a drivers/char/char.a drivers/net/net.a drivers/pci/pci.a \
/home/francois/uClinux-dist/linux-2.0.x/lib/lib.a arch/m68knommu/lib/lib.a /usr/local/lib/gcc-lib/m68k-elf/2.95.3/./m5200/libgcc.a -o linux
kernel/kernel.o: In function `process_timeout':
/home/francois/uClinux-dist/linux-2.0.x/kernel/sched.c:125: undefined reference to `pcibios_present'
/home/francois/uClinux-dist/linux-2.0.x/kernel/sched.c:126: undefined reference to `pcibios_find_class'
/home/francois/uClinux-dist/linux-2.0.x/kernel/sched.c:129: undefined reference to `pcibios_find_device'
/home/francois/uClinux-dist/linux-2.0.x/kernel/sched.c:129: undefined reference to `pcibios_read_config_byte'
/home/francois/uClinux-dist/linux-2.0.x/kernel/sched.c:129: undefined reference to `pcibios_read_config_word'
/home/francois/uClinux-dist/linux-2.0.x/kernel/sched.c:130: undefined reference to `pcibios_read_config_dword'
/home/francois/uClinux-dist/linux-2.0.x/kernel/sched.c:131: undefined reference to `pcibios_strerror'
/home/francois/uClinux-dist/linux-2.0.x/kernel/sched.c:132: undefined reference to `pcibios_write_config_byte'
/home/francois/uClinux-dist/linux-2.0.x/kernel/sched.c:133: undefined reference to `pcibios_write_config_word'
/home/francois/uClinux-dist/linux-2.0.x/kernel/sched.c:133: undefined reference to `pcibios_write_config_dword'
drivers/net/net.a(ne.o): In function `ne_probe_pci':
/home/francois/uClinux-dist/linux-2.0.x/drivers/net/ne.c:259: undefined reference to `pcibios_read_config_dword'
/home/francois/uClinux-dist/linux-2.0.x/drivers/net/ne.c:255: undefined reference to `pcibios_find_device'
/home/francois/uClinux-dist/linux-2.0.x/drivers/net/ne.c:274: undefined reference to `pcibios_read_config_word'
/home/francois/uClinux-dist/linux-2.0.x/drivers/net/ne.c:283: undefined reference to `pcibios_write_config_word'
/home/francois/uClinux-dist/linux-2.0.x/drivers/net/ne.c:266: undefined reference to `pcibios_read_config_byte'
drivers/pci/pci.a(pci.o): In function `sprint_dev_config':
/home/francois/uClinux-dist/linux-2.0.x/drivers/pci/pci.c:971: undefined reference to `pcibios_read_config_byte'
/home/francois/uClinux-dist/linux-2.0.x/drivers/pci/pci.c:972: undefined reference to `pcibios_read_config_dword'
/home/francois/uClinux-dist/linux-2.0.x/drivers/pci/pci.c:973: undefined reference to `pcibios_read_config_word'
/home/francois/uClinux-dist/linux-2.0.x/drivers/pci/pci.c:1064: undefined reference to `pcibios_read_config_dword'
/home/francois/uClinux-dist/linux-2.0.x/drivers/pci/pci.c:1091: undefined reference to `pcibios_read_config_dword'
drivers/pci/pci.a(pci.o): In function `scan_bus':
/home/francois/uClinux-dist/linux-2.0.x/drivers/pci/pci.c:1168: undefined reference to `pcibios_read_config_byte'
/home/francois/uClinux-dist/linux-2.0.x/drivers/pci/pci.c:1172: undefined reference to `pcibios_read_config_dword'
/home/francois/uClinux-dist/linux-2.0.x/drivers/pci/pci.c:1174: undefined reference to `pcibios_read_config_dword'
/home/francois/uClinux-dist/linux-2.0.x/drivers/pci/pci.c:1205: undefined reference to `pcibios_read_config_byte'
/home/francois/uClinux-dist/linux-2.0.x/drivers/pci/pci.c:1207: undefined reference to `pcibios_write_config_byte'
/home/francois/uClinux-dist/linux-2.0.x/drivers/pci/pci.c:1209: undefined reference to `pcibios_read_config_byte'
/home/francois/uClinux-dist/linux-2.0.x/drivers/pci/pci.c:1212: undefined reference to `pcibios_write_config_byte'
/home/francois/uClinux-dist/linux-2.0.x/drivers/pci/pci.c:1216: undefined reference to `pcibios_read_config_byte'
/home/francois/uClinux-dist/linux-2.0.x/drivers/pci/pci.c:1284: undefined reference to `pcibios_read_config_word'
/home/francois/uClinux-dist/linux-2.0.x/drivers/pci/pci.c:1286: undefined reference to `pcibios_write_config_word'
/home/francois/uClinux-dist/linux-2.0.x/drivers/pci/pci.c:1316: undefined reference to `pcibios_write_config_dword'
/home/francois/uClinux-dist/linux-2.0.x/drivers/pci/pci.c:1329: undefined reference to `pcibios_write_config_dword'
drivers/pci/pci.a(pci.o): In function `pci_init':
/home/francois/uClinux-dist/linux-2.0.x/drivers/pci/pci.c:1349: undefined reference to `pcibios_init'
/home/francois/uClinux-dist/linux-2.0.x/drivers/pci/pci.c:1351: undefined reference to `pcibios_present'
/home/francois/uClinux-dist/linux-2.0.x/drivers/pci/pci.c:1362: undefined reference to `pcibios_fixup'
make[1]: *** [linux] Erreur 1
make[1]: quittant le répertoire « /home/francois/uClinux-dist/linux-2.0.x »
make: *** [linux] Erreur 1
pourtant si je prends le cas de cette ligne :
/home/francois/uClinux-dist/linux-2.0.x/drivers/pci/pci.c:1168: undefined reference to `pcibios_read_config_byte'l'include <linux/bios32.h> , qui contient l'entete de la fonction pcibios_read_config_byte, est bien présent dans le fichier pci.c, donc comment il ne trouve pas la définition ?