Port-macppc archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: What does ofwboot.xcf know?



At 23:08 Uhr +0900 24.2.2008, Izumi Tsutsui wrote:
>hauke%Espresso.Rhein-Neckar.DE@localhost wrote:
>
>> libsa seems to handle {l,f}fsv{1,2} under the moniker of ufs?
>> I tried
> :
>>  #include <lib/libsa/cd9660.h>
>> +#include <lib/libsa/lfs.h>
>>  #include <lib/libsa/nfs.h>
>>  #include <lib/libsa/ufs.h>
>>  #include <lib/libsa/ustarfs.h>
>>
>> but it made no difference.
>
>You also have to add struct fs_ops file_system_lfs
>(as ufs/hfs/ustarfs/cd9660) and put it into to file_system[]
>array in devopen().

I tried that before, and got

#   compile  ofwboot/ofdev.o
cc -Os -Wno-main -msoft-float -mmultiple -ffreestanding   -Werror
-D_STANDALONE -DSUPPORT_DHCP -DSUPPORT_USTARFS -DHAVE_CHANGEDISK_HOOK
-DLIBSA_USE_MEMCPY -DLIBSA_USE_MEMSET -I.
-I/usr/src/sys/arch/macppc/stand/ofwboot
-I/usr/src/sys/arch/macppc/stand/ofwboot/../../..
-I/usr/src/sys/arch/macppc/stand/ofwboot/../../../.. -DRELOC=0xE00000
-DRELOC_FLATFILE=0x
-I/usr/src/sys/arch/macppc/stand/ofwboot/../../../../lib/libkern/../../../common
/lib/libc/quad
-I/usr/src/sys/arch/macppc/stand/ofwboot/../../../../lib/libkern/../../../common
/lib/libc/string
-I/usr/src/sys/arch/macppc/stand/ofwboot/../../../../lib/libkern/../../../common
/lib/libc/arch/powerpc/string    -c    ofdev.c
ofdev.c:167: error: 'lfs_open' undeclared here (not in a function)
ofdev.c:167: error: 'lfs_close' undeclared here (not in a function)
ofdev.c:167: error: 'lfs_read' undeclared here (not in a function)
ofdev.c:167: error: 'lfs_write' undeclared here (not in a function)
ofdev.c:167: error: 'lfs_seek' undeclared here (not in a function)
ofdev.c:167: error: 'lfs_stat' undeclared here (not in a function)
*** Error code 1

Stop.
make: stopped in /usr/src/sys/arch/macppc/stand/ofwboot
*** Error code 1

Stop.
make: stopped in /usr/src/sys/arch/macppc/stand/ofwboot
[hauke@henkelmann] /<5>stand/ofwboot > fgrep lfs_write ../../../../lib/libsa/*
[hauke@henkelmann] /<5>stand/ofwboot > fgrep ufs_write ../../../../lib/libsa/*
../../../../lib/libsa/ffsv1.c:#define ufs_write ffsv1_write
../../../../lib/libsa/ffsv2.c:#define ufs_write ffsv2_write
../../../../lib/libsa/lfsv1.c:#define   ufs_write               lfsv1_write
../../../../lib/libsa/lfsv2.c:#define   ufs_write               lfsv2_write
../../../../lib/libsa/ufs.c:ufs_write(struct open_file *f, void *start,
size_t size, size_t *resid)

-- how is that supposed to work?

I tried booting from a BSD disklabel(8)ed disk in the meantime - same
effect; so it's more than just the Apple partition table being unsuitable
for lfs.

Confused,
        hauke


--
"It's never straight up and down"     (DEVO)




Home | Main Index | Thread Index | Old Index