flashbootlist at itmon.nl
2011-May-05 12:11 UTC
[flashboot] Where do I add an .o to the build process?
Hi List,
Sorry to bother you all again so soon. But I''m not quite where I want
to be
with "flashboot 4.9"
The RAMDRIVE kernel I succesfully build doesn''t have support for pf and
stuff like that. For a firewall this in inconvenient :-)
So I tried uncommenting the devices that give an error when building
GENERIC-RD and this turned out to be only a few items (see below for diff).
The compiling now succeeds but the linking fails:
=====================ld -Ttext 0xD0200120 -e start -N --warn-common -S -x -o bsd
${SYSTEM_HEAD}
vers.o ${OBJS}
acpi.o(.text+0x3c41): In function `acpi_resume'':
: undefined reference to `acpibtn_disable_psw''
acpi.o(.text+0x3d56): In function `acpi_handle_suspend_failure'':
: undefined reference to `acpibtn_disable_psw''
acpi.o(.text+0x3f5c): In function `acpi_prepare_sleep_state'':
: undefined reference to `acpibtn_enable_psw''
*** Error code 1
=====================
I found that the missing referenced functions are in acpibtn.o which
apperently isn''t in ${OBJS} but I can''t find where I can check
this and add
it if my assumption is correct.
Mark
diff -urN GENERIC-RD.org GENERIC-RD
--- GENERIC-RD.org Thu May 5 14:21:41 2011
+++ GENERIC-RD Thu May 5 14:51:55 2011
@@ -40,7 +40,7 @@
# or use root on nfs swap on nfs
option RAMDISK_HOOKS
option MINIROOTSIZE=30720 # disktab.12mb
-option NKPTP=8
+option NKPTP=16
config bsd root on rd0a swap on rd0b and wd0b and wd1b
pseudo-device rd 1
@@ -244,9 +244,9 @@
url* at uhub? # Realtek RTL8150L based adapters
wi* at uhub? # WaveLAN IEEE 802.11DS
urio* at uhub? # Diamond Multimedia Rio 500
-uscanner* at uhub? # USB Scanners
-usscanner* at uhub? # USB SCSI scanners, e.g., HP5300
-scsibus* at usscanner?
+#uscanner* at uhub? # USB Scanners
+#usscanner* at uhub? # USB SCSI scanners, e.g., HP5300
+#scsibus* at usscanner?
#uyap* at uhub? # Y at P firmware loader
udsbr* at uhub? # D-Link DSB-R100 radio
radio* at udsbr? # USB radio
@@ -288,7 +288,7 @@
pckbc0 at isa? # PC keyboard controller
pckbd* at pckbc? # PC keyboard
pms* at pckbc? # PS/2 mouse for wsmouse
-pmsi* at pckbc? # PS/2 "Intelli"mouse for wsmouse
+#pmsi* at pckbc? # PS/2 "Intelli"mouse for wsmouse
vga0 at isa?
option PCIAGP
vga* at pci?
@@ -297,7 +297,7 @@
wsdisplay* at pcdisplay?
wskbd* at pckbd? mux 1
wsmouse* at pms? mux 0
-wsmouse* at pmsi? mux 0
+#wsmouse* at pmsi? mux 0
#vesabios0 at mainbus?
# option VESABIOSVERBOSE
@@ -426,7 +426,7 @@
st* at scsibus? # SCSI tape drives
cd* at scsibus? # SCSI CD-ROM drives
ch* at scsibus? # SCSI autochangers
-ss* at scsibus? # SCSI scanners
+#ss* at scsibus? # SCSI scanners
safte* at scsibus? # SCSI accessed fault-tolerant enclosures
ses* at scsibus? # SCSI enclosure services
uk* at scsibus? # unknown SCSI
@@ -630,16 +630,16 @@
# OPL[23] FM synthesizers
#opl0 at isa? port 0x388 # use only if not attached to sound card
-opl* at eso?
-opl* at sb?
-opl* at ess?
-opl* at yds?
-opl* at cmpci?
+#opl* at eso?
+#opl* at sb?
+#opl* at ess?
+#opl* at yds?
+#opl* at cmpci?
# MIDI support
-midi* at pcppi? # MIDI interface to the PC speaker
+#midi* at pcppi? # MIDI interface to the PC speaker
midi* at sb? # SB MPU401 port
-midi* at opl? # OPL FM synth
+#midi* at opl? # OPL FM synth
midi* at ym?
midi* at mpu?
midi* at autri?
Rickard Dahlstrand
2011-May-05 13:11 UTC
[flashboot] Where do I add an .o to the build process?
Hi Mark, I succeeded in running my build-release.sh this morning, however then I had to leave for work and will continue tonight. Now that I have build a release getting the kernels working should be easy enough. Rickard. 5 maj 2011 kl. 14.11 skrev flashbootlist at itmon.nl:> > Hi List, > > Sorry to bother you all again so soon. But I''m not quite where I want to be with "flashboot 4.9" > > The RAMDRIVE kernel I succesfully build doesn''t have support for pf and stuff like that. For a firewall this in inconvenient :-) > > So I tried uncommenting the devices that give an error when building GENERIC-RD and this turned out to be only a few items (see below for diff). > > > The compiling now succeeds but the linking fails: > =====================> ld -Ttext 0xD0200120 -e start -N --warn-common -S -x -o bsd ${SYSTEM_HEAD} vers.o ${OBJS} > acpi.o(.text+0x3c41): In function `acpi_resume'': > : undefined reference to `acpibtn_disable_psw'' > acpi.o(.text+0x3d56): In function `acpi_handle_suspend_failure'': > : undefined reference to `acpibtn_disable_psw'' > acpi.o(.text+0x3f5c): In function `acpi_prepare_sleep_state'': > : undefined reference to `acpibtn_enable_psw'' > *** Error code 1 > =====================> > I found that the missing referenced functions are in acpibtn.o which apperently isn''t in ${OBJS} but I can''t find where I can check this and add it if my assumption is correct. > > Mark > > > > > > diff -urN GENERIC-RD.org GENERIC-RD --- GENERIC-RD.org Thu May 5 14:21:41 2011 > +++ GENERIC-RD Thu May 5 14:51:55 2011 > @@ -40,7 +40,7 @@ > # or use root on nfs swap on nfs > option RAMDISK_HOOKS > option MINIROOTSIZE=30720 # disktab.12mb > -option NKPTP=8 > +option NKPTP=16 > config bsd root on rd0a swap on rd0b and wd0b and wd1b > pseudo-device rd 1 > @@ -244,9 +244,9 @@ > url* at uhub? # Realtek RTL8150L based adapters > wi* at uhub? # WaveLAN IEEE 802.11DS > urio* at uhub? # Diamond Multimedia Rio 500 > -uscanner* at uhub? # USB Scanners > -usscanner* at uhub? # USB SCSI scanners, e.g., HP5300 > -scsibus* at usscanner? > +#uscanner* at uhub? # USB Scanners > +#usscanner* at uhub? # USB SCSI scanners, e.g., HP5300 > +#scsibus* at usscanner? > #uyap* at uhub? # Y at P firmware loader > udsbr* at uhub? # D-Link DSB-R100 radio > radio* at udsbr? # USB radio > @@ -288,7 +288,7 @@ > pckbc0 at isa? # PC keyboard controller > pckbd* at pckbc? # PC keyboard > pms* at pckbc? # PS/2 mouse for wsmouse > -pmsi* at pckbc? # PS/2 "Intelli"mouse for wsmouse > +#pmsi* at pckbc? # PS/2 "Intelli"mouse for wsmouse > vga0 at isa? > option PCIAGP > vga* at pci? > @@ -297,7 +297,7 @@ > wsdisplay* at pcdisplay? > wskbd* at pckbd? mux 1 > wsmouse* at pms? mux 0 > -wsmouse* at pmsi? mux 0 > +#wsmouse* at pmsi? mux 0 > #vesabios0 at mainbus? > # option VESABIOSVERBOSE > @@ -426,7 +426,7 @@ > st* at scsibus? # SCSI tape drives > cd* at scsibus? # SCSI CD-ROM drives > ch* at scsibus? # SCSI autochangers > -ss* at scsibus? # SCSI scanners > +#ss* at scsibus? # SCSI scanners > safte* at scsibus? # SCSI accessed fault-tolerant enclosures > ses* at scsibus? # SCSI enclosure services > uk* at scsibus? # unknown SCSI > @@ -630,16 +630,16 @@ > # OPL[23] FM synthesizers > #opl0 at isa? port 0x388 # use only if not attached to sound card > -opl* at eso? > -opl* at sb? > -opl* at ess? > -opl* at yds? > -opl* at cmpci? > +#opl* at eso? > +#opl* at sb? > +#opl* at ess? > +#opl* at yds? > +#opl* at cmpci? > # MIDI support > -midi* at pcppi? # MIDI interface to the PC speaker > +#midi* at pcppi? # MIDI interface to the PC speaker > midi* at sb? # SB MPU401 port > -midi* at opl? # OPL FM synth > +#midi* at opl? # OPL FM synth > midi* at ym? > midi* at mpu? > midi* at autri? > > _______________________________________________ > flashboot mailing list > flashboot at mindrot.org > https://lists.mindrot.org/mailman/listinfo/flashboot